llvmpipe: fix position offset interpolation
authorDave Airlie <airlied@redhat.com>
Mon, 13 Jul 2020 05:44:24 +0000 (15:44 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 16 Jul 2020 19:09:54 +0000 (05:09 +1000)
commite16f59c31621cdba819d7aed07d1457c838121bd
tree626fa14aa503d2a299aedb69837a756b2288ee4d
parent87e27543fe9a96bf4fd9555361ec66e3918aa3b3
llvmpipe: fix position offset interpolation

pos offset only applies to the gl_FragPos input, when I refactored
I messed that up, only use pos_offset for the position inputs
and use 0.5 otherwise.

This fixes:
GTF-GL45.gtf30.GL3Tests.fragment_coord_conventions.fragment_coord_conventions_multisample

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5926>
src/gallium/drivers/llvmpipe/lp_bld_interp.c