Skip to content

Refactoring of *_fill libraries

Katarzyna Dec igt-dev 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest4 patches 4 repliesIn review
  2. v64 patches 1 replySuperseded
  3. v54 patches 4 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v4 posting 2/24 patches0 repliesSuperseded
v4 posting 1/24 patches2 repliesSuperseded
v34 patches0 repliesSuperseded
v14 patches5 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4lib: Move common gpgpu/media fill functions to gpu_fill librarylib/Makefile.sources lib/gpgpu_fill.c lib/gpu_fill.c +6 more+961 -17050 replies
2/4lib: Remove duplications in gpu_fill librarylib/Makefile.sources lib/gpgpu_fill.c lib/gpu_fill.c +7 more+39 -2932 replies
3/4lib/gpgpu_fill: Add missing configuration parameters for gpgpu_filllib/gpgpu_fill.c lib/gpu_fill.c+4 -10 replies
4/4lib: Adjust refactored gpu_fill library to our coding stylelib/gpgpu_fill.c lib/gpgpu_fill.h lib/media_fill.h +3 more+39 -380 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRadoslaw Szwichtenberg
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [igt-dev] [PATCH i-g-t v7 0/4] Refactoring of *_fill libraries

This series is removing duplications in gpgpu_fill and media_fill libraries. As a first step I moved gpgpu and media helper functions to gpu_fill library. In second patch I adjusted code to our coding style. In the third not obvious duplications were removed (like adding in gen7 functions conditions for future gens). Last patch adds missing parameters that make GPU hang on gen9 and gen9+.

In first version of this series there was a comment about moving batch_alloc/copy etc. functions to intel_batchbuffer library. Because there is a lot of code to review already this change will be introduced in another series (rendercopy, media_fill, gpgpu_fill and media_spin code is affected by this).

It is possible that more changes around gen*_media.h and media_spin is needed, but this will be done as a next step.

v2: Removed not obvious duplications. Adjusted code to review comments.
v3: Series needed reorganization because it introduced bug to ALP, which was hard to find. That is why patch 1 is now almost only moving functions to gpu_fill with removing duplications, such as the same functions. Also applied comments from review.
v4: Added #defines and copyrights to new gpu_fill library. Changed functions order in gpu_fill library.
v5: Version with no changes comparing to v4 - git sent-mail sent series to wrong thread...
v6: Removed issue in gen8_emit_gpgpu_walker which was introduced during rebase
v7: Added copyrights to gpu_fill.c

Cc Lukasz Kalamarz <[email protected]>
Cc Daniele Ceraolo Spurio <[email protected]>

Katarzyna Dec (4):
lib: Move common gpgpu/media fill functions to gpu_fill library
lib: Remove duplications in gpu_fill library lib/gpgpu_fill: Add missing configuration parameters for gpgpu_fill
lib: Adjust refactored gpu_fill library to our coding style

 lib/Makefile.sources    |   3 +-
 lib/gpgpu_fill.c        | 600 ++-----------------------------------------
 lib/gpgpu_fill.h        |  12 +-
 lib/gpu_fill.c          | 660 ++++++++++++++++++++++++++++++++++++++++++++++++
 lib/gpu_fill.h          | 135 ++++++++++
 lib/intel_batchbuffer.c |   4 +-
 lib/media_fill.h        |  23 +-
 lib/media_fill_gen7.c   | 278 +-------------------
 lib/media_fill_gen8.c   | 305 +---------------------
 lib/media_fill_gen8lp.c | 367 ---------------------------
 lib/media_fill_gen9.c   | 313 +----------------------
 lib/meson.build         |   2 +-
 12 files changed, 854 insertions(+), 1848 deletions(-)
 create mode 100644 lib/gpu_fill.c
 create mode 100644 lib/gpu_fill.h
 delete mode 100644 lib/media_fill_gen8lp.c
Signature · 6 lines
2.14.3

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev