From 4484ce9c7b196a686a3928f7e29dc8d9b6f3cae3 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Sun, 23 Aug 2009 16:22:01 -0400 Subject: [PATCH] radeon: add radeon_cs_write_table to the legacy path --- src/mesa/drivers/dri/radeon/radeon_cs_drm.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- 2.30.2