From 8cf932fd254b3c35e93b2898fdda95f611ea9f7a Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 28 May 2015 10:27:50 -0700 Subject: [PATCH] vk/query: Don't emit a CS stall by itself Both the bspec and the simulator don't like this. I'm not sure if stalling at the scoreboard is right but it at least shuts up the simulator. --- src/vulkan/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vulkan/device.c b/src/vulkan/device.c index a5e4d9ffe6c..9bd3f60bfde 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -3317,7 +3317,8 @@ void anv_CmdCopyQueryPoolResults( /* FIXME: If we're not waiting, should we just do this on the CPU? */ if (flags & VK_QUERY_RESULT_WAIT_BIT) anv_batch_emit(&cmd_buffer->batch, GEN8_PIPE_CONTROL, - .CommandStreamerStallEnable = true); + .CommandStreamerStallEnable = true, + .StallAtPixelScoreboard = true); dst_offset = buffer->offset + destOffset; for (uint32_t i = 0; i < queryCount; i++) { -- 2.30.2