Mesa (main): gallivm: handle TGSI SampleId sysval

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 5 03:10:32 UTC 2021


Module: Mesa
Branch: main
Commit: 60a8d682850efe945527554a4d80fc598cf0c870
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=60a8d682850efe945527554a4d80fc598cf0c870

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu Nov  4 12:58:13 2021 -0400

gallivm: handle TGSI SampleId sysval

Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13679>

---

 src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 31aacef74d6..afaf35e5b11 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -1562,6 +1562,11 @@ emit_fetch_system_value(
       atype = TGSI_TYPE_UNSIGNED;
       break;
 
+  case TGSI_SEMANTIC_SAMPLEID:
+      res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.sample_id);
+      atype = TGSI_TYPE_UNSIGNED;
+      break;
+
    case TGSI_SEMANTIC_TESSOUTER:
       res = lp_build_extract_broadcast(gallivm, lp_type_float_vec(32, 128), bld_base->base.type,
                                        bld->system_values.tess_outer,



More information about the mesa-commit mailing list