i965/fs: Emit MOV(1) instructions with force_writemask_all.
authorMatt Turner <mattst88@gmail.com>
Tue, 24 Feb 2015 20:03:37 +0000 (12:03 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 24 Feb 2015 22:08:04 +0000 (14:08 -0800)
Fixes rendering with Dolphin.

Tested-by: Markus Wick <markus@selfnet.de>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp

index 6acd3fef95cd6742b91b5c1e5691f50d462e45ae..7ddb2537a33171351874be9f569e2a85374a64c9 100644 (file)
@@ -270,6 +270,7 @@ fs_visitor::opt_combine_constants()
       struct imm *imm = &table.imm[i];
 
       fs_inst *mov = MOV(reg, fs_reg(imm->val));
+      mov->force_writemask_all = true;
       if (imm->inst) {
          imm->inst->insert_before(imm->block, mov);
       } else {