[RFC] Allowing user-space alignment for dumb-buffers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Currently, DRM drivers implementing dumb-buffers apply alignment to the
requested width, passing the resulting pitch back to user-space. The
specifics of the alignment can be various - from CPU/GPU architecture
or bus/interconnect, to no alignment at all.

By using dumb-buffers the CPU reads/writes the data itself - a somewhat
slow task. To maximise performance, user-space may opt for CPU specific
optimisations, be that use SIMD, align data to cache lines or otherwise.

So even when user-space requests width they can optimally use, the DRM
driver is free to effectively invalidate it.

This RFC proposes user space alignment to the dumb-buffer ioctl. Hence
the resulting pitch returned by the DRM driver will be subject to both
user space and HW/DRM specific requirements.

What do you guys think?

Regards,
Emil
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux