Mesa (main): ttn: Set shader_info::samplers_used
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu May 12 02:03:44 UTC 2022
Module: Mesa
Branch: main
Commit: cdeb55fc36b837ab91eb2bf4e856ce373804afdf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdeb55fc36b837ab91eb2bf4e856ce373804afdf
Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date: Tue May 10 11:14:37 2022 -0500
ttn: Set shader_info::samplers_used
Reviewed-by: Emma Anholt <emma at anholt.net>
Reviewed-by: Karol Herbst <kherbst at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16435>
---
src/gallium/auxiliary/nir/tgsi_to_nir.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index c103c006252..8daa55ba59b 100644
--- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
@@ -1263,6 +1263,7 @@ get_sampler_var(struct ttn_compile *c, int binding,
BITSET_SET(c->build.shader->info.textures_used, binding);
if (op == nir_texop_txf || op == nir_texop_txf_ms)
BITSET_SET(c->build.shader->info.textures_used_by_txf, binding);
+ BITSET_SET(c->build.shader->info.samplers_used, binding);
}
return var;
More information about the mesa-commit
mailing list