vc4: Rewrite the kernel ABI to support texture uniform relocation.
authorEric Anholt <eric@anholt.net>
Mon, 21 Jul 2014 18:27:35 +0000 (11:27 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 11 Aug 2014 21:45:28 +0000 (14:45 -0700)
commita8f2bf0f51222a96a49dfb3d6f9b36d3e54d08cd
tree5f7ab98c9ba5a69d761b253560908ac9c2358a81
parent6a5ece12aac0f079dff3aaf00b2ec5c420b9b1f8
vc4: Rewrite the kernel ABI to support texture uniform relocation.

This required building a shader parser that would walk the program to find
where the texturing-related uniforms are in the uniforms stream.

Note that as of this commit, a new kernel is required for rendering on
actual VC4 hardware (currently that commit is named "drm/vc4: Introduce
shader validation and better command stream validation.", but is likely to
be squashed as part of an eventual merge of the kernel driver).
src/gallium/drivers/vc4/Makefile.sources
src/gallium/drivers/vc4/vc4_context.c
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_draw.c
src/gallium/drivers/vc4/vc4_drm.h
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_simulator.c
src/gallium/drivers/vc4/vc4_simulator_validate.c
src/gallium/drivers/vc4/vc4_simulator_validate.h
src/gallium/drivers/vc4/vc4_simulator_validate_shaders.c [new file with mode: 0644]