Mesa (master): gallium/tgsi-to-nir: Take property NUM_CLIPDIST_ENABLED into account

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 9 11:47:49 UTC 2021


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

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Sun Jan 31 18:54:01 2021 +0100

gallium/tgsi-to-nir: Take property NUM_CLIPDIST_ENABLED into account

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8919>

---

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

diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index cb1dea89f92..8fc2a3bf92f 100644
--- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
@@ -2383,6 +2383,9 @@ ttn_compile_init(const void *tgsi_tokens,
          if (s->info.stage == MESA_SHADER_COMPUTE)
             s->info.cs.user_data_components_amd = value;
          break;
+      case TGSI_PROPERTY_NUM_CLIPDIST_ENABLED:
+         s->info.clip_distance_array_size = value;
+         break;
       default:
          if (value) {
             fprintf(stderr, "tgsi_to_nir: unhandled TGSI property %u = %u\n",



More information about the mesa-commit mailing list