nv50,nvc0: handle PIPE_CAP_MIN/MAX_TEXEL_OFFSET
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 5 Sep 2011 13:31:28 +0000 (15:31 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 14 Sep 2011 14:19:52 +0000 (16:19 +0200)
src/gallium/drivers/nv50/nv50_screen.c
src/gallium/drivers/nvc0/nvc0_screen.c

index 98189303cc6198bb6d06f421b5b74f5a427e95d9..db775e806f48ecb4dded5d02191f898b8f5c4c55 100644 (file)
@@ -90,6 +90,10 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
       return 13;
    case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS: /* shader support missing */
       return 0;
+   case PIPE_CAP_MIN_TEXEL_OFFSET:
+      return 0 /* -8, TODO */;
+   case PIPE_CAP_MAX_TEXEL_OFFSET:
+      return 0 /* +7, TODO */;
    case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
    case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
    case PIPE_CAP_TEXTURE_SWIZZLE:
index 596a1efc610fd92517e965b0daa7e773dbe7b354..c785ceb649c1b47e81da44160295bacc2e3292eb 100644 (file)
@@ -81,6 +81,10 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
       return 13;
    case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS:
       return 8192;
+   case PIPE_CAP_MIN_TEXEL_OFFSET:
+      return -8;
+   case PIPE_CAP_MAX_TEXEL_OFFSET:
+      return 7;
    case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
    case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
    case PIPE_CAP_TEXTURE_SWIZZLE: