From: Eric Anholt Date: Mon, 2 Oct 2017 23:55:04 +0000 (-0700) Subject: broadcom/vc5: Make the BCL's number of render targets setup match the RCL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=476db7e66b5c2b4cade87c7c8de4bea25ea9eb43;p=mesa.git broadcom/vc5: Make the BCL's number of render targets setup match the RCL. --- 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;