iris: add conditional render support

This commit is contained in:
Dave Airlie
2018-11-27 09:03:16 +10:00
committed by Kenneth Graunke
parent dbe198d6ba
commit 7bbf3ff4a9
5 changed files with 119 additions and 3 deletions

View File

@@ -338,7 +338,8 @@ iris_blit(struct pipe_context *ctx, const struct pipe_blit_info *info)
struct iris_batch *batch = &ice->batches[IRIS_BATCH_RENDER];
struct blorp_batch blorp_batch;
blorp_batch_init(&ice->blorp, &blorp_batch, batch, 0);
blorp_batch_init(&ice->blorp, &blorp_batch, batch,
info->render_condition_enable ? BLORP_BATCH_PREDICATE_ENABLE : 0);
for (int slice = 0; slice < info->dst.box.depth; slice++) {
iris_batch_maybe_flush(batch, 1500);