summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2014-03-02 00:56:21 +0100
committerChristian König <christian.koenig@amd.com>2014-03-03 10:57:19 +0100
commitc9b76548899cde2e729e3bca015d7e78ec5baad7 (patch)
treee7be2b702803f238bfa5e4406fa9ed8e70f9351f /drivers/gpu/drm/radeon/radeon.h
parent4330441a745ea0f1fd881438a0bbdfedda65f74a (diff)
downloadop-kernel-dev-c9b76548899cde2e729e3bca015d7e78ec5baad7.zip
op-kernel-dev-c9b76548899cde2e729e3bca015d7e78ec5baad7.tar.gz
drm/radeon: validate relocations in the order determined by userspace v3
Userspace should set the first 4 bits of drm_radeon_cs_reloc::flags to a number from 0 to 15. The higher the number, the higher the priority, which means a buffer with a higher number will be validated sooner. The old behavior is preserved: Buffers used for write are prioritized over read-only buffers if the userspace doesn't set the number. v2: add buffers to buckets directly, then concatenate them v3: use a stable sort Signed-off-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 7bb8fd9..efad567 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -483,7 +483,6 @@ struct radeon_bo_list {
struct ttm_validate_buffer tv;
struct radeon_bo *bo;
uint64_t gpu_offset;
- bool written;
unsigned domain;
unsigned alt_domain;
u32 tiling_flags;
OpenPOWER on IntegriCloud