anv/blorp: Allow indirect clear colors on blorp sources on gen7
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 24 Feb 2018 06:05:39 +0000 (22:05 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 1 Mar 2018 22:07:58 +0000 (14:07 -0800)
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/intel/vulkan/genX_blorp_exec.c

index f956715228604bf46753108291e190111727a37a..ac6e73666400e3d5f450014776f4f525f135fec8 100644 (file)
@@ -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