The suite drove apple-gfx's C API as QEMU did and recorded what the paravirt device did; the owner's ruling deletes apple-gfx and everything of it, the suite with it, so make test, bless and coverage go too. Its shader fixtures are the platforms', the graphics device's and the guest bundle's tests too: they move to tests/shaders. guest/bundle's Makefile, an input of the prebuilt kexts, still names tests/suite/fixtures/shaders, which stays as a link to tests/shaders until the kexts are next built. A worktree no longer clones the suite's 257 MiB, so new-worktree.sh adds it plainly.
10 lines
468 B
Metal
10 lines
468 B
Metal
// Render suite: a fragment function that samples fragment texture 0 with
|
|
// fragment sampler 0 at a coordinate that runs from -0.5 to 1.5 across the
|
|
// target, so the sampler's address modes and filters show in the pixels.
|
|
#include <metal_stdlib>
|
|
using namespace metal;
|
|
fragment float4 render_ftex(float4 p [[position]], texture2d<float> t [[texture(0)]], sampler s [[sampler(0)]]) {
|
|
float2 uv = p.xy / float2(8.0, 8.0) * 2.0 - 0.5;
|
|
return t.sample(s, uv);
|
|
}
|