summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_meta_blit2d.c
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2016-03-29 13:31:30 -0700
committerNanley Chery <[email protected]>2016-04-13 17:52:20 -0700
commit9fae6ee02659463259e9d7d90a2edf5261887503 (patch)
tree0223b0f7fd5091e2a2890caf71e9ba3a0713101a /src/intel/vulkan/anv_meta_blit2d.c
parent76b0ba087c50a271867f98eaf2acf0364d5b706e (diff)
anv/meta: Don't set the dynamic state for disabled operations
CmdSet* functions dirty the CommandBuffer's dynamic state. This causes the new state to be emitted when CmdDraw is called. Since we don't need the state that would be emitted, don't call the CmdSet* functions. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Kristian Høgsberg Kristensen <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_meta_blit2d.c')
-rw-r--r--src/intel/vulkan/anv_meta_blit2d.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/intel/vulkan/anv_meta_blit2d.c b/src/intel/vulkan/anv_meta_blit2d.c
index a7405e00810..1bde38785db 100644
--- a/src/intel/vulkan/anv_meta_blit2d.c
+++ b/src/intel/vulkan/anv_meta_blit2d.c
@@ -344,17 +344,6 @@ blit2d_bind_dst(struct anv_cmd_buffer *cmd_buffer,
.height = height,
.layers = 1
}, &cmd_buffer->pool->alloc, &tmp->fb);
-
-
- anv_CmdSetViewport(anv_cmd_buffer_to_handle(cmd_buffer), 0, 1,
- &(VkViewport) {
- .x = 0.0f,
- .y = 0.0f,
- .width = width,
- .height = height,
- .minDepth = 0.0f,
- .maxDepth = 1.0f,
- });
}
static void
@@ -377,8 +366,7 @@ void
anv_meta_begin_blit2d(struct anv_cmd_buffer *cmd_buffer,
struct anv_meta_saved_state *save)
{
- anv_meta_save(save, cmd_buffer,
- (1 << VK_DYNAMIC_STATE_VIEWPORT));
+ anv_meta_save(save, cmd_buffer, 0);
}
static void