util: Add util functionality for GL4.1 support

Graphics / Mesa 3D Graphics Library / Mesa - Neha Bhende [vmware.com] - 5 June 2020 06:36 EDT

This patch adds the following tgsi utilities

- tgsi_dynamic_indexing: This utility flattens out the dyanamic indexing of constant buffers
- tgsi_vpos: This utility writes zeros to position at index 0 in vertex shader. This utility can be used if there is no shader output in vertex shader
- util_make_tess_ctrl_passthrough_shader: This adds passthough tessellation control shader. Input of passthrough tess ctrl shader is output of vertex shader and output is input of tessellation eval shader. If program has tessellation eval shader but no tessellation control shader, this utility can be used to create passthrough tessellation control shader.

48a7456f4df util: Add util functionality for GL4.1 support
src/gallium/auxiliary/meson.build | 2 +
src/gallium/auxiliary/tgsi/tgsi_dynamic_indexing.c | 361 +++++++++++++++++++++
src/gallium/auxiliary/tgsi/tgsi_dynamic_indexing.h | 38 +++
src/gallium/auxiliary/tgsi/tgsi_transform.h | 18 +
src/gallium/auxiliary/tgsi/tgsi_vpos.c | 109 +++++++
src/gallium/auxiliary/tgsi/tgsi_vpos.h | 35 ++
src/gallium/auxiliary/util/u_simple_shaders.c | 108 ++++++
src/gallium/auxiliary/util/u_simple_shaders.h | 9 +
8 files changed, 680 insertions(+)

Upstream: cgit.freedesktop.org


  • Share