mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
util/u_format: take normalized flag in consideration in util_format_is_rgba8_variant
Just happened to notice it was missing while looking at it.
This commit is contained in:
parent
86cdff5635
commit
c883ee4498
1 changed files with 3 additions and 0 deletions
|
|
@ -696,6 +696,9 @@ util_format_is_rgba8_variant(const struct util_format_description *desc)
|
|||
if(desc->channel[chan].type != UTIL_FORMAT_TYPE_UNSIGNED &&
|
||||
desc->channel[chan].type != UTIL_FORMAT_TYPE_VOID)
|
||||
return FALSE;
|
||||
if(desc->channel[chan].type == UTIL_FORMAT_TYPE_UNSIGNED &&
|
||||
!desc->channel[chan].normalized)
|
||||
return FALSE;
|
||||
if(desc->channel[chan].size != 8)
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue