st/mesa: tweak surface format mapping table
authorBrian Paul <brianp@vmware.com>
Tue, 28 Jul 2015 21:57:23 +0000 (15:57 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Jun 2016 21:50:04 +0000 (15:50 -0600)
commite295b4e800a0595f96d775ebd383b8a358f8fdbc
treecbe313d0fdf4eb93775014cf1c0a18d72835da62
parentdd4be2e19a2261c9b60be4bb6e6268c7fd0c0bce
st/mesa: tweak surface format mapping table

1. Try to choose R8G8B8A8 unorm/srgb formats before others in an
effort to try to match component ordering for UINT/SINT/etc.

2. If we can't get a format such as PIPE_FORMAT_A16_UNORM, try
PIPE_FORMAT_R16G16B16A16_UNORM before shallower formats.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/state_tracker/st_format.c