The patch checks DXFMT_ARRAY devcap for texture array support.
Tested with MTT-piglit. No regressions.
Reviewed-by: Brian Paul <brianp@vmware.com>
if (bindings & PIPE_BIND_DEPTH_STENCIL)
mask |= SVGA3D_DXFMT_DEPTH_RENDERTARGET;
- if (target == PIPE_TEXTURE_3D)
+ switch (target) {
+ case PIPE_TEXTURE_3D:
mask |= SVGA3D_DXFMT_VOLUME;
+ break;
+ case PIPE_TEXTURE_1D_ARRAY:
+ case PIPE_TEXTURE_2D_ARRAY:
+ case PIPE_TEXTURE_CUBE_ARRAY:
+ mask |= SVGA3D_DXFMT_ARRAY;
+ break;
+ default:
+ break;
+ }
/* Is the format supported for rendering */
if ((caps.u & mask) != mask)