radeonsi/gfx10: fix overflow and primitive queries
authorIndrajit Kumar Das <indrajit-kumar.das@amd.com>
Fri, 16 Oct 2020 04:39:02 +0000 (10:09 +0530)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Dec 2020 11:34:16 +0000 (11:34 +0000)
commit5d14562da86f1f3ee1a747183d8bac183ce75fd9
tree8a1878eb18705741745064bd4244d87ddfd03264
parentfd4016f978292e1576e28086eeab44eb1225ab25
radeonsi/gfx10: fix overflow and primitive queries

This aligns the offsets to match the memory layout of the query buffer
defined by gfx10_sh_query_buffer_mem and calls si_launch_grid_internal
to flush caches and wait for completion of shaders prior to retrieving
results.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7181>
src/gallium/drivers/radeonsi/gfx10_query.c
src/gallium/drivers/radeonsi/si_compute_blit.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c