mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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:
parent
1d1f5f1405
commit
c5ca2bed51
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue