Skip to content

r300: guard for unsigned underflow when unrolling loops

Pavel Ondračka requested to merge ondracka/mesa:r300_unrolling_fix into staging/22.0

If we by some chance end with more instructions than the maximum amount we can handle, for example from previous branch lowering, we would underflow while calculating the number of unrolling iterations and unroll till OOM.

Fixes OOM in a gnome-shell 42 Signed-off-by: Pavel Ondračka pavel.ondracka@gmail.com

Edited by Pavel Ondračka

Merge request reports