From: Luca Barbieri Date: Mon, 12 Apr 2010 16:53:30 +0000 (+0200) Subject: nvfx: allocate buffers in GART if !NOUVEAU_SWTNL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9c665e9e6d8cb5b6bb34f9678575dab2784b045;p=mesa.git nvfx: allocate buffers in GART if !NOUVEAU_SWTNL Should improve performance and fix serious regressions on AGP cards. --- 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: