https://bugzilla.kernel.org/show_bug.cgi?id=198511

--- Comment #29 from Christian König (christian.koe...@amd.com) ---
For this you need to call the driver IOCTL to create a buffer object directly.

Best is probably you use the Mesa code as and work from that backward, see here
https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
function radeon_create_bo.

drmCommandWriteRead(), struct drm_radeon_gem_create and all the defines you
need are provided by libdrm.

Domain should be RADEON_DOMAIN_GTT in this case, flags can be zero or
RADEON_GEM_GTT_WC.

Size and alignment should be obvious.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to