radeon: fixup some issue with fbos and sw fallbacks
[mesa.git] / src / mesa / drivers / dri / radeon / radeon_cs_drm.h
index 7cc75d470049038c98b7ebc70f89c01e4754fa21..984725a6c9d3157074ec1ee9fa513ba0eff2cedc 100644 (file)
@@ -33,9 +33,9 @@
 #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;
@@ -195,4 +195,13 @@ static inline void radeon_cs_write_dword(struct radeon_cs *cs, uint32_t dword)
     }
 }
 
+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