diff --git a/src/intel/compiler/brw_opt_cse.cpp b/src/intel/compiler/brw_opt_cse.cpp index a2825ec8023..4508da2b023 100644 --- a/src/intel/compiler/brw_opt_cse.cpp +++ b/src/intel/compiler/brw_opt_cse.cpp @@ -121,6 +121,8 @@ is_expression(const fs_visitor *v, const fs_inst *const inst) case SHADER_OPCODE_COS: case SHADER_OPCODE_LOAD_SUBGROUP_INVOCATION: return true; + case SHADER_OPCODE_MEMORY_LOAD_LOGICAL: + return inst->src[MEMORY_LOGICAL_MODE].ud == MEMORY_MODE_CONSTANT; case SHADER_OPCODE_LOAD_PAYLOAD: return !is_coalescing_payload(v->devinfo, v->alloc, inst); default: