mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 15:50:17 +01:00
gallium: fix the texture case in default_deep_rgba_format()
Fixes glean pixelFormat test
This commit is contained in:
parent
2b8b2420d4
commit
d28a2004b8
1 changed files with 4 additions and 1 deletions
|
|
@ -321,7 +321,10 @@ default_deep_rgba_format(struct pipe_screen *screen, uint type)
|
|||
if (screen->is_format_supported(screen, PIPE_FORMAT_R16G16B16A16_SNORM, type)) {
|
||||
return PIPE_FORMAT_R16G16B16A16_SNORM;
|
||||
}
|
||||
return PIPE_FORMAT_NONE;
|
||||
if (type == PIPE_TEXTURE)
|
||||
return default_rgba_format(screen, type);
|
||||
else
|
||||
return PIPE_FORMAT_NONE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue