diff options
| author | Thomas Zimmermann <[email protected]> | 2023-10-09 14:06:30 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2023-11-14 09:01:12 +0000 |
| commit | 38b2d9d385102f430eb023aee1ed0ed37d9173f5 (patch) | |
| tree | 8d1d0ffaa6bdc0f7bb30165e46453e383d58631e /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |
| parent | Revert "drm/sched: Define pr_fmt() for DRM using pr_*()" (diff) | |
| download | kernel-38b2d9d385102f430eb023aee1ed0ed37d9173f5.tar.gz kernel-38b2d9d385102f430eb023aee1ed0ed37d9173f5.zip | |
drm/format-helper: Cache buffers with struct drm_format_conv_state
Hold temporary memory for format conversion in an instance of struct
drm_format_conv_state. Update internal helpers of DRM's format-conversion
code accordingly. Drivers will later be able to maintain this cache by
themselves.
Besides caching, struct drm_format_conv_state will be useful to hold
additional information for format conversion, such as palette data or
foreground/background colors. This will enable conversion from indexed
color formats to component-based formats.
v5:
* improve documentation (Javier, Noralf)
v3:
* rename struct drm_xfrm_buf to struct drm_format_conv_state
(Javier)
* remove managed cleanup
* add drm_format_conv_state_copy() for shadow-plane support
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Acked-by: Noralf Trønnes <[email protected]>
Tested-by: Javier Martinez Canillas <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions
