ci/freedreno: Introduce OpenCL testing for Adreno 618, 660, and 750

Implement testing rusticl with piglit.

Piglit OpenCL support enablement already got merged.

Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30835>
This commit is contained in:
David Heidelberg 2024-05-24 19:33:11 -07:00 committed by Marge Bot
parent 4f1adb71d6
commit 5b3f7de99f
8 changed files with 260 additions and 0 deletions

View file

@ -0,0 +1,7 @@
[[piglit]]
piglit_folder = "/piglit"
profile = "cl"
process_isolation = true
skips = ["install/freedreno-a6xx-skips.txt"]
[piglit.env]
RUSTICL_ENABLE = "msm"

View file

@ -0,0 +1,8 @@
[[piglit]]
piglit_folder = "/piglit"
profile = "cl"
process_isolation = true
skips = ["install/freedreno-a6xx-skips.txt"]
[piglit.env]
RUSTICL_ENABLE = "msm"

View file

@ -0,0 +1,8 @@
[[piglit]]
piglit_folder = "/piglit"
profile = "cl"
process_isolation = true
skips = ["install/freedreno-a6xx-skips.txt"]
[piglit.env]
RUSTICL_ENABLE = "msm"

View file

@ -315,3 +315,65 @@ dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_mag,Fail
# New fails in 1.3.10.0
dEQP-VK.dynamic_rendering.primary_cmd_buff.local_read.max_input_attachments,Fail
# OpenCL tests below
#
## rusticl-core issues:
#
#Unexpected CL error: CL_BUILD_PROGRAM_FAILURE -11
#Expected CL error: CL_INVALID_BUILD_OPTIONS -43
api@clbuildprogram,Fail
#Unexpected CL error: CL_COMPILE_PROGRAM_FAILURE -15
#Expected CL error: CL_INVALID_COMPILER_OPTIONS -66
api@clcompileprogram,Fail
#Unexpected CL error: CL_SUCCESS 0
#Expected CL error: CL_KERNEL_ARG_INFO_NOT_AVAILABLE -19
api@clgetkernelarginfo,Fail
#Unexpected CL error: CL_SUCCESS 0
#Expected CL error: CL_INVALID_LINKER_OPTIONS -67
#Failed (error code: CL_SUCCESS): Trigger CL_INVALID_LINKER_OPTIONS if the linker options specified by options are invalid.
#Unexpected CL error: CL_LINK_PROGRAM_FAILURE -17
#Expected CL error: CL_INVALID_OPERATION -59
#Failed (error code: CL_LINK_PROGRAM_FAILURE): Trigger CL_INVALID_OPERATION if the rules for devices containing compiled binaries or libraries as described in input_programs argument above are not followed.
#Unexpected CL error: CL_SUCCESS 0
#Expected CL error: CL_LINK_PROGRAM_FAILURE -17
api@cllinkprogram,Fail
# can be resolved by RUSTICL_FEATURES=fp16,fp64
program@build@vector-data-types,Fail
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/8408
program@execute@global-offset,Fail
program@execute@global-offset@3d- input dependent,Fail
#
## freedreno issues:
#
#Error at data[0]
custom@r600 create release buffer bug,Fail
#
## works on OnePlus 6:
#
#Failed: return NULL if platform is not a valid platform
api@clgetextensionfunctionaddressforplatform,Fail
#
## Not our problem:
#
# CL_DEVICE_MAX_READ_IMAGE_ARGS: failed, expected at least 128, got 16
api@clgetdeviceinfo,Fail
# CL_QUEUE_SIZE Unexpected CL error: CL_INVALID_COMMAND_QUEUE -36
api@clgetcommandqueueinfo,Fail
# broken piglit test (doesn't account for FTZ)
program@execute@builtin@builtin-float-nextafter-1.0.generated,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float1,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float16,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float2,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float4,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float8,Fail

View file

