Re: [PATCH v2] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-08-17 Thread James Park
On Fri, Feb 26, 2021 at 12:08 AM James Park wrote: > > On Thu, Feb 4, 2021 at 1:07 PM Emil Velikov wrote: > > > > Do send a patch, unless someone shouts against it, I'll be happy to > > push it and churn the whole copy to drm/mesa game. > > > > Thanks >

Re: [PATCH v2] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-26 Thread James Park
On Thu, Feb 4, 2021 at 1:07 PM Emil Velikov wrote: > > Do send a patch, unless someone shouts against it, I'll be happy to > push it and churn the whole copy to drm/mesa game. > > Thanks > Emil Hi Emil, Were you still planning on pushing the patch? I sent a v2 on Feb 8. Thanks, James

[PATCH v2] drm: DRM_FOURCC_STANDALONE macro support

2021-02-08 Thread James Park
Use DRM_FOURCC_STANDALONE to include drm_fourcc.h without drm.h. Copy type definitions from drm.h to drm_fourcc.h, and wrap with DRM_BASIC_TYPED_DEFINED to avoid redundant inclusion. This will allow code to avoid unnecessary definitions. Signed-off-by: James Park Acked-by: Simon Ser --- Add

Re: [PATCH] drm: DRM_FOURCC_STANDALONE macro support

2021-02-05 Thread James Park
On Thu, Feb 4, 2021 at 6:55 PM James Park wrote: > > Use DRM_FOURCC_STANDALONE to include drm_fourcc.h without drm.h. > > Copy type definitions from drm.h to drm_fourcc.h, and wrap with > DRM_BASIC_TYPED_DEFINED to avoid redundant inclusion. > > This will allow code

[PATCH] drm: DRM_FOURCC_STANDALONE macro support

2021-02-05 Thread James Park
Use DRM_FOURCC_STANDALONE to include drm_fourcc.h without drm.h. Copy type definitions from drm.h to drm_fourcc.h, and wrap with DRM_BASIC_TYPED_DEFINED to avoid redundant inclusion. This will allow code to avoid unnecessary definitions. Signed-off-by: James Park --- include/uapi/drm/drm.h

Re: [PATCH v2] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-04 Thread James Park
On Thu, Feb 4, 2021 at 1:07 PM Emil Velikov wrote: > > On Thu, 4 Feb 2021 at 18:17, James Park wrote: > > > > On Thu, Feb 4, 2021 at 9:37 AM James Park > > wrote: > > > > > > On Thu, Feb 4, 2021 at 3:37 AM Emil Velikov > > > wrote: > &g

Re: [PATCH v2] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-04 Thread James Park
On Thu, Feb 4, 2021 at 9:37 AM James Park wrote: > > On Thu, Feb 4, 2021 at 3:37 AM Emil Velikov wrote: > > > > Currently, the drm_fourcc.h header depends on drm.h for __u32 and __u64. > > At the same time drm.h pulls a lot of unneeded symbols. > > > > Add ne

Re: [PATCH v2] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-04 Thread James Park
gt; > v2: > - Add corner-case handling, based on popular demand. > > Cc: James Park > Cc: Pekka Paalanen > Cc: Simon Ser > Signed-off-by: Emil Velikov > --- > include/uapi/drm/drm.h| 10 ++ > include/uapi/drm/drm_fourcc.h | 29 +

Re: [PATCH] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-04 Thread James Park
On Wed, Feb 3, 2021 at 8:24 PM James Park wrote: > > Apologies for anything I've said so far that has been harsh. I'd like > this discussion to be civil. > > I'm not sure if Simon is still on board with a patch given his thumbs > up to Erik's comment on the Mesa merge request

Re: [PATCH] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-04 Thread James Park
Apologies for anything I've said so far that has been harsh. I'd like this discussion to be civil. I'm not sure if Simon is still on board with a patch given his thumbs up to Erik's comment on the Mesa merge request (which I responded to), but I would also like to know why adding another header

