Mesa (master): nouveau: make color/depth bpp match for pre-nv10 chips
Ilia Mirkin
imirkin at kemper.freedesktop.org
Tue Aug 30 04:46:55 UTC 2016
Module: Mesa
Branch: master
Commit: a165e5cb7c85d9d0a2d8e218f7d98d48c699d836
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a165e5cb7c85d9d0a2d8e218f7d98d48c699d836
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sat Aug 27 22:49:41 2016 -0400
nouveau: make color/depth bpp match for pre-nv10 chips
This avoids generating fbconfigs whose winsys framebuffers will be
incomplete (see nouveau_check_framebuffer_complete).
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/mesa/drivers/dri/nouveau/nouveau_screen.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_screen.c b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
index de578a5..1f4cbe8a 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_screen.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
@@ -49,7 +49,7 @@ static void
nouveau_destroy_screen(__DRIscreen *dri_screen);
static const __DRIconfig **
-nouveau_get_configs(void)
+nouveau_get_configs(uint32_t chipset)
{
__DRIconfig **configs = NULL;
int i;
@@ -78,7 +78,7 @@ nouveau_get_configs(void)
ARRAY_SIZE(back_buffer_modes),
msaa_samples,
ARRAY_SIZE(msaa_samples),
- GL_TRUE, GL_FALSE);
+ GL_TRUE, chipset < 0x10);
assert(config);
configs = driConcatConfigs(configs, config);
@@ -144,7 +144,7 @@ nouveau_init_screen2(__DRIscreen *dri_screen)
dri_screen->extensions = nouveau_screen_extensions;
screen->dri_screen = dri_screen;
- configs = nouveau_get_configs();
+ configs = nouveau_get_configs(screen->device->chipset);
if (!configs)
goto fail;
More information about the mesa-commit
mailing list