We're about to start using the f0.1 subregister.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
void
brw_blorp_blit_program::kill_if_outside_dst_rect()
{
- struct brw_reg f0 = brw_flag_reg();
+ struct brw_reg f0 = brw_flag_reg(0, 0);
struct brw_reg g1 = retype(brw_vec1_grf(1, 7), BRW_REGISTER_TYPE_UW);
struct brw_reg null16 = vec16(retype(brw_null_reg(), BRW_REGISTER_TYPE_UW));
if (value != 0xff) {
if (value != p->flag_value) {
brw_push_insn_state(p);
- brw_MOV(p, brw_flag_reg(), brw_imm_uw(value));
+ brw_MOV(p, brw_flag_reg(0, 0), brw_imm_uw(value));
p->flag_value = value;
brw_pop_insn_state(p);
}
}
-static INLINE struct brw_reg brw_flag_reg( void )
+static INLINE struct brw_reg brw_flag_reg(int reg, int subreg)
{
return brw_uw1_reg(BRW_ARCHITECTURE_REGISTER_FILE,
- BRW_ARF_FLAG,
- 0);
+ BRW_ARF_FLAG + reg,
+ subreg);
}
void
fs_generator::generate_discard(fs_inst *inst)
{
- struct brw_reg f0 = brw_flag_reg();
+ struct brw_reg f0 = brw_flag_reg(0, 0);
if (intel->gen >= 6) {
struct brw_reg g1 = retype(brw_vec1_grf(1, 7), BRW_REGISTER_TYPE_UW);
void
fs_generator::generate_mov_dispatch_to_flags()
{
- struct brw_reg f0 = brw_flag_reg();
+ struct brw_reg f0 = brw_flag_reg(0, 0);
struct brw_reg g1 = retype(brw_vec1_grf(1, 7), BRW_REGISTER_TYPE_UW);
assert (intel->gen >= 6);