radeonsi/nir: increase values to 8 for gs fetch.
authorDave Airlie <airlied@redhat.com>
Thu, 1 Mar 2018 00:01:33 +0000 (10:01 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Mar 2018 00:35:09 +0000 (10:35 +1000)
This stops a crash when running (still fails):
tests/spec/arb_gpu_shader_fp64/execution/explicit-location-gs-fs-vs.shader_test

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/radeonsi/si_shader_nir.c

index d410a6c2d664119fb2f6e42ad8ff0a44c0f70f84..147bd9511d208410799b1104e4fa674a9c6247e8 100644 (file)
@@ -740,7 +740,7 @@ LLVMValueRef si_nir_load_input_gs(struct ac_shader_abi *abi,
 {
        struct si_shader_context *ctx = si_shader_context_from_abi(abi);
 
-       LLVMValueRef value[4];
+       LLVMValueRef value[8];
        for (unsigned i = component; i < num_components + component; i++) {
                value[i] = si_llvm_load_input_gs(&ctx->abi, driver_location  / 4,
                                                 vertex_index, type, i);