Mesa (master): i965/fs: Drop the viewport index/ rtai clearing in gen6 fb writes.

Eric Anholt anholt at kemper.freedesktop.org
Wed May 18 21:23:49 UTC 2011


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

Author: Eric Anholt <eric at anholt.net>
Date:   Wed May 11 13:08:03 2011 -0700

i965/fs: Drop the viewport index/rtai clearing in gen6 fb writes.

These fields are documented to be in the payload, and though the FB
write docs say they *aren't* in the payload, for all other fields the
payload and header is structured so that no overwriting is required
except for non-default options.

---

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

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 5232a7f..2157c93 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2330,12 +2330,6 @@ fs_visitor::generate_fb_write(fs_inst *inst)
 		    brw_imm_ud(inst->target));
 	 }
 
-	 /* Clear viewport index, render target array index. */
-	 brw_AND(p, retype(brw_vec1_reg(BRW_MESSAGE_REGISTER_FILE, 0, 0),
-			   BRW_REGISTER_TYPE_UD),
-		 retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_UD),
-		 brw_imm_ud(0xf7ff));
-
 	 implied_header = brw_null_reg();
       } else {
 	 implied_header = retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UW);




More information about the mesa-commit mailing list