Check for valid framebuffer's format
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 4 repliesIn review
- v23 patches 1 replySuperseded
- v15 patches 8 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drm/framebuffer: Check for valid formatsDocumentation/ drivers/ | +12 | 1 reply | |
| 2/3 | drm/amdgpu: Remove redundant framebuffer format checkdrivers/ | +0 | 3 replies | |
| 3/3 | drm/vmwgfx: Remove redundant framebuffer format checkdrivers/ | +0 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Vetter | Simon Ser | Zack Rusin |
|---|---|---|---|
| 1/3 | R-b | ||
| 2/3 | R-b | ||
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v3 0/3] Check for valid framebuffer's format
This series is a follow-up of the [1] in which I introduced a check for valid formats on drm_gem_fb_create(). During the discussion, I realized that would be a better idea to put the check inside framebuffer_check() so that it wouldn't be needed to hit any driver-specific code path when the check fails.
Therefore, add the valid format check inside framebuffer_check() and remove the same check from the drivers, except from i915, because this doesn't work for the legacy tiling->modifier path. Adding the check to framebuffer_check() will guarantee that the igt@kms_addfb_basic@addfb25-bad-modifier IGT test passes, showing the correct behavior of the check.
This patchset was tested on amdgpu and vc4 with the IGT tests.
[1] https://lore.kernel.org/dri-devel/[email protected]/T/
---
v1 -> v2: https://lore.kernel.org/dri-devel/[email protected]/T/
- Don't remove check from i915 driver (Ville Syrjälä).
- Don't unexport drm_any_plane_has_format().
v2 -> v3: https://lore.kernel.org/dri-devel/[email protected]/T/
- Check if r->modifier[0] != 0 (Ville Syrjälä).
---
Best Regards,
- Maíra Canal
Maíra Canal (3):
drm/framebuffer: Check for valid formats drm/amdgpu: Remove redundant framebuffer format check drm/vmwgfx: Remove redundant framebuffer format check
Documentation/gpu/todo.rst | 9 ++++----- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 10 ---------- drivers/gpu/drm/drm_framebuffer.c | 8 ++++++++ drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 18 ------------------ 4 files changed, 12 insertions(+), 33 deletions(-)
Signature · 1 line
2.39.0