diff options
author | Jason Ekstrand <[email protected]> | 2015-11-06 15:14:10 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-06 15:14:12 -0800 |
commit | 399d5314f679921f0e383171bb01a3d259b04754 (patch) | |
tree | 09b22a6ea79b1eab91be49b0f019c6b3d2c40613 /src/vulkan/gen7_state.c | |
parent | 1b5c7e7ecd43d3526c0a6831ff6c1edfab4529af (diff) |
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.
Diffstat (limited to 'src/vulkan/gen7_state.c')
-rw-r--r-- | src/vulkan/gen7_state.c | 8 |
1 files changed, 1 insertions, 7 deletions
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 = { |