summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen7_state.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-12-14 16:14:20 -0800
committerJason Ekstrand <[email protected]>2015-12-14 16:14:20 -0800
commit1f98bf8da028c4d0e2b47cc1a59e6f004e2207a1 (patch)
treea8690d41258e39d232d407416b7b6ff90128d141 /src/vulkan/gen7_state.c
parentc4219bc6fff4c8fa764fd0b07c0e8ce99277c4c6 (diff)
anv: Pass an isl_format into fill_buffer_surface_state
Diffstat (limited to 'src/vulkan/gen7_state.c')
-rw-r--r--src/vulkan/gen7_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c
index 108ebe7c225..f58283f7d05 100644
--- a/src/vulkan/gen7_state.c
+++ b/src/vulkan/gen7_state.c
@@ -57,7 +57,7 @@ anv_surftype(const struct anv_image *image, VkImageViewType view_type)
}
GENX_FUNC(GEN7, GEN75) void
-genX(fill_buffer_surface_state)(void *state, const struct anv_format *format,
+genX(fill_buffer_surface_state)(void *state, enum isl_format format,
uint32_t offset, uint32_t range,
uint32_t stride)
{
@@ -65,7 +65,7 @@ genX(fill_buffer_surface_state)(void *state, const struct anv_format *format,
struct GENX(RENDER_SURFACE_STATE) surface_state = {
.SurfaceType = SURFTYPE_BUFFER,
- .SurfaceFormat = format->surface_format,
+ .SurfaceFormat = format,
.SurfaceVerticalAlignment = VALIGN_4,
.SurfaceHorizontalAlignment = HALIGN_4,
.TiledSurface = false,