nouveau: return a value for PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS
authorBen Skeggs <skeggsb@gmail.com>
Tue, 16 Dec 2008 06:30:04 +0000 (17:30 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Tue, 16 Dec 2008 06:30:04 +0000 (17:30 +1100)
src/gallium/drivers/nv04/nv04_screen.c
src/gallium/drivers/nv10/nv10_screen.c
src/gallium/drivers/nv20/nv20_screen.c
src/gallium/drivers/nv30/nv30_screen.c
src/gallium/drivers/nv40/nv40_screen.c
src/gallium/drivers/nv50/nv50_screen.c

index 3966a29ffa9d7a14e4b0a046d3ca32001dcfd787..65eacde6b2ee4708e552fbf3320628be2e388f5c 100644 (file)
@@ -50,6 +50,8 @@ nv04_screen_get_param(struct pipe_screen *screen, int param)
                return 0;
        case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
                return 0;
+       case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS:
+               return 0;
        default:
                NOUVEAU_ERR("Unknown PIPE_CAP %d\n", param);
                return 0;
index 27a9edf9bba8292c41231ec8978cbc62b1a6d1b1..4d9fbd4b5f613d8b58b1812df313d24bbbd16841 100644 (file)
@@ -50,6 +50,8 @@ nv10_screen_get_param(struct pipe_screen *screen, int param)
                return 0;
        case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
                return 12;
+       case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS:
+               return 0;
        case NOUVEAU_CAP_HW_VTXBUF:
        case NOUVEAU_CAP_HW_IDXBUF:
                return 0;
index c0a90f6c584f8cd1f90672e5892e87cb1e9037b0..2ca6e6b14980e70702170fe2ca18e6b21c154a55 100644 (file)
@@ -50,6 +50,8 @@ nv20_screen_get_param(struct pipe_screen *screen, int param)
                return 0;
        case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
                return 12;
+       case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS:
+               return 0;
        case NOUVEAU_CAP_HW_VTXBUF:
        case NOUVEAU_CAP_HW_IDXBUF:
                return 0;
index 910a3c456dd288679b538027f80de1878eae23c0..d7548922994dd77d53083d37284c8db045f47e40 100644 (file)
@@ -58,6 +58,8 @@ nv30_screen_get_param(struct pipe_screen *pscreen, int param)
                return 0;
        case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
                return 1;
+       case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS:
+               return 0;
        case NOUVEAU_CAP_HW_VTXBUF:
        case NOUVEAU_CAP_HW_IDXBUF:
                return 1;
index 25c786829614e46b99c30798dccfad7f67cf8950..995148e03f02f0cf39f6ea8b4e7b68830408ae72 100644 (file)
@@ -59,6 +59,8 @@ nv40_screen_get_param(struct pipe_screen *pscreen, int param)
        case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
        case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
                return 1;
+       case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS:
+               return 0; /* We have 4 - but unsupported currently */
        case NOUVEAU_CAP_HW_VTXBUF:
                return 1;
        case NOUVEAU_CAP_HW_IDXBUF:
index b5aef7dadd8269f86b437d499c88991b3480d79d..52f6a4068823a21a54c3ea51875dea1a05b4d8d2 100644 (file)
@@ -116,6 +116,8 @@ nv50_screen_get_param(struct pipe_screen *pscreen, int param)
        case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
        case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
                return 1;
+       case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS:
+               return 0;
        case NOUVEAU_CAP_HW_VTXBUF:     
                return 1;
        case NOUVEAU_CAP_HW_IDXBUF: