Module: Mesa
Branch: master
Commit: 81d923fa51ec3c7d4ae95ff683999634f755c64e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=81d923fa51ec3c7d4ae95ff683999634f755c64e

Author: Marek Olšák <[email protected]>
Date:   Sun Feb  7 19:08:27 2021 -0500

tgsi_to_nir: translate SAMPLEID

Reviewed-by: Gert Wollny <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8906>

---

 src/gallium/auxiliary/nir/tgsi_to_nir.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c 
b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index ea53a6188b7..334e77a4edf 100644
--- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
@@ -643,6 +643,10 @@ ttn_src_for_file_and_index(struct ttn_compile *c, unsigned 
file, unsigned index,
          op = nir_intrinsic_load_tess_level_outer_default;
          load = nir_load_tess_level_outer_default(b);
          break;
+      case TGSI_SEMANTIC_SAMPLEID:
+         op = nir_intrinsic_load_sample_id;
+         load = nir_load_sample_id(b);
+         break;
       default:
          unreachable("bad system value");
       }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to