Mesa (master): broadcom/vc4: Ignore PIPE_BIND_DISPLAY_TARGET in is_format_supported().

Eric Anholt anholt at kemper.freedesktop.org
Fri Feb 23 16:44:22 UTC 2018


Module: Mesa
Branch: master
Commit: 978b884afc1ab07f3c74e0f11a55cde86baa79b1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=978b884afc1ab07f3c74e0f11a55cde86baa79b1

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Feb 22 17:38:50 2018 -0800

broadcom/vc4: Ignore PIPE_BIND_DISPLAY_TARGET in is_format_supported().

We were failing the retval == usage check at the end.

Fixes: f7604d8af521 ("st/dri: only expose config formats that are display targets")

---

 src/gallium/drivers/vc4/vc4_screen.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index e341211f5b..5339864f7f 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -550,6 +550,8 @@ vc4_screen_is_format_supported(struct pipe_screen *pscreen,
                 retval |= PIPE_BIND_INDEX_BUFFER;
         }
 
+        retval |= usage & PIPE_BIND_DISPLAY_TARGET;
+
 #if 0
         if (retval != usage) {
                 fprintf(stderr,




More information about the mesa-commit mailing list