Re: [Mesa-dev] [PATCH] winsys/radeon: add user pointer support

2015-02-11 Thread Marek Olšák
On Wed, Feb 11, 2015 at 9:48 AM, Christian König wrote: > Since you always need to have a fallback anyway in case you got memory the > GPU can't handle (mapped file etc...) you can just call the IOCTL, check the > return value and if it didn't worked go the fallback path. > > Or do you need to kno

Re: [Mesa-dev] [PATCH] winsys/radeon: add user pointer support

2015-02-11 Thread Christian König
Since you always need to have a fallback anyway in case you got memory the GPU can't handle (mapped file etc...) you can just call the IOCTL, check the return value and if it didn't worked go the fallback path. Or do you need to know if it's available or not to make the extension available or

Re: [Mesa-dev] [PATCH] winsys/radeon: add user pointer support

2015-02-10 Thread Marek Olšák
One more thing. How can userspace check if this is supported by the kernel driver? The DRM version should have been bumped probably. Marek On Tue, Feb 10, 2015 at 9:35 AM, Christian König wrote: > Am 10.02.2015 um 03:41 schrieb Alex Deucher: >> >> On Mon, Feb 9, 2015 at 7:29 PM, Marek Olšák wro

Re: [Mesa-dev] [PATCH] winsys/radeon: add user pointer support

2015-02-10 Thread Christian König
Am 10.02.2015 um 03:41 schrieb Alex Deucher: On Mon, Feb 9, 2015 at 7:29 PM, Marek Olšák wrote: Hi Christian, What hardware is this supported on? SI and later? Or even r600? r300? Theoretically r300 and newer hardware, however, the kernel currently only allows it on r600 and newer since we ne

Re: [Mesa-dev] [PATCH] winsys/radeon: add user pointer support

2015-02-09 Thread Alex Deucher
On Mon, Feb 9, 2015 at 7:29 PM, Marek Olšák wrote: > Hi Christian, > > What hardware is this supported on? SI and later? Or even r600? r300? Theoretically r300 and newer hardware, however, the kernel currently only allows it on r600 and newer since we never tested it on r300 class hardware. Alex

Re: [Mesa-dev] [PATCH] winsys/radeon: add user pointer support

2015-02-09 Thread Marek Olšák
Hi Christian, What hardware is this supported on? SI and later? Or even r600? r300? Thanks, Marek On Thu, Feb 5, 2015 at 6:34 PM, Christian König wrote: > From: Christian König > > Signed-off-by: Christian König > --- > src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 102 >

[Mesa-dev] [PATCH] winsys/radeon: add user pointer support

2015-02-05 Thread Christian König
From: Christian König Signed-off-by: Christian König --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 102 ++ src/gallium/winsys/radeon/drm/radeon_winsys.h | 11 +++ 2 files changed, 113 insertions(+) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src