Mesa (master): svga: fail screen creation if HW version is too old
Brian Paul
brianp at kemper.freedesktop.org
Wed Apr 26 17:40:27 UTC 2017
Module: Mesa
Branch: master
Commit: 577e114e4654c645fcb1673afe5bb849deccb2b3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=577e114e4654c645fcb1673afe5bb849deccb2b3
Author: Brian Paul <brianp at vmware.com>
Date: Thu Apr 6 14:55:53 2017 -0600
svga: fail screen creation if HW version is too old
Tested by verifying 3D acceleration works with HWv8 but not earlier.
For HWv7 and older we get the GDI Generic renderer.
Reviewed-by: Neha Bhende<bhenden at vmware.com>
Reviewed-by: Charmaine Lee <charmainel at vmware.com>
---
src/gallium/drivers/svga/svga_screen.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index dc1744b61d..c3ba622187 100644
--- a/src/gallium/drivers/svga/svga_screen.c
+++ b/src/gallium/drivers/svga/svga_screen.c
@@ -988,6 +988,13 @@ svga_screen_create(struct svga_winsys_screen *sws)
svgascreen->hw_version = SVGA3D_HWVERSION_WS65_B1;
}
+ if (svgascreen->hw_version < SVGA3D_HWVERSION_WS8_B1) {
+ /* too old for 3D acceleration */
+ debug_printf("Hardware version 0x%x is too old for accerated 3D\n",
+ svgascreen->hw_version);
+ goto error2;
+ }
+
/*
* The D16, D24X8, and D24S8 formats always do an implicit shadow compare
* when sampled from, where as the DF16, DF24, and D24S8_INT do not. So
More information about the mesa-commit
mailing list