diff options
author | Gert Wollny <[email protected]> | 2019-01-15 10:32:17 +0100 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2019-04-10 11:09:40 +0200 |
commit | 04e672257c770412dd04011929662ee969e24106 (patch) | |
tree | f5cbba8a9dd50df82c594584adb8787af939e243 /src/gallium/drivers/virgl/virgl_tgsi.c | |
parent | 872519c663ca813b87c8e2cd1c2ee90eb086e17c (diff) |
virgl: Enable passing arrays as input to fragment shaders
This is needed to properly handle interpolateAt* when the input to be
interpolated is passed as array in the original GLSL.
Currently, the the GLSL compiler would lower selecting the correct input so
that the interpolant parameter to interpolateAt* is a temporary, and this
can not be used to create a valid shader on the host side, because here the
parameter must a shader input.
By allowing the passing the created TGSI allows to create proper GLSL.
This is related to the virglrenderer bug
https://gitlab.freedesktop.org/virgl/virglrenderer/issues/74
v2: Squash the two patches handling these flags into another
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_tgsi.c')
0 files changed, 0 insertions, 0 deletions