diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-14 14:41:49 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-14 15:09:17 -0700 |
commit | de2efd5ea7fafba09a596beba68436c33ebe912e (patch) | |
tree | a41d7a12b4c58d3dd405787feedf99cbf18077a5 | |
parent | 54438267c3f6ba14ab99659cb2eb18e25cb1554a (diff) |
panfrost: Ensure we upload at least 1 blend RT
Otherwise we'll get memory junk.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index bb506c069ac..1da61c434d3 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -1081,7 +1081,7 @@ panfrost_emit_for_draw(struct panfrost_context *ctx, bool with_vertex_data) struct midgard_blend_rt rts[4]; - for (unsigned i = 0; i < ctx->pipe_framebuffer.nr_cbufs; ++i) { + for (unsigned i = 0; i < 1; ++i) { bool is_srgb = (ctx->pipe_framebuffer.nr_cbufs > i) && (ctx->pipe_framebuffer.cbufs[i]) && |