[Mesa-dev] [PATCHv2 6/9] gallium: rename DRM_API_HANDLE_TYPE* WINSYS_HANDLE_TYPE*
Marc-André Lureau
marcandre.lureau at gmail.com
Tue Jun 16 05:44:33 PDT 2015
Hi Marek
On Mon, Jun 15, 2015 at 10:21 PM, Marek Olšák <maraeo at gmail.com> wrote:
> The idea of drm_driver.h and the DRM prefix is that it's meant to be
> Linux-specific, and winsys_handle should be considered an opaque
> structure by most state trackers. I think VMWare have their own
> definition of winsys_handle for Windows.
>
Is this in upstream? I couldn't find it.
>
> The terms like "KMS", "SHARED" (= FLINK), and FD (= DMABUF) are very
> DRM-specific, so they shouldn't be considered a standard gallium/winsys
> interface.
>
Perhaps they could be renamed so other terms, not drm-specific, could be
introduced?
DRM_API_HANDLE_TYPE_SHARED -> WINSYS_HANDLE_TYPE_DRM_FLINK
DRM_API_HANDLE_TYPE_KMS -> WINSYS_HANDLE_TYPE_DRM_KMS
DRM_API_HANDLE_TYPE_FD -> WINSYS_HANDLE_TYPE_DRM_DMABUF
It was possible to introduce a drisw-specific winsys struct before the gbm
"kms_swrast" driver, but since then both headers are used simultaneously,
so a common structure seems necessary.
thanks
--
Marc-André Lureau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150616/f3f0e54f/attachment.html>
More information about the mesa-dev
mailing list