projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfa51df
)
winsys/radeon: simplify updating GEM domains for relocations
author
Marek Olšák
<maraeo@gmail.com>
Tue, 27 Sep 2011 01:10:33 +0000
(
03:10
+0200)
committer
Marek Olšák
<maraeo@gmail.com>
Wed, 28 Sep 2011 23:10:12 +0000
(
01:10
+0200)
src/gallium/winsys/radeon/drm/radeon_drm_cs.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
index 2a1de535ea38ffa328a6e8a640301b8e9eb6798f..5e9851f80f12e04bcf22e10d1068a277ec4316d8 100644
(file)
--- a/
src/gallium/winsys/radeon/drm/radeon_drm_cs.c
+++ b/
src/gallium/winsys/radeon/drm/radeon_drm_cs.c
@@
-177,16
+177,8
@@
static INLINE void update_domains(struct drm_radeon_cs_reloc *reloc,
{
*added_domains = (rd | wd) & ~(reloc->read_domains | reloc->write_domain);
- if (reloc->read_domains & wd) {
- reloc->read_domains = rd;
- reloc->write_domain = wd;
- } else if (rd & reloc->write_domain) {
- reloc->read_domains = rd;
- reloc->write_domain |= wd;
- } else {
- reloc->read_domains |= rd;
- reloc->write_domain |= wd;
- }
+ reloc->read_domains |= rd;
+ reloc->write_domain |= wd;
}
int radeon_get_reloc(struct radeon_cs_context *csc, struct radeon_bo *bo)