diff options
author | Samuel Pitoiset <[email protected]> | 2019-05-30 12:29:40 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-05-31 08:50:16 +0200 |
commit | 9178076a464efe82b91364187a4bb9c378ec021e (patch) | |
tree | 0f0eae468174d2563ef123b4bf8c6faa1c79cefb | |
parent | 0e7b029d005852ca817f8c95d557ae2dfc3bd479 (diff) |
radv: use RADV_CMD_DIRTY_DYNAMIC_* when restoring viewport/scissor
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_meta.c | 4 |
1 files 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) { |