<div dir="ltr">Hi<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 16, 2015 at 3:33 PM, Marek Olšák <span dir="ltr"><<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Jun 16, 2015 at 2:42 PM, Marc-André Lureau<br>
<<a href="mailto:marcandre.lureau@gmail.com">marcandre.lureau@gmail.com</a>> wrote:<br>
> Hi Marek<br>
><br>
> On Mon, Jun 15, 2015 at 10:21 PM, Marek Olšák <<a href="mailto:maraeo@gmail.com">maraeo@gmail.com</a>> wrote:<br>
>><br>
>> The idea of drm_driver.h and the DRM prefix is that it's meant to be<br>
>> Linux-specific, and winsys_handle should be considered an opaque<br>
>> structure by most state trackers. I think VMWare have their own<br>
>> definition of winsys_handle for Windows.<br>
><br>
><br>
> Is this in upstream? I couldn't find it.<br>
<br>
I don't think so.<br></div></div></blockquote><div><br></div><div>If they have downstream patch to mesa, it's unfair to make such guesses to reject a patch. They should speak up and propose an alternative in this case, or simply patch it differently.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
<br>
><br>
>><br>
>><br>
>> The terms like "KMS", "SHARED" (= FLINK), and FD (= DMABUF) are very<br>
>> DRM-specific, so they shouldn't be considered a standard gallium/winsys<br>
>> interface.<br>
><br>
><br>
> Perhaps they could be renamed so other terms, not drm-specific, could be<br>
> introduced?<br>
><br>
> DRM_API_HANDLE_TYPE_SHARED -> WINSYS_HANDLE_TYPE_DRM_FLINK<br>
> DRM_API_HANDLE_TYPE_KMS -> WINSYS_HANDLE_TYPE_DRM_KMS<br>
> DRM_API_HANDLE_TYPE_FD -> WINSYS_HANDLE_TYPE_DRM_DMABUF<br>
><br>
> It was possible to introduce a drisw-specific winsys struct before the gbm<br>
> "kms_swrast" driver, but since then both headers are used simultaneously, so<br>
> a common structure seems necessary.<br>
<br>
It's still Linux-specific though, so DRM_* seems more<br>
appropriate than WINSYS_HANDLE_*.<br></div></div></blockquote><br></div>Ok, but my point is to not make it drm specific, so a shmid handle can be use by drisw.<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">Marc-André Lureau</div>
</div></div></div>