Skip to content

panfrost: Don't leak NIR compute shaders

What does this MR do and why?

We never steal the NIR program or free it explicitly, and the state tracker expects drivers to take ownership of the program object. Since panfrost doesn't need to keep the original NIR shader around for compute, let's just free it before returning.

Fixes: 40372bd7 ("panfrost: Implement a disk cache")

/cc @kusma @italove

Merge request reports