mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 13:20:28 +01:00
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@vmware.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
8de0452ec4
commit
577e114e46
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue