From: Brian Paul Date: Tue, 26 Jun 2012 18:59:30 +0000 (-0600) Subject: svga: return 1 for PIPE_CAP_MIXED_COLORBUFFER_FORMATS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80efb524ee94efc7c6b8f849b82305144838eea1;p=mesa.git svga: return 1 for PIPE_CAP_MIXED_COLORBUFFER_FORMATS This is actually required for GL_ARB_framebuffer_object, but the state tracker doesn't currently check it. Direct3D 9 allows mixed format color buffers with some restrictions. Setting this allows Unigine Heaven 2.5 and 3.0 to run. Tested both on GL and D3D hosts. Reviewed-by: Jose Fonseca Reviewed-by: Jakob Bornecrantz --- diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index b137e954a57..0d8b1d20cf9 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -215,8 +215,10 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_FRAGMENT_COLOR_CLAMPED: return 0; /* The driver can't clamp fragment colors */ - /* Unsupported features */ case PIPE_CAP_MIXED_COLORBUFFER_FORMATS: + return 1; /* expected for GL_ARB_framebuffer_object */ + + /* Unsupported features */ case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION: case PIPE_CAP_TEXTURE_MIRROR_CLAMP: case PIPE_CAP_SM3: