diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-08-23 16:22:01 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-08-23 16:22:01 -0400 |
commit | 4484ce9c7b196a686a3928f7e29dc8d9b6f3cae3 (patch) | |
tree | 4b530c7da3035a9af785337752cc12b746794561 | |
parent | becb50f84dc94f643dc480d6a2256518f1a5a854 (diff) |
radeon: add radeon_cs_write_table to the legacy path
-rw-r--r-- | 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 ee403d173c..ab4eca31a3 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; |