diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-14 11:40:59 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-18 14:08:08 +0200 |
commit | 8d9e76ce1f7d78a6408e08109052c426dabc5480 (patch) | |
tree | ff3eb0e9859d2bdb03c968916862c4cfce61dc33 /src/gallium/drivers/radeonsi | |
parent | e08171ef5311b2bdd9438db41db1227465197325 (diff) |
gallium/radeon: add a new HUD query for the number of resident handles
Useful for debugging performance issues when ARB_bindless_texture
is enabled. This query doesn't make a distinction between texture
and image handles.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 375bcaea937..41f6e054615 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -2595,6 +2595,9 @@ void si_all_resident_buffers_begin_new_cs(struct si_context *sctx) RADEON_USAGE_READWRITE, false, false); } + + sctx->b.num_resident_handles += num_resident_tex_handles + + num_resident_img_handles; } /* INIT/DEINIT/UPLOAD */ |