aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/rbug
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-12-11 19:27:39 +0100
committerMarek Olšák <[email protected]>2017-12-25 14:23:02 +0100
commit986e467e4c5c9610a01b0176c02c2310ed019ae8 (patch)
treec608a5876e4cb8b17319bfba760ebfb7cd622c16 /src/gallium/drivers/rbug
parent70b5e85fc3a79214b4f25db0e6d8fcc32d62a2f1 (diff)
gallium/util: add util_num_layers helper
Diffstat (limited to 'src/gallium/drivers/rbug')
-rw-r--r--src/gallium/drivers/rbug/rbug_core.c2
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,