st/xvmc: deal with drivers wanting different texture formats
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 8 May 2017 01:45:41 +0000 (21:45 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 21 Jun 2017 00:20:55 +0000 (20:20 -0400)
commit8754c5359fea6f68c35bdd5a39d9a7ea506e4b67
tree1014c7783d6accc55355db6b01bf99a206e3ab03
parent7bae3ef812f979f6bf6b84098d59ace3be7ca075
st/xvmc: deal with drivers wanting different texture formats

Previously, texture formats were being used unconditionally without
checking. However nv30 supports neither RGBX8 nor R4A4/A4R4 formats. Add
sufficient fallbacks so that the nv30 driver can have working OSD.

Tested on a NV44A/PCI.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/state_trackers/xvmc/subpicture.c