diff --git a/src/intel/compiler/brw_fs_combine_constants.cpp b/src/intel/compiler/brw_fs_combine_constants.cpp index 329b1fb37e2..f8e22f96173 100644 --- a/src/intel/compiler/brw_fs_combine_constants.cpp +++ b/src/intel/compiler/brw_fs_combine_constants.cpp @@ -1317,8 +1317,6 @@ brw_fs_opt_combine_constants(fs_visitor &s) case SHADER_OPCODE_INT_REMAINDER: case SHADER_OPCODE_POW: if (inst->src[0].file == IMM) { - assert(inst->opcode != SHADER_OPCODE_POW); - add_candidate_immediate(&table, inst, ip, 0, true, false, block, devinfo, const_ctx); } diff --git a/src/intel/compiler/brw_fs_copy_propagation.cpp b/src/intel/compiler/brw_fs_copy_propagation.cpp index db62a269e82..bbb96dc854f 100644 --- a/src/intel/compiler/brw_fs_copy_propagation.cpp +++ b/src/intel/compiler/brw_fs_copy_propagation.cpp @@ -988,18 +988,12 @@ try_constant_propagate(const brw_compiler *compiler, fs_inst *inst, switch (inst->opcode) { case BRW_OPCODE_MOV: case SHADER_OPCODE_LOAD_PAYLOAD: + case SHADER_OPCODE_POW: case FS_OPCODE_PACK: inst->src[arg] = val; progress = true; break; - case SHADER_OPCODE_POW: - if (arg == 1) { - inst->src[arg] = val; - progress = true; - } - break; - case BRW_OPCODE_SUBB: if (arg == 1) { inst->src[arg] = val;