lib/media_fill: Create common media_fill library for all gens
Subsystems (2)
PATCH v5 1/2 lib/media_fill: Create common media_fill library for all gens
Let's create common media_fill library, similarly as for gpgpu_fill. This will allow to make code easier to read and maintain. Moreover we can create generic __gen9_media_fillfunc for future gens. From gen9 media fillfunctions differ only with kernel parameter.
v2: fixed indentations in files
v3: Added missing copyright headers. Made __gen9_media_fillfunc static. Removed gen9 kernel (the same as for gen8).
v4: rebase
--- lib/Makefile.sources | 4 +- lib/media_fill.c | 247 ++++++++++++++++++++++++++++++++++++++++++++++++++ lib/media_fill.h | 48 +++++++--- lib/media_fill_gen7.c | 94 ------------------- lib/media_fill_gen8.c | 96 -------------------- lib/media_fill_gen9.c | 105 --------------------- lib/meson.build | 4 +- 7 files changed, 285 insertions(+), 313 deletions(-) create mode 100644 lib/media_fill.c delete mode 100644 lib/media_fill_gen7.c delete mode 100644 lib/media_fill_gen8.c delete mode 100644 lib/media_fill_gen9.c
lib/Makefile.sources +1 -3
@@ -55,10 +55,8 @@ lib_source_list = \ intel_reg.h \ ioctl_wrappers.c \ ioctl_wrappers.h \ + media_fill.c \ media_fill.h \ - media_fill_gen7.c \ - media_fill_gen8.c \ - media_fill_gen9.c \ media_spin.h \ media_spin.c \ gpgpu_fill.h \
lib/media_fill.c new file +247 -0
247 lines not on this page · raw message
lib/media_fill.h +36 -12
62 lines not on this page · raw message
lib/media_fill_gen7.c deleted +0 -94
94 lines not on this page · raw message
lib/media_fill_gen8.c deleted +0 -96
96 lines not on this page · raw message
lib/media_fill_gen9.c deleted +0 -105
105 lines not on this page · raw message
lib/meson.build +1 -3
@@ -24,10 +24,8 @@ lib_sources = [ 'intel_os.c', 'intel_mmio.c', 'ioctl_wrappers.c', - 'media_fill_gen7.c', - 'media_fill_gen8.c', - 'media_fill_gen9.c', 'media_spin.c', + 'media_fill.c', 'gpgpu_fill.c', 'gpu_cmds.c', 'rendercopy_i915.c',
Signature · 6 lines
2.14.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v5 2/2 lib/gpgpu_fill: Create generic __gen9_gpgpu_fillfunc
Starting from gen9 main gpgpu_fillfunc differs only with kernel parameter. Let's prepare generic __gen9 function to avoid duplicating all _fillfunc for future gens.
v2: fixed indentations
v3: Made __gen9_gpgpu_fillfunc static
v4: rebase
--- lib/gpgpu_fill.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-)
lib/gpgpu_fill.c +18 -7
@@ -200,12 +200,13 @@ gen8_gpgpu_fillfunc(struct intel_batchbuffer *batch,intel_batchbuffer_reset (batch); } -void -gen9_gpgpu_fillfunc (struct intel_batchbuffer *batch, -struct igt_buf *dst, -unsigned int x,unsigned int y, -unsigned int width,unsigned int height, -uint8_t color) +static void +__gen9_gpgpu_fillfunc (struct intel_batchbuffer *batch, +struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color,const uint32_t kernel[][4 ], +size_t kernel_size) {uint32_t curbe_buffer, interface_descriptor;uint32_t batch_end;
@@ -223,7 +224,7 @@ gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch, curbe_buffer =gen7_fill_curbe_buffer_data (batch, color); interface_descriptor =gen8_fill_interface_descriptor (batch, dst, - gen9_gpgpu_kernel,sizeof (gen9_gpgpu_kernel)); + kernel, kernel_size);igt_assert (batch->ptr < &batch->buffer[4095 ]);
@@ -248,3 +249,13 @@ gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch,gen7_render_flush (batch, batch_end);intel_batchbuffer_reset (batch); } + +void gen9_gpgpu_fillfunc (struct intel_batchbuffer *batch, +struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color) +{ +__gen9_gpgpu_fillfunc (batch, dst, x, y, width, height, color, + gen9_gpgpu_kernel,sizeof (gen9_gpgpu_kernel)); +}
Signature · 6 lines
2.14.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 2/2] lib/gpgpu_fill: Create generic __gen9_gpgpu_fillfunc
Quoted 8 lines · Katarzyna Dec
Starting from gen9 main
gpgpu_fillfuncdiffers only with kernel parameter. Let's prepare generic__gen9function to avoid duplicating all_fillfuncfor future gens.v2: fixed indentations
v3: Made__gen9_gpgpu_fillfuncstatic
v4: rebase
Quoted 6 lines
Signed-off-by Katarzyna Dec <[email protected]>Cc Lukasz Kalamarz <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Cc Antonio Argenziano <[email protected]>Cc Ewelina Musial <[email protected]>---
LGTM,
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,v5,1/2] lib/media_fill: Create common media_fill library for all gens
In reply to Katarzyna Dec== Series Details ==
== Series Details ==
Series: series starting with [i-g-t,v5,1/2] lib/media_fill: Create common media_fill library for all gens
URL : https://patchwork.freedesktop.org/series/43182/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4183 -> IGTPW_1364 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/43182/revisions/1/mbox/
== Known issues ==
Here are the changes found in IGTPW_1364 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_psr_sink_crc@basic:
fi-hsw-4200u: NOTRUN -> FAIL (fdo#106346)
==== Possible fixes ====
igt@gem_exec_suspend@basic-s4-devices:
fi-glk-j4005: DMESG-WARN (fdo#106097) -> PASS fdo#106097 https://bugs.freedesktop.org/show_bug.cgi?id=106097
fdo#106346 https://bugs.freedesktop.org/show_bug.cgi?id=106346
== Participating hosts (38 -> 37) ==
Additional (2): fi-hsw-peppy fi-hsw-4200u
Missing (3): fi-ctg-p8600 fi-ilk-m540 fi-skl-6700hq
== Build changes ==
* IGT: IGT_4480 -> IGTPW_1364
* Piglit: piglit_4480 -> piglit_4481
CI_DRM_4183: 9d97c6e3fd3ac8dd73f107ca85e2a12c746a2ccc @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1364: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1364/
IGT_4480: 18fa0c11012da6aa9a5511dc9b1736064a02b429 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4480: 3ba0657bff4216d1ec7179935590261855f1651e @ git://anongit.freedesktop.org/piglit
piglit_4481: 3ba0657bff4216d1ec7179935590261855f1651e @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1364/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,v5,1/2] lib/media_fill: Create common media_fill library for all gens
In reply to Katarzyna Dec== Series Details ==
== Series Details ==
Series: series starting with [i-g-t,v5,1/2] lib/media_fill: Create common media_fill library for all gens
URL : https://patchwork.freedesktop.org/series/43182/
State : success
== Summary ==
= CI Bug Log - changes from IGT_4480_full -> IGTPW_1364_full =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/43182/revisions/1/mbox/
== Known issues ==
Here are the changes found in IGTPW_1364_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_eio@in-flight-1us:
shard-apl: PASS -> DMESG-WARN (fdo#106523) +3
igt@gem_eio@in-flight-contexts-immediate:
shard-glk: NOTRUN -> DMESG-WARN (fdo#106523)
igt@gem_eio@suspend:
shard-glk: PASS -> DMESG-WARN (fdo#106523)
igt@kms_cursor_legacy@2x-nonblocking-modeset-vs-cursor-atomic:
shard-glk: NOTRUN -> FAIL (fdo#105454)
igt@kms_cursor_legacy@flip-vs-cursor-varying-size:
shard-hsw: PASS -> FAIL (fdo#102670)
igt@kms_flip@dpms-vs-vblank-race-interruptible:
shard-hsw: PASS -> FAIL (fdo#103060)
igt@kms_flip_tiling@flip-x-tiled:
shard-glk: NOTRUN -> FAIL (fdo#104724)
igt@kms_setmode@basic:
shard-glk: NOTRUN -> FAIL (fdo#99912)
==== Possible fixes ====
igt@gem_eio@execbuf:
shard-glk: DMESG-WARN (fdo#106523) -> PASS +5
igt@gem_eio@in-flight-contexts-immediate:
shard-hsw: DMESG-WARN (fdo#106523) -> PASS +5
igt@gem_eio@throttle:
shard-snb: DMESG-WARN (fdo#106523) -> PASS +6
igt@gem_eio@wait-wedge-10ms:
shard-apl: DMESG-WARN (fdo#106523) -> PASS +1
igt@kms_flip@flip-vs-expired-vblank-interruptible:
shard-glk: FAIL (fdo#105363) -> PASS
igt@kms_flip@flip-vs-panning-vs-hang:
shard-snb: DMESG-WARN (fdo#103821) -> PASS
igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
shard-snb: FAIL (fdo#103166, fdo#104724) -> PASS
igt@kms_rotation_crc@sprite-rotation-180:
shard-snb: FAIL (fdo#103925, fdo#104724) -> PASS
igt@kms_rotation_crc@sprite-rotation-270:
shard-apl: FAIL (fdo#103925, fdo#104724) -> PASS fdo#102670 https://bugs.freedesktop.org/show_bug.cgi?id=102670
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103821 https://bugs.freedesktop.org/show_bug.cgi?id=103821
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105454 https://bugs.freedesktop.org/show_bug.cgi?id=105454
fdo#106523 https://bugs.freedesktop.org/show_bug.cgi?id=106523
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
== Participating hosts (5 -> 4) ==
Missing (1): shard-kbl
== Build changes ==
* IGT: IGT_4480 -> IGTPW_1364
* Linux: CI_DRM_4182 -> CI_DRM_4183
* Piglit: piglit_4480 -> piglit_4481
CI_DRM_4182: 74146e495c113f6cf8721bb55feec6b459199cd4 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4183: 9d97c6e3fd3ac8dd73f107ca85e2a12c746a2ccc @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1364: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1364/
IGT_4480: 18fa0c11012da6aa9a5511dc9b1736064a02b429 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4480: 3ba0657bff4216d1ec7179935590261855f1651e @ git://anongit.freedesktop.org/piglit
piglit_4481: 3ba0657bff4216d1ec7179935590261855f1651e @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1364/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 11 lines · Katarzyna Dec
Let's create common
media_filllibrary, similarly as forgpgpu_fill. This will allow to make code easier to read and maintain. Moreover we can create generic__gen9_media_fillfuncfor future gens. From gen9 media fillfunctions differ only with kernel parameter.v2: fixed indentations in files
v3: Added missing copyright headers. Made__gen9_media_fillfuncstatic.
Removed gen9 kernel (the same as for gen8).
v4: rebase
Quoted 5 lines
Signed-off-by Katarzyna Dec <[email protected]>Cc Lukasz Kalamarz <[email protected]>Cc Antonio Argenziano <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Cc Ewelina Musial <[email protected]>
LGTM,
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev