llvmpipe: Only advertise unswizzled formats.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 28 Nov 2012 19:25:05 +0000 (19:25 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 29 Nov 2012 14:08:42 +0000 (14:08 +0000)
commit6916387e5396a891f2ffbc68866802d03f6a0939
tree6381dd82d6c8f244acf0860f1475b0d858ee718d
parent9f06061d50f90bf425a5337cea1b0adb94a46d25
llvmpipe: Only advertise unswizzled formats.

Update llvmpipe_is_format_supported and llvmpipe_is_format_unswizzled
so that only the formats that we can render without swizzling are
advertised.

We can still render all D3D10 required formats except
PIPE_FORMAT_R11G11B10_FLOAT, which needs to be implemented in a future
opportunity.

Removal of rendertarget swizzling will be done in a subsequent change.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/llvmpipe/lp_tile_image.c