Skip to content
Commit e00ada9f authored by Mario Kleiner's avatar Mario Kleiner Committed by Adam Jackson
Browse files

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: default avatarMario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: default avatarAdam Jackson <ajax@redhat.com>
parent 55db3c9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment