diff options
author | Glenn Kennard <[email protected]> | 2015-08-27 19:04:15 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-08-31 13:16:22 +0100 |
commit | 08c41221d7102106d0b70a6399e2270919458077 (patch) | |
tree | 92065eae9cfcd18e4def34306929b757ce32e36b /src/gallium | |
parent | 896ef5cb95557fbf68c75600d2bcbb01f8933b98 (diff) |
r600g/sb: Handle undef in read port tracker
e8e443 missed adding check for undef values also in
unreserve function, leading to an assert triggering.
Signed-off-by: Glenn Kennard <[email protected]>
Cc: <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
(cherry picked from commit 36f1999a87258603b6720d55e6020d5d24c215c9)
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_sched.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_sched.cpp b/src/gallium/drivers/r600/sb/sb_sched.cpp index 62680788c5e..c98b8fff764 100644 --- a/src/gallium/drivers/r600/sb/sb_sched.cpp +++ b/src/gallium/drivers/r600/sb/sb_sched.cpp @@ -236,7 +236,7 @@ void rp_gpr_tracker::unreserve(alu_node* n) { for (i = 0; i < nsrc; ++i) { value *v = n->src[i]; - if (v->is_readonly()) + if (v->is_readonly() || v->is_undef()) continue; if (i == 1 && opt) continue; |