anv: Clear untyped dataport cache flush bit if not in GPGPU mode

This should be equivalent, but refactoring the code will allow the
next two patches to use an else block for this check.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23176>
This commit is contained in:
Jordan Justen 2023-06-22 14:44:20 -07:00 committed by Marge Bot
parent 1d1f5f1405
commit c5ca2bed51

View file

@ -1558,9 +1558,9 @@ genX(emit_apply_pipe_flushes)(struct anv_batch *batch,
* So there is no need to set "Untyped Data-Port Cache" in 3D
* mode.
*/
if ((flush_bits & ANV_PIPE_UNTYPED_DATAPORT_CACHE_FLUSH_BIT) &&
current_pipeline != GPGPU)
if (current_pipeline != GPGPU) {
flush_bits &= ~ANV_PIPE_UNTYPED_DATAPORT_CACHE_FLUSH_BIT;
}
if (flush_bits & ANV_PIPE_UNTYPED_DATAPORT_CACHE_FLUSH_BIT)
flush_bits |= ANV_PIPE_HDC_PIPELINE_FLUSH_BIT;