mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 03:38:04 +02:00
radv: do not invalidate the L2 metadata cache on compute queues
The flush VA space was only allocated for command buffers on the graphics queue. Also, the ZPASS_DONE event should never be emitted on compute queues because it hangs. Invalidating the L2 metadata cache is only required for coherency between the RBs and L2, so only on the graphics queue. The L2 cache is invalidated at beginning of any IBs and that should also invalidate the L2 metadata cache for compute anyways. Fixes:4a783a3c("radv: Use L2 coherency on GFX9+.") Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8494> (cherry picked from commitc6849f9687)
This commit is contained in:
parent
a6ace60672
commit
73ea60139d
2 changed files with 2 additions and 1 deletions
|
|
@ -328,7 +328,7 @@
|
|||
"description": "radv: do not invalidate the L2 metadata cache on compute queues",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "4a783a3c7846857671a9f2e91b62850e24e01029"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1507,6 +1507,7 @@ si_emit_cache_flush(struct radv_cmd_buffer *cmd_buffer)
|
|||
RADV_CMD_FLAG_FLUSH_AND_INV_CB_META |
|
||||
RADV_CMD_FLAG_FLUSH_AND_INV_DB |
|
||||
RADV_CMD_FLAG_FLUSH_AND_INV_DB_META |
|
||||
RADV_CMD_FLAG_INV_L2_METADATA |
|
||||
RADV_CMD_FLAG_PS_PARTIAL_FLUSH |
|
||||
RADV_CMD_FLAG_VS_PARTIAL_FLUSH |
|
||||
RADV_CMD_FLAG_VGT_FLUSH |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue