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.
13 lines
632 B
Metal
13 lines
632 B
Metal
// For scenarios/mutgap_decoders.py: a tile function that samples tile texture 0
|
|
// through tile sampler 1 at level 0 and writes the texel into colour 0, so the
|
|
// sampler's LOD clamps (0xa0) decide the mip level.
|
|
#include <metal_stdlib>
|
|
using namespace metal;
|
|
struct TileOut { half4 c [[color(0)]]; };
|
|
kernel void mutdec_tilesample(imageblock<TileOut, imageblock_layout_implicit> ib, texture2d<half> t [[texture(0)]],
|
|
sampler s [[sampler(1)]], ushort2 lid [[thread_position_in_threadgroup]]) {
|
|
TileOut o = ib.read(lid);
|
|
o.c = t.sample(s, float2(0.5, 0.5), level(0.0));
|
|
ib.write(o, lid);
|
|
}
|