From 58790043bb9e222f54994eba6ec78429d0d23625 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 29 Mar 2014 18:27:42 +1300 Subject: [PATCH] i965: Render R8G8B8X8 as R8G8B8A8 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 Reviewed-by: Kenneth Graunke Acked-by: Eric Anholt --- 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 ea6c5920fc1..cef4020d9ab 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]; -- 2.30.2