mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 11:49:59 -04:00
The NVN2 front end and the SM86 to Maxwell shader lowering (tools/xlate/AmpereLowering.cs, mesh and task stages, bindless texture pools, BRX jump tables, the NVN2 compute c0 layout) with four translator patches (0017-0020) bring the opening of the game to 58-60 fps on the Vulkan renderer. This round fixes the haze: SM86 IPA is lowered as a plain Maxwell IPA.PASS (texture coordinates were corrected for perspective twice); LDSM, TXD, both F2IP byte forms, HMMA, MOVM and HFMA2.RELU are lowered and spill mode has eight uniform register groups; conditional rendering keeps the newest counter report per address and treats a report as pending until its value is in guest memory, so occlusion tests and the depth clears around the depth copy behave; and the upscaler stand-in decodes the post pass's sRGB picture before writing the linear target. Tensor-core programs keep the stand-in unless NX2NAVI_NATIVE_TENSOR=1, because their lowering does not match the hardware yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64 lines
5.8 KiB
C
64 lines
5.8 KiB
C
// Generated from runtime/shaders/fallback_tonemap.spvasm (spirv-as --target-env vulkan1.3); do not edit.
|
|
// source sha256 31e5bd112d259f6d65bd0d488b2bbe1dd0b2183ad1aca69f666c17e0589d447f
|
|
#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,
|
|
};
|