diff options
author | Gert Wollny <[email protected]> | 2018-08-09 12:46:52 +0200 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2018-08-10 10:09:22 +0200 |
commit | e94095ec30462d4264c6d7c7dd4fbf8bc0d99c69 (patch) | |
tree | d7e7d2058066c5562b91c029e34f7816850a2d90 /src | |
parent | 08fe9b3e3a5bd18db39daa56ecae3fc1a0708ff5 (diff) |
mesa/st: ETC2 now uses R8G8B8A8_SRGB as fallback
The check for ETC2 compatibility was not updated when the fallback
format was changed.
Fixes: 71867a0a61cea20bf3f6115692e70b0d60f0b70d
st/mesa: Fall back to R8G8B8A8_SRGB for ETC2
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 1c01495e937..db08d5169af 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1318,7 +1318,7 @@ void st_init_extensions(struct pipe_screen *screen, screen->is_format_supported(screen, PIPE_FORMAT_R8G8B8A8_UNORM, PIPE_TEXTURE_2D, 0, 0, PIPE_BIND_SAMPLER_VIEW) && - screen->is_format_supported(screen, PIPE_FORMAT_B8G8R8A8_SRGB, + screen->is_format_supported(screen, PIPE_FORMAT_R8G8B8A8_SRGB, PIPE_TEXTURE_2D, 0, 0, PIPE_BIND_SAMPLER_VIEW) && screen->is_format_supported(screen, PIPE_FORMAT_R16_UNORM, |