vc4: Restructure texture insts as ALU ops with tex_[strb] as the dst

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 29 November 2016 10:38 UTC

For now we're still just generating MOVs, but this will let us fold into other ops in the future. No difference on shader-db.

d4c20e8 vc4: Restructure texture insts as ALU ops with tex_[strb] as the dst.
src/gallium/drivers/vc4/vc4_opt_algebraic.c | 15 ++--
src/gallium/drivers/vc4/vc4_opt_small_immediates.c | 7 +-
src/gallium/drivers/vc4/vc4_program.c | 34 ++++++---
src/gallium/drivers/vc4/vc4_qir.c | 72 ++++++++++++++++++--
src/gallium/drivers/vc4/vc4_qir.h | 40 +++++------
src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c | 2 +-
src/gallium/drivers/vc4/vc4_qir_schedule.c | 50 +++++++-------
src/gallium/drivers/vc4/vc4_qir_validate.c | 24 +++++++
src/gallium/drivers/vc4/vc4_qpu_emit.c | 39 ++++++-----
9 files changed, 194 insertions(+), 89 deletions(-)

Upstream: cgit.freedesktop.org


  • Share