panfrost: Add v15 support to the Gallium driver

This commit is contained in:
Lars-Ivar Hesselberg Simonsen 2026-02-17 13:31:04 +01:00
parent 4789fa6b70
commit 82697cc245
4 changed files with 7 additions and 3 deletions

View file

@ -41,7 +41,7 @@ compile_args_panfrost = [
'-Wno-pointer-arith'
]
panfrost_versions = ['4', '5', '6', '7', '9', '10', '12', '13', '14']
panfrost_versions = ['4', '5', '6', '7', '9', '10', '12', '13', '14', '15']
libpanfrost_versions = []
foreach ver : panfrost_versions
@ -54,7 +54,7 @@ foreach ver : panfrost_versions
]
if ver in ['4', '5', '6', '7', '9']
files_panfrost_vx += ['pan_jm.c']
elif ver in ['10', '12', '13', '14']
elif ver in ['10', '12', '13', '14', '15']
files_panfrost_vx += ['pan_csf.c']
endif
libpanfrost_versions += static_library(

View file

@ -49,7 +49,7 @@
* functions. */
#if PAN_ARCH <= 9
#define JOBX(__suffix) GENX(jm_##__suffix)
#elif PAN_ARCH <= 14
#elif PAN_ARCH <= 15
#define JOBX(__suffix) GENX(csf_##__suffix)
#else
#error "Unsupported arch"

View file

@ -1178,6 +1178,9 @@ panfrost_create_screen(int fd, const struct pipe_screen_config *config,
case 14:
panfrost_cmdstream_screen_init_v14(screen);
break;
case 15:
panfrost_cmdstream_screen_init_v15(screen);
break;
default:
debug_printf("panfrost: Unhandled architecture major %d", dev->arch);
panfrost_destroy_screen(&(screen->base));

View file

@ -156,6 +156,7 @@ void panfrost_cmdstream_screen_init_v10(struct panfrost_screen *screen);
void panfrost_cmdstream_screen_init_v12(struct panfrost_screen *screen);
void panfrost_cmdstream_screen_init_v13(struct panfrost_screen *screen);
void panfrost_cmdstream_screen_init_v14(struct panfrost_screen *screen);
void panfrost_cmdstream_screen_init_v15(struct panfrost_screen *screen);
#define perf_debug(ctx, ...) \
do { \