mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
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 commitacc0039aec)
This commit is contained in:
parent
3f80abc103
commit
d4f0c6a30c
2 changed files with 2 additions and 3 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue