diff options
author | José Fonseca <[email protected]> | 2011-02-23 18:30:27 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-03-09 13:34:21 +0000 |
commit | 830827229141c08411c521f81283d1ad62f37163 (patch) | |
tree | e0c8edfd9febb8ea0ab568bc53a0ac0def957eb6 /src/gallium/drivers/svga/svga_screen.c | |
parent | d5249b7d89a12490335750eda01309e36c7d80cb (diff) |
svga: Add a new winsys entry point to query the hw version.
Diffstat (limited to 'src/gallium/drivers/svga/svga_screen.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index f4029c7e363..0dee8b1bec1 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -499,6 +499,12 @@ svga_screen_create(struct svga_winsys_screen *sws) svga_init_screen_resource_functions(svgascreen); + if (sws->get_hw_version) { + svgascreen->hw_version = sws->get_hw_version(sws); + } else { + svgascreen->hw_version = SVGA3D_HWVERSION_WS65_B1; + } + svgascreen->use_ps30 = sws->get_cap(sws, SVGA3D_DEVCAP_FRAGMENT_SHADER_VERSION, &result) && result.u >= SVGA3DPSVERSION_30 ? TRUE : FALSE; |