[Mesa-dev] [PATCH 2/6] radv: re-initialize DCC metadata after decompressing using compute
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Tue Jun 18 23:36:18 UTC 2019
r-b
On Tue, Jun 18, 2019 at 4:12 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/vulkan/radv_meta_fast_clear.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_meta_fast_clear.c b/src/amd/vulkan/radv_meta_fast_clear.c
> index 4398cb7ca59..73642d5d6f3 100644
> --- a/src/amd/vulkan/radv_meta_fast_clear.c
> +++ b/src/amd/vulkan/radv_meta_fast_clear.c
> @@ -875,11 +875,9 @@ radv_decompress_dcc_compute(struct radv_cmd_buffer *cmd_buffer,
> state->flush_bits |= RADV_CMD_FLAG_CS_PARTIAL_FLUSH |
> RADV_CMD_FLAG_INV_VMEM_L1;
>
> - state->flush_bits |= radv_clear_dcc(cmd_buffer, image, subresourceRange,
> - 0xffffffff);
>
> - state->flush_bits |= RADV_CMD_FLAG_FLUSH_AND_INV_CB |
> - RADV_CMD_FLAG_FLUSH_AND_INV_CB_META;
> + /* Initialize the DCC metadata as "fully expanded". */
> + radv_initialize_dcc(cmd_buffer, image, subresourceRange, 0xffffffff);
> }
>
> void
> --
> 2.22.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list