diff options
author | Eric Anholt <[email protected]> | 2014-09-15 12:02:43 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-15 13:12:27 -0700 |
commit | 5638b87d4c72e0ed7bb4544885829f27ae3a91f5 (patch) | |
tree | b8f9429edc7a543035958ba8ea9961bb8a4b76e8 /src/gallium/drivers/vc4/vc4_qir.h | |
parent | 2147dd96813d1faee5c55e84b332355ad05f070a (diff) |
vc4: Dynamically allocate the TGSI-to-qreg arrays.
Fixes buffer overflows in some piglit tests (which are still failing to
register allocate anyway).
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h index fbf56f02a3a..539993f41b4 100644 --- a/src/gallium/drivers/vc4/vc4_qir.h +++ b/src/gallium/drivers/vc4/vc4_qir.h @@ -208,6 +208,11 @@ struct vc4_compile { struct qreg *outputs; struct qreg *uniforms; struct qreg *consts; + uint32_t temps_array_size; + uint32_t inputs_array_size; + uint32_t outputs_array_size; + uint32_t uniforms_array_size; + uint32_t consts_array_size; uint32_t num_consts; struct qreg line_x, point_x, point_y; struct qreg discard; |