diff options
| author | Thomas Zimmermann <[email protected]> | 2025-03-28 14:15:00 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2025-04-01 13:35:21 +0000 |
| commit | b39e5ba0ccb4014d94058eda21aec800c647863d (patch) | |
| tree | 10774aca5f5ed38c18fc0bfa0007c64baad1204a /drivers/platform/x86/intel/pmt/class.c | |
| parent | drm/format-helper: Add generic conversion to 24-bit formats (diff) | |
| download | kernel-b39e5ba0ccb4014d94058eda21aec800c647863d.tar.gz kernel-b39e5ba0ccb4014d94058eda21aec800c647863d.zip | |
drm/format-helper: Add generic conversion to 16-bit formats
Add drm_fb_xfrm_line_32to16() to implement conversion from 32-bit
pixels to 16-bit pixels. The pixel-conversion is specified by the
given callback parameter. Mark the helper as always_inline to avoid
overhead from function calls.
Then implement all existing line-conversion functions with the new
generic call and the respective pixel-conversion helper. There's one
pixel-conversion helper that swaps output bytes. It is for gud and
requires refactoring, so don't move it into the header file.
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Jocelyn Falempe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
