diff options
author | Marek Olšák <[email protected]> | 2017-12-11 19:27:39 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-12-25 14:23:02 +0100 |
commit | 986e467e4c5c9610a01b0176c02c2310ed019ae8 (patch) | |
tree | c608a5876e4cb8b17319bfba760ebfb7cd622c16 /src/gallium/drivers/radeonsi | |
parent | 70b5e85fc3a79214b4f25db0e6d8fcc32d62a2f1 (diff) |
gallium/util: add util_num_layers helper
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_clear.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_clear.c b/src/gallium/drivers/radeonsi/si_clear.c index ba95ed51f14..0ac83f446bf 100644 --- a/src/gallium/drivers/radeonsi/si_clear.c +++ b/src/gallium/drivers/radeonsi/si_clear.c @@ -214,7 +214,7 @@ void vi_dcc_clear_level(struct si_context *sctx, assert(rtex->resource.b.b.nr_samples <= 1); clear_size = rtex->surface.dcc_size; } else { - unsigned num_layers = util_max_layer(&rtex->resource.b.b, level) + 1; + unsigned num_layers = util_num_layers(&rtex->resource.b.b, level); /* If this is 0, fast clear isn't possible. (can occur with MSAA) */ assert(rtex->surface.u.legacy.level[level].dcc_fast_clear_size); |