Mesa (master): zink: remove ntv streamout assert

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Mar 9 03:01:22 UTC 2021


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Tue Feb 23 11:24:35 2021 -0500

zink: remove ntv streamout assert

this was added during review, but it was never correct and just crashes
valid cases like streamout from a mat3x4 type

Fixes: b6f8f3a3ba4 ("zink: fix streamout for clipdistance")

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9271>

---

 src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
index a0f7e5e2fb8..52789ae6f0f 100644
--- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
+++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
@@ -1309,7 +1309,6 @@ emit_so_outputs(struct ntv_context *ctx,
       while (!output)
          output = ctx->outputs[location--];
       location++;
-      assert(orig_location - location < 8);
       SpvId output_type = ctx->so_output_types[location];
       const struct glsl_type *out_type = ctx->so_output_gl_types[location];
 



More information about the mesa-commit mailing list