summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-08-08 12:44:12 -0700
committerFrancisco Jerez <currojerez@riseup.net>2016-08-18 20:04:59 -0700
commit01b321f2420d45e9353c94bcf5d96cae6c2deac2 (patch)
tree82dfc07e31de71793531ec357f6ec5f946ace544 /src/mesa/drivers/dri/i965/brw_fs_generator.cpp
parent27e59ed477b747b7b545553847692fa331055319 (diff)
downloadexternal_mesa3d-01b321f2420d45e9353c94bcf5d96cae6c2deac2.zip
external_mesa3d-01b321f2420d45e9353c94bcf5d96cae6c2deac2.tar.gz
external_mesa3d-01b321f2420d45e9353c94bcf5d96cae6c2deac2.tar.bz2
i965/fs: Drop bogus writemasking disable bit from HALT instructions.
This may have been the reason people ran into problems with non-uniform HALT instructions and ended up using the inefficient ANY16H/ANY8H predicates instead of ANY4H or NORMAL in order to prevent non-uniform discard. The HALT instruction is able to handle non-uniform execution masks just fine. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_generator.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_generator.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index 647950f..22190f8 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -1053,11 +1053,7 @@ fs_generator::generate_discard_jump(fs_inst *inst)
* current block (or the program).
*/
this->discard_halt_patches.push_tail(new(mem_ctx) ip_record(p->nr_insn));
-
- brw_push_insn_state(p);
- brw_set_default_mask_control(p, BRW_MASK_DISABLE);
gen6_HALT(p);
- brw_pop_insn_state(p);
}
void