diff options
author | Marek Olšák <[email protected]> | 2014-08-06 02:11:04 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-08-09 23:41:15 +0200 |
commit | 515269b3a73cd64ac9c017e8b3c698be9a5383f6 (patch) | |
tree | cc68e9fda5c06f7b0d3ce72ad85a25799568319f /src/gallium/drivers/radeonsi | |
parent | 085a86154553d86f8e4296b4c732901f781bdfd8 (diff) |
radeonsi: fix a hang with instancing in Unigine Heaven/Valley on Hawaii
This isn't documented anywhere, but it's the only thing that works
for this case.
Cc: [email protected]
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index eb21ba1c906..4e808a3eedf 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -411,14 +411,11 @@ static bool si_update_draw_info_state(struct si_context *sctx, bool ia_switch_on_eop = wd_switch_on_eop; unsigned primgroup_size = 64; - /* Hawaii hangs if instancing is enabled and each instance - * is smaller than a prim group and WD_SWITCH_ON_EOP is 0. + /* Hawaii hangs if instancing is enabled and WD_SWITCH_ON_EOP is 0. * 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 && - u_prims_for_vertices(info->mode, info->count) < primgroup_size))) { + (info->indirect || info->instance_count > 1)) { wd_switch_on_eop = true; ia_switch_on_eop = true; } |