Mesa (master): radeon/ac: remove assert causing regression

Dave Airlie airlied at kemper.freedesktop.org
Thu Apr 27 10:39:14 UTC 2017


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

Author: Dave Airlie <airlied at redhat.com>
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 <michel.daenzer at amd.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 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. */




More information about the mesa-commit mailing list