summaryrefslogtreecommitdiffstats
path: root/src/vulkan/image.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/image.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/image.c')
-rw-r--r--src/vulkan/image.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vulkan/image.c b/src/vulkan/image.c
index b385be48917..b8a15a1aa59 100644
--- a/src/vulkan/image.c
+++ b/src/vulkan/image.c
@@ -261,7 +261,7 @@ anv_image_view_init(struct anv_surface_view *view,
.SamplerL2BypassModeDisable = true,
.RenderCacheReadWriteMode = WriteOnlyCache,
.MemoryObjectControlState = GEN8_MOCS,
- .BaseMipLevel = 0,
+ .BaseMipLevel = 0.0,
.SurfaceQPitch = 0,
.Height = image->extent.height - 1,
.Width = image->extent.width - 1,
@@ -282,7 +282,7 @@ anv_image_view_init(struct anv_surface_view *view,
.ShaderChannelSelectGreen = vk_to_gen_swizzle[pCreateInfo->channels.g],
.ShaderChannelSelectBlue = vk_to_gen_swizzle[pCreateInfo->channels.b],
.ShaderChannelSelectAlpha = vk_to_gen_swizzle[pCreateInfo->channels.a],
- .ResourceMinLOD = 0,
+ .ResourceMinLOD = 0.0,
.SurfaceBaseAddress = { NULL, view->offset },
};
@@ -360,7 +360,7 @@ anv_color_attachment_view_init(struct anv_surface_view *view,
.SamplerL2BypassModeDisable = true,
.RenderCacheReadWriteMode = WriteOnlyCache,
.MemoryObjectControlState = GEN8_MOCS,
- .BaseMipLevel = 0,
+ .BaseMipLevel = 0.0,
.SurfaceQPitch = 0,
.Height = image->extent.height - 1,
.Width = image->extent.width - 1,
@@ -381,7 +381,7 @@ anv_color_attachment_view_init(struct anv_surface_view *view,
.ShaderChannelSelectGreen = SCS_GREEN,
.ShaderChannelSelectBlue = SCS_BLUE,
.ShaderChannelSelectAlpha = SCS_ALPHA,
- .ResourceMinLOD = 0,
+ .ResourceMinLOD = 0.0,
.SurfaceBaseAddress = { NULL, view->offset },
};