extsrc/mesa/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
/** Emits a dummy fragment shader consisting of magenta for bringup purposes. */
Emits a dummy fragment shader consisting of magenta for bringup purposes.
Emits a dummy fragment shader consisting of magenta for bringup purposes .
void
fs_visitor::emit_dummy_fs()
{
   emit(BRW_OPCODE_MOV, fs_reg(MRF, 2), fs_reg(1.0f));
   emit(BRW_OPCODE_MOV, fs_reg(MRF, 3), fs_reg(0.0f));
   emit(BRW_OPCODE_MOV, fs_reg(MRF, 4), fs_reg(1.0f));
   emit(BRW_OPCODE_MOV, fs_reg(MRF, 5), fs_reg(0.0f));
   fs_inst *write;
   write = emit(FS_OPCODE_FB_WRITE, fs_reg(0), fs_reg(0));
   write->base_mrf = 2;
}
void fs_visitor :: emit_dummy_fs ( ) { emit ( BRW_OPCODE_MOV , fs_reg ( MRF , 2 ) , fs_reg ( 1.0f ) ) ; emit ( BRW_OPCODE_MOV , fs_reg ( MRF , 3 ) , fs_reg ( 0.0f ) ) ; emit ( BRW_OPCODE_MOV , fs_reg ( MRF , 4 ) , fs_reg ( 1.0f ) ) ; emit ( BRW_OPCODE_MOV , fs_reg ( MRF , 5 ) , fs_reg ( 0.0f ) ) ; fs_inst * write ; write = emit ( FS_OPCODE_FB_WRITE , fs_reg ( 0 ) , fs_reg ( 0 ) ) ; write -> base_mrf = 2 ; }
Emits a dummy fragment shader consisting of magenta for bringup purposes.
Emits a dummy fragment shader consisting of magenta for bringup purposes .
/* Everyone's favorite color. */