summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2009-08-23 16:22:01 -0400
committerAlex Deucher <[email protected]>2009-08-23 16:22:01 -0400
commit4484ce9c7b196a686a3928f7e29dc8d9b6f3cae3 (patch)
tree4b530c7da3035a9af785337752cc12b746794561 /src
parentbecb50f84dc94f643dc480d6a2256518f1a5a854 (diff)
radeon: add radeon_cs_write_table to the legacy path
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_cs_drm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_cs_drm.h b/src/mesa/drivers/dri/radeon/radeon_cs_drm.h
index ee403d173cc..ab4eca31a3c 100644
--- a/src/mesa/drivers/dri/radeon/radeon_cs_drm.h
+++ b/src/mesa/drivers/dri/radeon/radeon_cs_drm.h
@@ -201,6 +201,15 @@ static inline void radeon_cs_write_qword(struct radeon_cs *cs, uint64_t qword)
}
}
+static inline void radeon_cs_write_table(struct radeon_cs *cs, void *data, uint32_t size)
+{
+ memcpy(cs->packets + cs->cdw, data, size * 4);
+ cs->cdw += size;
+ if (cs->section) {
+ cs->section_cdw += size;
+ }
+}
+
static inline void radeon_cs_space_set_flush(struct radeon_cs *cs, void (*fn)(void *), void *data)
{
cs->space_flush_fn = fn;