pipe-loader: fix driconf memory management
this had a number of issues: * pipe_loader_get_driinfo_xml() frees driver_driconf immediately, except the driOptionCache struct string pointers are all just copied in merge_driconf instead of having the strings copied, which means any subsequent access of driver_driconf strings is invalid access * pipe_loader_drm_get_driconf_by_name() is a disaster that only happened to work because the dlopen here is the same lib that gets opened elsewhere by mesa and not closed. if the lib here is actually closed, then all the statically allocated strings become invalid, which means they need to be manually copied cc: mesa-stable Reviewed-by:Marek Olšák <marek.olsak@amd.com> Part-of: <mesa/mesa!30494> (cherry picked from commit 0c220741)
- .pick_status.json 1 addition, 1 deletion.pick_status.json
- src/gallium/auxiliary/pipe-loader/pipe_loader.c 1 addition, 1 deletionsrc/gallium/auxiliary/pipe-loader/pipe_loader.c
- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c 34 additions, 0 deletionssrc/gallium/auxiliary/pipe-loader/pipe_loader_drm.c