nv40/nv50: enable mirror wrap modes
authorBen Skeggs <skeggsb@localhost.localdomain>
Thu, 7 Aug 2008 01:38:56 +0000 (11:38 +1000)
committerBen Skeggs <skeggsb@localhost.localdomain>
Thu, 7 Aug 2008 01:38:56 +0000 (11:38 +1000)
src/gallium/drivers/nv40/nv40_screen.c
src/gallium/drivers/nv50/nv50_screen.c

index a63a6136c526e241b2879c412650079fb73155ba..0e1df89ee8575d0c2cbb935b6b0e3ed71d098c01 100644 (file)
@@ -57,6 +57,9 @@ nv40_screen_get_param(struct pipe_screen *pscreen, int param)
                return 10;
        case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
                return 13;
+       case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
+       case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
+               return 1;
        case NOUVEAU_CAP_HW_VTXBUF:
                return 1;
        case NOUVEAU_CAP_HW_IDXBUF:
index 996b0b3e8f2a1fec7e0c8dde0a933400d7db9cbf..ec4392392985f9d651971f464f3d4673c1950dd5 100644 (file)
@@ -114,6 +114,9 @@ nv50_screen_get_param(struct pipe_screen *pscreen, int param)
                return 10;
        case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
                return 13;
+       case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
+       case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
+               return 1;
        case NOUVEAU_CAP_HW_VTXBUF:     
                return 1;
        case NOUVEAU_CAP_HW_IDXBUF: