st/nine: Check if srgb format is supported before trying to use it.
authorAxel Davy <axel.davy@ens.fr>
Wed, 3 Dec 2014 22:33:07 +0000 (23:33 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 22:16:19 +0000 (22:16 +0000)
commitb0b5430322406a521b8a75468452ac5d4ce86750
tree36a60016b826964ac486e792e121e358740866dc
parent82810d3b660dfeef53a18c0d48914783e2999b2a
st/nine: Check if srgb format is supported before trying to use it.

According to msdn, we must act as if user didn't ask srgb if we don't
support it.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Cc: "10.4" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/nine/basetexture9.c
src/gallium/state_trackers/nine/surface9.c