projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a2e0fa
)
radeon: pad CS to 8 DW
author
Alex Deucher
<alexander.deucher@amd.com>
Fri, 6 Sep 2013 19:58:56 +0000
(15:58 -0400)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 6 Sep 2013 19:58:56 +0000
(15:58 -0400)
Aligns the IB to 8 DWs. The aligns the IB to the
CP fetch size. r6xx also require at least 4 DW
alignment to avoid a hw bug.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
radeon/radeon_cs_gem.c
patch
|
blob
|
history
diff --git
a/radeon/radeon_cs_gem.c
b/radeon/radeon_cs_gem.c
index
b963140
..
b87c6b1
100644
(file)
--- a/
radeon/radeon_cs_gem.c
+++ b/
radeon/radeon_cs_gem.c
@@
-425,6
+425,9
@@
static int cs_gem_emit(struct radeon_cs_int *cs)
unsigned i;
int r;
+ while (cs->cdw & 7)
+ radeon_cs_write_dword((struct radeon_cs *)cs, 0x80000000);
+
#if CS_BOF_DUMP
cs_gem_dump_bof(cs);
#endif