projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6279646
)
radv: handle clip dist in es outputs.
author
Dave Airlie
<airlied@redhat.com>
Thu, 30 Mar 2017 07:51:42 +0000
(08:51 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 31 Mar 2017 21:14:53 +0000
(07:14 +1000)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c
patch
|
blob
|
history
diff --git
a/src/amd/common/ac_nir_to_llvm.c
b/src/amd/common/ac_nir_to_llvm.c
index a83d85624478cf74152f09568618b0b818d59457..7e889e7d894a73d2cf5a0a3058ac3e9dea74aa93 100644
(file)
--- 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], "");