From 6a1d8350c91eed4ab10569683902a0fea4c048c5 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Thu, 28 Jun 2018 13:16:53 +0200 Subject: [PATCH] anv/cmd_buffer: clean dirty push constants flag after emitting push constants Reviewed-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand CC: --- src/intel/vulkan/genX_cmd_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 97b321ccaeb..66d1ef7d786 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -3008,6 +3008,8 @@ genX(cmd_buffer_flush_compute_state)(struct anv_cmd_buffer *cmd_buffer) curbe.CURBEDataStartAddress = push_state.offset; } } + + cmd_buffer->state.push_constants_dirty &= ~VK_SHADER_STAGE_COMPUTE_BIT; } cmd_buffer->state.compute.pipeline_dirty = false; -- 2.30.2