diff options
author | Christoph Bumiller <[email protected]> | 2011-09-05 15:31:28 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-09-14 16:19:52 +0200 |
commit | d53c49bcd4f1cb179ba83656224272574f89801b (patch) | |
tree | 36bb43c1467999fd38301b32db7b8759ad821999 /src/gallium/drivers | |
parent | 2dc6f740773bdf19dd67831a685ba81f612798d0 (diff) |
nv50,nvc0: handle PIPE_CAP_MIN/MAX_TEXEL_OFFSET
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_screen.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_screen.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c index 98189303cc6..db775e806f4 100644 --- a/src/gallium/drivers/nv50/nv50_screen.c +++ b/src/gallium/drivers/nv50/nv50_screen.c @@ -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: diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c index 596a1efc610..c785ceb649c 100644 --- a/src/gallium/drivers/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nvc0/nvc0_screen.c @@ -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: |