mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
radv: fix fast-clearing images with VK_REMAINING_{ARRAY_LAYERS,MIP_LEVELS}
Found by inspection.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22794>
(cherry picked from commit a77c88f1e8)
[Eric: removed erroneous leftover `->layerCount`]
This commit is contained in:
parent
3274e60161
commit
67e01cb74a
2 changed files with 4 additions and 4 deletions
|
|
@ -949,7 +949,7 @@
|
|||
"description": "radv: fix fast-clearing images with VK_REMAINING_{ARRAY_LAYERS,MIP_LEVELS}",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2113,9 +2113,9 @@ radv_fast_clear_range(struct radv_cmd_buffer *cmd_buffer, struct radv_image *ima
|
|||
{
|
||||
.aspectMask = range->aspectMask,
|
||||
.baseMipLevel = range->baseMipLevel,
|
||||
.levelCount = range->levelCount,
|
||||
.levelCount = radv_get_levelCount(image, range),
|
||||
.baseArrayLayer = range->baseArrayLayer,
|
||||
.layerCount = range->layerCount,
|
||||
.layerCount = radv_get_layerCount(image, range),
|
||||
},
|
||||
},
|
||||
0, NULL);
|
||||
|
|
@ -2131,7 +2131,7 @@ radv_fast_clear_range(struct radv_cmd_buffer *cmd_buffer, struct radv_image *ima
|
|||
},
|
||||
},
|
||||
.baseArrayLayer = range->baseArrayLayer,
|
||||
.layerCount = range->layerCount,
|
||||
.layerCount = radv_get_layerCount(image, range),
|
||||
};
|
||||
|
||||
VkClearAttachment clear_att = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue