[Mesa-dev] [PATCH v2 4/9] anv/blorp: Allow indirect clear colors on blorp sources on gen7

Jason Ekstrand jason at jlekstrand.net
Sat Feb 24 06:22:59 UTC 2018


---
 src/intel/vulkan/genX_blorp_exec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/vulkan/genX_blorp_exec.c b/src/intel/vulkan/genX_blorp_exec.c
index f956715..ac6e736 100644
--- a/src/intel/vulkan/genX_blorp_exec.c
+++ b/src/intel/vulkan/genX_blorp_exec.c
@@ -205,8 +205,8 @@ genX(blorp_exec)(struct blorp_batch *batch,
     * indirect fast-clear colors can cause GPU hangs if we don't stall first.
     * See genX(cmd_buffer_mi_memcpy) for more details.
     */
-   assert(params->src.clear_color_addr.buffer == NULL);
-   if (params->dst.clear_color_addr.buffer)
+   if (params->src.clear_color_addr.buffer ||
+       params->dst.clear_color_addr.buffer)
       cmd_buffer->state.pending_pipe_bits |= ANV_PIPE_CS_STALL_BIT;
 #endif
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list