From 1f98bf8da028c4d0e2b47cc1a59e6f004e2207a1 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 14 Dec 2015 16:14:20 -0800 Subject: anv: Pass an isl_format into fill_buffer_surface_state --- src/vulkan/gen7_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vulkan/gen7_state.c') 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, -- cgit v1.2.3