mesa: Drop redundant checks for sRGB before sRGB to linear conversion.
authorEric Anholt <eric@anholt.net>
Mon, 1 Jul 2019 22:38:56 +0000 (15:38 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Jul 2019 19:51:13 +0000 (12:51 -0700)
commit35e2d31ba4218cd55085c97764741eaf2fa3a332
treeb84e1b165a85f09133a4d0b891c99bac971868f6
parentece03848c27675eb4933f07f45acd49336d99144
mesa: Drop redundant checks for sRGB before sRGB to linear conversion.

_mesa_get_srgb_format_linear() just returns the original format if it
wasn't sRGB.

Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/swrast/s_texfetch.c