Skip to content

WIP: shader: Only emit parameter swizzles when it is allowed and emit interface block

For glsl < 4.40 the first parameter of interpolateAtSample must not be swizzled. In addition the generic input block must be actually be emmited in the fragment shader and correspond to the declaration in the vertex shader where it is not emitted as array.

Note that the array size within the interface block is not correct. We emit one in both, the fragment shader and the vertex shader, but the actual size should be 2.

Closes: #74 (closed)

Signed-off-by: Gert Wollny gert.wollny@collabora.com

WIP because it also turns out that enabling array inputs breaks tesselation tests, because now
we need to resolve arrays of arrays like in ADD TEMP[5].x, IN[ADDR[1].x][ADDR[0].x+6], -TEMP[2].xxxx

  • Add tests for different inputs
  • Make it possible to use any register in indirect addressing
  • Identify the right input because when arrays are allowed the current approach doesn't work anymore
Edited by Gert Wollny

Merge request reports