summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-04-04 13:02:37 +1000
committerBen Skeggs <[email protected]>2008-04-04 13:02:37 +1000
commita45a12e757a8f4d41daea2a3f632d4772ff69e38 (patch)
tree3bad292aa3318193755e4b5e31a6818ab5aeee7c /src/gallium/drivers/nv40
parentfbb6cc7842ec8a59b60018233275babc4deb6765 (diff)
nv40: have test for hw idxbuf in single place
Diffstat (limited to 'src/gallium/drivers/nv40')
-rw-r--r--src/gallium/drivers/nv40/nv40_vbo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv40/nv40_vbo.c b/src/gallium/drivers/nv40/nv40_vbo.c
index 8c446936ea1..ec88470b317 100644
--- a/src/gallium/drivers/nv40/nv40_vbo.c
+++ b/src/gallium/drivers/nv40/nv40_vbo.c
@@ -75,6 +75,7 @@ static boolean
nv40_vbo_set_idxbuf(struct nv40_context *nv40, struct pipe_buffer *ib,
unsigned ib_size)
{
+ struct pipe_screen *pscreen = &nv40->screen->pipe;
unsigned type;
if (!ib) {
@@ -83,8 +84,7 @@ nv40_vbo_set_idxbuf(struct nv40_context *nv40, struct pipe_buffer *ib,
return FALSE;
}
- /* No support for 8bit indices, no support at all on 0x4497 chips */
- if (nv40->screen->curie->grclass == NV44TCL || ib_size == 1)
+ if (!pscreen->get_param(pscreen, NOUVEAU_CAP_HW_IDXBUF) || ib_size == 1)
return FALSE;
switch (ib_size) {