From 3b7224190e0d46a21f9caab827659eafcb36c148 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 31 Jul 2019 14:56:03 -0700 Subject: [PATCH] panfrost: Share gl_enables between VERTEX/COMPUTE Catch-all for magic bits. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index fe0d0254d6a..4ebf5ca6c05 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -277,7 +277,10 @@ panfrost_emit_vertex_payload(struct panfrost_context *ctx) .gl_enables = 0x4 | 0x2, }; + /* Vertex and compute are closely coupled, so share a payload */ + memcpy(&ctx->payloads[PIPE_SHADER_VERTEX], &payload, sizeof(payload)); + memcpy(&ctx->payloads[PIPE_SHADER_COMPUTE], &payload, sizeof(payload)); } static void -- 2.30.2