summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorJerome Glisse <glisse@freedesktop.org>2008-11-12 15:56:40 +0100
committerJerome Glisse <glisse@freedesktop.org>2008-11-12 16:57:09 +0100
commita7457915f5775137436f3b16a640eb8bd6424ca6 (patch)
tree1276c211e5a72ace371bd85df0ffefd56f14d55b /linux-core
parent6d59bad8e9cab6170e1af3d67597b6f5f145c33f (diff)
radeon+libdrm-radeon: change relocation informations
Relocation now consist of the following informations (in this order) : handle buffer object handle identifier start_offset start offset of first data of the buffer object used by the cs end_offset end offset of last data of the buffer object used by the cs read_domain read domain (either VRAM, or GTT as GPU is invalid for CS) write_domain write domain (either VRAM, or GTT as GPU is invalid for CS) flags flags used for further optimization (like discard previous buffer content or forget buffer content after cs which can help in avoiding moving content in or out)
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/radeon_gem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/radeon_gem.c b/linux-core/radeon_gem.c
index 2ed9bfc1..b2e1d7fe 100644
--- a/linux-core/radeon_gem.c
+++ b/linux-core/radeon_gem.c
@@ -1213,8 +1213,8 @@ static int radeon_gem_find_reloc(struct drm_radeon_cs_parser *parser,
}
*handle = reloc_chunk->kdata[offset];
- *read_domains = reloc_chunk->kdata[offset + 1];
- *write_domain = reloc_chunk->kdata[offset + 2];
+ *read_domains = reloc_chunk->kdata[offset + 3];
+ *write_domain = reloc_chunk->kdata[offset + 4];
return 0;
}