aka. fix a s/||/&&/ typo
Fixes: 74063ee61aadd1371a9b ("intel/mi: Add a new gen_mi_store_if() helper.")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
assert(dst.type == GEN_MI_VALUE_TYPE_MEM64 ||
dst.type == GEN_MI_VALUE_TYPE_MEM32);
- if (src.type != GEN_MI_VALUE_TYPE_REG32 ||
+ if (src.type != GEN_MI_VALUE_TYPE_REG32 &&
src.type != GEN_MI_VALUE_TYPE_REG64) {
struct gen_mi_value tmp = gen_mi_new_gpr(b);
_gen_mi_copy_no_unref(b, tmp, src);