@ -26,3 +26,66 @@ dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_mag,Fail
KHR-GL46.direct_state_access.renderbuffers_storage_multisample,Fail
# GL tests above, Vulkan tests below
# OpenCL tests below
#
## rusticl-core issues:
#
#Unexpected CL error: CL_BUILD_PROGRAM_FAILURE -11
#Expected CL error: CL_INVALID_BUILD_OPTIONS -43
api@clbuildprogram,Fail
#Unexpected CL error: CL_COMPILE_PROGRAM_FAILURE -15
#Expected CL error: CL_INVALID_COMPILER_OPTIONS -66
api@clcompileprogram,Fail
#Unexpected CL error: CL_SUCCESS 0
#Expected CL error: CL_KERNEL_ARG_INFO_NOT_AVAILABLE -19
api@clgetkernelarginfo,Fail
#Unexpected CL error: CL_SUCCESS 0
#Expected CL error: CL_INVALID_LINKER_OPTIONS -67
#Failed (error code: CL_SUCCESS): Trigger CL_INVALID_LINKER_OPTIONS if the linker options specified by options are invalid.
#Unexpected CL error: CL_LINK_PROGRAM_FAILURE -17
#Expected CL error: CL_INVALID_OPERATION -59
#Failed (error code: CL_LINK_PROGRAM_FAILURE): Trigger CL_INVALID_OPERATION if the rules for devices containing compiled binaries or libraries as described in input_programs argument above are not followed.
#Unexpected CL error: CL_SUCCESS 0
#Expected CL error: CL_LINK_PROGRAM_FAILURE -17
api@cllinkprogram,Fail
# can be resolved by RUSTICL_FEATURES=fp16,fp64
program@build@vector-data-types,Fail
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/8408
program@execute@global-offset,Fail
program@execute@global-offset@3d- input dependent,Fail
#
## freedreno issues:
#
#Error at data[0]
custom@r600 create release buffer bug,Fail
#
## works on OnePlus 6:
#
#Failed: return NULL if platform is not a valid platform
api@clgetextensionfunctionaddressforplatform,Fail
#
## Not our problem:
#
# CL_DEVICE_MAX_READ_IMAGE_ARGS: failed, expected at least 128, got 16
api@clgetdeviceinfo,Fail
# CL_QUEUE_SIZE Unexpected CL error: CL_INVALID_COMMAND_QUEUE -36
api@clgetcommandqueueinfo,Fail
# broken piglit test (doesn't account for FTZ)
program@execute@builtin@builtin-float-nextafter-1.0.generated,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float1,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float16,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float2,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float4,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float8,Fail

View file

@ -12,3 +12,65 @@ dynamic-dEQP-VK.renderpass2.depth_stencil_resolve.image_2d_32_32.samples_2.d32_s
# New fails in 1.3.10.0
dEQP-VK.dynamic_rendering.primary_cmd_buff.local_read.max_input_attachments,Fail
# OpenCL tests below
#
## rusticl-core issues:
#
#Unexpected CL error: CL_BUILD_PROGRAM_FAILURE -11
#Expected CL error: CL_INVALID_BUILD_OPTIONS -43
api@clbuildprogram,Fail
#Unexpected CL error: CL_COMPILE_PROGRAM_FAILURE -15
#Expected CL error: CL_INVALID_COMPILER_OPTIONS -66
api@clcompileprogram,Fail
#Unexpected CL error: CL_SUCCESS 0
#Expected CL error: CL_KERNEL_ARG_INFO_NOT_AVAILABLE -19
api@clgetkernelarginfo,Fail
#Unexpected CL error: CL_SUCCESS 0
#Expected CL error: CL_INVALID_LINKER_OPTIONS -67
#Failed (error code: CL_SUCCESS): Trigger CL_INVALID_LINKER_OPTIONS if the linker options specified by options are invalid.
#Unexpected CL error: CL_LINK_PROGRAM_FAILURE -17
#Expected CL error: CL_INVALID_OPERATION -59
#Failed (error code: CL_LINK_PROGRAM_FAILURE): Trigger CL_INVALID_OPERATION if the rules for devices containing compiled binaries or libraries as described in input_programs argument above are not followed.
#Unexpected CL error: CL_SUCCESS 0
#Expected CL error: CL_LINK_PROGRAM_FAILURE -17
api@cllinkprogram,Fail
# can be resolved by RUSTICL_FEATURES=fp16,fp64
program@build@vector-data-types,Fail
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/8408
program@execute@global-offset,Fail
program@execute@global-offset@3d- input dependent,Fail
#
## freedreno issues:
#
#Error at data[0]
custom@r600 create release buffer bug,Fail
#
## works on OnePlus 6:
#
#Failed: return NULL if platform is not a valid platform
api@clgetextensionfunctionaddressforplatform,Fail
#
## Not our problem:
#
# CL_DEVICE_MAX_READ_IMAGE_ARGS: failed, expected at least 128, got 16
api@clgetdeviceinfo,Fail
# CL_QUEUE_SIZE Unexpected CL error: CL_INVALID_COMMAND_QUEUE -36
api@clgetcommandqueueinfo,Fail
# broken piglit test (doesn't account for FTZ)
program@execute@builtin@builtin-float-nextafter-1.0.generated,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float1,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float16,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float2,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float4,Fail
program@execute@builtin@builtin-float-nextafter-1.0.generated@nextafter float8,Fail

