[Mesa-dev] [PATCH V3 07/30] i965: Render R8G8B8X8 as R8G8B8A8
Kenneth Graunke
kenneth at whitecape.org
Tue Apr 8 01:35:23 PDT 2014
On 04/02/2014 01:05 AM, Chris Forbes wrote:
> The sampler can handle R8G8B8X8 (and substitute 1.0 for the fourth
> component) but we can't use it as a render target.
>
> Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
> ---
> src/mesa/drivers/dri/i965/brw_surface_formats.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_surface_formats.c b/src/mesa/drivers/dri/i965/brw_surface_formats.c
> index f203f52..3f82f80 100644
> --- a/src/mesa/drivers/dri/i965/brw_surface_formats.c
> +++ b/src/mesa/drivers/dri/i965/brw_surface_formats.c
> @@ -583,6 +583,9 @@ brw_init_surface_formats(struct brw_context *brw)
> */
> render = BRW_SURFACEFORMAT_B8G8R8A8_UNORM;
> break;
> + case BRW_SURFACEFORMAT_R8G8B8X8_UNORM:
> + render = BRW_SURFACEFORMAT_R8G8B8A8_UNORM;
> + break;
> }
>
> rinfo = &surface_formats[render];
>
My x_to_a patches handle this a bit more generally, but they need some
reworking, so I'll rebase on this when I get around to respinning them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140408/0f62ab0f/attachment.sig>
More information about the mesa-dev
mailing list