diff options
author | Kenneth Graunke <[email protected]> | 2019-09-09 07:23:22 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-09-18 09:09:54 -0700 |
commit | b85d10e14b76575a3a237b2de0775f47e849cc59 (patch) | |
tree | 62a15a74442916f88bf24938fd5d9c60494c81bd /src | |
parent | 7882268cc9402487e0659113d67d6412d6f42f55 (diff) |
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 <[email protected]>
(cherry picked from commit c6d40b5182daf1361686215d31d3c0345e0992f2)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_format.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index eb8c2f6ae3f..92e54b8f564 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -570,7 +570,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) { |