llvmpipe/interp: refactor out centroid calculations
authorDave Airlie <airlied@redhat.com>
Tue, 12 May 2020 20:49:07 +0000 (06:49 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 19 May 2020 00:26:46 +0000 (10:26 +1000)
commit06c10fa3a50cdefd95512f0c6b9060834f9dd33c
tree443809c79c43d5db1d5593176f93fea475541af8
parentc1f5a23a4dfc6f3346a78e560dbeb3dcb8cca31d
llvmpipe/interp: refactor out centroid calculations

These will be reused in the interp instruction code.

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