mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 19:36:55 +02:00
shader: emit F32 min/max as exact compare-selects, MED3 with one max and saturate as NClamp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user