summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/radeon
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-09-27 03:10:33 +0200
committerMarek Olšák <[email protected]>2011-09-29 01:10:12 +0200
commit798ebc91ebe383a702faf597ffbf2033dc467f50 (patch)
tree6fb1064f3172ceef4a20b999575c5e701fac8483 /src/gallium/winsys/radeon
parentbfa51dfeac67a7e3383614374c86bdfb5751997a (diff)
winsys/radeon: simplify updating GEM domains for relocations
Diffstat (limited to 'src/gallium/winsys/radeon')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_cs.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
index 2a1de535ea3..5e9851f80f1 100644
--- 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)