Module: Mesa Branch: master Commit: de2efd5ea7fafba09a596beba68436c33ebe912e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=de2efd5ea7fafba09a596beba68436c33ebe912e
Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Wed Aug 14 14:41:49 2019 -0700 panfrost: Ensure we upload at least 1 blend RT Otherwise we'll get memory junk. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> --- src/gallium/drivers/panfrost/pan_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) && _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit