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

Author: Dave Airlie <[email protected]>
Date:   Thu Apr 27 11:35:56 2017 +0100

radeon/ac: remove assert causing regression

This assert wasn't in the original radeonsi code but I added
it without totally understanding the original code, it caused
some regressions in variable-indexing tessellation shaders.

Fixes: e2659176 radeonsi/ac: move vertex export remove to common code.
Reported-by: Michel Dänzer <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>

---

 src/amd/common/ac_llvm_build.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
index 9729756de4..209dfdd656 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -1317,7 +1317,6 @@ void ac_eliminate_const_vs_outputs(struct ac_llvm_context 
*ctx,
        bool removed_any = false;
        struct ac_vs_exports exports;
 
-       assert(num_outputs <= VARYING_SLOT_MAX);
        exports.num = 0;
 
        /* Process all LLVM instructions. */

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

Reply via email to