radeonsi: only decompress resident textures/images when used
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 16 May 2017 20:31:30 +0000 (22:31 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Jun 2017 08:04:36 +0000 (10:04 +0200)
commit48fe8a6210c808669bf003b62a735c6fb4bd8742
treeaa7907257116d9cee93c92dbc989256cf5f517a3
parent2c3a7d584095bacb129a3fbbd6ccd5eac34d1451
radeonsi: only decompress resident textures/images when used

When the current bound shaders don't use any bindless textures
or images, it's useless to decompress the resident resources.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_blit.c