@gerddie raised this issue with the current INIT API that once we support a shared library C API it will not work well, because only the first call to init will get to set the config options.
Design alternatives:
- Same as perfetto: passed in parameters to percetto_init.
- Config file loaded during percetto_init -- if it is found it is used as defaults.
- Build option to specify default values.
- Update perfetto to handle dynamic changes to these settings to compromise between different options for different libraries. ie: if mesa wants shmem_size_hint_kb of 400 and virglrenderer wants 200, perfetto could dynamically update it to the greater of the two options -- 400.
- A combination of the above.
@gerddie raised this issue with the current INIT API that once we support a shared library C API it will not work well, because only the first call to init will get to set the config options.
Design alternatives: