broadcom/vc5: Ignore unused usage flags in is_format_supported.
authorEric Anholt <eric@anholt.net>
Fri, 23 Feb 2018 17:10:36 +0000 (09:10 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 23 Feb 2018 23:07:18 +0000 (15:07 -0800)
commit97dc0773032d6284ea5c63758abf704d877f65dc
treef50c97dc67630e3bbf7ecefd6baf4efddb497923
parent880573e7370b866c94513f59ad0bb0b10660643f
broadcom/vc5: Ignore unused usage flags in is_format_supported.

Like for vc4, the new DISPLAY_TARGET flag ended up causing no formats to
match.  Just drop the whole retval == usage thing and return early when we
hit a known unsupported case.

Fixes: f7604d8af521 ("st/dri: only expose config formats that are display targets")
src/gallium/drivers/vc5/vc5_screen.c