diff options
author | Charmaine Lee <[email protected]> | 2017-12-07 21:29:49 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-09-10 13:07:30 -0600 |
commit | fdf58851833c6521fba7038425dcea8f063ced38 (patch) | |
tree | 40576c40156afc8e6703211e1643567eb0424c0b /src/gallium/drivers/svga | |
parent | 30695812606d3211052a9845f0223ca52ffcb881 (diff) |
svga: add missing devcap check for texture array support
The patch checks DXFMT_ARRAY devcap for texture array support.
Tested with MTT-piglit. No regressions.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_format.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c index 1eb03b9a4dd..5baf8f87f28 100644 --- a/src/gallium/drivers/svga/svga_format.c +++ b/src/gallium/drivers/svga/svga_format.c @@ -2442,8 +2442,18 @@ svga_is_dx_format_supported(struct pipe_screen *screen, 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) |