mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
util: linearized sRGB values don't fit into 8bits
Fixes glean texture_srgb test.
This commit is contained in:
parent
c70d539e24
commit
903a66abaf
1 changed files with 8 additions and 0 deletions
|
|
@ -173,6 +173,14 @@ util_format_fits_8unorm(const struct util_format_description *format_desc)
|
|||
{
|
||||
unsigned chan;
|
||||
|
||||
/*
|
||||
* After linearized sRGB values require more than 8bits.
|
||||
*/
|
||||
|
||||
if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
switch (format_desc->layout) {
|
||||
|
||||
case UTIL_FORMAT_LAYOUT_S3TC:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue