vc4: Skip re-emitting the shader_rec if it's unchanged.
authorEric Anholt <eric@anholt.net>
Tue, 28 Jul 2015 18:00:58 +0000 (11:00 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 29 Jul 2015 03:02:16 +0000 (20:02 -0700)
commit2e04492a142102823dfb8fc8599cfd417b84c97a
treedcf53fe22badf79bf0b203284e71a626a545a438
parentaefec4fa226d06e4b414170739be18dd24d3eed7
vc4: Skip re-emitting the shader_rec if it's unchanged.

It's a bunch of work for us to emit it (and its uniforms), more work for
the kernel to validate it, and additional work for the CLE to read
it. Improves es2gears framerate by about 50%.

Signed-off-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_draw.c
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_resource.c
src/gallium/drivers/vc4/vc4_uniforms.c