st/mesa: add fallback pipe formats for (compressed) R, RG formats
authorBrian Paul <brianp@vmware.com>
Thu, 19 Jan 2012 16:41:30 +0000 (09:41 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 19 Jan 2012 16:41:30 +0000 (09:41 -0700)
commit75f37ddba7e5a297390299be0dab8377ea40f5c8
treec47c4070aa4e09211126411c2f07a4bf789bc3a6
parent32b07bb1496f5772ca16e719bb87e1702ceff196
st/mesa: add fallback pipe formats for (compressed) R, RG formats

If we don't find an exact PIPE_FORMAT_x for a GL_(COMPRESSED)_RED/RG format,
try uncompressed formats.  We were already doing this for the RGB(A) formats.

Fixes piglit arb_texture_compression-internal-format-query test.

NOTE: This is a candidate for the stable branches.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_format.c