summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/common/meta.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-03-08 15:23:31 +1000
committerDave Airlie <airlied@redhat.com>2021-03-10 06:16:09 +1000
commit8027a7ba8adbd9fb4fff584d2e4098cf38100650 (patch)
tree3aa4217ffdcedb3ba6f8e77fe392dbbea8b99f62 /src/mesa/drivers/common/meta.c
parentc55bd4b68dd07bb7554d4d365bedb2955cf7dc5d (diff)
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>
Diffstat (limited to 'src/mesa/drivers/common/meta.c')
-rw-r--r--src/mesa/drivers/common/meta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index 1496b722a86..5ebe7c5fa9b 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src/mesa/drivers/common/meta.c
@@ -214,9 +214,9 @@ _mesa_meta_compile_and_link_program(struct gl_context *ctx,
* around this bad interaction. This is a bit fragile as it may break
* if you re-run the pass that gathers this info, but we probably won't...
*/
- fp->info.textures_used_by_txf = 0;
+ BITSET_ZERO(fp->info.textures_used_by_txf);
if (fp->nir)
- fp->nir->info.textures_used_by_txf = 0;
+ BITSET_ZERO(fp->nir->info.textures_used_by_txf);
_mesa_meta_use_program(ctx, sh_prog);