summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/vc5/vc5_draw.c3
1 files changed, 2 insertions, 1 deletions
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;