[Mesa-dev] [PATCH 2/2] radv: use RADV_CMD_DRITY_DYNAMIC_* when restoring viewport/scissor

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Thu May 30 16:01:18 UTC 2019


r-b for both if you fix the DRITY in the title of this one.

On Thu, May 30, 2019 at 12:26 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_meta.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c
> index 721c7039830..3bfe49b4dab 100644
> --- a/src/amd/vulkan/radv_meta.c
> +++ b/src/amd/vulkan/radv_meta.c
> @@ -127,8 +127,8 @@ radv_meta_restore(const struct radv_meta_saved_state *state,
>                              state->scissor.scissors,
>                              MAX_SCISSORS);
>
> -               cmd_buffer->state.dirty |= 1 << VK_DYNAMIC_STATE_VIEWPORT |
> -                                          1 << VK_DYNAMIC_STATE_SCISSOR;
> +               cmd_buffer->state.dirty |= RADV_CMD_DIRTY_DYNAMIC_VIEWPORT |
> +                                          RADV_CMD_DIRTY_DYNAMIC_SCISSOR;
>         }
>
>         if (state->flags & RADV_META_SAVE_COMPUTE_PIPELINE) {
> --
> 2.21.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