From e8e5f0a342505a4d10cbcdee03592c96d286b57c Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 24 Jun 2014 12:41:35 -0700 Subject: [PATCH] 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 --- 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 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) { -- 2.30.2