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%.
2e04492 vc4: Skip re-emitting the shader_rec if it's unchanged.
src/gallium/drivers/vc4/vc4_context.h | 16 ++++-
src/gallium/drivers/vc4/vc4_draw.c | 112 ++++++++++++++++++++------------
src/gallium/drivers/vc4/vc4_program.c | 17 ++++-
src/gallium/drivers/vc4/vc4_resource.c | 8 +++
src/gallium/drivers/vc4/vc4_uniforms.c | 48 ++++++++++++++
5 files changed, 158 insertions(+), 43 deletions(-)
Upstream: cgit.freedesktop.org