shader_info: convert textures_used to a bitset.

For now keep it a bitset of 1 32-bit dword.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9456>
This commit is contained in:
Dave Airlie
2021-03-08 15:23:31 +10:00
parent c55bd4b68d
commit 8027a7ba8a
28 changed files with 51 additions and 54 deletions

View File

@@ -165,10 +165,10 @@ typedef struct shader_info {
uint64_t patch_outputs_accessed_indirectly;
/** Bitfield of which textures are used */
uint32_t textures_used;
BITSET_DECLARE(textures_used, 32);
/** Bitfield of which textures are used by texelFetch() */
uint32_t textures_used_by_txf;
BITSET_DECLARE(textures_used_by_txf, 32);
/** Bitfield of which images are used */
uint32_t images_used;