diff options
author | Dave Airlie <[email protected]> | 2017-03-30 08:51:42 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-04-01 07:14:53 +1000 |
commit | 97e0ff30c0c25cf0bfc857fd20b44a3ed95b99fc (patch) | |
tree | d53456988c10b13d13e4f3a0f869f72c994c3083 | |
parent | 6279646306dcd2c18a1af7c63168247cd8e47e32 (diff) |
radv: handle clip dist in es outputs.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index a83d8562447..7e889e7d894 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -4568,8 +4568,7 @@ handle_es_outputs_post(struct nir_to_llvm_context *ctx, param_index = shader_io_get_unique_index(i); - if (param_index > max_output_written) - max_output_written = param_index; + max_output_written = MAX2(param_index + (length > 4), max_output_written); for (j = 0; j < length; j++) { LLVMValueRef out_val = LLVMBuildLoad(ctx->builder, out_ptr[j], ""); |