From 6d6acaebad86241dd2f94db6476554346d5aec91 Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Mon, 12 Apr 2010 20:36:44 +0200 Subject: nvfx: don't use hw index buffers on nv3x and nv44 They only apparently work on nv40 grclass cards, and this was the previous behavior of the driver. This really needs to be investigated more. --- src/gallium/drivers/nvfx/nvfx_vbo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/nvfx/nvfx_vbo.c') diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c index f40e24061ff..bb8a2b63f05 100644 --- a/src/gallium/drivers/nvfx/nvfx_vbo.c +++ b/src/gallium/drivers/nvfx/nvfx_vbo.c @@ -90,7 +90,7 @@ nvfx_vbo_set_idxbuf(struct nvfx_context *nvfx, struct pipe_resource *ib, return FALSE; } - if (!pscreen->get_param(pscreen, NOUVEAU_CAP_HW_IDXBUF) || ib_size == 1) + if (nvfx->screen->eng3d->grclass != NV40TCL || ib_size == 1) return FALSE; switch (ib_size) { -- cgit v1.2.3