summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-07-31 14:56:03 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-01 16:23:03 -0700
commit3b7224190e0d46a21f9caab827659eafcb36c148 (patch)
treee279a94a158e5ba0f4c0f946c557520af48fc0b7 /src
parent871c02b12ee7013b18d379393e41986a27d2c2a1 (diff)
panfrost: Share gl_enables between VERTEX/COMPUTE
Catch-all for magic bits. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/pan_context.c3
1 files changed, 3 insertions, 0 deletions
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