From: Brian Paul Date: Mon, 7 Apr 2008 21:53:49 +0000 (-0600) Subject: gallium: fix the texture case in default_deep_rgba_format() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d28a2004b8a69d66595f2c6b5398085b73873533;p=mesa.git gallium: fix the texture case in default_deep_rgba_format() Fixes glean pixelFormat test --- diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 20defd5e164..cd41dc4684d 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -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; }