mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 11:58:10 +02:00
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 <brianp@vmware.com>
This commit is contained in:
parent
3069581260
commit
fdf5885183
1 changed files with 11 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue