gallium: Fix util_format_get_depth_only
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Sep 2019 14:23:22 +0000 (07:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Sep 2019 22:49:29 +0000 (15:49 -0700)
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@intel.com>
src/gallium/auxiliary/util/u_format.h

index 6922424c47a090c6dbad69298b33af99d422d82f..34fc0d15d9cd4dc6f410ec503c044860e6bf0952 100644 (file)
@@ -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) {