lib/gpgpu_fill: Create generic __gen9_gpgpu_fillfunc
PATCH 1/1 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.
--- lib/gpgpu_fill.c | 17 ++++++++++++++--- lib/gpgpu_fill.h | 8 ++++++++ 2 files changed, 22 insertions(+), 3 deletions(-)
lib/gpgpu_fill.c +14 -3
@@ -193,11 +193,12 @@ gen8_gpgpu_fillfunc(struct intel_batchbuffer *batch, }void -gen9_gpgpu_fillfunc (struct intel_batchbuffer *batch, +__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) +uint8_t color,const uint32_t kernel[][4 ], +size_t kernel_size) {uint32_t curbe_buffer, interface_descriptor;uint32_t batch_end;
@@ -216,7 +217,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 ]);
@@ -240,3 +241,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)); +}
lib/gpgpu_fill.h +8 -0
@@ -43,6 +43,14 @@ gen8_gpgpu_fillfunc(struct intel_batchbuffer *batch, unsigned int width, unsigned int height, uint8_t color); +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); + void gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch, struct igt_buf *dst,
Signature · 6 lines
2.14.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for lib/gpgpu_fill: Create generic __gen9_gpgpu_fillfunc
== Series Details ==
== Series Details ==
Series: lib/gpgpu_fill: Create generic __gen9_gpgpu_fillfunc
URL : https://patchwork.freedesktop.org/series/42857/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4153 -> IGTPW_1327 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/42857/revisions/1/mbox/
== Known issues ==
Here are the changes found in IGTPW_1327 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@debugfs_test@read_all_entries:
fi-snb-2520m: PASS -> INCOMPLETE (fdo#103713)
igt@kms_flip@basic-flip-vs-dpms:
fi-bxt-dsi: PASS -> INCOMPLETE (fdo#103927)
==== Possible fixes ====
igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
fi-bxt-j4205: FAIL (fdo#106436) -> PASS
igt@kms_pipe_crc_basic@read-crc-pipe-c-frame-sequence:
fi-glk-j4005: DMESG-WARN (fdo#106097) -> PASS +1 fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#103927 https://bugs.freedesktop.org/show_bug.cgi?id=103927
fdo#106097 https://bugs.freedesktop.org/show_bug.cgi?id=106097
fdo#106436 https://bugs.freedesktop.org/show_bug.cgi?id=106436
== Participating hosts (41 -> 37) ==
Missing (4): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-skl-6700hq
== Build changes ==
* IGT: IGT_4464 -> IGTPW_1327
CI_DRM_4153: b360612517f613fdf14107a2f0bfc7f1f792a476 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1327: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1327/
IGT_4464: 1bb318b32db003a377da14715c7b80675a712b6b @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4464: 33e58d5583eb7ed3966a1b905f875a1dfa959f6b @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1327/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 lib/gpgpu_fill: Create generic __gen9_gpgpu_fillfunc
In reply to Katarzyna Dec== Series Details ==
== Series Details ==
Series: lib/gpgpu_fill: Create generic __gen9_gpgpu_fillfunc
URL : https://patchwork.freedesktop.org/series/42857/
State : success
== Summary ==
= CI Bug Log - changes from IGT_4464_full -> IGTPW_1327_full =
== Summary - WARNING ==
Minor unknown changes coming with IGTPW_1327_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_1327_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/42857/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in IGTPW_1327_full:
=== IGT changes ===
==== Warnings ====
igt@perf_pmu@rc6:
shard-kbl: PASS -> SKIP== Known issues ==
Here are the changes found in IGTPW_1327_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_flip@2x-flip-vs-wf_vblank-interruptible:
shard-hsw: PASS -> FAIL (fdo#103928)
igt@kms_flip@2x-plain-flip-ts-check:
shard-hsw: PASS -> FAIL (fdo#100368) +1
igt@kms_flip@absolute-wf_vblank-interruptible:
shard-glk: PASS -> FAIL (fdo#106087)
igt@kms_flip@flip-vs-absolute-wf_vblank:
shard-glk: PASS -> FAIL (fdo#105312)
igt@kms_flip@flip-vs-expired-vblank:
shard-hsw: PASS -> FAIL (fdo#105707)
igt@kms_flip@flip-vs-expired-vblank-interruptible:
shard-glk: PASS -> FAIL (fdo#105707)
igt@kms_flip@flip-vs-wf_vblank-interruptible:
shard-glk: PASS -> FAIL (fdo#100368)
shard-apl: PASS -> FAIL (fdo#105312)
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-pwrite:
shard-kbl: PASS -> DMESG-WARN (fdo#103558, fdo#103313, fdo#105602) +3
igt@kms_rotation_crc@primary-rotation-180:
shard-snb: PASS -> FAIL (fdo#103925, fdo#104724)
igt@kms_setmode@basic:
shard-apl: PASS -> FAIL (fdo#99912)
igt@kms_sysfs_edid_timing:
shard-apl: PASS -> WARN (fdo#100047)
igt@kms_vblank@pipe-b-wait-forked:
shard-kbl: PASS -> DMESG-WARN (fdo#103558, fdo#105602)
igt@pm_rpm@debugfs-read:
shard-kbl: PASS -> DMESG-WARN (fdo#103558, fdo#103313)
==== Possible fixes ====
igt@gem_linear_blits@normal:
shard-glk: FAIL -> PASS
igt@kms_flip@2x-flip-vs-absolute-wf_vblank-interruptible:
shard-hsw: FAIL (fdo#100368) -> PASS +1
igt@kms_flip@modeset-vs-vblank-race-interruptible:
shard-hsw: FAIL (fdo#103060) -> PASS
igt@kms_flip@plain-flip-fb-recreate-interruptible:
shard-glk: FAIL (fdo#100368) -> PASS
igt@kms_rotation_crc@sprite-rotation-270:
shard-apl: FAIL (fdo#103925, fdo#104724) -> PASS
igt@kms_setmode@basic:
shard-kbl: FAIL (fdo#99912) -> PASS
igt@kms_vblank@pipe-b-accuracy-idle:
shard-hsw: FAIL (fdo#102583) -> PASS fdo#100047 https://bugs.freedesktop.org/show_bug.cgi?id=100047
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102583 https://bugs.freedesktop.org/show_bug.cgi?id=102583
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#103313 https://bugs.freedesktop.org/show_bug.cgi?id=103313
fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#103928 https://bugs.freedesktop.org/show_bug.cgi?id=103928
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105312 https://bugs.freedesktop.org/show_bug.cgi?id=105312
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#105707 https://bugs.freedesktop.org/show_bug.cgi?id=105707
fdo#106087 https://bugs.freedesktop.org/show_bug.cgi?id=106087
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
== Participating hosts (6 -> 5) ==
Missing (1): pig-snb-2600
== Build changes ==
* IGT: IGT_4464 -> IGTPW_1327
* Linux: CI_DRM_4150 -> CI_DRM_4153
CI_DRM_4150: 93d32416ba4b1dae9451fec28aaa71915d770f51 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4153: b360612517f613fdf14107a2f0bfc7f1f792a476 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1327: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1327/
IGT_4464: 1bb318b32db003a377da14715c7b80675a712b6b @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4464: 33e58d5583eb7ed3966a1b905f875a1dfa959f6b @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1327/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
-Ewelina
Quoted 81 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.Signed-off-by Katarzyna Dec <[email protected]>Cc Lukasz Kalamarz <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Cc Antonio Argenziano <[email protected]>--- lib/gpgpu_fill.c | 17 ++++++++++++++--- lib/gpgpu_fill.h | 8 ++++++++ 2 files changed, 22 insertions(+), 3 deletions(-)lib/gpgpu_fill.c +14
-3@@ -193,11 +193,12 @@ gen8_gpgpu_fillfunc(struct intel_batchbuffer *batch, }void -gen9_gpgpu_fillfunc (struct intel_batchbuffer *batch, +__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) +uint8_t color,const uint32_t kernel[][4 ], +size_t kernel_size) {uint32_t curbe_buffer, interface_descriptor;uint32_t batch_end;@@ -216,7 +217,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 ]);@@ -240,3 +241,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)); +}lib/gpgpu_fill.h +8
-0@@ -43,6 +43,14 @@ gen8_gpgpu_fillfunc(struct intel_batchbuffer *batch, unsigned int width, unsigned int height, uint8_t color); +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); + void gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch, struct igt_buf *dst,Signature · 6 lines
2.14.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev