diff options
author | Christoph Bumiller <[email protected]> | 2012-12-07 22:47:40 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-12-07 22:48:54 +0100 |
commit | f7599b2c32185535b4c215de0ba0454129fa523f (patch) | |
tree | 03734693a28bc7a3852d9a71e0b334bfddb5a420 /src/gallium/drivers/nv50/nv50_tex.c | |
parent | ff5a9868c8d5041a3d944ce300c857934f4e8251 (diff) |
nv50,nvc0: add support for cube map arrays
NOTE: nv50 support not enabled, someone with nva3/8 please fix.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_tex.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_tex.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/drivers/nv50/nv50_tex.c b/src/gallium/drivers/nv50/nv50_tex.c index 992ac4b760c..dfc97a242b2 100644 --- a/src/gallium/drivers/nv50/nv50_tex.c +++ b/src/gallium/drivers/nv50/nv50_tex.c @@ -176,10 +176,7 @@ nv50_create_texture_view(struct pipe_context *pipe, break; case PIPE_TEXTURE_CUBE: depth /= 6; - if (depth > 1) - tic[2] |= NV50_TIC_2_TARGET_CUBE_ARRAY; - else - tic[2] |= NV50_TIC_2_TARGET_CUBE; + tic[2] |= NV50_TIC_2_TARGET_CUBE; break; case PIPE_TEXTURE_1D_ARRAY: tic[2] |= NV50_TIC_2_TARGET_1D_ARRAY; @@ -187,6 +184,10 @@ nv50_create_texture_view(struct pipe_context *pipe, case PIPE_TEXTURE_2D_ARRAY: tic[2] |= NV50_TIC_2_TARGET_2D_ARRAY; break; + case PIPE_TEXTURE_CUBE_ARRAY: + depth /= 6; + tic[2] |= NV50_TIC_2_TARGET_CUBE_ARRAY; + break; case PIPE_BUFFER: assert(0); /* should be linear and handled above ! */ tic[2] |= NV50_TIC_2_TARGET_BUFFER | NV50_TIC_2_LINEAR; |