View file

@ -155,6 +155,14 @@
- !reference [.collabora-freedreno-manual-rules, rules]
- !reference [.collabora-turnip-manual-rules, rules]
.valve-freedreno-manual-rules:
stage: freedreno-postmerge
extends: .no-auto-retry
rules:
- !reference [.test, rules]
- !reference [.valve-farm-manual-rules, rules]
- !reference [.freedreno-manual-rules, rules]
.valve-freedreno-turnip-manual-rules:
stage: freedreno-postmerge
extends: .no-auto-retry

View file

@ -173,6 +173,20 @@ a618-piglit-full:
HWCI_START_WESTON: 1
JOB_TIMEOUT: 60
a618-piglit-cl:
extends:
- .lava-test-deqp:arm64
- .lava-sc7180-trogdor-lazor-limozeen:arm64
- .collabora-freedreno-rules
rules:
- !reference [.collabora-freedreno-rules, rules]
- !reference [.rusticl-rules, rules]
variables:
DEQP_SUITE: freedreno-a618-piglit-cl
FLAKES_CHANNEL: "#freedreno-ci"
HWCI_START_WESTON: 1
PIGLIT_PROFILES: cl
a618-traces:
extends:
- .lava-piglit-traces:arm64
@ -205,6 +219,19 @@ a618-traces-performance:
- !reference [a618-traces, needs]
- !reference [.piglit-performance:arm64, needs]
a660-piglit-cl:
extends:
- .lava-test-deqp:arm64
- .lava-sm8350-hdk:arm64
- .collabora-freedreno-rules
rules:
- !reference [.collabora-freedreno-rules, rules]
- !reference [.rusticl-rules, rules]
variables:
DEQP_SUITE: freedreno-a660-piglit-cl
HWCI_START_WESTON: 1
PIGLIT_PROFILES: cl
a660-gl:
extends:
- .lava-test-deqp:arm64
@ -353,6 +380,21 @@ a630-traces-performance:
GIT_STRATEGY: none
HWCI_FREQ_MAX: "true"
a750-piglit-cl:
extends:
- .b2c-arm64-test-gl
- .a750-mupuf
- .valve-freedreno-manual-rules
rules:
- !reference [.valve-freedreno-manual-rules, rules]
- !reference [.rusticl-rules, rules]
variables:
DEQP_SUITE: freedreno-a750-piglit-cl
HWCI_START_WESTON: 1
PIGLIT_PROFILES: cl
HWCI_TEST_SCRIPT: ./install/deqp-runner.sh
VK_DRIVER: freedreno
a750-vk:
extends:
- .b2c-freedreno-vk-test