aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/blorp/blorp_genX_exec.h
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2017-04-25 13:32:34 -0700
committerJason Ekstrand <[email protected]>2017-07-22 20:12:10 -0700
commit8e2729fbb8686cba2a54086e5088a5ca4c41b39d (patch)
tree9dfa577f6a7659a56605f83295423b1d3f94a2b3 /src/intel/blorp/blorp_genX_exec.h
parentbe516ba9b1ed8cd0dd0c32ded138e9f92c928b72 (diff)
intel/blorp: Allow BLORP calls to be predicated
Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/blorp/blorp_genX_exec.h')
-rw-r--r--src/intel/blorp/blorp_genX_exec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h
index 91c0756bf35..93534169ef7 100644
--- a/src/intel/blorp/blorp_genX_exec.h
+++ b/src/intel/blorp/blorp_genX_exec.h
@@ -1543,6 +1543,9 @@ blorp_exec(struct blorp_batch *batch, const struct blorp_params *params)
blorp_emit(batch, GENX(3DPRIMITIVE), prim) {
prim.VertexAccessType = SEQUENTIAL;
prim.PrimitiveTopologyType = _3DPRIM_RECTLIST;
+#if GEN_GEN >= 7
+ prim.PredicateEnable = batch->flags & BLORP_BATCH_PREDICATE_ENABLE;
+#endif
prim.VertexCountPerInstance = 3;
prim.InstanceCount = params->num_layers;
}