projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
becb50f
)
radeon: add radeon_cs_write_table to the legacy path
author
Alex Deucher
<alexdeucher@gmail.com>
Sun, 23 Aug 2009 20:22:01 +0000
(16:22 -0400)
committer
Alex Deucher
<alexdeucher@gmail.com>
Sun, 23 Aug 2009 20:22:01 +0000
(16:22 -0400)
src/mesa/drivers/dri/radeon/radeon_cs_drm.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_cs_drm.h
b/src/mesa/drivers/dri/radeon/radeon_cs_drm.h
index ee403d173cc5e4cb912b3b1bdd1a27f6c1e8af8f..ab4eca31a3c56ee637b06efac684d8b0f0f428c6 100644
(file)
--- 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;