From c6d40b5182daf1361686215d31d3c0345e0992f2 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 9 Sep 2019 07:23:22 -0700 Subject: [PATCH] gallium: Fix util_format_get_depth_only MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is a pipe format, not a boolean. Fixes: 5849e0612cc ("gallium/auxiliary: Add util_format_get_depth_only() helper.") Reviewed-by: Tapani Pälli --- src/gallium/auxiliary/util/u_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index 6922424c47a..34fc0d15d9c 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -573,7 +573,7 @@ util_format_is_depth_and_stencil(enum pipe_format format) /** * For depth-stencil formats, return the equivalent depth-only format. */ -static inline boolean +static inline enum pipe_format util_format_get_depth_only(enum pipe_format format) { switch (format) { -- 2.30.2