diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 6c7e5dc05c3..8812309b723 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -743,7 +743,11 @@ fs_inst::flags_written(const intel_device_info *devinfo) const opcode != BRW_OPCODE_IF && opcode != BRW_OPCODE_WHILE)) { return brw_fs_flag_mask(this, 1); - } else if (opcode == FS_OPCODE_LOAD_LIVE_CHANNELS) { + } else if (opcode == FS_OPCODE_LOAD_LIVE_CHANNELS || + opcode == SHADER_OPCODE_BALLOT || + opcode == SHADER_OPCODE_VOTE_ANY || + opcode == SHADER_OPCODE_VOTE_ALL || + opcode == SHADER_OPCODE_VOTE_EQUAL) { return brw_fs_flag_mask(this, 32); } else { return brw_fs_flag_mask(dst, size_written);