Skip to content
Snippets Groups Projects
Commit adde3a7c authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Eric Engestrom
Browse files

anv: flush tile cache with query copy command


This fixes the test_resolve_non_issued_query_data vkd3d-proton test.

This change is required on TGL+ (maybe ICL?) because on all platforms
3D pipeline writes are not coherent with CS. On previous platform we
fixed this by flushing the render cache to make sure data is visble to
CS before it writes to memory. But on more recently platforms,
flushing the render cache leaves the data in the tile cache which is
still not coherent with CS, so we need to flush that one too.

Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: default avatarTapani Pälli <tapani.palli@intel.com>
Part-of: <mesa/mesa!14552>
(cherry picked from commit 8b71118a)
parent 37cc181b
No related branches found
No related tags found
No related merge requests found
...@@ -319,7 +319,7 @@ ...@@ -319,7 +319,7 @@
"description": "anv: flush tile cache with query copy command", "description": "anv: flush tile cache with query copy command",
"nominated": true, "nominated": true,
"nomination_type": 0, "nomination_type": 0,
"resolution": 0, "resolution": 1,
"main_sha": null, "main_sha": null,
"because_sha": null "because_sha": null
}, },
...@@ -1378,6 +1378,7 @@ void genX(CmdCopyQueryPoolResults)( ...@@ -1378,6 +1378,7 @@ void genX(CmdCopyQueryPoolResults)(
*/ */
if (cmd_buffer->state.pending_pipe_bits & ANV_PIPE_RENDER_TARGET_BUFFER_WRITES) { if (cmd_buffer->state.pending_pipe_bits & ANV_PIPE_RENDER_TARGET_BUFFER_WRITES) {
anv_add_pending_pipe_bits(cmd_buffer, anv_add_pending_pipe_bits(cmd_buffer,
ANV_PIPE_TILE_CACHE_FLUSH_BIT |
ANV_PIPE_RENDER_TARGET_CACHE_FLUSH_BIT, ANV_PIPE_RENDER_TARGET_CACHE_FLUSH_BIT,
"CopyQueryPoolResults"); "CopyQueryPoolResults");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment