st/xa: Use PIPE_FORMAT_R8_UNORM when available
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 16 Sep 2015 12:53:13 +0000 (05:53 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 17 Sep 2015 07:03:00 +0000 (00:03 -0700)
commit7e2865064916b85243788fc69040bb981f53c4f9
treed53de2da278fddc021ac625cb5247c349ceb07b0
parentba02f7a3b6a0e4314753a8e5080db61241563f9c
st/xa: Use PIPE_FORMAT_R8_UNORM when available

XA has been using L8_UNORM for a8 and yuv component surfaces.
This commit instead makes XA prefer R8_UNORM since it's assumed to have a
higher availability.

Also neither of these formats are suitable as destination formats using
destination alpha blending, so reject those operations.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/xa/xa_composite.c
src/gallium/state_trackers/xa/xa_tracker.c