1. 17 8月, 2022 1 次提交
  2. 13 7月, 2022 1 次提交
  3. 07 6月, 2022 1 次提交
  4. 20 4月, 2022 1 次提交
  5. 16 3月, 2022 1 次提交
  6. 22 7月, 2021 1 次提交
  7. 28 5月, 2021 1 次提交
    • 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
  8. 20 5月, 2021 1 次提交
  9. 24 3月, 2021 1 次提交
  10. 11 3月, 2021 1 次提交
  11. 24 12月, 2020 1 次提交
  12. 05 11月, 2020 1 次提交
  13. 16 9月, 2020 1 次提交
  14. 01 7月, 2020 1 次提交
  15. 23 4月, 2020 1 次提交
  16. 19 12月, 2019 1 次提交
  17. 06 12月, 2019 1 次提交
  18. 14 11月, 2019 2 次提交
  19. 17 9月, 2019 1 次提交
  20. 15 8月, 2019 1 次提交
  21. 19 7月, 2019 2 次提交
  22. 22 6月, 2019 3 次提交
  23. 21 6月, 2019 2 次提交
  24. 12 6月, 2019 2 次提交
  25. 30 4月, 2019 1 次提交
  26. 08 4月, 2019 1 次提交
    • N
      drm/amd/display: Fix negative cursor pos programming (v2) · bd13b2b8
      Nicholas Kazlauskas 提交于
      [Why]
      If the cursor pos passed from DM is less than the plane_state->dst_rect
      top left corner then the unsigned cursor pos wraps around to a large
      positive number since cursor pos is a u32.
      
      There was an attempt to guard against this in hubp1_cursor_set_position
      by checking the src_x_offset and src_y_offset and offseting the
      cursor hotspot within hubp1_cursor_set_position.
      
      However, the cursor position itself is still being programmed
      incorrectly as a large value.
      
      This manifests itself visually as the cursor disappearing or containing
      strange artifacts near the middle of the screen on raven.
      
      [How]
      Don't subtract the destination rect top left corner from the pos but
      add it to the hotspot instead. This happens before the pos gets
      passed into hubp1_cursor_set_position.
      
      This achieves the same result but avoids the subtraction wrap around.
      With this fix the original cursor programming logic can be used again.
      
      v2: add hunk that got dropped accidently when this patch was originally
      committed. (Alex)
      Fixes: 0921c41e ("drm/amd/display: Fix negative cursor pos programming")
      Signed-off-by: NNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
      Reviewed-by: NCharlene Liu <Charlene.Liu@amd.com>
      Acked-by: NLeo Li <sunpeng.li@amd.com>
      Acked-by: NMurton Liu <Murton.Liu@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      bd13b2b8
  27. 07 2月, 2019 1 次提交
  28. 26 1月, 2019 1 次提交
  29. 15 1月, 2019 3 次提交
  30. 20 11月, 2018 2 次提交
  31. 11 9月, 2018 1 次提交