[Mesa-dev] [PATCH 1/2] i965/fs: Emit MOV(1) instructions with force_writemask_all.

Matt Turner mattst88 at gmail.com
Tue Feb 24 12:26:41 PST 2015


Fixes rendering with Dolphin.
---
 src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp b/src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp
index 6acd3fe..7ddb253 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp
@@ -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 {
-- 
2.0.5



More information about the mesa-dev mailing list