d3d12: fix max-array-layers

We used to need this, because we incorrectly multiplied the cube array
sizes by 6. Now that this has been fixed, we can actually support the
OpenGL 4.1 limit for this.

Fixes: 7118b2136e ("d3d12: Don't multiply cube array sizes by 6")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19780>
This commit is contained in:
Erik Faye-Lund 2022-11-24 10:24:15 +01:00 committed by Marge Bot
parent 7e287609e3
commit acc0039aec

View file

@ -175,8 +175,7 @@ d3d12_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return 1;
case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS:
/* Divide by 6 because this also applies to cubemaps */
return D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION / 6;
return D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION;
case PIPE_CAP_DEPTH_CLIP_DISABLE:
return 1;