diff options
author | Brian Paul <[email protected]> | 2011-11-21 14:53:46 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-02-23 07:49:06 -0700 |
commit | 4516fcc57f8f45fc0e2e4d8681fd5d74e4f31d7d (patch) | |
tree | 6b90d2623bfcfda397b3a6744f90a2b128ff015e /configs | |
parent | f12f67c00a5a75ec58bef14f3cecda6c4c685727 (diff) |
svga: move temp register index assertions
The assertion recently added in dst_register() was invalid because that
function is also (suprisingly) used to declare constant registers.
Move the assertion to the callers where we're really creating temp
registers and add some code to prevent emitting invalid temp register
indexes for release builds.
Also, update the comment for get_temp(). It didn't return -1 if it
ran out of registers and none of the callers checked for that.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'configs')
0 files changed, 0 insertions, 0 deletions