broadcom/compiler: generalize check for shaders using pixel center W
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 8 Oct 2021 13:10:24 +0000 (15:10 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 Oct 2023 22:37:42 +0000 (22:37 +0000)
commit5c7224b81f96f897616deca50bbc36744ea04110
treec80154650ddd941bb0cb469ac04ed029fb20ade1
parentff86147f91edba89117c90114c446de29a0a5b2f
broadcom/compiler: generalize check for shaders using pixel center W

V3D 4.x has pixel center W in rf0 and V3D 7.x has it in rf3. We already
account for this when we setup the c->payload_w, so use that.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
src/broadcom/compiler/nir_to_vir.c