mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
gallium/util: util_format_srgb should not return FORMAT_NONE for sRGB formats
This fixes a serious regression introduced in4e549ddb50. Cc: 9.2 10.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commitd40532f260)
This commit is contained in:
parent
e2b6834c87
commit
b1694c9f87
1 changed files with 3 additions and 0 deletions
|
|
@ -872,6 +872,9 @@ util_format_get_component_bits(enum pipe_format format,
|
|||
static INLINE enum pipe_format
|
||||
util_format_srgb(enum pipe_format format)
|
||||
{
|
||||
if (util_format_is_srgb(format))
|
||||
return format;
|
||||
|
||||
switch (format) {
|
||||
case PIPE_FORMAT_L8_UNORM:
|
||||
return PIPE_FORMAT_L8_SRGB;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue