#define RADEON_CS_H
#include <stdint.h>
+#include <string.h>
#include "drm.h"
#include "radeon_drm.h"
-#include "radeon_bo.h"
struct radeon_cs_reloc {
struct radeon_bo *bo;
}
}
+static inline void radeon_cs_write_qword(struct radeon_cs *cs, uint64_t qword)
+{
+
+ memcpy(cs->packets + cs->cdw, &qword, sizeof(qword));
+ cs->cdw+=2;
+ if (cs->section) {
+ cs->section_cdw+=2;
+ }
+}
#endif