Skip to content

shader: make sure to never exceed the immediate range

Corentin Noël requested to merge tintou/imm-oob into main

Make sure to always use an unsigned integer to compare the length of the immediate array.

Also be consistent with the use of MAX_IMMEDIATE everywhere.

Finally, give the compiler a hint on how likely are we to hit the failing case.

Closes: https://gitlab.freedesktop.org/virgl/virglrenderer/-/issues/470

Edited by Corentin Noël

Merge request reports