vk: Use generated headers with fixed point support
The generated headers now convert float in the template struct to the correct fixed point format.
This commit is contained in:
@@ -1524,7 +1524,7 @@ fill_buffer_surface_state(void *state, VkFormat format,
|
||||
.SamplerL2BypassModeDisable = true,
|
||||
.RenderCacheReadWriteMode = WriteOnlyCache,
|
||||
.MemoryObjectControlState = GEN8_MOCS,
|
||||
.BaseMipLevel = 0,
|
||||
.BaseMipLevel = 0.0,
|
||||
.SurfaceQPitch = 0,
|
||||
.Height = (num_elements >> 7) & 0x3fff,
|
||||
.Width = num_elements & 0x7f,
|
||||
@@ -1545,7 +1545,7 @@ fill_buffer_surface_state(void *state, VkFormat format,
|
||||
.ShaderChannelSelectGreen = SCS_GREEN,
|
||||
.ShaderChannelSelectBlue = SCS_BLUE,
|
||||
.ShaderChannelSelectAlpha = SCS_ALPHA,
|
||||
.ResourceMinLOD = 0,
|
||||
.ResourceMinLOD = 0.0,
|
||||
/* FIXME: We assume that the image must be bound at this time. */
|
||||
.SurfaceBaseAddress = { NULL, offset },
|
||||
};
|
||||
@@ -1648,14 +1648,14 @@ VkResult anv_CreateSampler(
|
||||
.SamplerDisable = false,
|
||||
.TextureBorderColorMode = DX10OGL,
|
||||
.LODPreClampMode = 0,
|
||||
.BaseMipLevel = 0,
|
||||
.BaseMipLevel = 0.0,
|
||||
.MipModeFilter = vk_to_gen_mipmap_mode[pCreateInfo->mipMode],
|
||||
.MagModeFilter = mag_filter,
|
||||
.MinModeFilter = min_filter,
|
||||
.TextureLODBias = pCreateInfo->mipLodBias * 256,
|
||||
.AnisotropicAlgorithm = EWAApproximation,
|
||||
.MinLOD = pCreateInfo->minLod * 256,
|
||||
.MaxLOD = pCreateInfo->maxLod * 256,
|
||||
.MinLOD = pCreateInfo->minLod,
|
||||
.MaxLOD = pCreateInfo->maxLod,
|
||||
.ChromaKeyEnable = 0,
|
||||
.ChromaKeyIndex = 0,
|
||||
.ChromaKeyMode = 0,
|
||||
|
Reference in New Issue
Block a user