radv: fix interpolation at wrong place for offset interp
authorDave Airlie <airlied@redhat.com>
Thu, 23 Feb 2017 04:24:20 +0000 (14:24 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 24 Feb 2017 00:31:19 +0000 (10:31 +1000)
commitfc430c391b4be0e92bc9e297aaa260c674648ac2
treebf5ac1cb69af8187bc007828abd80466c49c7ab3
parentdcac48bfee545660dffbf23bd92a0939b19ffd18
radv: fix interpolation at wrong place for offset interp

The code was interpolating at the offset from the sample,
not the offset from the center. Also fix for persample interpolation
modes we should force the pixel center to be at the sample.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/vulkan/radv_cmd_buffer.c