r300g: add support for all render targets with one and two channels
authorMarek Olšák <maraeo@gmail.com>
Tue, 29 Mar 2011 14:35:13 +0000 (16:35 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 29 Mar 2011 16:47:02 +0000 (18:47 +0200)
commit0420ae3d9069ff5cbe067bdd5c6075d9292dbe66
tree77299cbf3be9fee7290af2398efd5eca37fe34af
parent7d41857566d900aee3319f06c272049e6211acc1
r300g: add support for all render targets with one and two channels

The hardware should be set according to this table:

FORMAT -> R300 COLORFORMAT
-------------------------
X16    -> UV88
X16Y16 -> ARGB8888
X32    -> ARGB8888
X32Y32 -> ARGB16161616

US_OUT_FMT must contain the real format.

I wasn't able to make B3G3R2 and L4A4 work, but those aren't important.
src/gallium/drivers/r300/r300_texture.c