mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
d3d12: Shrink 2D array size so that max-layer cube arrays can be created
Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14342>
This commit is contained in:
parent
02fc28625f
commit
d1a5250c10
1 changed files with 2 additions and 1 deletions
|
|
@ -164,7 +164,8 @@ d3d12_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
return 1;
|
||||
|
||||
case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS:
|
||||
return D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION;
|
||||
/* Divide by 6 because this also applies to cubemaps */
|
||||
return D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION / 6;
|
||||
|
||||
case PIPE_CAP_DEPTH_CLIP_DISABLE:
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue