anv/query: flush render target before copying results
This change tracks render target writes in the pipeline and applies a render target flush before copying the query results to make sure the preceding operations have landed in memory before the command streamer initiates the copy. v2: Simplify logic in CopyQueryResults (Jason) Signed-off-by:Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108909 Fixes: 37f9788e ("anv: flush pipeline before query result copies") Cc: mesa-stable@lists.freedesktop.org
- src/intel/vulkan/anv_private.h 7 additions, 0 deletionssrc/intel/vulkan/anv_private.h
- src/intel/vulkan/genX_blorp_exec.c 1 addition, 0 deletionssrc/intel/vulkan/genX_blorp_exec.c
- src/intel/vulkan/genX_cmd_buffer.c 14 additions, 0 deletionssrc/intel/vulkan/genX_cmd_buffer.c
- src/intel/vulkan/genX_gpu_memcpy.c 1 addition, 0 deletionssrc/intel/vulkan/genX_gpu_memcpy.c
- src/intel/vulkan/genX_query.c 9 additions, 0 deletionssrc/intel/vulkan/genX_query.c