freedreno: move the half-precision logic into core
authorRob Clark <robclark@freedesktop.org>
Fri, 31 Jul 2015 18:34:19 +0000 (14:34 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 4 Aug 2015 20:03:45 +0000 (16:03 -0400)
commitb37a97c97d6477d5062a75a0313162ed324a36ed
treef7f191b75be72d4b9ec15a6f8422d9dd07af819e
parent5ca032a9a8ece0a8a43151f988215484da3c1811
freedreno: move the half-precision logic into core

Both a3xx and a4xx need the same logic to decide if half-precision can
be used for blit shaders.  So move it to core and simplify things a bit
with a helper that considers all render targets.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_draw.c
src/gallium/drivers/freedreno/a3xx/fd3_format.h
src/gallium/drivers/freedreno/a3xx/fd3_gmem.c
src/gallium/drivers/freedreno/freedreno_util.h