summaryrefslogtreecommitdiffstats
path: root/src/vulkan/device.c
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-06-10 23:11:37 -0700
committerKristian Høgsberg Kristensen <[email protected]>2015-06-11 09:25:04 -0700
commita5b49d2799a5d52c3a86f97efc2dfeecf6c9c8bf (patch)
tree499bc614b2d9827e785281412d379f31d4679049 /src/vulkan/device.c
parentea7ef46cf9c91c27e70c837db0d162382efaddcb (diff)
vk: Use generated headers with fixed point support
The generated headers now convert float in the template struct to the correct fixed point format.
Diffstat (limited to 'src/vulkan/device.c')
-rw-r--r--src/vulkan/device.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index 3df707429e1..7ee820b1bc5 100644
--- a/src/vulkan/device.c
+++ b/src/vulkan/device.c
@@ -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,