radeon/ac: remove assert causing regression
authorDave Airlie <airlied@redhat.com>
Thu, 27 Apr 2017 10:35:56 +0000 (11:35 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Apr 2017 10:38:54 +0000 (11:38 +0100)
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@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_llvm_build.c

index 9729756de4e3df9102e6685f512d0ff5b2f3fca8..209dfdd656a2376ed06395ea637094ecbb1a4c5b 100644 (file)
@@ -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. */