* to rely on byte scattered in order to write 16-bit elements.
* The byte_scattered_write message needs that every written 16-bit
* type to be aligned 32-bits (stride=2).
- * Additionally, while on Untyped Surface messages the
- * bits of the execution mask are ANDed with the corresponding
- * bits of the Pixel/Sample Mask, that is not the case for byte
- * scattered writes. That is needed to avoid ssbo stores writing
- * on helper invocations. So when that can affect, we load the
- * sample mask, and predicate the send message.
*/
- brw_predicate pred = BRW_PREDICATE_NONE;
-
- if (stage == MESA_SHADER_FRAGMENT) {
- bld.emit(FS_OPCODE_MOV_DISPATCH_TO_FLAGS);
- pred = BRW_PREDICATE_NORMAL;
- }
-
emit_byte_scattered_write(bld, surf_index, offset_reg,
write_src,
1 /* dims */, 1,
bit_size,
- pred);
+ BRW_PREDICATE_NONE);
} else {
assert(num_components * type_size <= 16);
assert((num_components * type_size) % 4 == 0);