summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-04-12 18:53:30 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-04-12 18:53:30 +0200
commitf9c665e9e6d8cb5b6bb34f9678575dab2784b045 (patch)
tree32be78893b3c59fab3b3853fa62d8d800ea17204
parent8f0d5382e3aa38852be28e89993cb540293b9272 (diff)
nvfx: allocate buffers in GART if !NOUVEAU_SWTNL
Should improve performance and fix serious regressions on AGP cards.
-rw-r--r--src/gallium/drivers/nvfx/nvfx_screen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_screen.c b/src/gallium/drivers/nvfx/nvfx_screen.c
index cf619f24a1..e142e27115 100644
--- a/src/gallium/drivers/nvfx/nvfx_screen.c
+++ b/src/gallium/drivers/nvfx/nvfx_screen.c
@@ -70,9 +70,8 @@ nvfx_screen_get_param(struct pipe_screen *pscreen, int param)
case PIPE_CAP_BLEND_EQUATION_SEPARATE:
return !!screen->is_nv4x;
case NOUVEAU_CAP_HW_VTXBUF:
- return 0;
case NOUVEAU_CAP_HW_IDXBUF:
- return 0;
+ return !screen->force_swtnl;
case PIPE_CAP_MAX_COMBINED_SAMPLERS:
return 16;
case PIPE_CAP_INDEP_BLEND_ENABLE: