From f9c665e9e6d8cb5b6bb34f9678575dab2784b045 Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Mon, 12 Apr 2010 18:53:30 +0200 Subject: [PATCH] nvfx: allocate buffers in GART if !NOUVEAU_SWTNL Should improve performance and fix serious regressions on AGP cards. --- src/gallium/drivers/nvfx/nvfx_screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/nvfx/nvfx_screen.c b/src/gallium/drivers/nvfx/nvfx_screen.c index cf619f24a1c..e142e27115e 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: -- 2.30.2