diff options
author | Eric Anholt <[email protected]> | 2019-07-01 15:43:19 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-07-16 12:51:13 -0700 |
commit | 4d23157a8bf5da2f20ad477029fcf59d9df8557e (patch) | |
tree | 443ac4dfe62817446c49f5fb2b27c896246593f7 /src/mesa/drivers/dri | |
parent | 35e2d31ba4218cd55085c97764741eaf2fa3a332 (diff) |
mesa: Give _mesa_format_get_color_encoding a clearer name.
It only returned one of two values.
Reviewed-by: Thomas Helland <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/common/utils.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c index 5a66bcf8e05..30ff237d00e 100644 --- a/src/mesa/drivers/dri/common/utils.c +++ b/src/mesa/drivers/dri/common/utils.c @@ -256,7 +256,7 @@ driCreateConfigs(mesa_format format, green_bits = _mesa_get_format_bits(format, GL_GREEN_BITS); blue_bits = _mesa_get_format_bits(format, GL_BLUE_BITS); alpha_bits = _mesa_get_format_bits(format, GL_ALPHA_BITS); - is_srgb = _mesa_get_format_color_encoding(format) == GL_SRGB; + is_srgb = _mesa_is_format_srgb(format); num_modes = num_depth_stencil_bits * num_db_modes * num_accum_bits * num_msaa_modes; configs = calloc(num_modes + 1, sizeof *configs); diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index b3ba09f2174..a313d445355 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -860,8 +860,8 @@ intel_blit_framebuffer_with_blitter(struct gl_context *ctx, } if (ctx->Color.sRGBEnabled && - _mesa_get_format_color_encoding(src_irb->mt->format) != - _mesa_get_format_color_encoding(dst_irb->mt->format)) { + _mesa_is_format_srgb(src_irb->mt->format) != + _mesa_is_format_srgb(dst_irb->mt->format)) { perf_debug("glBlitFramebuffer() with sRGB conversion cannot be " "handled by BLT path.\n"); return mask; |