<div dir="ltr">The trailing underscore for 

DRM_FOURCC_STANDALONE_

 isn't intentional, right? Should I put all the integer types, or just the ones that are used in that file?<div><br></div><div>Thanks,</div><div>James</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 3, 2020 at 6:52 AM Daniel Vetter <<a href="mailto:daniel@ffwll.ch">daniel@ffwll.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Dec 3, 2020 at 9:18 AM Michel Dänzer <<a href="mailto:michel@daenzer.net" target="_blank">michel@daenzer.net</a>> wrote:<br>
><br>
> On 2020-12-02 8:47 p.m., James Park wrote:<br>
> ><br>
> > If we're trying to cut ties with the drm-uapi folder entirely, the stuff<br>
> > ac_surface.c need includes the AMD_FMT_MOD stuff in drm_fourcc.h,<br>
> > and AMDGPU_TILING_* under amdgpu_drm.h. Is there a better spot for these<br>
> > definitions?<br>
><br>
> The Mesa src/amd/ code should use platform-neutral abstractions for<br>
> these. This wasn't deemed necessary before, because nobody was trying to<br>
> build these drivers for non-UNIX OSes. But now you are.<br>
<br>
I think that's a bit much busy work for not much gain. drm_fourcc.h is<br>
even included as the official source of truth of some khr extensions,<br>
making that header stand-alone and useable cross-platform sounds like<br>
a good idea to me. Something like the below is imo perfectly fine:<br>
<br>
diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h<br>
index ca48ed0e6bc1..0a121b3efb58 100644<br>
--- a/include/uapi/drm/drm_fourcc.h<br>
+++ b/include/uapi/drm/drm_fourcc.h<br>
@@ -24,7 +24,11 @@<br>
#ifndef DRM_FOURCC_H<br>
#define DRM_FOURCC_H<br>
<br>
+#ifndef DRM_FOURCC_STANDALONE_<br>
+/* include the linux uapi types here */<br>
+#else<br>
#include "drm.h"<br>
+#endif<br>
<br>
#if defined(__cplusplus)<br>
extern "C" {<br>
<br>
<br>
Cheers, Daniel<br>
<br>
><br>
><br>
> --<br>
> Earthling Michel Dänzer               |               <a href="https://redhat.com" rel="noreferrer" target="_blank">https://redhat.com</a><br>
> Libre software enthusiast             |             Mesa and X developer<br>
> _______________________________________________<br>
> dri-devel mailing list<br>
> <a href="mailto:dri-devel@lists.freedesktop.org" target="_blank">dri-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/dri-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/dri-devel</a><br>
<br>
<br>
<br>
-- <br>
Daniel Vetter<br>
Software Engineer, Intel Corporation<br>
<a href="http://blog.ffwll.ch" rel="noreferrer" target="_blank">http://blog.ffwll.ch</a><br>
</blockquote></div>