summaryrefslogtreecommitdiff
path: root/src/intel/blorp/blorp.c
diff options
context:
space:
mode:
authorMark Janes <markjanes@swizzler.org>2020-06-30 15:00:13 -0700
committerMark Janes <markjanes@swizzler.org>2021-02-01 17:24:57 -0800
commit0b6209b9081c50657ba81c79d0491afa2904f662 (patch)
treebdb71c0f08653079b2ec2e098db0769023090fa7 /src/intel/blorp/blorp.c
parent4a2d9e44ff26138fcb0b92d03b6c05bcbbea5b80 (diff)
blorp: add hook for INTEL_MEASURE
Saves the snapshot type within the blorp parameters. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7354>
Diffstat (limited to 'src/intel/blorp/blorp.c')
-rw-r--r--src/intel/blorp/blorp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c
index 0c0b70f94f1..fe2027fae19 100644
--- a/src/intel/blorp/blorp.c
+++ b/src/intel/blorp/blorp.c
@@ -328,6 +328,20 @@ blorp_hiz_op(struct blorp_batch *batch, struct blorp_surf *surf,
params.hiz_op = op;
params.full_surface_hiz_op = true;
+ switch (op) {
+ case ISL_AUX_OP_FULL_RESOLVE:
+ params.snapshot_type = INTEL_SNAPSHOT_HIZ_RESOLVE;
+ break;
+ case ISL_AUX_OP_AMBIGUATE:
+ params.snapshot_type = INTEL_SNAPSHOT_HIZ_AMBIGUATE;
+ break;
+ case ISL_AUX_OP_FAST_CLEAR:
+ params.snapshot_type = INTEL_SNAPSHOT_HIZ_CLEAR;
+ break;
+ case ISL_AUX_OP_PARTIAL_RESOLVE:
+ case ISL_AUX_OP_NONE:
+ unreachable("Invalid HiZ op");
+ }
for (uint32_t a = 0; a < num_layers; a++) {
const uint32_t layer = start_layer + a;