freedreno/ir3: lower load_barycentric_at_offset
authorRob Clark <robdclark@chromium.org>
Fri, 19 Apr 2019 18:15:40 +0000 (11:15 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 25 Apr 2019 21:13:31 +0000 (14:13 -0700)
commit2f0b9d22495bf32722992880381cc7bd7788bb96
tree931b1f0f2a30f8069bcac9257ca3039062a3b646
parentc4f423aa366548b919ed78407bacab032a077398
freedreno/ir3:  lower load_barycentric_at_offset

Calculates i,j at specified offset within a pixel.  A new load_size_ir3
intrinsic is used in conjunction with fddx/fddy to translate the offset
into primitive space and adjust the i,j from load_barycentric_pixel
accordingly.

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/compiler/nir/nir_intrinsics.py
src/freedreno/ir3/ir3_nir.h
src/freedreno/ir3/ir3_nir_lower_load_barycentric_at_offset.c [new file with mode: 0644]
src/freedreno/ir3/meson.build