i915g: implement RGBX and BGRX render targets
authorVasily Khoruzhick <anarsoul@gmail.com>
Tue, 22 Nov 2011 16:04:04 +0000 (19:04 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Nov 2011 16:08:13 +0000 (17:08 +0100)
commit1f3c5eae5c4be582e50c2d4d7950424d86059c45
tree810649ee9b81962dff9b1035b7ad5f0b1a5b07a5
parentc87d1a3c3d24924f8af082e47c18a6d535419089
i915g: implement RGBX and BGRX render targets

They're not supported by hw directly, but it's easy to emulate
them with a shader swizzling fixup.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
[danvet: The important thing is to write a 1 to the unused alpha
channel, the ddx is relying on this for render accel.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/i915/i915_state_static.c