diff options
author | Jason Ekstrand <[email protected]> | 2015-09-11 10:41:57 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-11 10:43:55 -0700 |
commit | de5220c7ce97d6aa72b84bf60f65886139e48eaf (patch) | |
tree | ffb9d6163d795fdef9ce569bf0b55c16cd40dd91 /src/vulkan/anv_cmd_buffer.c | |
parent | b908c67816709d0bdcdec02b7926c80531508405 (diff) |
vk/pipeline_layout: Move surface/sampler start from SoA to AoS
This makes more sense to me and it's more consistent with
anv_descriptor_set_layout.
Diffstat (limited to 'src/vulkan/anv_cmd_buffer.c')
-rw-r--r-- | src/vulkan/anv_cmd_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c index 17857d9759a..c2024e4dd60 100644 --- a/src/vulkan/anv_cmd_buffer.c +++ b/src/vulkan/anv_cmd_buffer.c @@ -449,7 +449,7 @@ anv_cmd_buffer_emit_binding_table(struct anv_cmd_buffer *cmd_buffer, struct anv_descriptor_slot *surface_slots = set_layout->stage[stage].surface_start; - uint32_t start = bias + layout->set[set].surface_start[stage]; + uint32_t start = bias + layout->set[set].stage[stage].surface_start; for (uint32_t b = 0; b < set_layout->stage[stage].surface_count; b++) { struct anv_surface_view *view = @@ -515,7 +515,7 @@ anv_cmd_buffer_emit_samplers(struct anv_cmd_buffer *cmd_buffer, struct anv_descriptor_slot *sampler_slots = set_layout->stage[stage].sampler_start; - uint32_t start = layout->set[set].sampler_start[stage]; + uint32_t start = layout->set[set].stage[stage].sampler_start; for (uint32_t b = 0; b < set_layout->stage[stage].sampler_count; b++) { struct anv_sampler *sampler = |