[Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-10 Thread Michel Dänzer
On 10.09.2014 01:28, Alex Deucher wrote: > On Mon, Sep 8, 2014 at 9:15 PM, Michel D?nzer wrote: >> On 09.09.2014 09:47, Michel D?nzer wrote: >>> On 09.09.2014 02:36, Alex Deucher wrote: Updated version with comments integrated. >>> >>> [...] >>> @@ -314,10 +314,12 @@ int radeon_bo_p

[Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-10 Thread Alex Deucher
On Wed, Sep 10, 2014 at 12:03 AM, Michel D?nzer wrote: > On 10.09.2014 01:28, Alex Deucher wrote: >> >> On Mon, Sep 8, 2014 at 9:15 PM, Michel D?nzer wrote: >>> >>> On 09.09.2014 09:47, Michel D?nzer wrote: On 09.09.2014 02:36, Alex Deucher wrote: > > > Updated version with

[Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-09 Thread Alex Deucher
On Mon, Sep 8, 2014 at 9:15 PM, Michel D?nzer wrote: > On 09.09.2014 09:47, Michel D?nzer wrote: >> On 09.09.2014 02:36, Alex Deucher wrote: >>> >>> Updated version with comments integrated. >> >> [...] >> >>> @@ -314,10 +314,12 @@ int radeon_bo_pin_restricted(struct radeon_bo >>> *bo, u32 domain,

[Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-09 Thread Michel Dänzer
On 09.09.2014 09:47, Michel D?nzer wrote: > On 09.09.2014 02:36, Alex Deucher wrote: >> >> Updated version with comments integrated. > > [...] > >> @@ -314,10 +314,12 @@ int radeon_bo_pin_restricted(struct radeon_bo >> *bo, u32 domain, u64 max_offset, >> unsigned lpfn = 0; >> >>

[Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-09 Thread Michel Dänzer
On 09.09.2014 02:36, Alex Deucher wrote: > > Updated version with comments integrated. [...] > @@ -314,10 +314,12 @@ int radeon_bo_pin_restricted(struct radeon_bo *bo, u32 > domain, u64 max_offset, > unsigned lpfn = 0; > > /* force to pin into visible video ram */ > -

[Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-08 Thread Alex Deucher
On Thu, Aug 28, 2014 at 9:46 PM, Michel D?nzer wrote: > On 29.08.2014 00:01, Alex Deucher wrote: >> On Thu, Aug 28, 2014 at 4:57 AM, Christian K?nig >> wrote: >>> Am 28.08.2014 um 08:56 schrieb Michel D?nzer: >>> From: Michel D?nzer This flag is a hint that userspace expects the B

[Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-08-29 Thread Michel Dänzer
On 29.08.2014 00:01, Alex Deucher wrote: > On Thu, Aug 28, 2014 at 4:57 AM, Christian K?nig > wrote: >> Am 28.08.2014 um 08:56 schrieb Michel D?nzer: >> >>> From: Michel D?nzer >>> >>> This flag is a hint that userspace expects the BO to be accessed by the >>> CPU. We can use that hint to prevent

[PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-08-28 Thread Michel Dänzer
From: Michel D?nzer This flag is a hint that userspace expects the BO to be accessed by the CPU. We can use that hint to prevent such BOs from ever being stored in the CPU inaccessible part of VRAM. Signed-off-by: Michel D?nzer --- drivers/gpu/drm/radeon/radeon_object.c | 11 +-- inclu

[Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-08-28 Thread Alex Deucher
On Thu, Aug 28, 2014 at 4:57 AM, Christian K?nig wrote: > Am 28.08.2014 um 08:56 schrieb Michel D?nzer: > >> From: Michel D?nzer >> >> This flag is a hint that userspace expects the BO to be accessed by the >> CPU. We can use that hint to prevent such BOs from ever being stored in >> the CPU inac

[Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-08-28 Thread Christian König
Am 28.08.2014 um 08:56 schrieb Michel D?nzer: > From: Michel D?nzer > > This flag is a hint that userspace expects the BO to be accessed by the > CPU. We can use that hint to prevent such BOs from ever being stored in > the CPU inaccessible part of VRAM. > > Signed-off-by: Michel D?nzer This pat