mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
dzn: Use cube-array views for misaligned cubes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19537>
This commit is contained in:
parent
6e7896aa44
commit
2f8d2a91a6
1 changed files with 1 additions and 1 deletions
|
|
@ -904,7 +904,7 @@ dzn_image_view_prepare_srv_desc(struct dzn_image_view *iview)
|
|||
(iview->vk.view_type == VK_IMAGE_VIEW_TYPE_CUBE ||
|
||||
iview->vk.view_type == VK_IMAGE_VIEW_TYPE_CUBE_ARRAY) ?
|
||||
6 : 1;
|
||||
bool use_array = (iview->vk.base_array_layer / layers_per_elem) > 0 ||
|
||||
bool use_array = iview->vk.base_array_layer > 0 ||
|
||||
(iview->vk.layer_count / layers_per_elem) > 1;
|
||||
|
||||
iview->srv_desc = (D3D12_SHADER_RESOURCE_VIEW_DESC) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue