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>
(cherry picked from commit acc0039aec)
This commit is contained in:
Erik Faye-Lund 2022-11-24 10:24:15 +01:00 committed by Eric Engestrom
parent 3f80abc103
commit d4f0c6a30c
2 changed files with 2 additions and 3 deletions

View file

@ -427,7 +427,7 @@
"description": "d3d12: fix max-array-layers",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "7118b2136e9c7412108b668e7be4723830bbb7ec"
},

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;