mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 08:30:10 +01:00
radv: do not decompress/resummarize levels without HTILE
It's completely useless to decompress or resummarize levels that are not compressed using HTILE. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8124>
This commit is contained in:
parent
e7d898a268
commit
d47b13c028
1 changed files with 5 additions and 0 deletions
|
|
@ -508,6 +508,11 @@ static void radv_process_depth_stencil(struct radv_cmd_buffer *cmd_buffer,
|
|||
}
|
||||
|
||||
for (uint32_t l = 0; l < radv_get_levelCount(image, subresourceRange); ++l) {
|
||||
|
||||
/* Do not decompress levels without HTILE. */
|
||||
if (!radv_htile_enabled(image, subresourceRange->baseMipLevel + l))
|
||||
continue;
|
||||
|
||||
uint32_t width =
|
||||
radv_minify(image->info.width,
|
||||
subresourceRange->baseMipLevel + l);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue