summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a474fd9)
raw | patch | inline | side by side (parent: a474fd9)
author | Pauli Nieminen <suokkos@gmail.com> | |
Tue, 18 Aug 2009 15:51:38 +0000 (18:51 +0300) | ||
committer | Alex Deucher <alexdeucher@gmail.com> | |
Tue, 18 Aug 2009 18:54:25 +0000 (14:54 -0400) |
Using this call in OUT_BATCH_TABLE reduces radeonEmitState cpu usage from
9% to 5% and emit_vpu goes from 7% to 1.5%. I did use calgrind to profile
gears for cpu hotspots with r500 card.
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
9% to 5% and emit_vpu goes from 7% to 1.5%. I did use calgrind to profile
gears for cpu hotspots with r500 card.
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
libdrm/radeon/radeon_cs.h | patch | blob | history |
index 7efec7e80ebe18c755c2d644326cb5409553cf75..1117a85012b53819c87d70f5553df3dcf07ae2ca 100644 (file)
}
}
+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;