llvmpipe: Generalize "could llvmpipe fetch this format" check in unit testing.
authorEric Anholt <eric@anholt.net>
Thu, 2 Jul 2020 23:39:02 +0000 (16:39 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Jul 2020 18:19:23 +0000 (18:19 +0000)
commitabd9aa2c772feebe4756d47162eabb93eae6cc84
treec998f00f9db7b59f43ef120368f28a2bcd641bfb
parent2da4badfe346d948fef5ed749a611eb599eb9d9f
llvmpipe: Generalize "could llvmpipe fetch this format" check in unit testing.

This set of checks matched the "access" list in u_format_table.py that
controls initializing this this function pointer, so just use the function
pointer.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5728>
src/gallium/drivers/llvmpipe/lp_test_format.c