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

Marek Olšák maraeo at gmail.com
Mon Jan 20 10:01:02 PST 2014


I used to have a patch which precompiles some of the commonly used
shader variants, but I seem to have deleted it because Wine also
loaded shaders on demand and compiling more shader variants than
necessary could only make it worse.

Marek

On Sun, Jan 19, 2014 at 9:16 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> 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
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list