diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-31 14:56:03 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-01 16:23:03 -0700 |
commit | 3b7224190e0d46a21f9caab827659eafcb36c148 (patch) | |
tree | e279a94a158e5ba0f4c0f946c557520af48fc0b7 /src/gallium/drivers | |
parent | 871c02b12ee7013b18d379393e41986a27d2c2a1 (diff) |
panfrost: Share gl_enables between VERTEX/COMPUTE
Catch-all for magic bits.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 3 |
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 |