radeon/llvm: Dynamically allocate branch/loop stack arrays
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 28 Oct 2014 02:28:29 +0000 (11:28 +0900)
committerMichel Dänzer <michel@daenzer.net>
Wed, 29 Oct 2014 10:01:25 +0000 (19:01 +0900)
commit402ab50bedf9fba7654e63a6f2e808714714284d
treed7e0802f7fc7ac7eee9d8f8d840bacde9d49de64
parent0d5f4960a468947f9862bf5de2a71fce63b50cf7
radeon/llvm: Dynamically allocate branch/loop stack arrays

This prevents us from silently overflowing the stack arrays, and allows
arbitrary stack depths.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85454

Cc: mesa-stable@lists.freedesktop.org
Reported-and-Tested-by: Nick Sarnie <commendsarnex@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/radeon_llvm.h
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c