a2xx: fix DST_ALPHA blending for non-alpha formats
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 25 Aug 2017 04:13:32 +0000 (00:13 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 25 Aug 2017 04:18:34 +0000 (00:18 -0400)
commitf623e1742f20cffe2c91287ab6b0b0a39a78e02c
treefc4a1d65db1a683df2a38a92e35e4e211a4445de
parentf3bde890cde869d8ba4280186a4de6dd677b387a
a2xx: fix DST_ALPHA blending for non-alpha formats

If we're rendering to a format without alpha, convert DST_ALPHA blend to
a ONE so that factors are properly computed. This same workaround is
done on a3xx+ as well.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a2xx/fd2_blend.c
src/gallium/drivers/freedreno/a2xx/fd2_blend.h
src/gallium/drivers/freedreno/a2xx/fd2_emit.c