diff options
author | Brian Paul <[email protected]> | 2008-04-07 15:53:49 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-04-07 15:53:49 -0600 |
commit | d28a2004b8a69d66595f2c6b5398085b73873533 (patch) | |
tree | 730e99d3aea0a0d47731a333f5877d0cd059cf20 /src/mesa/state_tracker | |
parent | 2b8b2420d48b1b9ce0ec4010ce3968a91a57a4c9 (diff) |
gallium: fix the texture case in default_deep_rgba_format()
Fixes glean pixelFormat test
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_format.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |