From 399d5314f679921f0e383171bb01a3d259b04754 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 6 Nov 2015 15:14:10 -0800 Subject: anv/cmd_buffer: Rework the way we emit UBO surface state The new mechanism should be able to handle SSBOs as well as properly handle emitting surface state on gen7 where we need different strides depending on shader stage. --- src/vulkan/gen7_state.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/vulkan/gen7_state.c') diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c index 0d67be4a99b..6f1cb8553e9 100644 --- a/src/vulkan/gen7_state.c +++ b/src/vulkan/gen7_state.c @@ -31,14 +31,8 @@ void gen7_fill_buffer_surface_state(void *state, const struct anv_format *format, - uint32_t offset, uint32_t range) + uint32_t offset, uint32_t range, uint32_t stride) { - /* This assumes RGBA float format. */ - - uint32_t stride = 16; /* Depends on whether accessing shader is simd8 or - * vec4. Will need one of each for buffers that are - * used in both vec4 and simd8. */ - uint32_t num_elements = range / stride; struct GEN7_RENDER_SURFACE_STATE surface_state = { -- cgit v1.2.3