mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
anv: Drop unwanted untyped flush for AS query
CmdWriteAccelerationStructuresPropertiesKHR writes the data with MI commands, we no longer dispatch shaders to write the properties. As a result, we don't need to flush untyped cache. Fixes:f0e18c475b("intel: remove GRL/intel-clc") Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38291> (cherry picked from commit14194e59a4)
This commit is contained in:
parent
90a5e948dc
commit
7e56af1b6d
2 changed files with 2 additions and 11 deletions
|
|
@ -914,7 +914,7 @@
|
|||
"description": "anv: Drop unwanted untyped flush for AS query",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "f0e18c475b71c7804e893ab7c1b70bb548ee6917",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1879,16 +1879,7 @@ copy_query_results_with_shader(struct anv_cmd_buffer *cmd_buffer,
|
|||
|
||||
/* Flushes for the queries to complete */
|
||||
if (flags & VK_QUERY_RESULT_WAIT_BIT) {
|
||||
/* Some queries are done with shaders, so we need to have them flush
|
||||
* high level caches writes. The L3 should be shared across the GPU.
|
||||
*/
|
||||
if (pool->vk.query_type == VK_QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR ||
|
||||
pool->vk.query_type == VK_QUERY_TYPE_ACCELERATION_STRUCTURE_SIZE_KHR ||
|
||||
pool->vk.query_type == VK_QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR ||
|
||||
pool->vk.query_type == VK_QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_BOTTOM_LEVEL_POINTERS_KHR) {
|
||||
needed_flushes |= ANV_PIPE_UNTYPED_DATAPORT_CACHE_FLUSH_BIT;
|
||||
}
|
||||
/* And we need to stall for previous CS writes to land or the flushes to
|
||||
/* We need to stall for previous CS writes to land or the flushes to
|
||||
* complete.
|
||||
*/
|
||||
needed_flushes |= ANV_PIPE_CS_STALL_BIT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue