mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 22:20:14 +01:00
i965/fs: Set default access mode to Align1 for all instructions in the generator.
Currently the generator code for most opcodes honours the default access mode (which should typically be Align1 in the scalar back-end), but generate_code() doesn't set it explicitly which means that the access mode from a previous instruction could leak into the following ones if you did something special and weren't careful enough to save and restore the previous access mode. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
3a541d0c0b
commit
117a9a0a64
1 changed files with 1 additions and 0 deletions
|
|
@ -1697,6 +1697,7 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width)
|
|||
}
|
||||
dst = brw_reg_from_fs_reg(p, inst, &inst->dst, devinfo->gen);
|
||||
|
||||
brw_set_default_access_mode(p, BRW_ALIGN_1);
|
||||
brw_set_default_predicate_control(p, inst->predicate);
|
||||
brw_set_default_predicate_inverse(p, inst->predicate_inverse);
|
||||
brw_set_default_flag_reg(p, 0, inst->flag_subreg);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue