Hi; Here's a proposal to start creating gl_shader_variable structs to program resource list instead of maintaining a whole ir_variable. This is done to strip dependency on GLSL IR from program resource queries. It also may give possibility to free IR (or NIR) after linking, maybe some more fields are required for backend (?)
Further changes are required in SSBO queries to not iterate IR, this could be done as the next step. I posted this WIP to see if people think there would be nicer alternatives to this. Thanks; Tapani Pälli (1): mesa: use gl_shader_variable in program resource list WIP src/glsl/linker.cpp | 42 ++++++++++++++++++++++++++----- src/mesa/main/mtypes.h | 56 ++++++++++++++++++++++++++++++++++++++++++ src/mesa/main/shader_query.cpp | 36 +++++++++++++-------------- 3 files changed, 110 insertions(+), 24 deletions(-) -- 2.4.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev