Mesa (10.2): radeonsi: fix build because of lack of draw_indirect infrastructure in 10.2

Carl Worth cworth at kemper.freedesktop.org
Thu Jul 31 22:25:13 UTC 2014


Module: Mesa
Branch: 10.2
Commit: f75dfcee1058d77670d85e047c3ef1e102011a2f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f75dfcee1058d77670d85e047c3ef1e102011a2f

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Jul 31 20:04:42 2014 +0200

radeonsi: fix build because of lack of draw_indirect infrastructure in 10.2

---

 src/gallium/drivers/radeonsi/si_state_draw.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index 33e8e2a..ec144a5 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -433,8 +433,7 @@ static bool si_update_draw_info_state(struct si_context *sctx,
 		 * We don't know that for indirect drawing, so treat it as
 		 * always problematic. */
 		if (sctx->b.family == CHIP_HAWAII &&
-		    (info->indirect ||
-		     (info->instance_count > 1 &&
+		    ((info->instance_count > 1 &&
 		      u_prims_for_vertices(info->mode, info->count) < primgroup_size))) {
 			wd_switch_on_eop = true;
 			ia_switch_on_eop = true;




More information about the mesa-commit mailing list