Documentation
¶
Overview ¶
Package gputest picks the Vulkan driver the GPU tests run on, from the environment: LYS_TEST_GPU=lavapipe runs them on Mesa's CPU driver (CI, no GPU needed), whose ICD file LYS_TEST_LAVAPIPE names (the dev shell sets it); any other value runs them on the host's device; unset, they run where a device is found and skip elsewhere.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enabled ¶
func Enabled() bool
Enabled reports whether LYS_TEST_GPU asks for the GPU tests, which the suites outside package gpu run only then.
func Setup ¶
Setup points the Vulkan loader, through setenv, at the driver LYS_TEST_GPU asks for, and at the validation layer when LYS_TEST_VULKAN_LAYERS names the directory of its manifest (the dev shell does): any error the layer finds stops the test with a SIGTRAP at the offending call, after logging it. required is whether a missing device fails the test rather than skipping it.
Types ¶
This section is empty.