mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
intel/blorp: Allow BLORP calls to be predicated
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
be516ba9b1
commit
8e2729fbb8
2 changed files with 6 additions and 0 deletions
|
|
@ -75,6 +75,9 @@ enum blorp_batch_flags {
|
|||
* hardware.
|
||||
*/
|
||||
BLORP_BATCH_NO_EMIT_DEPTH_STENCIL = (1 << 0),
|
||||
|
||||
/* This flag indicates that the blorp call should be predicated. */
|
||||
BLORP_BATCH_PREDICATE_ENABLE = (1 << 1),
|
||||
};
|
||||
|
||||
struct blorp_batch {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue