From 80efb524ee94efc7c6b8f849b82305144838eea1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 26 Jun 2012 12:59:30 -0600 Subject: 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 --- src/gallium/drivers/svga/svga_screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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: -- cgit v1.2.3