search for: convert_xrgb8888_to_abgr2101010

Displaying 4 results from an estimated 4 matches for "convert_xrgb8888_to_abgr2101010".

2024 Sep 13
1
[PATCH v3 1/2] drm/panic: Add ABGR2101010 support
...rm_panic.c index 74412b7bf936..0a9ecc1380d2 100644 --- a/drivers/gpu/drm/drm_panic.c +++ b/drivers/gpu/drm/drm_panic.c @@ -209,6 +209,14 @@ static u32 convert_xrgb8888_to_argb2101010(u32 pix) return GENMASK(31, 30) /* set alpha bits */ | pix | ((pix >> 8) & 0x00300C03); } +static u32 convert_xrgb8888_to_abgr2101010(u32 pix) +{ + pix = ((pix & 0x00FF0000) >> 14) | + ((pix & 0x0000FF00) << 4) | + ((pix & 0x000000FF) << 22); + return GENMASK(31, 30) /* set alpha bits */ | pix | ((pix >> 8) & 0x00300C03); +} + /* * convert_from_xrgb8888 - convert one pixel fr...
2024 Sep 13
1
[PATCH v3 1/2] drm/panic: Add ABGR2101010 support
...cc1380d2 100644 > --- a/drivers/gpu/drm/drm_panic.c > +++ b/drivers/gpu/drm/drm_panic.c > @@ -209,6 +209,14 @@ static u32 convert_xrgb8888_to_argb2101010(u32 pix) > return GENMASK(31, 30) /* set alpha bits */ | pix | ((pix >> 8) & 0x00300C03); > } > > +static u32 convert_xrgb8888_to_abgr2101010(u32 pix) > +{ > + pix = ((pix & 0x00FF0000) >> 14) | > + ((pix & 0x0000FF00) << 4) | > + ((pix & 0x000000FF) << 22); > + return GENMASK(31, 30) /* set alpha bits */ | pix | ((pix >> 8) & 0x00300C03); > +} Maybe we can move this...
2024 Sep 13
1
[PATCH v3 1/2] drm/panic: Add ABGR2101010 support
...drivers/gpu/drm/drm_panic.c >> +++ b/drivers/gpu/drm/drm_panic.c >> @@ -209,6 +209,14 @@ static u32 convert_xrgb8888_to_argb2101010(u32 pix) >> return GENMASK(31, 30) /* set alpha bits */ | pix | ((pix >> 8) & 0x00300C03); >> } >> >> +static u32 convert_xrgb8888_to_abgr2101010(u32 pix) >> +{ >> + pix = ((pix & 0x00FF0000) >> 14) | >> + ((pix & 0x0000FF00) << 4) | >> + ((pix & 0x000000FF) << 22); >> + return GENMASK(31, 30) /* set alpha bits */ | pix | ((pix >> 8) & 0x00300C03); >> +}...
2024 Sep 13
2
[PATCH v3 0/2] drm/nouveau: Add drm_panic support for nv50+
This series adds basic drm_panic support for nouveau. Patches 1 Add ABGR2101010 support in drm_panic. Patch 2 registers nouveau to drm_panic, and handle tiling. I've tested on a GTX1650 (Turing) and GF 8800 GT (Tesla), while running Gnome/Wayland desktop, and in VT. It should work on other nv50+ cards, but I didn't test them. To test it, you need to build your kernel with