summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-11-11 11:26:23 -0800
committerJason Ekstrand <[email protected]>2017-11-27 16:22:13 -0800
commit89156218828633b2fa1b8364011cd05b6d35930e (patch)
treeb17a8f99a8ccd75974c9810ae5402e85bd9c8290 /src/intel
parent67b676f0c5d4e44ac748292a8a9c639415bd1d5f (diff)
intel/blorp: Take a range of layers in blorp_ccs_resolve
Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/blorp/blorp.h3
-rw-r--r--src/intel/blorp/blorp_clear.c7
2 files changed, 7 insertions, 3 deletions
diff --git a/src/intel/blorp/blorp.h b/src/intel/blorp/blorp.h
index 6027076afd0..7caa5f6c246 100644
--- a/src/intel/blorp/blorp.h
+++ b/src/intel/blorp/blorp.h
@@ -198,7 +198,8 @@ enum blorp_fast_clear_op {
void
blorp_ccs_resolve(struct blorp_batch *batch,
- struct blorp_surf *surf, uint32_t level, uint32_t layer,
+ struct blorp_surf *surf, uint32_t level,
+ uint32_t start_layer, uint32_t num_layers,
enum isl_format format,
enum blorp_fast_clear_op resolve_op);
diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c
index 8d758df155f..56cc3ddc9a3 100644
--- a/src/intel/blorp/blorp_clear.c
+++ b/src/intel/blorp/blorp_clear.c
@@ -778,13 +778,16 @@ prepare_ccs_resolve(struct blorp_batch * const batch,
void
blorp_ccs_resolve(struct blorp_batch *batch,
- struct blorp_surf *surf, uint32_t level, uint32_t layer,
+ struct blorp_surf *surf, uint32_t level,
+ uint32_t start_layer, uint32_t num_layers,
enum isl_format format,
enum blorp_fast_clear_op resolve_op)
{
struct blorp_params params;
- prepare_ccs_resolve(batch, &params, surf, level, layer, format, resolve_op);
+ prepare_ccs_resolve(batch, &params, surf, level, start_layer,
+ format, resolve_op);
+ params.num_layers = num_layers;
batch->blorp->exec(batch, &params);
}