mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
radv: fix fast clearing depth-only or stencil-only aspects with HTILE
DB isn't coherent with L2 on GFX6-8. This is needed when the
clear HTILE mask path is selected.
This fixes an issue with avatars in Heroes of The Storm.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3362
Cc: 21.1 mesa-stable
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/10277>
(cherry picked from commit e4c0724dc6)
This commit is contained in:
parent
87fe4028c3
commit
de8c1ab62a
2 changed files with 3 additions and 2 deletions
|
|
@ -202,7 +202,7 @@
|
|||
"description": "radv: fix fast clearing depth-only or stencil-only aspects with HTILE",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -965,7 +965,8 @@ radv_fast_clear_depth(struct radv_cmd_buffer *cmd_buffer, const struct radv_imag
|
|||
enum radv_cmd_flush_bits bits =
|
||||
radv_src_access_flush(cmd_buffer, VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT,
|
||||
iview->image) |
|
||||
radv_dst_access_flush(cmd_buffer, VK_ACCESS_SHADER_WRITE_BIT, iview->image);
|
||||
radv_dst_access_flush(cmd_buffer, VK_ACCESS_SHADER_WRITE_BIT |
|
||||
VK_ACCESS_SHADER_READ_BIT, iview->image);
|
||||
cmd_buffer->state.flush_bits |= bits & ~*pre_flush;
|
||||
*pre_flush |= cmd_buffer->state.flush_bits;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue