mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 18:08:40 +00:00
d3d12_subgroup_test now draws ps_w64x_readlane.asm (a wave64 pixel shader with v_readlane of lanes 40, 5, 33 and 63) over 64x64 pixels through a D3D12 graphics PSO into a float target: every pixel must carry the derived words where the PSO required 64 (4096 of 4096 on the Radeon 880M). Probe shaders (compute and fragment) store gl_SubgroupSize, so the size the driver ran them with is observed and must equal what the PSO required; a wave32 compute shader's control run is asserted to differ on a device whose default is not 32, and the pixel probe shows the wave32 request changing 64-wide to 32-wide on the 880M. The wave64 pixel control is asserted to differ only where the default pixel subgroup is not 64. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
7 lines
264 B
GLSL
7 lines
264 B
GLSL
#version 460
|
|
// One triangle that covers the whole viewport, from gl_VertexIndex alone, for d3d12_subgroup_test.
|
|
void main() {
|
|
const vec2 p = vec2(float((gl_VertexIndex << 1) & 2), float(gl_VertexIndex & 2));
|
|
gl_Position = vec4(p * 2.0 - 1.0, 0.0, 1.0);
|
|
}
|