freedreno: don't patch and re-emit same shader as much
authorRob Clark <robclark@freedesktop.org>
Thu, 25 Apr 2013 15:17:02 +0000 (11:17 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 25 Apr 2013 19:10:56 +0000 (15:10 -0400)
commitf706d4d340f0778de23062ef13c54b07bfac7967
tree15599da1cd1a0ce00b310992faebbdf4547967e3
parent578987ce1c17d17cfa538eb70d07a751fda55eb1
freedreno: don't patch and re-emit same shader as much

New textures or vertex buffers don't always require patching and
re-emitting the shaders.  So do a better job of figuring out when we
actually have to patch the shader.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/drivers/freedreno/freedreno_program.c
src/gallium/drivers/freedreno/freedreno_state.c
src/gallium/drivers/freedreno/freedreno_texture.c
src/gallium/drivers/freedreno/freedreno_vbo.c