summaryrefslogtreecommitdiffstats
path: root/src/broadcom/compiler/vir.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-06-14 11:04:05 -0700
committerEric Anholt <[email protected]>2018-06-15 16:09:39 -0700
commite130ada24310f0e3adc0349c0fb2098ad20d65d9 (patch)
treed8c52e111ec057dcd5d898a8c4f67814541e8de0 /src/broadcom/compiler/vir.c
parent0d4f338a116f6be23706c0ab7a253561c02a2145 (diff)
v3d: Fix shaders using pixel center W but no varyings.
The docs called this field "uses both center W and centroid W", but actually it's "do you need center W even if varyings don't obviously call for it?" Fixes dEQP-GLES3.functional.shaders.builtin_variable.fragcoord_w
Diffstat (limited to 'src/broadcom/compiler/vir.c')
-rw-r--r--src/broadcom/compiler/vir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c
index 0de5335d12a..28e25cb23e2 100644
--- a/src/broadcom/compiler/vir.c
+++ b/src/broadcom/compiler/vir.c
@@ -841,7 +841,7 @@ uint64_t *v3d_compile_fs(const struct v3d_compiler *compiler,
prog_data->writes_z = (c->s->info.outputs_written &
(1 << FRAG_RESULT_DEPTH));
prog_data->discard = c->s->info.fs.uses_discard;
- prog_data->uses_centroid_and_center_w = c->uses_centroid_and_center_w;
+ prog_data->uses_center_w = c->uses_center_w;
return v3d_return_qpu_insts(c, final_assembly_size);
}