From: Alex Deucher Date: Sun, 23 Aug 2009 20:22:01 +0000 (-0400) Subject: radeon: add radeon_cs_write_table to the legacy path X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4484ce9c7b196a686a3928f7e29dc8d9b6f3cae3;p=mesa.git radeon: add radeon_cs_write_table to the legacy path --- 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;