From: Iago Toral Quiroga Date: Thu, 28 Jun 2018 11:12:53 +0000 (+0200) Subject: anv/cmd_buffer: make descriptors dirty when emitting base state address X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b54824687df5170e1dd5ab701b2b76da299b851;p=mesa.git 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 Reviewed-by: Jason Ekstrand CC: --- 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