Mesa (master): radeon: add radeon_cs_write_table to the legacy path
Alex Deucher
agd5f at kemper.freedesktop.org
Sun Aug 23 20:22:43 UTC 2009
Module: Mesa
Branch: master
Commit: 4484ce9c7b196a686a3928f7e29dc8d9b6f3cae3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4484ce9c7b196a686a3928f7e29dc8d9b6f3cae3
Author: Alex Deucher <alexdeucher at gmail.com>
Date: Sun Aug 23 16:22:01 2009 -0400
radeon: add radeon_cs_write_table to the legacy path
---
src/mesa/drivers/dri/radeon/radeon_cs_drm.h | 9 +++++++++
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 ee403d1..ab4eca3 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;
More information about the mesa-commit
mailing list