Skip to content

lima_draw: fix varying component alignment

Erico Nunes requested to merge enunes/mesa-lima:lima-18.3-varyings into lima-18.3
lima currently doesn't seem to handle fragment shaders with an odd
number of varying components very well, sometimes causing an incorrect
rendering with fragment shaders as simple as:
  gl_FragColor = vec4(color.rgb, 1.0);
This was bisected and apparently it is a regression introduced in commit
376e09b8c2 since lima-18.1, which removed an alignment to the number of
components.
Add that alignment back to fix this varying usage.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>

Merge request reports

Loading