diff options
author | Eric Anholt <eric@anholt.net> | 2013-10-29 12:46:18 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-10-30 17:51:02 -0700 |
commit | 537f183fe67e0cf9f5737106d914cdabcf5d002e (patch) | |
tree | 84889ab1e52ec7098cd774f79ae6183e0913f651 /src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | |
parent | 44ec2f1751ec4a9f0ba9035f2343ffe5e16e693c (diff) | |
download | external_mesa3d-537f183fe67e0cf9f5737106d914cdabcf5d002e.zip external_mesa3d-537f183fe67e0cf9f5737106d914cdabcf5d002e.tar.gz external_mesa3d-537f183fe67e0cf9f5737106d914cdabcf5d002e.tar.bz2 |
i965/fs: Exit the compile if spilling would overwrite in-use MRFs.
I believe this will never happen in SIMD8 mode, but it could for SIMD16
when we fix it.
v2: Fix off-by-one in my register counting comment (caught by Paul).
Reviewed-by: Paul Berry <stereotype441@gmail.com> (v1)
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_visitor.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 71b4bf9..0e2dfd3 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -2722,6 +2722,8 @@ fs_visitor::fs_visitor(struct brw_context *brw, this->force_uncompressed_stack = 0; this->force_sechalf_stack = 0; + this->spilled_any_registers = false; + memset(&this->param_size, 0, sizeof(this->param_size)); } |