1. 11 Dec, 2017 1 commit
    • Imre Deak's avatar
      igt_fb: Add support for drawing to non-32bit Y/Yf tiled FBs · 4d40a677
      Imre Deak authored
      When drawing with cairo to Y/Yf tiled FBs we use a temporary linear
      buffer which is mapped to the CPU, but the fast blit needed for this
      only expects 32 bpp FBs. Add support for other bpps too.
      This is needed for upcoming patches testing non-32bit bpp formats with
      Y/Yf tiling.
      Thanks to Ville for explaining why we need the temporary buffer. (Looks
      like for Y tiling we could do without, but that's a separate topic.)
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: Imre Deak's avatarImre Deak <imre.deak@intel.com>
  2. 22 Sep, 2017 1 commit
  3. 08 Sep, 2017 1 commit
  4. 25 Jul, 2017 2 commits
  5. 19 Jul, 2017 1 commit
  6. 27 Feb, 2017 1 commit
  7. 10 Nov, 2016 1 commit
  8. 18 Aug, 2016 1 commit
    • Chris Wilson's avatar
      lib: Preallocate framebuffers · d2805060
      Chris Wilson authored
      So for reasons unfathomable CRC appear to be miscalculated when the
      plane is not in the mappable aperture. Worrisome, but for now
      preallocate space in the mappable region for the new framebuffer and
      design some specific tests to explore the issue further.
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
  9. 31 May, 2016 1 commit
    • Tomeu Vizoso's avatar
      lib: Actually use provided size when creating BO · 7be235c1
      Tomeu Vizoso authored
      When reworking igt_create_fb_with_bo_size to use
      igt_create_bo_with_dimensions, we mistakenly stopped acknowledging
      non-zero size parameters.
      To fix this, we move the core of the code to create_bo_for_fb and teach
      it to use the GEM APIs when a size is passed.
      igt_create_bo_with_dimensions ends up calling just create_bo_for_fb with
      a zero size because now the later is more generic than the former.
      Also, create_bo_for_fb now returns the handle of the BO that was
      created, as there's no point anymore in having it be a parameter passed
      by reference.
      Signed-off-by: default avatarTomeu Vizoso <tomeu.vizoso@collabora.com>
  10. 21 Apr, 2016 1 commit
  11. 14 Apr, 2016 4 commits
  12. 21 Mar, 2016 1 commit
  13. 03 Mar, 2016 1 commit
  14. 02 Mar, 2016 1 commit
  15. 29 Jan, 2016 3 commits
  16. 08 Jan, 2016 1 commit
  17. 27 Nov, 2015 4 commits
    • Paulo Zanoni's avatar
      lib/igt_fb: also pass the stride to igt_create_fb_with_bo_size() · d6341377
      Paulo Zanoni authored
      If the caller is going to specify a custom size, it's likely that he
      will also specify a custom stride. The automatic stride picked by
      create_bo_for_fb() is too huge for tiled buffers, so if the caller
      wants smaller buffers, then he'll need a smaller stride too, otherwise
      the Kernel will reject the addfb IOCTL due to stride * height being
      bigger than the size.
      I want to make tests/kms_frontbuffer_tracking use
      igt_create_fb_with_bo_size() so I can provide smaller buffers that
      will fit into the CFB. I'm also planning to make all frontbuffers with
      the same width/height/format have the same stride and size regardless
      of tiling method so I can exercise specific code paths.
      Signed-off-by: Paulo Zanoni's avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
    • Paulo Zanoni's avatar
      lib/igt_fb: fix open-coded ALIGN() · 1c68a71a
      Paulo Zanoni authored
      Maybe this will help someone's life in the future.
      Signed-off-by: Paulo Zanoni's avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
    • Paulo Zanoni's avatar
      lib/igt_fb: fix igt_create_fb_with_bo_size() documentation · cb7dd5d4
      Paulo Zanoni authored
      If we pass zero as the bo_size we won't get the minimum needed size,
      we'll just get a size that works. The size is decided by
      create_bo_for_fb(). The selected size is really not minimal for tiled
      We'll implement support for minimum size later.
      Signed-off-by: Paulo Zanoni's avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
    • Paulo Zanoni's avatar
      lib/igt_fb: fix fb->size when provided by the user · 5cfc4e79
      Paulo Zanoni authored
      I want to have a little more control over the size of the buffers in
      kms_frontbuffer_tracking, so I decided to start calling
      igt_create_fb_with_bo_size() instead of igt_create_fb(). The problem
      is that create_bo_for_fb() returns its own calculated size as size_ret
      instead of the actual used size.
      So we fix this by returning the actual size, the one used in
      gem_create instead of the calculated size that's not used anywhere.
      Signed-off-by: Paulo Zanoni's avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
  18. 12 Oct, 2015 1 commit
  19. 09 Oct, 2015 3 commits
  20. 08 Oct, 2015 1 commit
  21. 08 Sep, 2015 1 commit
  22. 02 Jul, 2015 1 commit
  23. 27 Jun, 2015 1 commit
  24. 01 May, 2015 1 commit
  25. 29 Apr, 2015 1 commit
  26. 14 Apr, 2015 1 commit
  27. 12 Mar, 2015 3 commits