diff --git a/src/intel/compiler/brw_fs_generator.cpp b/src/intel/compiler/brw_fs_generator.cpp index b56d8924b4c..9fc335a8641 100644 --- a/src/intel/compiler/brw_fs_generator.cpp +++ b/src/intel/compiler/brw_fs_generator.cpp @@ -1187,8 +1187,6 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width, break; case BRW_OPCODE_IF: - /* Can't have embedded compare (was only allowed on Gfx6). */ - assert(inst->src[0].file == BAD_FILE); brw_IF(p, brw_get_default_exec_size(p)); break; diff --git a/src/intel/compiler/brw_fs_lower_simd_width.cpp b/src/intel/compiler/brw_fs_lower_simd_width.cpp index 26c5cf026bc..23906c9069e 100644 --- a/src/intel/compiler/brw_fs_lower_simd_width.cpp +++ b/src/intel/compiler/brw_fs_lower_simd_width.cpp @@ -268,10 +268,6 @@ brw_fs_get_lowered_simd_width(const fs_visitor *shader, const fs_inst *inst) case BRW_OPCODE_BFI2: return get_fpu_lowered_simd_width(shader, inst); - case BRW_OPCODE_IF: - assert(inst->src[0].file == BAD_FILE || inst->exec_size <= 16); - return inst->exec_size; - case SHADER_OPCODE_RCP: case SHADER_OPCODE_RSQ: case SHADER_OPCODE_SQRT: