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 3 additions, 0 deletionssrc/compiler/nir/nir_intrinsics.py
- src/freedreno/ir3/ir3_nir.h 1 addition, 0 deletionssrc/freedreno/ir3/ir3_nir.h
- src/freedreno/ir3/ir3_nir_lower_load_barycentric_at_offset.c 124 additions, 0 deletionssrc/freedreno/ir3/ir3_nir_lower_load_barycentric_at_offset.c
- src/freedreno/ir3/meson.build 1 addition, 0 deletionssrc/freedreno/ir3/meson.build