diff options
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_dce_cleanup.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_dce_cleanup.cpp b/src/gallium/drivers/r600/sb/sb_dce_cleanup.cpp index acd6613166f..f879395f67c 100644 --- a/src/gallium/drivers/r600/sb/sb_dce_cleanup.cpp +++ b/src/gallium/drivers/r600/sb/sb_dce_cleanup.cpp @@ -125,6 +125,9 @@ void dce_cleanup::cleanup_dst_vec(vvec& vv) { if (!v) continue; + if (v->gvn_source && v->gvn_source->is_dead()) + v->gvn_source = NULL; + if (v->is_dead()) v = NULL; } |