diff options
author | Lionel Landwerlin <[email protected]> | 2019-01-17 18:19:59 +0000 |
---|---|---|
committer | Mark Janes <[email protected]> | 2019-01-17 11:49:10 -0800 |
commit | 4149d41f2e4ea02ca86975d25ab160e69bf0f8e5 (patch) | |
tree | c138a6d6e61952994afe542f78e5d75b4c5ae16b /src/intel/vulkan/genX_cmd_buffer.c | |
parent | c4c5c90255b6233cee0e457aee323a334df9aaf7 (diff) |
anv: fix invalid binding table index computation
The ++ operator strikes again.
Fixes: f92c5bc8f3f517 ("anv/device: fix maximum number of images supported")
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_cmd_buffer.c')
-rw-r--r-- | src/intel/vulkan/genX_cmd_buffer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 0bf46db0a5e..abba55cf84f 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -2178,8 +2178,6 @@ emit_binding_table(struct anv_cmd_buffer *cmd_buffer, surface_state = sstate.state; assert(surface_state.alloc_size); add_surface_state_relocs(cmd_buffer, sstate); - image++; - if (devinfo->gen < 9) { assert(image < MAX_GEN8_IMAGES); struct brw_image_param *image_param = @@ -2188,6 +2186,7 @@ emit_binding_table(struct anv_cmd_buffer *cmd_buffer, *image_param = desc->image_view->planes[binding->plane].storage_image_param; } + image++; break; } @@ -2232,8 +2231,6 @@ emit_binding_table(struct anv_cmd_buffer *cmd_buffer, assert(surface_state.alloc_size); add_surface_reloc(cmd_buffer, surface_state, desc->buffer_view->address); - image++; - if (devinfo->gen < 9) { assert(image < MAX_GEN8_IMAGES); struct brw_image_param *image_param = @@ -2241,6 +2238,7 @@ emit_binding_table(struct anv_cmd_buffer *cmd_buffer, *image_param = desc->buffer_view->storage_image_param; } + image++; break; default: |