mesa: Use a new, more specific hook for shader uniform changes.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 22 Aug 2012 07:43:14 +0000 (00:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 25 Aug 2012 19:01:10 +0000 (12:01 -0700)
commit174d44a9c4d39a030fe3528acf07f9ac9aa617a1
tree44d76d138c87c4a9f65b4c5b1519c4a6d78d3729
parent85e8e9e000732908b259a7e2cbc1724a1be2d447
mesa: Use a new, more specific hook for shader uniform changes.

Gallium drivers and i965 don't require special notification when
sampler uniforms change.  They simply see the _NEW_TEXTURE and adjust
their indirection tables.  These drivers don't want ProgramStringNotify:
it simply causes pointless recompiles.

Unfortunately, i915 still requires shader recompiles and needs
ProgramStringNotify.  Rather than trying to fix that, simply change the
hook to a new, more specific one: ShaderUniformChange.  On i915, this
translates to ProgramStringNotify; others simply ignore it.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i915/i915_fragprog.c
src/mesa/main/dd.h
src/mesa/main/ff_fragment_shader.cpp
src/mesa/main/uniform_query.cpp