On Wed, 11 Jan 2012 01:55:46 -0800, Kenneth Graunke <kenn...@whitecape.org> wrote: > This rather rudely told the driver the moral equivalent of "Your shader > code changed in an unimaginable way---don't assume anything; recompile!" > > The i965 driver used to rely on this in order to recompile the program > when SamplerUnits changed. It now properly listens to _NEW_PROGRAM and > _NEW_TEXTURE, which this code flags, and does the right thing. > > According to Marek, st/mesa doesn't need nor want a ProgramStringNotify > here. The classic radeon, r200, and nouveau drivers don't use the > SamplerUnits array, so they should be unaffected. > > (Unfortunately I think i915 may still rely on this :( Ian/Eric, can you > confirm or deny that? It doesn't seem to have any of the program > caching, which seems rather horrible...)
Yes, it is horrible. But this patch will break it -- it's relying on i915ProgramStringNotify to trigger p->translated = 0 to do a recompile. Minimally, i915_update_program() could set it to 0 until we do the caching right.
pgpWH0SUKswBb.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev