radv: Reset emitted compute pipeline when calling secondary cmd buffer.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 26 Feb 2017 19:01:26 +0000 (20:01 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 27 Feb 2017 00:33:10 +0000 (01:33 +0100)
Otherwise if the new compute pipeline is the same as the last used
pipeline before the call, we don't emit it again.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Cc: 13.0 17.0 <mesa-stable@lists.freedesktop.org>
src/amd/vulkan/radv_cmd_buffer.c

index 1e38cbe125137daa4565e4f06e74b79957562893..709ae8bb5606db7accd3cfa3b0d1fcc38051b43b 100644 (file)
@@ -2114,6 +2114,7 @@ void radv_CmdExecuteCommands(
        /* if we execute secondary we need to re-emit out pipelines */
        if (commandBufferCount) {
                primary->state.emitted_pipeline = NULL;
+               primary->state.emitted_compute_pipeline = NULL;
                primary->state.dirty |= RADV_CMD_DIRTY_PIPELINE;
                primary->state.dirty |= RADV_CMD_DIRTY_DYNAMIC_ALL;
        }