panfrost: Share gl_enables between VERTEX/COMPUTE

Catch-all for magic bits.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-07-31 14:56:03 -07:00
parent 871c02b12e
commit 3b7224190e
1 changed files with 3 additions and 0 deletions

View File

@ -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