All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Allowing user-space alignment for dumb-buffers
@ 2019-06-14 12:13 Emil Velikov
  0 siblings, 0 replies; only message in thread
From: Emil Velikov @ 2019-06-14 12:13 UTC (permalink / raw)
  To: dri-devel

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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-14 12:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-14 12:13 [RFC] Allowing user-space alignment for dumb-buffers Emil Velikov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.