1. 09 6月, 2021 2 次提交
  2. 05 6月, 2021 1 次提交
  3. 28 5月, 2021 2 次提交
    • M
      drm/amd/display: Add support for SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616. · 050cd3d6
      Mario Kleiner 提交于
      Add the necessary format definition, bandwidth and pixel size mappings,
      prescaler setup, and pixelformat selection, following the logic
      already present for SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616.
      
      The new SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616 is implemented as the
      old SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616 format, but with swapped
      red <-> green color channel, by use of the hardware xbar.
      
      Please note that on the DCN 1/2/3 display engines, the pixelformat
      in hubp and dpp setup for the old SURFACE_PIXEL_FORMAT_GRPH_ARGB16161616
      and the new SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616 was changed from
      format id 22 to id 26. See amd/include/navi10_enum.h for the meaning
      of the id's.
      
      For format 22, the display engine read the framebuffer in 16 bpc format,
      but truncated to the 12 bpc actually supported by later pipeline stages.
      However, the engine took the 12 LSB of each color component for
      truncation, which is incompatible with rendering at least under Vulkan,
      where content is 16 bit wide, and a 12 MSB alignment would be appropriate,
      if any. Format 20 for ARGB16161616_12MSB does work, but even better, we
      can choose format 26 for ARGB16161616_UNORM, keeping all 16 bits around
      until later stages of the display pipeline.
      
      This allows to directly consume what the rendering hw produces under
      Vulkan for swapchain format VK_FORMAT_R16G16B16A16_UNORM, as tested
      with a patched version of the current AMD open-source amdvlk driver
      which maps swapchain format VK_FORMAT_R16G16B16A16_UNORM onto
      DRM_FORMAT_XBGR16161616.
      
      The old id 22 would cause colorful pixeltrash to be displayed instead.
      
      Tested under DCN-1.0 and DCE-11.2.
      Signed-off-by: NMario Kleiner <mario.kleiner.de@gmail.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      050cd3d6
    • D
      drm/amd/display: fix odm scaling · 6566cae7
      Dmytro Laktyushkin 提交于
      There are two issues with scaling calculations, odm recout
      calculation and matching viewport to actual recout.
      
      This change fixes both issues. Odm recout calculation via
      special casing and viewport matching issue by reworking
      the viewport calcualtion to use scaling ratios and recout
      to derrive the required offset and size.
      Signed-off-by: NDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
      Reviewed-by: NJun Lei <Jun.Lei@amd.com>
      Acked-by: NQingqing Zhuo <qingqing.zhuo@amd.com>
      Tested-by: NDaniel Wheeler <daniel.wheeler@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      6566cae7
  4. 22 5月, 2021 1 次提交
  5. 29 4月, 2021 1 次提交
  6. 16 4月, 2021 1 次提交
  7. 10 4月, 2021 4 次提交
  8. 24 3月, 2021 2 次提交
  9. 23 2月, 2021 1 次提交
  10. 19 2月, 2021 1 次提交
  11. 10 2月, 2021 4 次提交
  12. 03 2月, 2021 1 次提交
  13. 21 1月, 2021 2 次提交
  14. 24 12月, 2020 1 次提交
  15. 11 11月, 2020 2 次提交
  16. 05 11月, 2020 1 次提交
  17. 27 10月, 2020 3 次提交
  18. 06 10月, 2020 2 次提交
  19. 30 9月, 2020 1 次提交
  20. 16 9月, 2020 3 次提交
  21. 18 8月, 2020 1 次提交
  22. 11 8月, 2020 2 次提交
  23. 07 8月, 2020 1 次提交