Decode the upscaler stand-in's picture with a square, emit SURED with its real opcode and keep the translator's warnings.

The post pass stores the square root of each channel, so the stand-in for Ocarina's untranslatable upscaler now
filters those values and squares them in its compute pass (shaders/fallback_tonemap.spvasm, vk_tonemap.c) instead of
decoding them with the sRGB curve, which darkened mid-tones and lifted the darkest values; the pass is compiled in again,
its round-24 device loss having been the push descriptor call outside the recorder. NX2NAVI_FALLBACK_EXPOSURE is gone.
AmpereLowering emitted SURED as 0xeb48, which matches no Maxwell instruction, so the translator skipped every image
reduction; with 0xeb58 the edge AA's blend-weight pass writes its image. The translator's own warnings go to res.json
notes, and shader dumps are named by program serial so they match the frame dumps' program numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-06 13:11:58 -05:00
parent 5dfa690d96
commit eed3e6b786
8 changed files with 92 additions and 123 deletions

View File

@@ -1,63 +1,47 @@
// Generated from runtime/shaders/fallback_tonemap.spvasm (spirv-as --target-env vulkan1.3); do not edit.
// source sha256 31e5bd112d259f6d65bd0d488b2bbe1dd0b2183ad1aca69f666c17e0589d447f
// source sha256 5785ee27470b43df9ce7dea3285bdcee404ba2ff220979b7d2c88280c6b1906b
#pragma once
#include <stdint.h>
static const uint32_t fallback_tonemap_spv[] = {
0x07230203, 0x00010600, 0x00070000, 0x00000052, 0x00000000, 0x00020011, 0x00000001, 0x0006000b,
0x00000001, 0x4c534c47, 0x6474732e, 0x3035342e, 0x00000000, 0x0003000e, 0x00000000, 0x00000001,
0x0009000f, 0x00000005, 0x00000002, 0x6e69616d, 0x00000000, 0x00000003, 0x00000004, 0x00000005,
0x00000006, 0x00060010, 0x00000002, 0x00000011, 0x00000008, 0x00000008, 0x00000001, 0x00040047,
0x00000003, 0x0000000b, 0x0000001c, 0x00040047, 0x00000004, 0x00000022, 0x00000000, 0x00040047,
0x00000004, 0x00000021, 0x00000000, 0x00040047, 0x00000005, 0x00000022, 0x00000000, 0x00040047,
0x00000005, 0x00000021, 0x00000001, 0x00030047, 0x00000005, 0x00000019, 0x00030047, 0x00000007,
0x00000002, 0x00050048, 0x00000007, 0x00000000, 0x00000023, 0x00000000, 0x00050048, 0x00000007,
0x00000001, 0x00000023, 0x00000008, 0x00050048, 0x00000007, 0x00000002, 0x00000023, 0x0000000c,
0x00050048, 0x00000007, 0x00000003, 0x00000023, 0x00000010, 0x00020013, 0x00000008, 0x00030021,
0x00000009, 0x00000008, 0x00030016, 0x0000000a, 0x00000020, 0x00040015, 0x0000000b, 0x00000020,
0x00000001, 0x00040015, 0x0000000c, 0x00000020, 0x00000000, 0x00020014, 0x0000000d, 0x00040017,
0x0000000e, 0x0000000a, 0x00000002, 0x00040017, 0x0000000f, 0x0000000a, 0x00000003, 0x00040017,
0x00000010, 0x0000000a, 0x00000004, 0x00040017, 0x00000011, 0x0000000b, 0x00000002, 0x00040017,
0x00000012, 0x0000000c, 0x00000003, 0x00040017, 0x00000013, 0x0000000c, 0x00000002, 0x00040020,
0x00000014, 0x00000001, 0x00000012, 0x0004003b, 0x00000014, 0x00000003, 0x00000001, 0x00090019,
0x00000015, 0x0000000a, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
0x0003001b, 0x00000016, 0x00000015, 0x00040020, 0x00000017, 0x00000000, 0x00000016, 0x0004003b,
0x00000017, 0x00000004, 0x00000000, 0x00090019, 0x00000018, 0x0000000a, 0x00000001, 0x00000000,
0x00000000, 0x00000000, 0x00000002, 0x00000002, 0x00040020, 0x00000019, 0x00000000, 0x00000018,
0x0004003b, 0x00000019, 0x00000005, 0x00000000, 0x0006001e, 0x00000007, 0x0000000e, 0x0000000a,
0x0000000a, 0x00000011, 0x00040020, 0x0000001a, 0x00000009, 0x00000007, 0x0004003b, 0x0000001a,
0x00000006, 0x00000009, 0x00040020, 0x0000001b, 0x00000009, 0x0000000e, 0x00040020, 0x0000001c,
0x00000009, 0x0000000a, 0x00040020, 0x0000001d, 0x00000009, 0x00000011, 0x0004002b, 0x0000000b,
0x0000001e, 0x00000000, 0x0004002b, 0x0000000b, 0x0000001f, 0x00000001, 0x0004002b, 0x0000000b,
0x00000020, 0x00000003, 0x0004002b, 0x0000000a, 0x00000021, 0x00000000, 0x0004002b, 0x0000000a,
0x00000022, 0x3f800000, 0x0004002b, 0x0000000a, 0x00000023, 0x3f000000, 0x0004002b, 0x0000000a,
0x00000024, 0x4020a3d7, 0x0004002b, 0x0000000a, 0x00000025, 0x3cf5c28f, 0x0004002b, 0x0000000a,
0x00000026, 0x401b851f, 0x0004002b, 0x0000000a, 0x00000027, 0x3f170a3d, 0x0004002b, 0x0000000a,
0x00000028, 0x3e0f5c29, 0x0005002c, 0x0000000e, 0x00000029, 0x00000023, 0x00000023, 0x0006002c,
0x0000000f, 0x0000002a, 0x00000021, 0x00000021, 0x00000021, 0x0006002c, 0x0000000f, 0x0000002b,
0x00000022, 0x00000022, 0x00000022, 0x0006002c, 0x0000000f, 0x0000002c, 0x00000024, 0x00000024,
0x00000024, 0x0006002c, 0x0000000f, 0x0000002d, 0x00000025, 0x00000025, 0x00000025, 0x0006002c,
0x0000000f, 0x0000002e, 0x00000026, 0x00000026, 0x00000026, 0x0006002c, 0x0000000f, 0x0000002f,
0x00000027, 0x00000027, 0x00000027, 0x0006002c, 0x0000000f, 0x00000030, 0x00000028, 0x00000028,
0x00000028, 0x00040017, 0x00000031, 0x0000000d, 0x00000002, 0x00050036, 0x00000008, 0x00000002,
0x00000000, 0x00000009, 0x000200f8, 0x00000032, 0x0004003d, 0x00000012, 0x00000033, 0x00000003,
0x0007004f, 0x00000013, 0x00000034, 0x00000033, 0x00000033, 0x00000000, 0x00000001, 0x0004007c,
0x00000011, 0x00000035, 0x00000034, 0x00050041, 0x0000001d, 0x00000036, 0x00000006, 0x00000020,
0x0004003d, 0x00000011, 0x00000037, 0x00000036, 0x000500af, 0x00000031, 0x00000038, 0x00000035,
0x00000037, 0x0004009a, 0x0000000d, 0x00000039, 0x00000038, 0x000300f7, 0x0000003a, 0x00000000,
0x000400fa, 0x00000039, 0x0000003b, 0x0000003a, 0x000200f8, 0x0000003b, 0x000100fd, 0x000200f8,
0x0000003a, 0x0004006f, 0x0000000e, 0x0000003c, 0x00000035, 0x00050081, 0x0000000e, 0x0000003d,
0x0000003c, 0x00000029, 0x00050041, 0x0000001b, 0x0000003e, 0x00000006, 0x0000001e, 0x0004003d,
0x0000000e, 0x0000003f, 0x0000003e, 0x00050085, 0x0000000e, 0x00000040, 0x0000003d, 0x0000003f,
0x0004003d, 0x00000016, 0x00000041, 0x00000004, 0x00070058, 0x00000010, 0x00000042, 0x00000041,
0x00000040, 0x00000002, 0x00000021, 0x0008004f, 0x0000000f, 0x00000043, 0x00000042, 0x00000042,
0x00000000, 0x00000001, 0x00000002, 0x00050041, 0x0000001c, 0x00000044, 0x00000006, 0x0000001f,
0x0004003d, 0x0000000a, 0x00000045, 0x00000044, 0x0005008e, 0x0000000f, 0x00000046, 0x00000043,
0x00000045, 0x00050085, 0x0000000f, 0x00000047, 0x00000046, 0x0000002c, 0x00050081, 0x0000000f,
0x00000048, 0x00000047, 0x0000002d, 0x00050085, 0x0000000f, 0x00000049, 0x00000046, 0x00000048,
0x00050085, 0x0000000f, 0x0000004a, 0x00000046, 0x0000002e, 0x00050081, 0x0000000f, 0x0000004b,
0x0000004a, 0x0000002f, 0x00050085, 0x0000000f, 0x0000004c, 0x00000046, 0x0000004b, 0x00050081,
0x0000000f, 0x0000004d, 0x0000004c, 0x00000030, 0x00050088, 0x0000000f, 0x0000004e, 0x00000049,
0x0000004d, 0x0008000c, 0x0000000f, 0x0000004f, 0x00000001, 0x0000002b, 0x0000004e, 0x0000002a,
0x0000002b, 0x00050050, 0x00000010, 0x00000050, 0x0000004f, 0x00000022, 0x0004003d, 0x00000018,
0x00000051, 0x00000005, 0x00040063, 0x00000051, 0x00000035, 0x00000050, 0x000100fd, 0x00010038,
0x07230203, 0x00010600, 0x00070000, 0x00000038, 0x00000000, 0x00020011, 0x00000001, 0x0003000e,
0x00000000, 0x00000001, 0x0009000f, 0x00000005, 0x00000001, 0x6e69616d, 0x00000000, 0x00000002,
0x00000003, 0x00000004, 0x00000005, 0x00060010, 0x00000001, 0x00000011, 0x00000008, 0x00000008,
0x00000001, 0x00040047, 0x00000002, 0x0000000b, 0x0000001c, 0x00040047, 0x00000003, 0x00000022,
0x00000000, 0x00040047, 0x00000003, 0x00000021, 0x00000000, 0x00040047, 0x00000004, 0x00000022,
0x00000000, 0x00040047, 0x00000004, 0x00000021, 0x00000001, 0x00030047, 0x00000004, 0x00000019,
0x00030047, 0x00000006, 0x00000002, 0x00050048, 0x00000006, 0x00000000, 0x00000023, 0x00000000,
0x00050048, 0x00000006, 0x00000001, 0x00000023, 0x00000008, 0x00050048, 0x00000006, 0x00000002,
0x00000023, 0x0000000c, 0x00050048, 0x00000006, 0x00000003, 0x00000023, 0x00000010, 0x00020013,
0x00000007, 0x00030021, 0x00000008, 0x00000007, 0x00030016, 0x00000009, 0x00000020, 0x00040015,
0x0000000a, 0x00000020, 0x00000001, 0x00040015, 0x0000000b, 0x00000020, 0x00000000, 0x00020014,
0x0000000c, 0x00040017, 0x0000000d, 0x00000009, 0x00000002, 0x00040017, 0x0000000e, 0x00000009,
0x00000003, 0x00040017, 0x0000000f, 0x00000009, 0x00000004, 0x00040017, 0x00000010, 0x0000000a,
0x00000002, 0x00040017, 0x00000011, 0x0000000b, 0x00000003, 0x00040017, 0x00000012, 0x0000000b,
0x00000002, 0x00040020, 0x00000013, 0x00000001, 0x00000011, 0x0004003b, 0x00000013, 0x00000002,
0x00000001, 0x00090019, 0x00000014, 0x00000009, 0x00000001, 0x00000000, 0x00000000, 0x00000000,
0x00000001, 0x00000000, 0x0003001b, 0x00000015, 0x00000014, 0x00040020, 0x00000016, 0x00000000,
0x00000015, 0x0004003b, 0x00000016, 0x00000003, 0x00000000, 0x00090019, 0x00000017, 0x00000009,
0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0x00000002, 0x00040020, 0x00000018,
0x00000000, 0x00000017, 0x0004003b, 0x00000018, 0x00000004, 0x00000000, 0x0006001e, 0x00000006,
0x0000000d, 0x00000009, 0x00000009, 0x00000010, 0x00040020, 0x00000019, 0x00000009, 0x00000006,
0x0004003b, 0x00000019, 0x00000005, 0x00000009, 0x00040020, 0x0000001a, 0x00000009, 0x0000000d,
0x00040020, 0x0000001b, 0x00000009, 0x00000010, 0x0004002b, 0x0000000a, 0x0000001c, 0x00000000,
0x0004002b, 0x0000000a, 0x0000001d, 0x00000003, 0x0004002b, 0x00000009, 0x0000001e, 0x00000000,
0x0004002b, 0x00000009, 0x0000001f, 0x3f800000, 0x0004002b, 0x00000009, 0x00000020, 0x3f000000,
0x0005002c, 0x0000000d, 0x00000021, 0x00000020, 0x00000020, 0x00040017, 0x00000022, 0x0000000c,
0x00000002, 0x00050036, 0x00000007, 0x00000001, 0x00000000, 0x00000008, 0x000200f8, 0x00000023,
0x0004003d, 0x00000011, 0x00000024, 0x00000002, 0x0007004f, 0x00000012, 0x00000025, 0x00000024,
0x00000024, 0x00000000, 0x00000001, 0x0004007c, 0x00000010, 0x00000026, 0x00000025, 0x00050041,
0x0000001b, 0x00000027, 0x00000005, 0x0000001d, 0x0004003d, 0x00000010, 0x00000028, 0x00000027,
0x000500af, 0x00000022, 0x00000029, 0x00000026, 0x00000028, 0x0004009a, 0x0000000c, 0x0000002a,
0x00000029, 0x000300f7, 0x0000002b, 0x00000000, 0x000400fa, 0x0000002a, 0x0000002c, 0x0000002b,
0x000200f8, 0x0000002c, 0x000100fd, 0x000200f8, 0x0000002b, 0x0004006f, 0x0000000d, 0x0000002d,
0x00000026, 0x00050081, 0x0000000d, 0x0000002e, 0x0000002d, 0x00000021, 0x00050041, 0x0000001a,
0x0000002f, 0x00000005, 0x0000001c, 0x0004003d, 0x0000000d, 0x00000030, 0x0000002f, 0x00050085,
0x0000000d, 0x00000031, 0x0000002e, 0x00000030, 0x0004003d, 0x00000015, 0x00000032, 0x00000003,
0x00070058, 0x0000000f, 0x00000033, 0x00000032, 0x00000031, 0x00000002, 0x0000001e, 0x0008004f,
0x0000000e, 0x00000034, 0x00000033, 0x00000033, 0x00000000, 0x00000001, 0x00000002, 0x00050085,
0x0000000e, 0x00000035, 0x00000034, 0x00000034, 0x00050050, 0x0000000f, 0x00000036, 0x00000035,
0x0000001f, 0x0004003d, 0x00000017, 0x00000037, 0x00000004, 0x00040063, 0x00000037, 0x00000026,
0x00000036, 0x000100fd, 0x00010038,
};