mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
pan/lib: Build for v14
Enable building libpanfrost for v14. Also, modify format mappings to account for the new architecture specification. Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
This commit is contained in:
parent
1e350ef79c
commit
52d6c19293
3 changed files with 7 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
subdir('kmod')
|
||||
|
||||
pixel_format_versions = ['5', '6', '7', '9', '10', '12', '13']
|
||||
pixel_format_versions = ['5', '6', '7', '9', '10', '12', '13', '14']
|
||||
libpanfrost_pixel_format = []
|
||||
|
||||
deps_for_libpanfrost = [dep_libdrm, idep_pan_packers, idep_mesautil, libpanfrost_model_dep]
|
||||
|
|
@ -22,7 +22,7 @@ endforeach
|
|||
|
||||
libpanfrost_per_arch = []
|
||||
|
||||
foreach ver : ['4', '5', '6', '7', '9', '10', '12', '13']
|
||||
foreach ver : ['4', '5', '6', '7', '9', '10', '12', '13', '14']
|
||||
libpanfrost_per_arch += static_library(
|
||||
'pan-arch-v' + ver,
|
||||
[
|
||||
|
|
|
|||
|
|
@ -186,6 +186,7 @@ pan_blendable_format_table(unsigned arch)
|
|||
FMT_TABLE(10);
|
||||
FMT_TABLE(12);
|
||||
FMT_TABLE(13);
|
||||
FMT_TABLE(14);
|
||||
#undef FMT_TABLE
|
||||
default:
|
||||
assert(!"Unsupported architecture");
|
||||
|
|
@ -216,6 +217,7 @@ pan_format_table(unsigned arch)
|
|||
FMT_TABLE(10);
|
||||
FMT_TABLE(12);
|
||||
FMT_TABLE(13);
|
||||
FMT_TABLE(14);
|
||||
#undef FMT_TABLE
|
||||
default:
|
||||
assert(!"Unsupported architecture");
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ const struct pan_mod_handler *pan_mod_get_handler_v9(uint64_t modifier);
|
|||
const struct pan_mod_handler *pan_mod_get_handler_v10(uint64_t modifier);
|
||||
const struct pan_mod_handler *pan_mod_get_handler_v12(uint64_t modifier);
|
||||
const struct pan_mod_handler *pan_mod_get_handler_v13(uint64_t modifier);
|
||||
const struct pan_mod_handler *pan_mod_get_handler_v14(uint64_t modifier);
|
||||
|
||||
static inline const struct pan_mod_handler *
|
||||
pan_mod_get_handler(unsigned arch, uint64_t modifier)
|
||||
|
|
@ -105,6 +106,8 @@ pan_mod_get_handler(unsigned arch, uint64_t modifier)
|
|||
return pan_mod_get_handler_v12(modifier);
|
||||
case 13:
|
||||
return pan_mod_get_handler_v13(modifier);
|
||||
case 14:
|
||||
return pan_mod_get_handler_v14(modifier);
|
||||
default:
|
||||
UNREACHABLE("Unsupported arch");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue