diff options
author | Jason Ekstrand <[email protected]> | 2017-06-05 11:32:19 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-06-07 08:54:54 -0700 |
commit | fbd8a33f61b7fef320ed11730fe6d474bb897120 (patch) | |
tree | 6287501d50c79b2fbe4fb51c46ff1d335af265bc /src/mesa | |
parent | 42b10bbfe048a120ab40b4b31f8168355a4cd344 (diff) |
intel/blorp: Refactor the HiZ op interface
This commit does a few things:
1) Now that BLORP can do HiZ ops on gen8+, drop the gen6 prefix.
2) Switch parameters to uint32_t to match the rest of blorp.
3) Take a range of layers and loop internally.
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index 7fd67600f18..834f43249a9 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -1074,8 +1074,7 @@ intel_hiz_exec(struct brw_context *brw, struct intel_mipmap_tree *mt, struct blorp_batch batch; blorp_batch_init(&brw->blorp, &batch, brw, 0); - for (unsigned a = 0; a < num_layers; a++) - blorp_gen6_hiz_op(&batch, &surf, level, start_layer + a, op); + blorp_hiz_op(&batch, &surf, level, start_layer, num_layers, op); blorp_batch_finish(&batch); } |