diff options
author | Mario Kleiner <mario.kleiner.de@gmail.com> | 2018-04-30 09:06:09 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-04-30 13:48:46 -0400 |
commit | e00ada9fbbddf4570fe38c3ceeb922af7afcfd1a (patch) | |
tree | 3df76150fe12743495580a61d9d4a57760dacabb /glamor | |
parent | 55db3c9cfc1bc92a53b75b99e8fa49a32d7efe63 (diff) |
glamor: Don't fail in glamor_get_formats if not dmabuf_capable.
If dmabuf_capable is false, because the server "dmabuf_capable"
debug flag isn't set, treat it as successfull query with zero
returned formats, instead of failure.
This allows the servers cache_formats_and_modifiers() function
to cache the fact that formats are not supported during the
current server generation, instead of pointless retesting at
every invocation.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'glamor')
-rw-r--r-- | glamor/glamor_egl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c index 9edb50967..c38b02e2b 100644 --- a/glamor/glamor_egl.c +++ b/glamor/glamor_egl.c @@ -602,7 +602,7 @@ glamor_get_formats(ScreenPtr screen, glamor_egl = glamor_egl_get_screen_private(xf86ScreenToScrn(screen)); if (!glamor_egl->dmabuf_capable) - return FALSE; + return TRUE; if (!eglQueryDmaBufFormatsEXT(glamor_egl->display, 0, NULL, &num)) return FALSE; |