freedreno/a4xx: use a factor of 32767 for snorm8 blending
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 22 Nov 2015 19:03:29 +0000 (14:03 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 23 Nov 2015 16:17:15 +0000 (11:17 -0500)
commit81b16350fa2e7c1b47d976be12d2313283f22e24
tree785e69c2c3a2258c6f2e790e4afe74f4feae3f90
parent6f17f19b17d6150788e713f92f6a05ef410c4060
freedreno/a4xx: use a factor of 32767 for snorm8 blending

It appears that the hardware wants the integer to be scaled the same way
that the hardware representation is. snorm16 uses one of the float
factors, so this is only relevant for snorm8.

This fixes a number of subcases of
  bin/fbo-blending-formats GL_EXT_texture_snorm

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/freedreno/a4xx/fd4_emit.c