v3d: Fix shaders using pixel center W but no varyings.
authorEric Anholt <eric@anholt.net>
Thu, 14 Jun 2018 18:04:05 +0000 (11:04 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 15 Jun 2018 23:09:39 +0000 (16:09 -0700)
commite130ada24310f0e3adc0349c0fb2098ad20d65d9
treed8c52e111ec057dcd5d898a8c4f67814541e8de0
parent0d4f338a116f6be23706c0ab7a253561c02a2145
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
src/broadcom/compiler/nir_to_vir.c
src/broadcom/compiler/v3d_compiler.h
src/broadcom/compiler/vir.c
src/gallium/drivers/v3d/v3dx_draw.c