st/nine: Support D3DFMT_R8G8B8
authorPatrick Rudolph <siro@das-labor.org>
Mon, 9 Nov 2015 18:30:13 +0000 (19:30 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
commiteeeab8d6b48ff83c0f42480fcd43031c34bda33f
tree21c8f82855f72dc8f6159589cc54064cc3c8230d
parenta3e7525ada97fe81fe91fc19b983d2623d7572df
st/nine: Support D3DFMT_R8G8B8

Add support for D3DFMT_R8G8B8. It allows format conversion for
surfaces of pool scratch.

Usually gallium formats equivalents for d3d9 formats
have their names reversed.

The gallium format PIPE_FORMAT_R8G8B8_UNORM is the right
equivalent here, and its name is likely wrong (reversed).

Fixes a crash in TmNationsForever.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_pipe.c