diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 85d430cedf..9fe34bf6a4 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -5669,7 +5669,22 @@ fs_visitor::run_fs(bool do_rep_send) /* Generate FS IR for main(). (the visitor only descends into * functions called "main"). */ - emit_nir_code(); + //emit_nir_code(); + + fs_reg ten = retype(brw_vec8_grf(10, 0), BRW_REGISTER_TYPE_DF); + fs_reg eleven = retype(brw_vec8_grf(11, 0), BRW_REGISTER_TYPE_DF); + bld.MOV(ten, brw_imm_df(-1)); + fs_reg one = bld.vgrf(BRW_REGISTER_TYPE_DF, 1); + bld.MOV(one, brw_imm_df(1)); + bld.ADD(eleven, ten, one); + + fs_reg dest = bld.vgrf(BRW_REGISTER_TYPE_F, 4); + bld.MOV(dest, eleven); + bld.MOV(offset(dest, bld, 1), brw_imm_f(1)); + bld.MOV(offset(dest, bld, 2), brw_imm_f(0)); + bld.MOV(offset(dest, bld, 3), brw_imm_f(1)); + this->outputs[0] = dest; + this->output_components[0] = 4; if (failed) return false; |