Mesa (master): i965/fs: Clean up reg_undef args from long ago lack of fs_inst overloads.

Eric Anholt anholt at kemper.freedesktop.org
Thu Mar 24 11:39:58 PDT 2011


Module: Mesa
Branch: master
Commit: 4a101f957714dea2bc956d516d34c5b56ecb2c64
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a101f957714dea2bc956d516d34c5b56ecb2c64

Author: Eric Anholt <eric at anholt.net>
Date:   Sun Mar 13 00:25:36 2011 -0800

i965/fs: Clean up reg_undef args from long ago lack of fs_inst overloads.

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 1651eea..cdc9926 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2078,7 +2078,7 @@ fs_visitor::emit_fb_writes()
       if (this->frag_color)
 	 color.reg_offset -= 4;
 
-      fs_inst *inst = emit(FS_OPCODE_FB_WRITE, reg_undef, reg_undef);
+      fs_inst *inst = emit(FS_OPCODE_FB_WRITE);
       inst->target = target;
       inst->base_mrf = 0;
       inst->mlen = nr;
@@ -2097,7 +2097,7 @@ fs_visitor::emit_fb_writes()
 	 emit(BRW_OPCODE_MOV, fs_reg(MRF, color_mrf + 3), color);
       }
 
-      fs_inst *inst = emit(FS_OPCODE_FB_WRITE, reg_undef, reg_undef);
+      fs_inst *inst = emit(FS_OPCODE_FB_WRITE);
       inst->base_mrf = 0;
       inst->mlen = nr;
       inst->eot = true;



More information about the mesa-commit mailing list