shader: emit F32 min/max as exact compare-selects, MED3 with one max and saturate as NClamp

This commit is contained in:
nmzik
2026-10-20 23:36:26 +02:00
parent 8cc5f5364a
commit 3c4124dafa
4 changed files with 45 additions and 51 deletions
+2 -2
View File
@@ -27914,8 +27914,8 @@ TestCase VectorMed3F32NanUsesMin3Path(u32 wave) {
test.opcodes = {O::V_MOV_B32, O::BUFFER_LOAD_DWORD, O::V_MED3_F32,
O::BUFFER_STORE_DWORD, O::S_ENDPGM};
test.ir_counts = {{"FPMedTri32", std::size(cases)}};
// Measured 17,593/36,607 words; keep classification growth below a single MED3.
test.max_spirv_words = wave == 32u ? 17600u : 36620u;
// Measured 16,140/33,705 words; keep min/max expansion growth below a single MED3.
test.max_spirv_words = wave == 32u ? 16150u : 33720u;
return test;
}