[Mesa-dev] mesa/st: how to force glLinkProgram to create/translate the program?

Ilia Mirkin imirkin at alum.mit.edu
Sun Jan 19 00:16:44 PST 2014


Hi,

My goal is to extend shader-db to be able to be used with nouveau, as
I'm about to attempt a few compiler optimizations. But I'm having
trouble with the very first step -- getting the driver to spit out the
generated code. I've added logic to nouveau to translate the program
as soon as it's available rather than on first use. However it seems
that mesa/st has similar delaying logic, which makes it so that none
of this is called when merely calling glLinkProgram.

I'm having trouble figuring out how to bypass this and make it call
update_vp/fp/gp which appear like they'll actually call
pipe->create_fs_state/etc. I see st_link_shader getting called, as
expected, which creates the TGSI... but what to do from there?

Thanks,

  -ilia


More information about the mesa-dev mailing list