mesa/src/gallium/drivers/rocket
Tomeu Vizoso 16e15ee205 gallium: add pipe_ml_device, pipe_screen::get_ml_device()
For compiling models, we don't really need a context for a real device.

To support ML frameworks models in which compilation happens
ahead-of-time (AoT), add API for compilation that doesn't require a
pipe_context.

Add struct pipe_ml_device with function pointers for:
- ml_operation_supported: query operation support
- ml_subgraph_create: compile a subgraph
- ml_subgraph_serialize: serialize a compiled subgraph
- ml_subgraph_destroy: free subgraph resources

Move ml_operation_supported, ml_subgraph_create, and
ml_subgraph_destroy from pipe_context to pipe_ml_device.

Add pipe_screen::get_ml_device() to obtain the device.

Change pipe_ml_subgraph.context (pipe_context*) to
pipe_ml_subgraph.device (pipe_ml_device*).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40167>
2026-03-25 16:58:05 +00:00
..
ci rocket: Skip all synthetic tests as we now have several real models 2026-03-23 12:57:09 +00:00
decode.py
extract_registers.py
gen_header.py rocket: drop file names from the generated file 2025-11-19 16:27:32 +00:00
gen_parser.py
intercept.c rocket: Fix printing of rknpu_mem_create.dma_addr 2026-02-09 11:26:01 +00:00
meson.build
registers.xml
rkt_coefs.c gallium: add pipe_ml_device, pipe_screen::get_ml_device() 2026-03-25 16:58:05 +00:00
rkt_coefs.h
rkt_device.c gallium: add pipe_ml_device, pipe_screen::get_ml_device() 2026-03-25 16:58:05 +00:00
rkt_device.h gallium: add pipe_ml_device, pipe_screen::get_ml_device() 2026-03-25 16:58:05 +00:00
rkt_ml.c gallium: add pipe_ml_device, pipe_screen::get_ml_device() 2026-03-25 16:58:05 +00:00
rkt_ml.h gallium: add pipe_ml_device, pipe_screen::get_ml_device() 2026-03-25 16:58:05 +00:00
rkt_regcmd.c util/dynarray: infer type in append 2025-10-24 18:32:07 +00:00
rkt_regcmd.h
rkt_task.c gallium: replace padding_same with per-side padding 2026-03-25 16:58:05 +00:00
rkt_task.h
rules-ng.xsd