Mesa (staging/19.1): gallium: Fix util_format_get_depth_only
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Sep 12 08:29:51 UTC 2019
Module: Mesa
Branch: staging/19.1
Commit: 9556c5b1a29cf0f1679cfd2166863a9092f32ec5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9556c5b1a29cf0f1679cfd2166863a9092f32ec5
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Sep 9 07:23:22 2019 -0700
gallium: Fix util_format_get_depth_only
This is a pipe format, not a boolean.
Fixes: 5849e0612cc ("gallium/auxiliary: Add util_format_get_depth_only() helper.")
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
(cherry picked from commit c6d40b5182daf1361686215d31d3c0345e0992f2)
---
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 cf69460e050..64300ce755c 100644
--- a/src/gallium/auxiliary/util/u_format.h
+++ b/src/gallium/auxiliary/util/u_format.h
@@ -576,7 +576,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) {
More information about the mesa-commit
mailing list