Update compression check based on platform
cover Update compression check based on platform
In Xe2+ platforms, we need to run the xe_ccs test regardless of the status of flat-ccs.
Check if the platform supports compression and has flat ccs enabled, and if it doesn't, then update the check on compression
and proceed with the test.
Akshata Jahagirdar (2):
lib/intel_blt: Add helper function to ensure platform has flat-ccs
enabled
tests/xe_ccs: Update compression check based on flat-ccs enablement
lib/intel_blt.c | 14 ++++++++++++++ lib/intel_blt.h | 1 + tests/intel/xe_ccs.c | 8 +++++--- 3 files changed, 20 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/2 lib/intel_blt: Add helper function to ensure platform has flat-ccs enabled
Add helper function to check if platform has flat-ccs enabled by reading from debugfs entry.
--- lib/intel_blt.c | 14 ++++++++++++++ lib/intel_blt.h | 1 + 2 files changed, 15 insertions(+)
lib/intel_blt.c +14 -0
@@ -464,6 +464,20 @@ bool blt_block_copy_supports_compression(int fd) BLT_CMD_SUPPORTS_COMPRESSION); } +/** +* blt_platform_has_flat_ccs_enabled +* @fd: drm fd +* +* Check if platform provided by @fd device has flat-ccs enabled. +* +* Returns: +* true if it does, false otherwise. +*/ +bool blt_platform_has_flat_ccs_enabled (int fd) +{ +return igt_debugfs_search (fd,"info" ,"has_flat_ccs yes" ); +} +/** * blt_uses_extended_block_copy * @fd: drm fd
lib/intel_blt.h +1 -0
@@ -209,6 +209,7 @@ bool blt_fast_copy_supports_tiling(int fd, enum blt_tiling_type tiling);bool blt_block_copy_supports_tiling (int fd,enum blt_tiling_type tiling);bool blt_xy_src_copy_supports_tiling (int fd,enum blt_tiling_type tiling);bool blt_block_copy_supports_compression (int fd); +bool blt_platform_supports_compression (int fd);bool blt_uses_extended_block_copy (int fd);const char *blt_tiling_name (enum blt_tiling_type tiling);
Signature · 1 line
2.34.1
PATCH 2/2 tests/xe_ccs: Update compression check based on flat-ccs enablement
In reply to Akshata JahagirdarIn Xe2+ platforms, we need to run this test regardless of the status of flat-ccs. Check if the platform supports compression and has flat ccs enabled, and if it doesn't, then update the checks based on compression accordingly and proceed with the test.
--- tests/intel/xe_ccs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
tests/intel/xe_ccs.c +5 -3
@@ -193,7 +193,8 @@ static void surf_copy(int xe,intel_ctx_xe_sync (ctx, true);WRITE_PNG (xe, run_id,"corrupted" , &blt.dst, dst->x2, dst->y2, bpp); result =memcmp (src->ptr, dst->ptr, src->size); -igt_assert (result !=0 ); +if (AT_LEAST_GEN (xe,20 ) && !blt_platform_has_flat_ccs_enabled (xe)) +igt_assert (result !=0 );/* retrieve back ccs */ memcpy (ccsmap, ccscopy, ccssize);
@@ -365,8 +366,9 @@ static void block_copy(int xe,* xmajor. */ if (mid->compression &&MIN_EXP_WH (width, height)) { -if (mid_tiling !=T_LINEAR ||FROM_EXP_WH (width, height)) -igt_assert (memcmp (src->ptr, mid->ptr, src->size) !=0 ); +if (AT_LEAST_GEN (xe,20 ) && !blt_platform_has_flat_ccs_enabled (xe)) +if (mid_tiling !=T_LINEAR ||FROM_EXP_WH (width, height)) +igt_assert (memcmp (src->ptr, mid->ptr, src->size) !=0 ); }WRITE_PNG (xe, run_id,"mid" , &blt.dst, width, height, bpp);
Signature · 1 line
2.34.1
Patchwork
CI✗ Fi.CI.BUILD: failure for Update compression check based on platform
In reply to Akshata Jahagirdar== Series Details ==
== Series Details ==
Series: Update compression check based on platform
URL : https://patchwork.freedesktop.org/series/132014/
State : failure
== Summary ==
IGT patchset build failed on latest successful build 5e3263748a636ebc91ecfafbd339870c77e3eed6 tests/amdgpu/amd_ilr: Fix eDP PSR not be re-enabled after test
Tail of build.log:
[657/1674] Compiling C object 'tests/v3d/cad21b8@@v3d_create_bo@exe/v3d_create_bo.c.o'. [658/1674] Compiling C object 'tests/v3d/cad21b8@@v3d_get_bo_offset@exe/v3d_get_bo_offset.c.o'. [659/1674] Compiling C object 'tests/v3d/cad21b8@@v3d_mmap@exe/v3d_mmap.c.o'.
[660/1674] Compiling C object 'tests/vc4/e4667e8@@vc4_dmabuf_poll@exe/vc4_dmabuf_poll.c.o'. [661/1674] Compiling C object 'tests/vc4/e4667e8@@vc4_lookup_fail@exe/vc4_lookup_fail.c.o'. [662/1674] Generating testlist with a custom command.
[663/1674] Generating testlist-full with a custom command.
[664/1674] Compiling C object 'tests/59830eb@@xe_query@exe/intel_xe_query.c.o'.
[665/1674] Compiling C object 'tests/vc4/e4667e8@@vc4_mmap@exe/vc4_mmap.c.o'.
[666/1674] Compiling C object 'tests/59830eb@@i915_query@exe/intel_i915_query.c.o'. [667/1674] Compiling C object 'tests/v3d/cad21b8@@v3d_perfmon@exe/v3d_perfmon.c.o'. [668/1674] Compiling C object 'tests/vc4/e4667e8@@vc4_create_bo@exe/vc4_create_bo.c.o'. [669/1674] Compiling C object 'tests/vc4/e4667e8@@vc4_tiling@exe/vc4_tiling.c.o'.
[670/1674] Compiling C object 'lib/76b5a35@@i915_perf@sha/meson-generated_.._i915_perf_registers_hsw.c.o'. [671/1674] Compiling C object 'tests/v3d/cad21b8@@v3d_wait_bo@exe/v3d_wait_bo.c.o'. [672/1674] Compiling C object 'tests/vc4/e4667e8@@vc4_label_bo@exe/vc4_label_bo.c.o'. [673/1674] Compiling C object 'tests/59830eb@@kms_pm_rpm@exe/intel_kms_pm_rpm.c.o'. [674/1674] Compiling C object 'tests/59830eb@@gem_exec_balancer@exe/intel_gem_exec_balancer.c.o'. [675/1674] Compiling C object 'tests/v3d/cad21b8@@v3d_job_submission@exe/v3d_job_submission.c.o'. [676/1674] Compiling C object 'tests/vc4/e4667e8@@vc4_perfmon@exe/vc4_perfmon.c.o'. [677/1674] Compiling C object 'tests/59830eb@@kms_chamelium_audio@exe/chamelium_kms_chamelium_audio.c.o'. [678/1674] Compiling C object 'tests/vc4/e4667e8@@vc4_purgeable_bo@exe/vc4_purgeable_bo.c.o'. [679/1674] Compiling C object 'tests/vc4/e4667e8@@vc4_wait_seqno@exe/vc4_wait_seqno.c.o'. [680/1674] Compiling C object 'tests/59830eb@@kms_chamelium_edid@exe/chamelium_kms_chamelium_edid.c.o'. [681/1674] Compiling C object 'tests/59830eb@@kms_chamelium_color@exe/chamelium_kms_chamelium_color.c.o'. [682/1674] Compiling C object 'tests/vc4/e4667e8@@vc4_wait_bo@exe/vc4_wait_bo.c.o'. [683/1674] Compiling C object 'tests/59830eb@@kms_psr2_sf@exe/intel_kms_psr2_sf.c.o'. [684/1674] Compiling C object 'tests/v3d/cad21b8@@v3d_submit_cl@exe/v3d_submit_cl.c.o'. [685/1674] Compiling C object 'tests/59830eb@@xe_exec_threads@exe/intel_xe_exec_threads.c.o'. [686/1674] Compiling C object 'tests/vmwgfx/776e741@@vmw_mob_stress@exe/vmw_mob_stress.c.o'. [687/1674] Compiling C object 'tests/v3d/cad21b8@@v3d_submit_csd@exe/v3d_submit_csd.c.o'. [688/1674] Compiling C object 'tests/59830eb@@kms_chamelium_hpd@exe/chamelium_kms_chamelium_hpd.c.o'. [689/1674] Compiling C object 'benchmarks/cb1d2fd@@gem_exec_reloc@exe/gem_exec_reloc.c.o'. [690/1674] Compiling C object 'tests/vmwgfx/776e741@@vmw_tri@exe/vmw_tri.c.o'.
[691/1674] Compiling C object 'tests/vmwgfx/776e741@@vmw_execution_buffer@exe/vmw_execution_buffer.c.o'. [692/1674] Compiling C object 'tests/vmwgfx/776e741@@vmw_ref_count@exe/vmw_ref_count.c.o'. [693/1674] Compiling C object 'benchmarks/cb1d2fd@@gem_blt@exe/gem_blt.c.o'.
[694/1674] Compiling C object 'tests/59830eb@@kms_chamelium_frames@exe/chamelium_kms_chamelium_frames.c.o'. [695/1674] Compiling C object 'tests/vmwgfx/776e741@@vmw_surface_copy@exe/vmw_surface_copy.c.o'. [696/1674] Compiling C object 'tests/59830eb@@gem_stress@exe/intel_gem_stress.c.o'. [697/1674] Compiling C object 'tests/59830eb@@gem_exec_fence@exe/intel_gem_exec_fence.c.o'. [698/1674] Compiling C object 'tests/59830eb@@gem_userptr_blits@exe/intel_gem_userptr_blits.c.o'. [699/1674] Compiling C object 'tests/59830eb@@xe_vm@exe/intel_xe_vm.c.o'.
[700/1674] Compiling C object 'tests/59830eb@@kms_frontbuffer_tracking@exe/intel_kms_frontbuffer_tracking.c.o'. [701/1674] Compiling C object 'tests/59830eb@@gem_concurrent_all@exe/intel_gem_concurrent_all.c.o'. [702/1674] Compiling C object 'tests/59830eb@@perf_pmu@exe/intel_perf_pmu.c.o'.
[703/1674] Compiling C object 'tests/59830eb@@gem_exec_schedule@exe/intel_gem_exec_schedule.c.o'. [704/1674] Compiling C object 'tests/59830eb@@perf@exe/intel_perf.c.o'.
[705/1674] Linking target lib/libigt.so.0.
ninja: build stopped: subcommand failed.
Patchwork
CI✗ GitLab.Pipeline: warning for Update compression check based on platform
In reply to Akshata Jahagirdar== Series Details ==
== Series Details ==
Series: Update compression check based on platform
URL : https://patchwork.freedesktop.org/series/132014/
State : warning
== Summary ==
Pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/1145549 for the overview.
build:tests-debian-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/57183423):
[1259/1796] Compiling C object 'tests/59830eb@@kms_psr2_sf@exe/intel_kms_psr2_sf.c.o'.
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[1/1100] Generating version.h with a custom command.
[2/539] Compiling C object 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o'.
FAILED: tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o
cc -Itests/59830eb@@xe_ccs@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/x86_64-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -I/usr/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -MF 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o.d' -o 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -c ../tests/intel/xe_ccs.c ../tests/intel/xe_ccs.c: In function ‘surf_copy’:
../tests/intel/xe_ccs.c:196:31: error: implicit declaration of function ‘blt_platform_has_flat_ccs_enabled’ [-Werror=implicit-function-declaration]
if (AT_LEAST_GEN(xe, 20) && !blt_platform_has_flat_ccs_enabled(xe))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/intel/xe_ccs.c:196:31: warning: nested extern declaration of ‘blt_platform_has_flat_ccs_enabled’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1712224078:step_script
section_start:1712224078:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1712224079:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/57183426):
[5/427] Linking target tests/gem_barrier_race.
[6/427] Linking target tests/perf.
[7/427] Linking target tests/kms_frontbuffer_tracking.
[8/427] Linking target tests/kms_psr2_sf.
[9/427] Compiling C object 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o'.
FAILED: tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o
/usr/bin/aarch64-linux-gnu-gcc -Itests/59830eb@@xe_ccs@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/aarch64-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -MF 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o.d' -o 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -c ../tests/intel/xe_ccs.c ../tests/intel/xe_ccs.c: In function ‘surf_copy’:
../tests/intel/xe_ccs.c:196:31: error: implicit declaration of function ‘blt_platform_has_flat_ccs_enabled’ [-Werror=implicit-function-declaration]
if (AT_LEAST_GEN(xe, 20) && !blt_platform_has_flat_ccs_enabled(xe))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/intel/xe_ccs.c:196:31: warning: nested extern declaration of ‘blt_platform_has_flat_ccs_enabled’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1712224132:step_script
section_start:1712224132:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1712224133:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-armhf has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/57183425):
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[1/720] Generating version.h with a custom command.
[2/412] Linking target tests/kms_frontbuffer_tracking.
[3/412] Compiling C object 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o'.
FAILED: tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o
/usr/bin/arm-linux-gnueabihf-gcc -Itests/59830eb@@xe_ccs@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/arm-linux-gnueabihf -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -MF 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o.d' -o 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -c ../tests/intel/xe_ccs.c ../tests/intel/xe_ccs.c: In function ‘surf_copy’:
../tests/intel/xe_ccs.c:196:31: error: implicit declaration of function ‘blt_platform_has_flat_ccs_enabled’ [-Werror=implicit-function-declaration]
if (AT_LEAST_GEN(xe, 20) && !blt_platform_has_flat_ccs_enabled(xe))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/intel/xe_ccs.c:196:31: warning: nested extern declaration of ‘blt_platform_has_flat_ccs_enabled’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1712224110:step_script
section_start:1712224110:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1712224112:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/57183427):
[5/427] Linking target tests/gem_barrier_race.
[6/427] Linking target tests/perf.
[7/427] Linking target tests/kms_frontbuffer_tracking.
[8/427] Linking target tests/kms_pm_rpm.
[9/427] Compiling C object 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o'.
FAILED: tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o
/usr/bin/mips-linux-gnu-gcc -Itests/59830eb@@xe_ccs@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/mips-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/mips-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -MF 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o.d' -o 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -c ../tests/intel/xe_ccs.c ../tests/intel/xe_ccs.c: In function ‘surf_copy’:
../tests/intel/xe_ccs.c:196:31: error: implicit declaration of function ‘blt_platform_has_flat_ccs_enabled’ [-Werror=implicit-function-declaration]
if (AT_LEAST_GEN(xe, 20) && !blt_platform_has_flat_ccs_enabled(xe))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/intel/xe_ccs.c:196:31: warning: nested extern declaration of ‘blt_platform_has_flat_ccs_enabled’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1712224151:step_script
section_start:1712224151:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1712224152:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/57183418):
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[1/1102] Generating version.h with a custom command.
[2/532] Generating kms_psr2_sf.testlist with a meson_exe.py custom command.
[3/532] Compiling C object 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o'.
FAILED: tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o
cc -Itests/59830eb@@xe_ccs@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/valgrind -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -MF 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o.d' -o 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -c ../tests/intel/xe_ccs.c ../tests/intel/xe_ccs.c: In function ‘surf_copy’:
../tests/intel/xe_ccs.c:196:31: error: implicit declaration of function ‘blt_platform_has_flat_ccs_enabled’ [-Werror=implicit-function-declaration]
196 | if (AT_LEAST_GEN(xe, 20) && !blt_platform_has_flat_ccs_enabled(xe))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/intel/xe_ccs.c:196:31: warning: nested extern declaration of ‘blt_platform_has_flat_ccs_enabled’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1712224011:step_script
section_start:1712224011:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1712224011:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-clang has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/57183422):
if (AT_LEAST_GEN(xe, 20) && !blt_platform_has_flat_ccs_enabled(xe))
^
../tests/intel/xe_ccs.c:298:9: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
return ret;
^~~
../tests/intel/xe_ccs.c:251:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
../tests/intel/xe_ccs.c:369:32: error: implicit declaration of function 'blt_platform_has_flat_ccs_enabled' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (AT_LEAST_GEN(xe, 20) && !blt_platform_has_flat_ccs_enabled(xe))
^ 1 warning and 2 errors generated.
ninja: build stopped: subcommand failed. section_end:1712224062:step_script section_start:1712224062:cleanup_file_variables Cleaning up project directory and file based variables section_end:1712224063:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-no-libdrm-nouveau has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/57183421):
ninja: Entering directory `build'
[1/972] Generating version.h with a custom command.
[2/407] Linking target tests/kms_frontbuffer_tracking.
[3/407] Generating kms_frontbuffer_tracking.testlist with a meson_exe.py custom command.
[4/407] Compiling C object 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o'.
FAILED: tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o
cc -Itests/59830eb@@xe_ccs@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/valgrind -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -MF 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o.d' -o 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -c ../tests/intel/xe_ccs.c ../tests/intel/xe_ccs.c: In function ‘surf_copy’:
../tests/intel/xe_ccs.c:196:31: error: implicit declaration of function ‘blt_platform_has_flat_ccs_enabled’ [-Werror=implicit-function-declaration]
196 | if (AT_LEAST_GEN(xe, 20) && !blt_platform_has_flat_ccs_enabled(xe))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/intel/xe_ccs.c:196:31: warning: nested extern declaration of ‘blt_platform_has_flat_ccs_enabled’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1712224075:step_script
section_start:1712224075:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1712224077:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-no-libunwind has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/57183419):
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[1/1103] Generating version.h with a custom command.
[2/534] Generating kms_psr2_sf.testlist with a meson_exe.py custom command.
[3/534] Compiling C object 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o'.
FAILED: tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o
cc -Itests/59830eb@@xe_ccs@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I../lib/stubs/libunwind -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/valgrind -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -MF 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o.d' -o 'tests/59830eb@@xe_ccs@exe/intel_xe_ccs.c.o' -c ../tests/intel/xe_ccs.c ../tests/intel/xe_ccs.c: In function ‘surf_copy’:
../tests/intel/xe_ccs.c:196:31: error: implicit declaration of function ‘blt_platform_has_flat_ccs_enabled’ [-Werror=implicit-function-declaration]
196 | if (AT_LEAST_GEN(xe, 20) && !blt_platform_has_flat_ccs_enabled(xe))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/intel/xe_ccs.c:196:31: warning: nested extern declaration of ‘blt_platform_has_flat_ccs_enabled’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1712224036:step_script
section_start:1712224036:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1712224037:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-oldest-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/57183420):
[1270/1802] Generating kms_psr2_sf.testlist with a meson_exe.py custom command.
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[1/1104] Generating version.h with a custom command.
[2/534] Compiling C object 'tests/tests@@xe_ccs@exe/intel_xe_ccs.c.o'.
FAILED: tests/tests@@xe_ccs@exe/intel_xe_ccs.c.o
cc -Itests/tests@@xe_ccs@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/valgrind -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -pthread -MD -MQ 'tests/tests@@xe_ccs@exe/intel_xe_ccs.c.o' -MF 'tests/tests@@xe_ccs@exe/intel_xe_ccs.c.o.d' -o 'tests/tests@@xe_ccs@exe/intel_xe_ccs.c.o' -c ../tests/intel/xe_ccs.c ../tests/intel/xe_ccs.c: In function ‘surf_copy’:
../tests/intel/xe_ccs.c:196:31: error: implicit declaration of function ‘blt_platform_has_flat_ccs_enabled’ [-Werror=implicit-function-declaration]
196 | if (AT_LEAST_GEN(xe, 20) && !blt_platform_has_flat_ccs_enabled(xe))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/intel/xe_ccs.c:196:31: warning: nested extern declaration of ‘blt_platform_has_flat_ccs_enabled’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1712224032:step_script
section_start:1712224032:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1712224032:cleanup_file_variables
ERROR: Job failed: exit code 1
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/1145549