Re: [PATCH] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-03 Thread James Park
symbols. > > When used on linux - this is a trivial but only when building in strict c99 > mode. One is welcome to ignore the warning, silence it or use c11. If neither > of the three is an option, then do _not_ set the new guard. > > Cc: James Park > Cc: Pekka Paalanen

Re: [PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2021-02-03 Thread James Park
appreciate the feedback though. - James On Tue, Feb 2, 2021 at 9:28 AM Emil Velikov wrote: > Hi James, > > On Tue, 2 Feb 2021 at 08:27, James Park > wrote: > > > > Hello, > > > > Is there something I can do to help move this patch along? > > > > Tha

Re: [PATCH] drm/fourcc: introduce DRM_FOURCC_STANDALONE guard

2021-02-03 Thread James Park
On Tue, Feb 2, 2021 at 4:57 PM Emil Velikov wrote: > On Tue, 2 Feb 2021 at 23:25, James Park > wrote: > > > > On Tue, Feb 2, 2021 at 2:47 PM Emil Velikov > wrote: > > > > > > Currently, the drm_fourcc.h header depends on drm.h for __u32 and > __u64

Re: [PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2021-02-02 Thread James Park
Hello, Is there something I can do to help move this patch along? Thanks, James Park On Thu, Dec 10, 2020 at 1:13 AM James Park wrote: > Create drm_basic_types.h to define types previously defined by drm.h. > > Use DRM_FOURCC_STANDALONE to include drm_fourcc.h with

[PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-10 Thread James Park
Create drm_basic_types.h to define types previously defined by drm.h. Use DRM_FOURCC_STANDALONE to include drm_fourcc.h without drm.h. This will allow Mesa to port code to Windows more easily. Signed-off-by: James Park Acked-by: Simon Ser Reviewed-by: Pekka Paalanen --- include/uapi/drm

Re: [PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-10 Thread James Park
Create drm_basic_types.h to define types previously defined by drm.h. Use DRM_FOURCC_STANDALONE to include drm_fourcc.h without drm.h. This will allow Mesa to port code to Windows more easily. Signed-off-by: James Park Acked-by: Simon Ser Reviewed-by: Pekka Paalanen James Park (1): drm

[PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-10 Thread James Park
Create drm_basic_types.h to define types previously defined by drm.h. Use DRM_FOURCC_STANDALONE to include drm_fourcc.h without drm.h. This will allow Mesa to port code to Windows more easily. Signed-off-by: James Park Acked-by: Simon Ser --- include/uapi/drm/drm.h | 12

Re: [PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-10 Thread James Park
Create drm_basic_types.h to define types previously defined by drm.h. Use DRM_FOURCC_STANDALONE to include drm_fourcc.h without drm.h. This will allow Mesa to port code to Windows more easily. Signed-off-by: James Park Acked-by: Simon Ser James Park (1): drm: drm_basic_types.h

Re: [PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-09 Thread James Park
This was the message from kernel test robot. >> usr/include/linux/kfd_ioctl.h:37: found __[us]{8,16,32,64} type without #include On Tue, Dec 8, 2020 at 4:31 AM Simon Ser wrote: > May I ask what exactly fails when you drop #include > from drm.h? >

Re: [PATCH] drm: Fix drm.h uapi header for Windows

2020-12-08 Thread James Park
n Mon, 07 Dec 2020 10:53:49 + > Simon Ser wrote: > > > On Monday, December 7th, 2020 at 11:49 AM, James Park < > james.p...@lagfreegames.com> wrote: > > > > > That would work, but that's kind of an annoying requirement. I would > > > prefer the

Re: [PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-08 Thread James Park
Create drm_basic_types.h to define types previously defined by drm.h. Use DRM_FOURCC_STANDALONE to include drm_fourcc.h without drm.h. This will allow Mesa to port code to Windows more easily. Signed-off-by: James Park James Park (1): drm: drm_basic_types.h, DRM_FOURCC_STANDALONE include

[PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-08 Thread James Park
Create drm_basic_types.h to define types previously defined by drm.h. Use DRM_FOURCC_STANDALONE to include drm_fourcc.h without drm.h. This will allow Mesa to port code to Windows more easily. Signed-off-by: James Park --- include/uapi/drm/drm.h | 12 ++--- include/uapi/drm

Re: [PATCH] drm: Fix drm.h uapi header for Windows

2020-12-08 Thread James Park
gt; On Monday, December 7th, 2020 at 11:49 AM, James Park < > james.p...@lagfreegames.com> wrote: > > > That would work, but that's kind of an annoying requirement. I would > > prefer the header to be self-sufficient. > > I don't want to make it more confusing than b

Re: [PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-08 Thread James Park
Ser wrote: > On Monday, December 7th, 2020 at 10:55 AM, James Park < > james.p...@lagfreegames.com> wrote: > > > I'd noticed the #if could be combined, but they weren't in drm,h when > > they could have been, so I didn't want to depart from the existing > > pattern.

Re: [PATCH] drm: Fix drm.h uapi header for Windows

2020-12-08 Thread James Park
with the other DRM_FOURCC_STANDALONE solution that pulls the basic types into a common header. Thanks, James On Mon, Dec 7, 2020 at 1:49 AM Simon Ser wrote: > On Monday, December 7th, 2020 at 9:57 AM, James Park < > james.p...@lagfreegames.com> wrote: > > > I could adjust t

Re: [PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-08 Thread James Park
robust to Windows, I don't think we want to imply compatibility that isn't there. Thanks, James On Mon, Dec 7, 2020 at 1:45 AM Simon Ser wrote: > On Sunday, December 6th, 2020 at 1:39 AM, James Park < > jpar...@lagfreegames.com> wrote: > > > Create drm_basic_types.h to

Re: [PATCH] drm: Fix drm.h uapi header for Windows

2020-12-08 Thread James Park
7, 2020 at 12:51 AM Pekka Paalanen wrote: > On Fri, 4 Dec 2020 11:07:41 -0800 > James Park wrote: > > > I could adjust the block to look like this: > > > > #ifdef DRM_FOURCC_STANDALONE > > #if defined(__linux__) > > #include > > #else > >

Re: [PATCH] drm: Fix drm.h uapi header for Windows

2020-12-08 Thread James Park
That would work, but that's kind of an annoying requirement. I would prefer the header to be self-sufficient. Thanks, James On Mon, Dec 7, 2020 at 2:47 AM Simon Ser wrote: > On Monday, December 7th, 2020 at 11:44 AM, Pekka Paalanen < > ppaala...@gmail.com> wrote: > > > But then, the code in

[PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-07 Thread James Park
Create drm_basic_types.h to define types previously defined by drm.h. Use DRM_FOURCC_STANDALONE to include drm_fourcc.h, replacing drm.h dependency with drm_basic_types.h. This will allow Mesa to port code to Windows more easily. Signed-off-by: James Park --- include/uapi/drm/drm.h

[PATCH] drm: drm_basic_types.h, DRM_FOURCC_STANDALONE

2020-12-07 Thread James Park
Create drm_basic_types.h to define types previously defined by drm.h. Use DRM_FOURCC_STANDALONE to include drm_fourcc.h, replacing drm.h dependency with drm_basic_types.h. This will allow Mesa to port code to Windows more easily. Signed-off-by: James Park James Park (1): drm

Re: [PATCH] drm: Fix drm.h uapi header for Windows

2020-12-07 Thread James Park
; > > On Thu, 3 Dec 2020 21:45:14 +0100 > > Daniel Vetter wrote: > > > > > On Thu, Dec 3, 2020 at 7:55 PM James Park > wrote: > > > > > > > > The trailing underscore for DRM_FOURCC_STANDALONE_ isn't > > > > intentional, right?

Re: [PATCH] drm: Allow drm_fourcc.h without including drm.h

2020-12-07 Thread James Park
ec 4, 2020 at 1:47 AM James Park wrote: > The typedefs might also conflict on Linux if DRM_FOURCC_STANDALONE is > enabled with whatever LInux declared __u32/__u64 as, but I think the > implication is that once DRM_FOURCC_STANDALONE has been declared, that's > kind of a promise not to

Re: [PATCH] drm: Allow drm_fourcc.h without including drm.h

2020-12-07 Thread James Park
to it if someone has a problem where they want to define DRM_FOURCC_STANDALONE, but also can't avoid including drm.h for some reason. On Fri, Dec 4, 2020 at 12:53 AM Simon Ser wrote: > On Friday, December 4, 2020 5:53 AM, James Park > wrote: > > > +#ifdef DRM_FOURCC_STANDALON

[PATCH] drm: Allow drm_fourcc.h without including drm.h

2020-12-04 Thread James Park
Add DRM_FOURCC_STANDALONE guard to skip drm.h dependency. This will allow Mesa to port code to Windows more easily. Signed-off-by: James Park --- include/uapi/drm/drm_fourcc.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm

[PATCH] drm: Allow drm_fourcc.h without including drm.h

2020-12-04 Thread James Park
Add DRM_FOURCC_STANDALONE guard to skip drm.h dependency. This will allow Mesa to port code to Windows more easily. Signed-off-by: James Park James Park (1): drm: Allow drm_fourcc.h without including drm.h include/uapi/drm/drm_fourcc.h | 6 ++ 1 file changed, 6 insertions(+) -- 2.7.4

Re: [PATCH] drm: Fix drm.h uapi header for Windows

2020-12-04 Thread James Park
ote: > > > > On 2020-12-02 8:47 p.m., James Park wrote: > > > > > > If we're trying to cut ties with the drm-uapi folder entirely, the > stuff > > > ac_surface.c need includes the AMD_FMT_MOD stuff in drm_fourcc.h, > > > and AMDGPU_TILING_* under amdgpu_drm.h

Re: [PATCH] drm: Fix drm.h uapi header for Windows

2020-12-03 Thread James Park
doesn't change very much. It might be easier to read here: https://github.com/jpark37/linux/commit/648e9281824ddc943c3ea6b34d6d6c154717a0a3 Thanks, James On Wed, Dec 2, 2020 at 2:26 PM Daniel Vetter wrote: > On Wed, Dec 2, 2020 at 8:48 PM James Park > wrote: > > > > I can avo

[PATCH] drm: Fix drm.h uapi header for Windows

2020-12-03 Thread James Park
This will allow Mesa to port code to Windows more easily. Hide BSD header and drm_handle_t behind _WIN32 check. Change __volatile__ to volatile, which is standard. Signed-off-by: James Park --- include/uapi/drm/drm.h | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff

Re: [PATCH] drm: Fix drm.h uapi header for Windows

2020-12-03 Thread James Park
or these definitions? Thanks, James On Wed, Dec 2, 2020 at 10:06 AM Michel Dänzer wrote: > On 2020-12-02 1:46 p.m., Daniel Vetter wrote: > > On Wed, Dec 2, 2020 at 12:43 PM Michel Dänzer > wrote: > >> > >> On 2020-12-01 11:01 a.m., James Park wrote: > >>

[PATCH] drm: Fix drm.h uapi header for Windows

2020-12-03 Thread James Park
-by: James Park James Park (1): drm: Fix drm.h uapi header for Windows include/uapi/drm/drm.h | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) -- 2.7.4 ___ dri-devel mailing list dri-devel@lists.freedesktop.org https

[PATCH] drm: Fix drm.h uapi header for Windows

2020-12-02 Thread James Park
This will allow Mesa to port code to Windows more easily. Hide BSD header and drm_handle_t behind _WIN32 check. Change __volatile__ to volatile, which is standard. --- include/uapi/drm/drm.h | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/uapi/drm/drm.h

drm: Fix drm.h uapi header for Windows

2020-12-02 Thread James Park
Attempting to submit patch in response to https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6162#note_712454 This will allow Mesa to port code to Windows more easily. Hide BSD header and drm_handle_t behind _WIN32 check. Change __volatile__ to volatile, which is standard. James Park