Commit f7604d8a authored by Ilia Mirkin's avatar Ilia Mirkin

st/dri: only expose config formats that are display targets

In the case of NVIDIA hardware, ABGR is displayable but ARGB is not.
Only advertise the one set in the visuals list.
Signed-off-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Acked-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
parent ebdc4c31
......@@ -249,7 +249,8 @@ dri_fill_in_modes(struct dri_screen *screen)
if (!p_screen->is_format_supported(p_screen, pipe_formats[format],
PIPE_TEXTURE_2D, 0,
PIPE_BIND_RENDER_TARGET))
PIPE_BIND_RENDER_TARGET |
PIPE_BIND_DISPLAY_TARGET))
continue;
for (i = 1; i <= msaa_samples_max; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment