1. 21 Mar, 2019 1 commit
  2. 13 Mar, 2019 1 commit
    • Daniel Vetter's avatar
      lib/igt_fb: better format printing · c4605133
      Daniel Vetter authored
      Steal if from kms_plane.c and put it into igt_fb.h
      
      Also tiny bikeshed to remove the space, so it fits more tidily into
      the usual name1=value1, name2=value2 style printing.
      
      v2: Rebase
      
      v3: It better compile :-/
      
      Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> (v1)
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@intel.com>
      c4605133
  3. 11 Mar, 2019 3 commits
  4. 08 Mar, 2019 1 commit
  5. 26 Feb, 2019 11 commits
  6. 13 Feb, 2019 2 commits
    • Maarten Lankhorst's avatar
      lib/igt_fb: Add support for P01x formats, v5. · cb8e45a6
      Maarten Lankhorst authored
      The P01x formats are planar 16 bits per component, with the unused lower bits set to 0.
      This means they can all be converted the same way. Only the range is slightly different,
      and this is handled in the color_encoding implementation.
      
      This requires cairo 1.17.2 and pixman 0.36. This works but doesn't give extra precision.
      For more than 8 bits precision a few more patches are required to pixman, pending review:
      https://lists.freedesktop.org/archives/pixman/2019-January/004815.html
      https://lists.freedesktop.org/archives/pixman/2019-January/004809.html
      
      Once those are merged, we will require the next pixman release for better precision.
      
      Changes since v1:
      - Add fallback color definitions when compiling on cairo version < 1.17.2.
      - Skip when FB creation fails on HDR formats, instead of failing.
      Changes since v2:
      - Complain slightly harder when pixman/cairo are out of date.
      - Create a fb with alpha when converting to pixman formats with alpha.
      - Oops, s/pixman_format_code_t/cairo_format_t/
      Changes since v3:
      - Rebase on top of upstream YUV changes.
      Changes since v4:
      - Rebase again.
      - Use drm_fourcc.h from drm-misc-next.
      Signed-off-by: 's avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>  #v4
      cb8e45a6
    • Maarten Lankhorst's avatar
      lib/color_encoding: Prepare support for HDR modes, v2. · b0033d93
      Maarten Lankhorst authored
      We're starting to add support for 10, 12 and 16-bits formats that all have
      different values for the Y offset and range. Some 10 bits formats
      go from [0...1023], others go to [0...1023] shifted left by 6. To
      accomodate all formats add a struct definition for all various formats,
      this can be extended further when we add new formats.
      
      Changes since v1:
      - Rebase on top of added yuv changes.
      - Add commit description (swatish)
      - Add missing newline. (swatish)
      Signed-off-by: 's avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> #v1
      b0033d93
  7. 11 Feb, 2019 7 commits
  8. 05 Feb, 2019 5 commits
  9. 10 Jan, 2019 1 commit
  10. 31 Dec, 2018 1 commit
  11. 21 Dec, 2018 1 commit
    • Petri Latvala's avatar
      lib/fb: Remove unused variables · 0bc683ea
      Petri Latvala authored
      ../lib/igt_fb.c: In function ‘convert_rgb24_to_yuv444’:
      ../lib/igt_fb.c:1720:16: warning: unused variable ‘v’ [-Wunused-variable]
          float y, u, v;
                ^
      ../lib/igt_fb.c:1720:13: warning: unused variable ‘u’ [-Wunused-variable]
          float y, u, v;
                   ^
      ../lib/igt_fb.c:1720:10: warning: unused variable ‘y’ [-Wunused-variable]
          float y, u, v;
                      ^
      Signed-off-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
      Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: 's avatarStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      0bc683ea
  12. 18 Dec, 2018 1 commit
    • Stanislav Lisovskiy's avatar
      lib/igt_fb: Added XYUV8888 format support for testing · f05c8c27
      Stanislav Lisovskiy authored
      XYUV8888 format support has been added to DRM, modified
      IGT to reflect those changes.
      
      v2: Fixed merge conflict, started to use new yuv<=>rgb
          conversion functions.
      
      v3: Fixed kms_available_modes_crc test to support new XYUV
          format. Fixed a problem, where test complains that two
          outputs might use same pipe at the same time.
      
      v4: Fixed convertion procedure in igt_fb to support XYUV
          properly.
      
      v5: Fixed a coding typo.
      
      v6: Set depth equal to -1 for XYUV format in order to prevent
          it to be used by igt_bpp_depth_to_drm_format, as we do not
          want YUV formats to be used in that case.
      
      v7: Fix "black" color initialization for create_bo_for_fb with
          proper value. Changed naming "planar_stride" to "xyuv_stride".
      
      v8: Change naming from DRM_FORMAT_XYUV to DRM_FORMAT_XYUV8888
      
      v9: Fixed compilation errors by rebasing to recent master.
      
      v10: Adding reference to correspondent kernel commit with the new format
           in include/drm-uapi
      
      v11: Removed unnecessary sizeof's in rgb <=> yuv444 convert functions.
      
      v12: Rebased against master branch, fixed rebase conflict caused by
           new fb_convert functions. Removed drm kernel commit reference
           as it is still not merged, so doesn't make sense to use it.
      
      v13: Resolved one more rebase conflict.
      Signed-off-by: 's avatarStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      Signed-off-by: 's avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      f05c8c27
  13. 19 Nov, 2018 1 commit
  14. 05 Nov, 2018 4 commits