nvfx: allocate buffers in GART if !NOUVEAU_SWTNL
authorLuca Barbieri <luca@luca-barbieri.com>
Mon, 12 Apr 2010 16:53:30 +0000 (18:53 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Mon, 12 Apr 2010 16:53:30 +0000 (18:53 +0200)
Should improve performance and fix serious regressions on AGP cards.

src/gallium/drivers/nvfx/nvfx_screen.c

index cf619f24a1caf18761a0a7a2693ebe828bd19308..e142e27115ed6709b1d639f4015fd0d08fe78e79 100644 (file)
@@ -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: