From 2c7a703b05a84aff89cd908b2a84e04d1ce8aed8 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 24 Feb 2015 12:03:37 -0800 Subject: [PATCH] i965/fs: Emit MOV(1) instructions with force_writemask_all. Fixes rendering with Dolphin. Tested-by: Markus Wick Reviewed-by: Francisco Jerez --- 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 6acd3fef95c..7ddb2537a33 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.30.2