diff --git a/src/nouveau/mme/mme_builder.h b/src/nouveau/mme/mme_builder.h index 639654201ce..842fe4e0289 100644 --- a/src/nouveau/mme/mme_builder.h +++ b/src/nouveau/mme/mme_builder.h @@ -464,6 +464,14 @@ mme_load(struct mme_builder *b) return dst; } +static inline struct mme_value64 +mme_load_addr64(struct mme_builder *b) +{ + struct mme_value hi = mme_load(b); + struct mme_value lo = mme_load(b); + return mme_value64(lo, hi); +} + static inline void mme_mthd_arr(struct mme_builder *b, uint16_t mthd, struct mme_value index) @@ -484,6 +492,13 @@ mme_emit(struct mme_builder *b, mme_tu104_emit(b, data); } +static inline void +mme_emit_addr64(struct mme_builder *b, struct mme_value64 addr) +{ + mme_tu104_emit(b, addr.hi); + mme_tu104_emit(b, addr.lo); +} + static inline void mme_start_loop(struct mme_builder *b, struct mme_value count) {