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/rbug | |
parent | 70b5e85fc3a79214b4f25db0e6d8fcc32d62a2f1 (diff) |
gallium/util: add util_num_layers helper
Diffstat (limited to 'src/gallium/drivers/rbug')
-rw-r--r-- | src/gallium/drivers/rbug/rbug_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/rbug/rbug_core.c b/src/gallium/drivers/rbug/rbug_core.c index 8eb39c17b14..76394039b9b 100644 --- a/src/gallium/drivers/rbug/rbug_core.c +++ b/src/gallium/drivers/rbug/rbug_core.c @@ -221,7 +221,7 @@ rbug_texture_info(struct rbug_rbug *tr_rbug, struct rbug_header *header, uint32_ } t = tr_tex->resource; - num_layers = util_max_layer(t, 0) + 1; + num_layers = util_num_layers(t, 0); rbug_send_texture_info_reply(tr_rbug->con, serial, t->target, t->format, |