From 476db7e66b5c2b4cade87c7c8de4bea25ea9eb43 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 2 Oct 2017 16:55:04 -0700 Subject: [PATCH] broadcom/vc5: Make the BCL's number of render targets setup match the RCL. --- src/gallium/drivers/vc5/vc5_draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/vc5/vc5_draw.c b/src/gallium/drivers/vc5/vc5_draw.c index 8c6a753b271..c4e9973f949 100644 --- a/src/gallium/drivers/vc5/vc5_draw.c +++ b/src/gallium/drivers/vc5/vc5_draw.c @@ -80,7 +80,8 @@ vc5_start_draw(struct vc5_context *vc5) config.height_in_tiles = job->draw_tiles_y; /* Must be >= 1 */ - config.number_of_render_targets = 1; + config.number_of_render_targets = + MAX2(vc5->framebuffer.nr_cbufs, 1); config.multisample_mode_4x = job->msaa; -- 2.30.2