From: Dave Airlie Date: Thu, 27 Apr 2017 10:35:56 +0000 (+0100) Subject: radeon/ac: remove assert causing regression X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4743763cefa161afeb8e1e7b4e56c2adcb0d1ef;p=mesa.git 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 Signed-off-by: Dave Airlie --- diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 9729756de4e..209dfdd656a 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. */