summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2017-12-31 02:36:39 -0500
committerIlia Mirkin <[email protected]>2018-02-19 22:33:58 -0500
commitf7604d8af521f39e6d5df62981c3b9e10140cc81 (patch)
tree7db8bcb3f898fdc6942ef3c4b51055ed0f9c32d7 /src/gallium/state_trackers
parentebdc4c31e23ffd5ce0d1fc47dd8f76c146961e25 (diff)
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: Ilia Mirkin <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Acked-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/dri/dri_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c
index bd0925b9055..aaee9870776 100644
--- a/src/gallium/state_trackers/dri/dri_screen.c
+++ b/src/gallium/state_trackers/dri/dri_screen.c
@@ -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++) {