Just like the previous patch but for the FS. Signed-off-by: Ben Widawsky <b...@bwidawsk.net> --- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index cd78816..d53449a 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp @@ -805,10 +805,12 @@ fs_visitor::choose_spill_reg(struct ra_graph *g) switch (inst->opcode) { + case BRW_OPCODE_ENDIF: case BRW_OPCODE_DO: loop_scale *= 10; break; + case BRW_OPCODE_IF: case BRW_OPCODE_WHILE: loop_scale /= 10; break; -- 2.4.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev