[Mesa-dev] [PATCH 12/16] i965/fs: Use is_head_sentinel() instead of ->prev == NULL.
Matt Turner
mattst88 at gmail.com
Wed Jun 25 11:51:13 PDT 2014
Makes it more clear what we're doing and requires less knowledge of
exec_list.
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 185a1f6..3dd5c0e 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2120,7 +2120,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) {
--
1.8.3.2
More information about the mesa-dev
mailing list