That it does not use it is exactly why we need to make sure the CB
data is not in the CB cache by flushing it?

On Tue, Mar 19, 2019 at 12:15 PM Samuel Pitoiset
<samuel.pitoi...@gmail.com> wrote:
>
> The clear operation (ie. compute) doesn't use the CB caches.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
> ---
>  src/amd/vulkan/radv_cmd_buffer.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_cmd_buffer.c 
> b/src/amd/vulkan/radv_cmd_buffer.c
> index 5bb3b51684e..b6035dfbbc5 100644
> --- a/src/amd/vulkan/radv_cmd_buffer.c
> +++ b/src/amd/vulkan/radv_cmd_buffer.c
> @@ -4583,8 +4583,7 @@ static void radv_init_color_image_metadata(struct 
> radv_cmd_buffer *cmd_buffer,
>
>                 state->flush_bits |= radv_clear_dcc(cmd_buffer, image, value);
>
> -               state->flush_bits |= RADV_CMD_FLAG_FLUSH_AND_INV_CB |
> -                                    RADV_CMD_FLAG_FLUSH_AND_INV_CB_META;
> +               state->flush_bits |= RADV_CMD_FLAG_FLUSH_AND_INV_CB_META;
>
>                 radv_update_fce_metadata(cmd_buffer, image,
>                                          need_decompress_pass);
> --
> 2.21.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to