From 986e467e4c5c9610a01b0176c02c2310ed019ae8 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 11 Dec 2017 19:27:39 +0100 Subject: gallium/util: add util_num_layers helper --- src/gallium/drivers/rbug/rbug_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/rbug') 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, -- cgit v1.2.3