mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 14:00:16 +01:00
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>
This commit is contained in:
parent
2da4badfe3
commit
abd9aa2c77
1 changed files with 7 additions and 11 deletions
|
|
@ -384,18 +384,14 @@ test_all(unsigned verbose, FILE *fp)
|
|||
if (util_format_is_pure_integer(format))
|
||||
continue;
|
||||
|
||||
/* only have util fetch func for etc1 */
|
||||
if (format_desc->layout == UTIL_FORMAT_LAYOUT_ETC &&
|
||||
format != PIPE_FORMAT_ETC1_RGB8) {
|
||||
/* The codegen sometimes falls back to calling the precompiled fetch
|
||||
* func, so if we don't have one of those (some compressed formats,
|
||||
* some ), we can't reliably test it. We'll surely have a
|
||||
* precompiled fetch func for any format before we write LLVM code to
|
||||
* fetch from it.
|
||||
*/
|
||||
if (!format_desc->fetch_rgba_float)
|
||||
continue;
|
||||
}
|
||||
|
||||
/* missing fetch funcs */
|
||||
if (format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC ||
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_ATC ||
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_FXT1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* only test twice with formats which can use cache */
|
||||
if (format_desc->layout != UTIL_FORMAT_LAYOUT_S3TC && use_cache) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue