Skip to content
Commit 22d1e495 authored by Fritz Koenig's avatar Fritz Koenig Committed by Dylan Baker
Browse files

freedreno: reorder format check



With the addition of the planar formats helper, the
planar formats no longer have a valid block.bits field.
Calling util_format_get_blocksize therefore asserts.

Reorder the check to see if the format is supported
before doing the query to get the blocksize.

Fixes: 20f132e5 ("gallium/util: add planar format layouts and helpers")

Signed-off-by: default avatarFritz Koenig <frkoenig@google.com>
Reviewed-by: default avatarRob Clark <robdclark@chromium.org>
(cherry picked from commit c496d442)
parent a6728963
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