diff options
author | Iago Toral Quiroga <[email protected]> | 2018-06-28 13:12:53 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2018-07-02 08:31:20 +0200 |
commit | 1b54824687df5170e1dd5ab701b2b76da299b851 (patch) | |
tree | ea09dc9483f134f3446d0b716250c0338e65a7c8 /src/intel | |
parent | 6a1d8350c91eed4ab10569683902a0fea4c048c5 (diff) |
anv/cmd_buffer: make descriptors dirty when emitting base state address
Every time we emit a new state base address we will need to re-emit our
binding tables, since they might have been emitted with a different base
state adress.
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
CC: <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/genX_cmd_buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 66d1ef7d786..611311904e6 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -67,6 +67,11 @@ genX(cmd_buffer_emit_state_base_address)(struct anv_cmd_buffer *cmd_buffer) { struct anv_device *device = cmd_buffer->device; + /* If we are emitting a new state base address we probably need to re-emit + * binding tables. + */ + cmd_buffer->state.descriptors_dirty |= ~0; + /* Emit a render target cache flush. * * This isn't documented anywhere in the PRM. However, it seems to be |