From f4aee5d82fedcb426e34bb0503d004d6f2e39f73 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 7 Dec 2015 21:45:41 -0800 Subject: [PATCH] gen8/cmd_buffer: Flush push constants after descriptor sets This is because, if storage images are used, flushing descriptor sets can cause push constants to become dirty. --- src/vulkan/gen8_cmd_buffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vulkan/gen8_cmd_buffer.c b/src/vulkan/gen8_cmd_buffer.c index 68ee6bb5696..df97d271138 100644 --- a/src/vulkan/gen8_cmd_buffer.c +++ b/src/vulkan/gen8_cmd_buffer.c @@ -208,12 +208,12 @@ cmd_buffer_flush_state(struct anv_cmd_buffer *cmd_buffer) cmd_buffer->state.pipeline->active_stages; #endif - if (cmd_buffer->state.push_constants_dirty) - cmd_buffer_flush_push_constants(cmd_buffer); - if (cmd_buffer->state.descriptors_dirty) gen7_cmd_buffer_flush_descriptor_sets(cmd_buffer); + if (cmd_buffer->state.push_constants_dirty) + cmd_buffer_flush_push_constants(cmd_buffer); + if (cmd_buffer->state.dirty & ANV_CMD_DIRTY_DYNAMIC_VIEWPORT) gen8_cmd_buffer_emit_viewport(cmd_buffer); -- 2.30.2