anv: Only add END_OF_PIPE_SYNC if we actually have AUX_INVAL
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 18 Mar 2020 18:29:06 +0000 (13:29 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Mar 2020 21:58:49 +0000 (21:58 +0000)
Fixes: 43dc842cb91c "anv: Wait for the GPU to be idle before..."
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: D Scott Phillips <d.scott.phillips@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4234>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4234>

src/intel/vulkan/genX_cmd_buffer.c

index c60d156d522dd5d47907e5a3a1bf81392835b88e..2c5a448aff3fcb75330d5796c6986eaa5481d665 100644 (file)
@@ -2042,7 +2042,7 @@ genX(cmd_buffer_apply_pipe_flushes)(struct anv_cmd_buffer *cmd_buffer)
     *    add extra flushes in the case it knows that the engine is already
     *    IDLE."
     */
-   if (GEN_GEN == 12 && ANV_PIPE_AUX_TABLE_INVALIDATE_BIT)
+   if (GEN_GEN == 12 && (bits & ANV_PIPE_AUX_TABLE_INVALIDATE_BIT))
       bits |= ANV_PIPE_NEEDS_END_OF_PIPE_SYNC_BIT;
 
    /* If we're going to do an invalidate and we have a pending end-of-pipe