diff options
author | Matt Turner <[email protected]> | 2014-06-24 12:41:35 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-07-01 08:55:51 -0700 |
commit | e8e5f0a342505a4d10cbcdee03592c96d286b57c (patch) | |
tree | 0c8341e8d9b4264d85d3968e5896cc2d6e3e5b16 /src/mesa/drivers | |
parent | d6bb8bb7ce50dfec83e6be88fc21bb63315d516a (diff) |
i965/fs: Use is_head_sentinel() instead of ->prev == NULL.
Makes it more clear what we're doing and requires less knowledge of
exec_list.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 8d98b0d30ab..263127f2de1 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -2137,7 +2137,7 @@ fs_visitor::compute_to_mrf() */ fs_inst *scan_inst; for (scan_inst = (fs_inst *)inst->prev; - scan_inst->prev != NULL; + !scan_inst->is_head_sentinel(); scan_inst = (fs_inst *)scan_inst->prev) { if (scan_inst->dst.file == GRF && scan_inst->dst.reg == inst->src[0].reg) { |