anv: Dirty fragment shader descriptors in meta restore
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 26 Jan 2016 22:43:07 +0000 (14:43 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 26 Jan 2016 22:44:02 +0000 (14:44 -0800)
We need to reemit render targets, so dirtying VK_SHADER_STAGE_VERTEX_BIT
doesn't help us much.

src/vulkan/anv_meta.c

index 351af219e7f3242186e1648e3c8e4a00fa51e7ac..7034f70d6ac32e8de0e50e8f820013892676138b 100644 (file)
@@ -146,7 +146,7 @@ anv_meta_restore(const struct anv_meta_saved_state *state,
 
    cmd_buffer->state.vb_dirty |= (1 << ANV_META_VERTEX_BINDING_COUNT) - 1;
    cmd_buffer->state.dirty |= ANV_CMD_DIRTY_PIPELINE;
-   cmd_buffer->state.descriptors_dirty |= VK_SHADER_STAGE_VERTEX_BIT;
+   cmd_buffer->state.descriptors_dirty |= VK_SHADER_STAGE_FRAGMENT_BIT;
 
    anv_dynamic_state_copy(&cmd_buffer->state.dynamic, &state->dynamic,
                           state->dynamic_mask);