mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-29 01:25:37 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5b08ba3bb | ||
|
|
4cc258ef1f | ||
|
|
6b93742e4d | ||
|
|
b9cab09dd4 |
No files matched your search
@@ -41,20 +41,7 @@ Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
The NIS luma prepass (nis_luma.frag), the gather-based NIS pass (nis3.frag) and its
|
||||
coefficient banks (nis_coef.h) are from the same NVIDIA reference.
|
||||
|
||||
AMD FidelityFX CAS (Contrast Adaptive Sharpening)
|
||||
-------------------------------------------------
|
||||
The CAS fragment shader (cas_ffx.frag) is ported from AMD's reference header
|
||||
GPUOpen-Effects/FidelityFX-CAS ffx-cas/ffx_cas.h (v1.0.2).
|
||||
|
||||
Copyright (c) 2017-2019 Advanced Micro Devices, Inc. All rights reserved.
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
The MIT License text above applies to AMD FidelityFX FSR 1.0, AMD FidelityFX CAS and
|
||||
NVIDIA Image Scaling (NIS).
|
||||
The MIT License text above applies to both AMD FidelityFX FSR 1.0 and NVIDIA Image Scaling (NIS).
|
||||
|
||||
Snapdragon Game Super Resolution 1 (SGSR1)
|
||||
------------------------------------------
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
#version 450
|
||||
|
||||
// =============================================================================
|
||||
// AMD FidelityFX CAS (Contrast Adaptive Sharpening) - sharpen-only path.
|
||||
//
|
||||
// Ported from AMD's reference header:
|
||||
// GPUOpen-Effects/FidelityFX-CAS ffx-cas/ffx_cas.h (v1.0.2, CAS 1.20190610)
|
||||
// CasSetup() sharpness term + CasFilter() with noScaling == true.
|
||||
//
|
||||
// Copyright (c) 2017-2019 Advanced Micro Devices, Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to
|
||||
// deal in the Software without restriction, including without limitation the
|
||||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
// sell copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//
|
||||
// Adapted in Bannerlator (The412Banner/Bannerlator) for its compositors; here
|
||||
// in the Wayland effects chain, built half only (cas_ffx_half_frag.h):
|
||||
// - AMD's default build: CAS_BETTER_DIAGONALS, CAS_SLOW and CAS_GO_SLOWER not
|
||||
// defined -> the 5-tap "circle" (b d e f h) and the green channel's weight
|
||||
// for all channels. cas.frag (the previous shader) is the BETTER_DIAGONALS
|
||||
// + CAS_SLOW maths with 9 taps.
|
||||
// - APrxLoRcp / APrxLoSqrt / APrxMedRcp (bit-trick approximations for AMD
|
||||
// ALUs) are plain 1/x and sqrt here.
|
||||
// - Same push constants as cas.frag: ndc, input size, sharpness [0..1].
|
||||
// CasSetup's const1.x = -1 / lerp(8, 5, sharpness) is computed here.
|
||||
// - The input is the effect chain's previous target at the same size, so the
|
||||
// output pixel reads the input pixel 1:1 (texelFetch, edges clamped).
|
||||
// =============================================================================
|
||||
|
||||
// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and
|
||||
// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as in AMD's
|
||||
// CasFilterH; positions stay highp.
|
||||
#ifdef DD_HALF
|
||||
precision mediump float;
|
||||
#define BL_MP mediump
|
||||
#else
|
||||
#define BL_MP
|
||||
#endif
|
||||
|
||||
layout(binding = 0) uniform BL_MP sampler2D InputTexture;
|
||||
|
||||
layout(push_constant) uniform PC {
|
||||
highp vec4 ndc; // quad NDC rect, consumed by upscale.vert (offset 0)
|
||||
highp vec2 resolution; // input (= output) size in pixels
|
||||
float sharpness; // CAS sharpness [0..1]
|
||||
} pc;
|
||||
|
||||
layout(location = 0) in highp vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
|
||||
vec3 CasLoad(ivec2 p) {
|
||||
ivec2 sz = textureSize(InputTexture, 0);
|
||||
return texelFetch(InputTexture, clamp(p, ivec2(0), sz - ivec2(1)), 0).rgb;
|
||||
}
|
||||
|
||||
float AMin3F1(float x, float y, float z) { return min(x, min(y, z)); }
|
||||
float AMax3F1(float x, float y, float z) { return max(x, max(y, z)); }
|
||||
|
||||
void main() {
|
||||
ivec2 sp = ivec2(fragTexCoord * pc.resolution);
|
||||
|
||||
// CasSetup: sharp = -1 / lerp(8.0, 5.0, saturate(sharpness)).
|
||||
float peak = -1.0 / mix(8.0, 5.0, clamp(pc.sharpness, 0.0, 1.0));
|
||||
|
||||
// b
|
||||
// d e f
|
||||
// h
|
||||
vec3 b = CasLoad(sp + ivec2( 0, -1));
|
||||
vec3 d = CasLoad(sp + ivec2(-1, 0));
|
||||
vec3 e = CasLoad(sp);
|
||||
vec3 f = CasLoad(sp + ivec2( 1, 0));
|
||||
vec3 h = CasLoad(sp + ivec2( 0, 1));
|
||||
|
||||
// Soft min and max of the circle (green only: the weight below uses green).
|
||||
float mnG = AMin3F1(AMin3F1(d.g, e.g, f.g), b.g, h.g);
|
||||
float mxG = AMax3F1(AMax3F1(d.g, e.g, f.g), b.g, h.g);
|
||||
|
||||
// Smooth minimum distance to signal limit divided by smooth max.
|
||||
// AMD's bit-trick reciprocal stays finite at 0; 1/0 here would give 0 * inf
|
||||
// on black, so the max is floored (below one 8-bit step; mn = 0 there anyway).
|
||||
float rcpMG = 1.0 / max(mxG, 1.0 / 1024.0);
|
||||
float ampG = clamp(min(mnG, 1.0 - mxG) * rcpMG, 0.0, 1.0);
|
||||
|
||||
// Shaping amount of sharpening.
|
||||
ampG = sqrt(ampG);
|
||||
|
||||
// Filter shape: 0 w 0 / w 1 w / 0 w 0
|
||||
float wG = ampG * peak;
|
||||
float rcpWeight = 1.0 / (1.0 + 4.0 * wG);
|
||||
vec3 pix = clamp((b * wG + d * wG + f * wG + h * wG + e) * rcpWeight, 0.0, 1.0);
|
||||
|
||||
outColor = vec4(pix, 1.0);
|
||||
}
|
||||
@@ -1,214 +0,0 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t cas_ffx_half_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x000000d7,0x00000000,0x00020011,0x00000001,0x00020011,
|
||||
0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,
|
||||
0x00000000,0x00000001,0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000043,
|
||||
0x000000d1,0x00030010,0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,
|
||||
0x00000004,0x6e69616d,0x00000000,0x00060005,0x0000000d,0x4c736143,0x2864616f,0x3b326976,
|
||||
0x00000000,0x00030005,0x0000000c,0x00000070,0x00070005,0x00000014,0x6e694d41,0x28314633,
|
||||
0x663b3166,0x31663b31,0x0000003b,0x00030005,0x00000011,0x00000078,0x00030005,0x00000012,
|
||||
0x00000079,0x00030005,0x00000013,0x0000007a,0x00070005,0x00000019,0x78614d41,0x28314633,
|
||||
0x663b3166,0x31663b31,0x0000003b,0x00030005,0x00000016,0x00000078,0x00030005,0x00000017,
|
||||
0x00000079,0x00030005,0x00000018,0x0000007a,0x00030005,0x0000001b,0x00007a73,0x00060005,
|
||||
0x0000001f,0x75706e49,0x78655474,0x65727574,0x00000000,0x00030005,0x00000040,0x00007073,
|
||||
0x00060005,0x00000043,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00030005,0x00000045,
|
||||
0x00004350,0x00040006,0x00000045,0x00000000,0x0063646e,0x00060006,0x00000045,0x00000001,
|
||||
0x6f736572,0x6974756c,0x00006e6f,0x00060006,0x00000045,0x00000002,0x72616873,0x73656e70,
|
||||
0x00000073,0x00030005,0x00000047,0x00006370,0x00040005,0x0000004d,0x6b616570,0x00000000,
|
||||
0x00030005,0x0000005b,0x00000062,0x00040005,0x00000060,0x61726170,0x0000006d,0x00030005,
|
||||
0x00000062,0x00000064,0x00040005,0x00000066,0x61726170,0x0000006d,0x00030005,0x00000068,
|
||||
0x00000065,0x00040005,0x00000069,0x61726170,0x0000006d,0x00030005,0x0000006c,0x00000066,
|
||||
0x00040005,0x00000070,0x61726170,0x0000006d,0x00030005,0x00000072,0x00000068,0x00040005,
|
||||
0x00000076,0x61726170,0x0000006d,0x00030005,0x00000078,0x00476e6d,0x00040005,0x00000079,
|
||||
0x61726170,0x0000006d,0x00040005,0x0000007e,0x61726170,0x0000006d,0x00040005,0x00000081,
|
||||
0x61726170,0x0000006d,0x00040005,0x00000085,0x61726170,0x0000006d,0x00040005,0x00000086,
|
||||
0x61726170,0x0000006d,0x00040005,0x00000089,0x61726170,0x0000006d,0x00030005,0x0000008d,
|
||||
0x0047786d,0x00040005,0x0000008e,0x61726170,0x0000006d,0x00040005,0x00000091,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000094,0x61726170,0x0000006d,0x00040005,0x00000098,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000099,0x61726170,0x0000006d,0x00040005,0x0000009c,0x61726170,
|
||||
0x0000006d,0x00040005,0x000000a0,0x4d706372,0x00000047,0x00040005,0x000000a5,0x47706d61,
|
||||
0x00000000,0x00030005,0x000000af,0x00004777,0x00050005,0x000000b3,0x57706372,0x68676965,
|
||||
0x00000074,0x00030005,0x000000b9,0x00786970,0x00050005,0x000000d1,0x4374756f,0x726f6c6f,
|
||||
0x00000000,0x00030047,0x0000000d,0x00000000,0x00030047,0x00000011,0x00000000,0x00030047,
|
||||
0x00000012,0x00000000,0x00030047,0x00000013,0x00000000,0x00030047,0x00000014,0x00000000,
|
||||
0x00030047,0x00000016,0x00000000,0x00030047,0x00000017,0x00000000,0x00030047,0x00000018,
|
||||
0x00000000,0x00030047,0x00000019,0x00000000,0x00030047,0x0000001f,0x00000000,0x00040047,
|
||||
0x0000001f,0x00000021,0x00000000,0x00040047,0x0000001f,0x00000022,0x00000000,0x00030047,
|
||||
0x00000020,0x00000000,0x00030047,0x00000024,0x00000000,0x00030047,0x0000002e,0x00000000,
|
||||
0x00030047,0x0000002f,0x00000000,0x00030047,0x00000032,0x00000000,0x00030047,0x00000033,
|
||||
0x00000000,0x00030047,0x00000034,0x00000000,0x00030047,0x00000035,0x00000000,0x00030047,
|
||||
0x00000036,0x00000000,0x00030047,0x00000039,0x00000000,0x00030047,0x0000003a,0x00000000,
|
||||
0x00030047,0x0000003b,0x00000000,0x00030047,0x0000003c,0x00000000,0x00030047,0x0000003d,
|
||||
0x00000000,0x00040047,0x00000043,0x0000001e,0x00000000,0x00030047,0x00000045,0x00000002,
|
||||
0x00050048,0x00000045,0x00000000,0x00000023,0x00000000,0x00050048,0x00000045,0x00000001,
|
||||
0x00000023,0x00000010,0x00040048,0x00000045,0x00000002,0x00000000,0x00050048,0x00000045,
|
||||
0x00000002,0x00000023,0x00000018,0x00030047,0x0000004d,0x00000000,0x00030047,0x00000054,
|
||||
0x00000000,0x00030047,0x00000057,0x00000000,0x00030047,0x00000058,0x00000000,0x00030047,
|
||||
0x00000059,0x00000000,0x00030047,0x0000005b,0x00000000,0x00030047,0x00000061,0x00000000,
|
||||
0x00030047,0x00000062,0x00000000,0x00030047,0x00000067,0x00000000,0x00030047,0x00000068,
|
||||
0x00000000,0x00030047,0x0000006b,0x00000000,0x00030047,0x0000006c,0x00000000,0x00030047,
|
||||
0x00000071,0x00000000,0x00030047,0x00000072,0x00000000,0x00030047,0x00000077,0x00000000,
|
||||
0x00030047,0x00000078,0x00000000,0x00030047,0x00000079,0x00000000,0x00030047,0x0000007d,
|
||||
0x00000000,0x00030047,0x0000007e,0x00000000,0x00030047,0x00000080,0x00000000,0x00030047,
|
||||
0x00000081,0x00000000,0x00030047,0x00000083,0x00000000,0x00030047,0x00000084,0x00000000,
|
||||
0x00030047,0x00000085,0x00000000,0x00030047,0x00000086,0x00000000,0x00030047,0x00000088,
|
||||
0x00000000,0x00030047,0x00000089,0x00000000,0x00030047,0x0000008b,0x00000000,0x00030047,
|
||||
0x0000008c,0x00000000,0x00030047,0x0000008d,0x00000000,0x00030047,0x0000008e,0x00000000,
|
||||
0x00030047,0x00000090,0x00000000,0x00030047,0x00000091,0x00000000,0x00030047,0x00000093,
|
||||
0x00000000,0x00030047,0x00000094,0x00000000,0x00030047,0x00000096,0x00000000,0x00030047,
|
||||
0x00000097,0x00000000,0x00030047,0x00000098,0x00000000,0x00030047,0x00000099,0x00000000,
|
||||
0x00030047,0x0000009b,0x00000000,0x00030047,0x0000009c,0x00000000,0x00030047,0x0000009e,
|
||||
0x00000000,0x00030047,0x0000009f,0x00000000,0x00030047,0x000000a0,0x00000000,0x00030047,
|
||||
0x000000a1,0x00000000,0x00030047,0x000000a3,0x00000000,0x00030047,0x000000a4,0x00000000,
|
||||
0x00030047,0x000000a5,0x00000000,0x00030047,0x000000a6,0x00000000,0x00030047,0x000000a7,
|
||||
0x00000000,0x00030047,0x000000a8,0x00000000,0x00030047,0x000000a9,0x00000000,0x00030047,
|
||||
0x000000aa,0x00000000,0x00030047,0x000000ab,0x00000000,0x00030047,0x000000ac,0x00000000,
|
||||
0x00030047,0x000000ad,0x00000000,0x00030047,0x000000ae,0x00000000,0x00030047,0x000000af,
|
||||
0x00000000,0x00030047,0x000000b0,0x00000000,0x00030047,0x000000b1,0x00000000,0x00030047,
|
||||
0x000000b2,0x00000000,0x00030047,0x000000b3,0x00000000,0x00030047,0x000000b5,0x00000000,
|
||||
0x00030047,0x000000b6,0x00000000,0x00030047,0x000000b7,0x00000000,0x00030047,0x000000b8,
|
||||
0x00000000,0x00030047,0x000000b9,0x00000000,0x00030047,0x000000ba,0x00000000,0x00030047,
|
||||
0x000000bb,0x00000000,0x00030047,0x000000bc,0x00000000,0x00030047,0x000000bd,0x00000000,
|
||||
0x00030047,0x000000be,0x00000000,0x00030047,0x000000bf,0x00000000,0x00030047,0x000000c0,
|
||||
0x00000000,0x00030047,0x000000c1,0x00000000,0x00030047,0x000000c2,0x00000000,0x00030047,
|
||||
0x000000c3,0x00000000,0x00030047,0x000000c4,0x00000000,0x00030047,0x000000c5,0x00000000,
|
||||
0x00030047,0x000000c6,0x00000000,0x00030047,0x000000c7,0x00000000,0x00030047,0x000000c8,
|
||||
0x00000000,0x00030047,0x000000c9,0x00000000,0x00030047,0x000000ca,0x00000000,0x00030047,
|
||||
0x000000cb,0x00000000,0x00030047,0x000000cc,0x00000000,0x00030047,0x000000cd,0x00000000,
|
||||
0x00030047,0x000000ce,0x00000000,0x00030047,0x000000cf,0x00000000,0x00030047,0x000000d1,
|
||||
0x00000000,0x00040047,0x000000d1,0x0000001e,0x00000000,0x00030047,0x000000d2,0x00000000,
|
||||
0x00030047,0x000000d3,0x00000000,0x00030047,0x000000d4,0x00000000,0x00030047,0x000000d5,
|
||||
0x00000000,0x00030047,0x000000d6,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,
|
||||
0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040017,0x00000007,0x00000006,
|
||||
0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00030016,0x00000009,0x00000020,
|
||||
0x00040017,0x0000000a,0x00000009,0x00000003,0x00040021,0x0000000b,0x0000000a,0x00000008,
|
||||
0x00040020,0x0000000f,0x00000007,0x00000009,0x00060021,0x00000010,0x00000009,0x0000000f,
|
||||
0x0000000f,0x0000000f,0x00090019,0x0000001c,0x00000009,0x00000001,0x00000000,0x00000000,
|
||||
0x00000000,0x00000001,0x00000000,0x0003001b,0x0000001d,0x0000001c,0x00040020,0x0000001e,
|
||||
0x00000000,0x0000001d,0x0004003b,0x0000001e,0x0000001f,0x00000000,0x0004002b,0x00000006,
|
||||
0x00000021,0x00000000,0x0005002c,0x00000007,0x00000026,0x00000021,0x00000021,0x0004002b,
|
||||
0x00000006,0x00000028,0x00000001,0x0005002c,0x00000007,0x00000029,0x00000028,0x00000028,
|
||||
0x00040017,0x0000002d,0x00000009,0x00000004,0x00040017,0x00000041,0x00000009,0x00000002,
|
||||
0x00040020,0x00000042,0x00000001,0x00000041,0x0004003b,0x00000042,0x00000043,0x00000001,
|
||||
0x0005001e,0x00000045,0x0000002d,0x00000041,0x00000009,0x00040020,0x00000046,0x00000009,
|
||||
0x00000045,0x0004003b,0x00000046,0x00000047,0x00000009,0x00040020,0x00000048,0x00000009,
|
||||
0x00000041,0x0004002b,0x00000009,0x0000004e,0xbf800000,0x0004002b,0x00000009,0x0000004f,
|
||||
0x41000000,0x0004002b,0x00000009,0x00000050,0x40a00000,0x0004002b,0x00000006,0x00000051,
|
||||
0x00000002,0x00040020,0x00000052,0x00000009,0x00000009,0x0004002b,0x00000009,0x00000055,
|
||||
0x00000000,0x0004002b,0x00000009,0x00000056,0x3f800000,0x00040020,0x0000005a,0x00000007,
|
||||
0x0000000a,0x0004002b,0x00000006,0x0000005d,0xffffffff,0x0005002c,0x00000007,0x0000005e,
|
||||
0x00000021,0x0000005d,0x0005002c,0x00000007,0x00000064,0x0000005d,0x00000021,0x0005002c,
|
||||
0x00000007,0x0000006e,0x00000028,0x00000021,0x0005002c,0x00000007,0x00000074,0x00000021,
|
||||
0x00000028,0x00040015,0x0000007a,0x00000020,0x00000000,0x0004002b,0x0000007a,0x0000007b,
|
||||
0x00000001,0x0004002b,0x00000009,0x000000a2,0x3a800000,0x0004002b,0x00000009,0x000000b4,
|
||||
0x40800000,0x00040020,0x000000d0,0x00000003,0x0000002d,0x0004003b,0x000000d0,0x000000d1,
|
||||
0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,
|
||||
0x0004003b,0x00000008,0x00000040,0x00000007,0x0004003b,0x0000000f,0x0000004d,0x00000007,
|
||||
0x0004003b,0x0000005a,0x0000005b,0x00000007,0x0004003b,0x00000008,0x00000060,0x00000007,
|
||||
0x0004003b,0x0000005a,0x00000062,0x00000007,0x0004003b,0x00000008,0x00000066,0x00000007,
|
||||
0x0004003b,0x0000005a,0x00000068,0x00000007,0x0004003b,0x00000008,0x00000069,0x00000007,
|
||||
0x0004003b,0x0000005a,0x0000006c,0x00000007,0x0004003b,0x00000008,0x00000070,0x00000007,
|
||||
0x0004003b,0x0000005a,0x00000072,0x00000007,0x0004003b,0x00000008,0x00000076,0x00000007,
|
||||
0x0004003b,0x0000000f,0x00000078,0x00000007,0x0004003b,0x0000000f,0x00000079,0x00000007,
|
||||
0x0004003b,0x0000000f,0x0000007e,0x00000007,0x0004003b,0x0000000f,0x00000081,0x00000007,
|
||||
0x0004003b,0x0000000f,0x00000085,0x00000007,0x0004003b,0x0000000f,0x00000086,0x00000007,
|
||||
0x0004003b,0x0000000f,0x00000089,0x00000007,0x0004003b,0x0000000f,0x0000008d,0x00000007,
|
||||
0x0004003b,0x0000000f,0x0000008e,0x00000007,0x0004003b,0x0000000f,0x00000091,0x00000007,
|
||||
0x0004003b,0x0000000f,0x00000094,0x00000007,0x0004003b,0x0000000f,0x00000098,0x00000007,
|
||||
0x0004003b,0x0000000f,0x00000099,0x00000007,0x0004003b,0x0000000f,0x0000009c,0x00000007,
|
||||
0x0004003b,0x0000000f,0x000000a0,0x00000007,0x0004003b,0x0000000f,0x000000a5,0x00000007,
|
||||
0x0004003b,0x0000000f,0x000000af,0x00000007,0x0004003b,0x0000000f,0x000000b3,0x00000007,
|
||||
0x0004003b,0x0000005a,0x000000b9,0x00000007,0x0004003d,0x00000041,0x00000044,0x00000043,
|
||||
0x00050041,0x00000048,0x00000049,0x00000047,0x00000028,0x0004003d,0x00000041,0x0000004a,
|
||||
0x00000049,0x00050085,0x00000041,0x0000004b,0x00000044,0x0000004a,0x0004006e,0x00000007,
|
||||
0x0000004c,0x0000004b,0x0003003e,0x00000040,0x0000004c,0x00050041,0x00000052,0x00000053,
|
||||
0x00000047,0x00000051,0x0004003d,0x00000009,0x00000054,0x00000053,0x0008000c,0x00000009,
|
||||
0x00000057,0x00000001,0x0000002b,0x00000054,0x00000055,0x00000056,0x0008000c,0x00000009,
|
||||
0x00000058,0x00000001,0x0000002e,0x0000004f,0x00000050,0x00000057,0x00050088,0x00000009,
|
||||
0x00000059,0x0000004e,0x00000058,0x0003003e,0x0000004d,0x00000059,0x0004003d,0x00000007,
|
||||
0x0000005c,0x00000040,0x00050080,0x00000007,0x0000005f,0x0000005c,0x0000005e,0x0003003e,
|
||||
0x00000060,0x0000005f,0x00050039,0x0000000a,0x00000061,0x0000000d,0x00000060,0x0003003e,
|
||||
0x0000005b,0x00000061,0x0004003d,0x00000007,0x00000063,0x00000040,0x00050080,0x00000007,
|
||||
0x00000065,0x00000063,0x00000064,0x0003003e,0x00000066,0x00000065,0x00050039,0x0000000a,
|
||||
0x00000067,0x0000000d,0x00000066,0x0003003e,0x00000062,0x00000067,0x0004003d,0x00000007,
|
||||
0x0000006a,0x00000040,0x0003003e,0x00000069,0x0000006a,0x00050039,0x0000000a,0x0000006b,
|
||||
0x0000000d,0x00000069,0x0003003e,0x00000068,0x0000006b,0x0004003d,0x00000007,0x0000006d,
|
||||
0x00000040,0x00050080,0x00000007,0x0000006f,0x0000006d,0x0000006e,0x0003003e,0x00000070,
|
||||
0x0000006f,0x00050039,0x0000000a,0x00000071,0x0000000d,0x00000070,0x0003003e,0x0000006c,
|
||||
0x00000071,0x0004003d,0x00000007,0x00000073,0x00000040,0x00050080,0x00000007,0x00000075,
|
||||
0x00000073,0x00000074,0x0003003e,0x00000076,0x00000075,0x00050039,0x0000000a,0x00000077,
|
||||
0x0000000d,0x00000076,0x0003003e,0x00000072,0x00000077,0x00050041,0x0000000f,0x0000007c,
|
||||
0x00000062,0x0000007b,0x0004003d,0x00000009,0x0000007d,0x0000007c,0x0003003e,0x00000079,
|
||||
0x0000007d,0x00050041,0x0000000f,0x0000007f,0x00000068,0x0000007b,0x0004003d,0x00000009,
|
||||
0x00000080,0x0000007f,0x0003003e,0x0000007e,0x00000080,0x00050041,0x0000000f,0x00000082,
|
||||
0x0000006c,0x0000007b,0x0004003d,0x00000009,0x00000083,0x00000082,0x0003003e,0x00000081,
|
||||
0x00000083,0x00070039,0x00000009,0x00000084,0x00000014,0x00000079,0x0000007e,0x00000081,
|
||||
0x0003003e,0x00000085,0x00000084,0x00050041,0x0000000f,0x00000087,0x0000005b,0x0000007b,
|
||||
0x0004003d,0x00000009,0x00000088,0x00000087,0x0003003e,0x00000086,0x00000088,0x00050041,
|
||||
0x0000000f,0x0000008a,0x00000072,0x0000007b,0x0004003d,0x00000009,0x0000008b,0x0000008a,
|
||||
0x0003003e,0x00000089,0x0000008b,0x00070039,0x00000009,0x0000008c,0x00000014,0x00000085,
|
||||
0x00000086,0x00000089,0x0003003e,0x00000078,0x0000008c,0x00050041,0x0000000f,0x0000008f,
|
||||
0x00000062,0x0000007b,0x0004003d,0x00000009,0x00000090,0x0000008f,0x0003003e,0x0000008e,
|
||||
0x00000090,0x00050041,0x0000000f,0x00000092,0x00000068,0x0000007b,0x0004003d,0x00000009,
|
||||
0x00000093,0x00000092,0x0003003e,0x00000091,0x00000093,0x00050041,0x0000000f,0x00000095,
|
||||
0x0000006c,0x0000007b,0x0004003d,0x00000009,0x00000096,0x00000095,0x0003003e,0x00000094,
|
||||
0x00000096,0x00070039,0x00000009,0x00000097,0x00000019,0x0000008e,0x00000091,0x00000094,
|
||||
0x0003003e,0x00000098,0x00000097,0x00050041,0x0000000f,0x0000009a,0x0000005b,0x0000007b,
|
||||
0x0004003d,0x00000009,0x0000009b,0x0000009a,0x0003003e,0x00000099,0x0000009b,0x00050041,
|
||||
0x0000000f,0x0000009d,0x00000072,0x0000007b,0x0004003d,0x00000009,0x0000009e,0x0000009d,
|
||||
0x0003003e,0x0000009c,0x0000009e,0x00070039,0x00000009,0x0000009f,0x00000019,0x00000098,
|
||||
0x00000099,0x0000009c,0x0003003e,0x0000008d,0x0000009f,0x0004003d,0x00000009,0x000000a1,
|
||||
0x0000008d,0x0007000c,0x00000009,0x000000a3,0x00000001,0x00000028,0x000000a1,0x000000a2,
|
||||
0x00050088,0x00000009,0x000000a4,0x00000056,0x000000a3,0x0003003e,0x000000a0,0x000000a4,
|
||||
0x0004003d,0x00000009,0x000000a6,0x00000078,0x0004003d,0x00000009,0x000000a7,0x0000008d,
|
||||
0x00050083,0x00000009,0x000000a8,0x00000056,0x000000a7,0x0007000c,0x00000009,0x000000a9,
|
||||
0x00000001,0x00000025,0x000000a6,0x000000a8,0x0004003d,0x00000009,0x000000aa,0x000000a0,
|
||||
0x00050085,0x00000009,0x000000ab,0x000000a9,0x000000aa,0x0008000c,0x00000009,0x000000ac,
|
||||
0x00000001,0x0000002b,0x000000ab,0x00000055,0x00000056,0x0003003e,0x000000a5,0x000000ac,
|
||||
0x0004003d,0x00000009,0x000000ad,0x000000a5,0x0006000c,0x00000009,0x000000ae,0x00000001,
|
||||
0x0000001f,0x000000ad,0x0003003e,0x000000a5,0x000000ae,0x0004003d,0x00000009,0x000000b0,
|
||||
0x000000a5,0x0004003d,0x00000009,0x000000b1,0x0000004d,0x00050085,0x00000009,0x000000b2,
|
||||
0x000000b0,0x000000b1,0x0003003e,0x000000af,0x000000b2,0x0004003d,0x00000009,0x000000b5,
|
||||
0x000000af,0x00050085,0x00000009,0x000000b6,0x000000b4,0x000000b5,0x00050081,0x00000009,
|
||||
0x000000b7,0x00000056,0x000000b6,0x00050088,0x00000009,0x000000b8,0x00000056,0x000000b7,
|
||||
0x0003003e,0x000000b3,0x000000b8,0x0004003d,0x0000000a,0x000000ba,0x0000005b,0x0004003d,
|
||||
0x00000009,0x000000bb,0x000000af,0x0005008e,0x0000000a,0x000000bc,0x000000ba,0x000000bb,
|
||||
0x0004003d,0x0000000a,0x000000bd,0x00000062,0x0004003d,0x00000009,0x000000be,0x000000af,
|
||||
0x0005008e,0x0000000a,0x000000bf,0x000000bd,0x000000be,0x00050081,0x0000000a,0x000000c0,
|
||||
0x000000bc,0x000000bf,0x0004003d,0x0000000a,0x000000c1,0x0000006c,0x0004003d,0x00000009,
|
||||
0x000000c2,0x000000af,0x0005008e,0x0000000a,0x000000c3,0x000000c1,0x000000c2,0x00050081,
|
||||
0x0000000a,0x000000c4,0x000000c0,0x000000c3,0x0004003d,0x0000000a,0x000000c5,0x00000072,
|
||||
0x0004003d,0x00000009,0x000000c6,0x000000af,0x0005008e,0x0000000a,0x000000c7,0x000000c5,
|
||||
0x000000c6,0x00050081,0x0000000a,0x000000c8,0x000000c4,0x000000c7,0x0004003d,0x0000000a,
|
||||
0x000000c9,0x00000068,0x00050081,0x0000000a,0x000000ca,0x000000c8,0x000000c9,0x0004003d,
|
||||
0x00000009,0x000000cb,0x000000b3,0x0005008e,0x0000000a,0x000000cc,0x000000ca,0x000000cb,
|
||||
0x00060050,0x0000000a,0x000000cd,0x00000055,0x00000055,0x00000055,0x00060050,0x0000000a,
|
||||
0x000000ce,0x00000056,0x00000056,0x00000056,0x0008000c,0x0000000a,0x000000cf,0x00000001,
|
||||
0x0000002b,0x000000cc,0x000000cd,0x000000ce,0x0003003e,0x000000b9,0x000000cf,0x0004003d,
|
||||
0x0000000a,0x000000d2,0x000000b9,0x00050051,0x00000009,0x000000d3,0x000000d2,0x00000000,
|
||||
0x00050051,0x00000009,0x000000d4,0x000000d2,0x00000001,0x00050051,0x00000009,0x000000d5,
|
||||
0x000000d2,0x00000002,0x00070050,0x0000002d,0x000000d6,0x000000d3,0x000000d4,0x000000d5,
|
||||
0x00000056,0x0003003e,0x000000d1,0x000000d6,0x000100fd,0x00010038,0x00050036,0x0000000a,
|
||||
0x0000000d,0x00000000,0x0000000b,0x00030037,0x00000008,0x0000000c,0x000200f8,0x0000000e,
|
||||
0x0004003b,0x00000008,0x0000001b,0x00000007,0x0004003d,0x0000001d,0x00000020,0x0000001f,
|
||||
0x00040064,0x0000001c,0x00000022,0x00000020,0x00050067,0x00000007,0x00000023,0x00000022,
|
||||
0x00000021,0x0003003e,0x0000001b,0x00000023,0x0004003d,0x0000001d,0x00000024,0x0000001f,
|
||||
0x0004003d,0x00000007,0x00000025,0x0000000c,0x0004003d,0x00000007,0x00000027,0x0000001b,
|
||||
0x00050082,0x00000007,0x0000002a,0x00000027,0x00000029,0x0008000c,0x00000007,0x0000002b,
|
||||
0x00000001,0x0000002d,0x00000025,0x00000026,0x0000002a,0x00040064,0x0000001c,0x0000002c,
|
||||
0x00000024,0x0007005f,0x0000002d,0x0000002e,0x0000002c,0x0000002b,0x00000002,0x00000021,
|
||||
0x0008004f,0x0000000a,0x0000002f,0x0000002e,0x0000002e,0x00000000,0x00000001,0x00000002,
|
||||
0x000200fe,0x0000002f,0x00010038,0x00050036,0x00000009,0x00000014,0x00000000,0x00000010,
|
||||
0x00030037,0x0000000f,0x00000011,0x00030037,0x0000000f,0x00000012,0x00030037,0x0000000f,
|
||||
0x00000013,0x000200f8,0x00000015,0x0004003d,0x00000009,0x00000032,0x00000011,0x0004003d,
|
||||
0x00000009,0x00000033,0x00000012,0x0004003d,0x00000009,0x00000034,0x00000013,0x0007000c,
|
||||
0x00000009,0x00000035,0x00000001,0x00000025,0x00000033,0x00000034,0x0007000c,0x00000009,
|
||||
0x00000036,0x00000001,0x00000025,0x00000032,0x00000035,0x000200fe,0x00000036,0x00010038,
|
||||
0x00050036,0x00000009,0x00000019,0x00000000,0x00000010,0x00030037,0x0000000f,0x00000016,
|
||||
0x00030037,0x0000000f,0x00000017,0x00030037,0x0000000f,0x00000018,0x000200f8,0x0000001a,
|
||||
0x0004003d,0x00000009,0x00000039,0x00000016,0x0004003d,0x00000009,0x0000003a,0x00000017,
|
||||
0x0004003d,0x00000009,0x0000003b,0x00000018,0x0007000c,0x00000009,0x0000003c,0x00000001,
|
||||
0x00000028,0x0000003a,0x0000003b,0x0007000c,0x00000009,0x0000003d,0x00000001,0x00000028,
|
||||
0x00000039,0x0000003c,0x000200fe,0x0000003d,0x00010038
|
||||
};
|
||||
@@ -44,40 +44,23 @@ vec3 AMin3F3(vec3 a, vec3 b, vec3 c) { return min(a, min(b, c)); }
|
||||
vec3 AMax3F3(vec3 a, vec3 b, vec3 c) { return max(a, max(b, c)); }
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and
|
||||
// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as in AMD's
|
||||
// FSR_EASU_H / FSR_RCAS_H paths; positions and texture coordinates stay highp.
|
||||
#ifdef DD_HALF
|
||||
precision mediump float;
|
||||
#define BL_MP mediump
|
||||
#else
|
||||
#define BL_MP
|
||||
#endif
|
||||
#ifdef DD_HALF
|
||||
// 1/32768 is a 16-bit subnormal (flushed to 0 where denormals are not kept);
|
||||
// 1/16384 is the smallest normal one.
|
||||
#define BL_EASU_DIR_ZERO (1.0/16384.0)
|
||||
#else
|
||||
#define BL_EASU_DIR_ZERO (1.0/32768.0)
|
||||
#endif
|
||||
|
||||
layout(binding = 0) uniform BL_MP sampler2D InputTexture;
|
||||
layout(binding = 0) uniform sampler2D InputTexture;
|
||||
|
||||
layout(push_constant) uniform PC {
|
||||
highp vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0)
|
||||
vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0)
|
||||
uvec4 con0;
|
||||
uvec4 con1;
|
||||
uvec4 con2;
|
||||
uvec4 con3;
|
||||
highp vec2 outputSize; // EASU output (this pass's render-target) size in pixels
|
||||
vec2 outputSize; // EASU output (this pass's render-target) size in pixels
|
||||
} pc;
|
||||
|
||||
layout(location = 0) in highp vec2 fragTexCoord;
|
||||
layout(location = 0) in vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
|
||||
AF4 FsrEasuRF(highp AF2 p) { return textureGather(InputTexture, p, 0); }
|
||||
AF4 FsrEasuGF(highp AF2 p) { return textureGather(InputTexture, p, 1); }
|
||||
AF4 FsrEasuBF(highp AF2 p) { return textureGather(InputTexture, p, 2); }
|
||||
AF4 FsrEasuRF(AF2 p) { return textureGather(InputTexture, p, 0); }
|
||||
AF4 FsrEasuGF(AF2 p) { return textureGather(InputTexture, p, 1); }
|
||||
AF4 FsrEasuBF(AF2 p) { return textureGather(InputTexture, p, 2); }
|
||||
|
||||
void FsrEasuTapF(
|
||||
inout AF3 aC,
|
||||
@@ -139,13 +122,13 @@ void FsrEasuF(
|
||||
AU4 con1,
|
||||
AU4 con2,
|
||||
AU4 con3){
|
||||
highp AF2 pp=AF2(ip)*AF2_AU2(con0.xy)+AF2_AU2(con0.zw);
|
||||
highp AF2 fp=floor(pp);
|
||||
AF2 pp=AF2(ip)*AF2_AU2(con0.xy)+AF2_AU2(con0.zw);
|
||||
AF2 fp=floor(pp);
|
||||
pp-=fp;
|
||||
highp AF2 p0=fp*AF2_AU2(con1.xy)+AF2_AU2(con1.zw);
|
||||
highp AF2 p1=p0+AF2_AU2(con2.xy);
|
||||
highp AF2 p2=p0+AF2_AU2(con2.zw);
|
||||
highp AF2 p3=p0+AF2_AU2(con3.xy);
|
||||
AF2 p0=fp*AF2_AU2(con1.xy)+AF2_AU2(con1.zw);
|
||||
AF2 p1=p0+AF2_AU2(con2.xy);
|
||||
AF2 p2=p0+AF2_AU2(con2.zw);
|
||||
AF2 p3=p0+AF2_AU2(con3.xy);
|
||||
AF4 bczzR=FsrEasuRF(p0);
|
||||
AF4 bczzG=FsrEasuGF(p0);
|
||||
AF4 bczzB=FsrEasuBF(p0);
|
||||
@@ -182,7 +165,7 @@ void FsrEasuF(
|
||||
FsrEasuSetF(dir,len,pp,false,false,false,true ,gL,jL,kL,lL,oL);
|
||||
AF2 dir2=dir*dir;
|
||||
AF1 dirR=dir2.x+dir2.y;
|
||||
AP1 zro=dirR<AF1_(BL_EASU_DIR_ZERO);
|
||||
AP1 zro=dirR<AF1_(1.0/32768.0);
|
||||
dirR=APrxLoRsqF1(dirR);
|
||||
dirR=zro?AF1_(1.0):dirR;
|
||||
dir.x=zro?AF1_(1.0):dir.x;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -37,25 +37,15 @@ float AMax3F1(float a, float b, float c) { return max(a, max(b, c)); }
|
||||
#define FSR_RCAS_LIMIT (0.25 - (1.0 / 16.0))
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and
|
||||
// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as in AMD's
|
||||
// FSR_EASU_H / FSR_RCAS_H paths; positions and texture coordinates stay highp.
|
||||
#ifdef DD_HALF
|
||||
precision mediump float;
|
||||
#define BL_MP mediump
|
||||
#else
|
||||
#define BL_MP
|
||||
#endif
|
||||
|
||||
layout(binding = 0) uniform BL_MP sampler2D InputTexture; // EASU output, output res
|
||||
layout(binding = 0) uniform sampler2D InputTexture; // EASU output, output res
|
||||
|
||||
layout(push_constant) uniform PC {
|
||||
highp vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0)
|
||||
vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0)
|
||||
uvec4 con; // con.x = bit-packed sharpness (FsrRcasCon)
|
||||
highp vec2 outputSize; // pass output size in pixels
|
||||
vec2 outputSize; // pass output size in pixels
|
||||
} pc;
|
||||
|
||||
layout(location = 0) in highp vec2 fragTexCoord;
|
||||
layout(location = 0) in vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
|
||||
AF4 FsrRcasLoadF(ASU2 p) {
|
||||
|
||||
@@ -1,641 +0,0 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t fsr_rcas_half_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x0000028c,0x00000000,0x00020011,0x00000001,0x00020011,
|
||||
0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,
|
||||
0x00000000,0x00000001,0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000269,
|
||||
0x00000286,0x00030010,0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,
|
||||
0x00000004,0x6e69616d,0x00000000,0x00070005,0x0000000a,0x78725041,0x5264654d,0x31467063,
|
||||
0x3b316628,0x00000000,0x00030005,0x00000009,0x00000078,0x00050005,0x0000000d,0x74615341,
|
||||
0x66283146,0x00003b31,0x00030005,0x0000000c,0x00000078,0x00070005,0x00000013,0x6e694d41,
|
||||
0x28314633,0x663b3166,0x31663b31,0x0000003b,0x00030005,0x00000010,0x00000061,0x00030005,
|
||||
0x00000011,0x00000062,0x00030005,0x00000012,0x00000063,0x00070005,0x00000018,0x78614d41,
|
||||
0x28314633,0x663b3166,0x31663b31,0x0000003b,0x00030005,0x00000015,0x00000061,0x00030005,
|
||||
0x00000016,0x00000062,0x00030005,0x00000017,0x00000063,0x00070005,0x00000020,0x52727346,
|
||||
0x4c736163,0x4664616f,0x32697628,0x0000003b,0x00030005,0x0000001f,0x00000070,0x00080005,
|
||||
0x00000026,0x52727346,0x49736163,0x7475706e,0x31662846,0x3b31663b,0x003b3166,0x00030005,
|
||||
0x00000023,0x00000072,0x00030005,0x00000024,0x00000067,0x00030005,0x00000025,0x00000062,
|
||||
0x00090005,0x00000033,0x52727346,0x46736163,0x3b316628,0x663b3166,0x75763b31,0x75763b32,
|
||||
0x00003b34,0x00040005,0x0000002e,0x52786970,0x00000000,0x00040005,0x0000002f,0x47786970,
|
||||
0x00000000,0x00040005,0x00000030,0x42786970,0x00000000,0x00030005,0x00000031,0x00007069,
|
||||
0x00030005,0x00000032,0x006e6f63,0x00030005,0x0000004d,0x00007a73,0x00060005,0x00000051,
|
||||
0x75706e49,0x78655474,0x65727574,0x00000000,0x00030005,0x00000062,0x00007073,0x00030005,
|
||||
0x00000067,0x00000062,0x00040005,0x0000006c,0x61726170,0x0000006d,0x00030005,0x0000006f,
|
||||
0x00000064,0x00040005,0x00000073,0x61726170,0x0000006d,0x00030005,0x00000076,0x00000065,
|
||||
0x00040005,0x00000077,0x61726170,0x0000006d,0x00030005,0x0000007b,0x00000066,0x00040005,
|
||||
0x0000007f,0x61726170,0x0000006d,0x00030005,0x00000082,0x00000068,0x00040005,0x00000086,
|
||||
0x61726170,0x0000006d,0x00030005,0x00000089,0x00005262,0x00030005,0x0000008d,0x00004762,
|
||||
0x00030005,0x00000091,0x00004262,0x00030005,0x00000095,0x00005264,0x00030005,0x00000098,
|
||||
0x00004764,0x00030005,0x0000009b,0x00004264,0x00030005,0x0000009e,0x00005265,0x00030005,
|
||||
0x000000a1,0x00004765,0x00030005,0x000000a4,0x00004265,0x00030005,0x000000a7,0x00005266,
|
||||
0x00030005,0x000000aa,0x00004766,0x00030005,0x000000ad,0x00004266,0x00030005,0x000000b0,
|
||||
0x00005268,0x00030005,0x000000b3,0x00004768,0x00030005,0x000000b6,0x00004268,0x00040005,
|
||||
0x000000b9,0x61726170,0x0000006d,0x00040005,0x000000bb,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000bd,0x61726170,0x0000006d,0x00040005,0x000000c3,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000c5,0x61726170,0x0000006d,0x00040005,0x000000c7,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000cd,0x61726170,0x0000006d,0x00040005,0x000000cf,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000d1,0x61726170,0x0000006d,0x00040005,0x000000d7,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000d9,0x61726170,0x0000006d,0x00040005,0x000000db,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000e1,0x61726170,0x0000006d,0x00040005,0x000000e3,0x61726170,0x0000006d,0x00040005,
|
||||
0x000000e5,0x61726170,0x0000006d,0x00030005,0x000000eb,0x00004c62,0x00030005,0x000000f4,
|
||||
0x00004c64,0x00030005,0x000000fc,0x00004c65,0x00030005,0x00000104,0x00004c66,0x00030005,
|
||||
0x0000010c,0x00004c68,0x00030005,0x00000114,0x00007a6e,0x00040005,0x00000125,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000127,0x61726170,0x0000006d,0x00040005,0x00000129,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000012c,0x61726170,0x0000006d,0x00040005,0x0000012d,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000012f,0x61726170,0x0000006d,0x00040005,0x00000132,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000134,0x61726170,0x0000006d,0x00040005,0x00000136,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000139,0x61726170,0x0000006d,0x00040005,0x0000013a,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000013c,0x61726170,0x0000006d,0x00040005,0x00000140,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000143,0x61726170,0x0000006d,0x00040005,0x00000149,0x52346e6d,
|
||||
0x00000000,0x00040005,0x0000014a,0x61726170,0x0000006d,0x00040005,0x0000014c,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000014e,0x61726170,0x0000006d,0x00040005,0x00000153,0x47346e6d,
|
||||
0x00000000,0x00040005,0x00000154,0x61726170,0x0000006d,0x00040005,0x00000156,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000158,0x61726170,0x0000006d,0x00040005,0x0000015d,0x42346e6d,
|
||||
0x00000000,0x00040005,0x0000015e,0x61726170,0x0000006d,0x00040005,0x00000160,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000162,0x61726170,0x0000006d,0x00040005,0x00000167,0x5234786d,
|
||||
0x00000000,0x00040005,0x00000168,0x61726170,0x0000006d,0x00040005,0x0000016a,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000016c,0x61726170,0x0000006d,0x00040005,0x00000171,0x4734786d,
|
||||
0x00000000,0x00040005,0x00000172,0x61726170,0x0000006d,0x00040005,0x00000174,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000176,0x61726170,0x0000006d,0x00040005,0x0000017b,0x4234786d,
|
||||
0x00000000,0x00040005,0x0000017c,0x61726170,0x0000006d,0x00040005,0x0000017e,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000180,0x61726170,0x0000006d,0x00040005,0x00000187,0x6b616570,
|
||||
0x00000043,0x00040005,0x0000018a,0x4d6e6564,0x00526e69,0x00040005,0x0000018e,0x4d6e6564,
|
||||
0x00476e69,0x00040005,0x00000191,0x4d6e6564,0x00426e69,0x00040005,0x00000194,0x4d6e6564,
|
||||
0x00527861,0x00040005,0x0000019a,0x4d6e6564,0x00477861,0x00040005,0x000001a0,0x4d6e6564,
|
||||
0x00427861,0x00040005,0x000001a6,0x4d746968,0x00526e69,0x00040005,0x000001b4,0x4d746968,
|
||||
0x00476e69,0x00040005,0x000001c1,0x4d746968,0x00426e69,0x00040005,0x000001ce,0x4d6d756e,
|
||||
0x00527861,0x00040005,0x000001d5,0x4d6d756e,0x00477861,0x00040005,0x000001dc,0x4d6d756e,
|
||||
0x00427861,0x00040005,0x000001e3,0x4d746968,0x00527861,0x00040005,0x000001f0,0x4d746968,
|
||||
0x00477861,0x00040005,0x000001fc,0x4d746968,0x00427861,0x00040005,0x00000208,0x65626f6c,
|
||||
0x00000052,0x00040005,0x0000020d,0x65626f6c,0x00000047,0x00040005,0x00000212,0x65626f6c,
|
||||
0x00000042,0x00040005,0x00000217,0x65626f6c,0x00000000,0x00040005,0x00000219,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000021b,0x61726170,0x0000006d,0x00040005,0x0000021d,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000227,0x4c706372,0x00000000,0x00040005,0x0000022b,0x61726170,
|
||||
0x0000006d,0x00030005,0x00000267,0x00007069,0x00060005,0x00000269,0x67617266,0x43786554,
|
||||
0x64726f6f,0x00000000,0x00030005,0x0000026b,0x00004350,0x00040006,0x0000026b,0x00000000,
|
||||
0x0063646e,0x00040006,0x0000026b,0x00000001,0x006e6f63,0x00060006,0x0000026b,0x00000002,
|
||||
0x7074756f,0x69537475,0x0000657a,0x00030005,0x0000026d,0x00006370,0x00030005,0x00000274,
|
||||
0x00000063,0x00040005,0x00000275,0x61726170,0x0000006d,0x00040005,0x00000276,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000277,0x61726170,0x0000006d,0x00040005,0x00000278,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000027a,0x61726170,0x0000006d,0x00050005,0x00000286,0x4374756f,
|
||||
0x726f6c6f,0x00000000,0x00030047,0x00000020,0x00000000,0x00030047,0x00000023,0x00000000,
|
||||
0x00030047,0x00000024,0x00000000,0x00030047,0x00000025,0x00000000,0x00030047,0x0000002e,
|
||||
0x00000000,0x00030047,0x0000002f,0x00000000,0x00030047,0x00000030,0x00000000,0x00030047,
|
||||
0x00000051,0x00000000,0x00040047,0x00000051,0x00000021,0x00000000,0x00040047,0x00000051,
|
||||
0x00000022,0x00000000,0x00030047,0x00000052,0x00000000,0x00030047,0x00000056,0x00000000,
|
||||
0x00030047,0x0000005f,0x00000000,0x00030047,0x00000067,0x00000000,0x00030047,0x0000006d,
|
||||
0x00000000,0x00030047,0x0000006e,0x00000000,0x00030047,0x0000006f,0x00000000,0x00030047,
|
||||
0x00000074,0x00000000,0x00030047,0x00000075,0x00000000,0x00030047,0x00000076,0x00000000,
|
||||
0x00030047,0x00000079,0x00000000,0x00030047,0x0000007a,0x00000000,0x00030047,0x0000007b,
|
||||
0x00000000,0x00030047,0x00000080,0x00000000,0x00030047,0x00000081,0x00000000,0x00030047,
|
||||
0x00000082,0x00000000,0x00030047,0x00000087,0x00000000,0x00030047,0x00000088,0x00000000,
|
||||
0x00030047,0x00000089,0x00000000,0x00030047,0x0000008c,0x00000000,0x00030047,0x0000008d,
|
||||
0x00000000,0x00030047,0x00000090,0x00000000,0x00030047,0x00000091,0x00000000,0x00030047,
|
||||
0x00000094,0x00000000,0x00030047,0x00000095,0x00000000,0x00030047,0x00000097,0x00000000,
|
||||
0x00030047,0x00000098,0x00000000,0x00030047,0x0000009a,0x00000000,0x00030047,0x0000009b,
|
||||
0x00000000,0x00030047,0x0000009d,0x00000000,0x00030047,0x0000009e,0x00000000,0x00030047,
|
||||
0x000000a0,0x00000000,0x00030047,0x000000a1,0x00000000,0x00030047,0x000000a3,0x00000000,
|
||||
0x00030047,0x000000a4,0x00000000,0x00030047,0x000000a6,0x00000000,0x00030047,0x000000a7,
|
||||
0x00000000,0x00030047,0x000000a9,0x00000000,0x00030047,0x000000aa,0x00000000,0x00030047,
|
||||
0x000000ac,0x00000000,0x00030047,0x000000ad,0x00000000,0x00030047,0x000000af,0x00000000,
|
||||
0x00030047,0x000000b0,0x00000000,0x00030047,0x000000b2,0x00000000,0x00030047,0x000000b3,
|
||||
0x00000000,0x00030047,0x000000b5,0x00000000,0x00030047,0x000000b6,0x00000000,0x00030047,
|
||||
0x000000b8,0x00000000,0x00030047,0x000000b9,0x00000000,0x00030047,0x000000ba,0x00000000,
|
||||
0x00030047,0x000000bb,0x00000000,0x00030047,0x000000bc,0x00000000,0x00030047,0x000000bd,
|
||||
0x00000000,0x00030047,0x000000be,0x00000000,0x00030047,0x000000c3,0x00000000,0x00030047,
|
||||
0x000000c4,0x00000000,0x00030047,0x000000c5,0x00000000,0x00030047,0x000000c6,0x00000000,
|
||||
0x00030047,0x000000c7,0x00000000,0x00030047,0x000000c8,0x00000000,0x00030047,0x000000cd,
|
||||
0x00000000,0x00030047,0x000000ce,0x00000000,0x00030047,0x000000cf,0x00000000,0x00030047,
|
||||
0x000000d0,0x00000000,0x00030047,0x000000d1,0x00000000,0x00030047,0x000000d2,0x00000000,
|
||||
0x00030047,0x000000d7,0x00000000,0x00030047,0x000000d8,0x00000000,0x00030047,0x000000d9,
|
||||
0x00000000,0x00030047,0x000000da,0x00000000,0x00030047,0x000000db,0x00000000,0x00030047,
|
||||
0x000000dc,0x00000000,0x00030047,0x000000e1,0x00000000,0x00030047,0x000000e2,0x00000000,
|
||||
0x00030047,0x000000e3,0x00000000,0x00030047,0x000000e4,0x00000000,0x00030047,0x000000e5,
|
||||
0x00000000,0x00030047,0x000000e6,0x00000000,0x00030047,0x000000eb,0x00000000,0x00030047,
|
||||
0x000000ec,0x00000000,0x00030047,0x000000ee,0x00000000,0x00030047,0x000000ef,0x00000000,
|
||||
0x00030047,0x000000f0,0x00000000,0x00030047,0x000000f1,0x00000000,0x00030047,0x000000f2,
|
||||
0x00000000,0x00030047,0x000000f3,0x00000000,0x00030047,0x000000f4,0x00000000,0x00030047,
|
||||
0x000000f5,0x00000000,0x00030047,0x000000f6,0x00000000,0x00030047,0x000000f7,0x00000000,
|
||||
0x00030047,0x000000f8,0x00000000,0x00030047,0x000000f9,0x00000000,0x00030047,0x000000fa,
|
||||
0x00000000,0x00030047,0x000000fb,0x00000000,0x00030047,0x000000fc,0x00000000,0x00030047,
|
||||
0x000000fd,0x00000000,0x00030047,0x000000fe,0x00000000,0x00030047,0x000000ff,0x00000000,
|
||||
0x00030047,0x00000100,0x00000000,0x00030047,0x00000101,0x00000000,0x00030047,0x00000102,
|
||||
0x00000000,0x00030047,0x00000103,0x00000000,0x00030047,0x00000104,0x00000000,0x00030047,
|
||||
0x00000105,0x00000000,0x00030047,0x00000106,0x00000000,0x00030047,0x00000107,0x00000000,
|
||||
0x00030047,0x00000108,0x00000000,0x00030047,0x00000109,0x00000000,0x00030047,0x0000010a,
|
||||
0x00000000,0x00030047,0x0000010b,0x00000000,0x00030047,0x0000010c,0x00000000,0x00030047,
|
||||
0x0000010d,0x00000000,0x00030047,0x0000010e,0x00000000,0x00030047,0x0000010f,0x00000000,
|
||||
0x00030047,0x00000110,0x00000000,0x00030047,0x00000111,0x00000000,0x00030047,0x00000112,
|
||||
0x00000000,0x00030047,0x00000113,0x00000000,0x00030047,0x00000114,0x00000000,0x00030047,
|
||||
0x00000116,0x00000000,0x00030047,0x00000117,0x00000000,0x00030047,0x00000118,0x00000000,
|
||||
0x00030047,0x00000119,0x00000000,0x00030047,0x0000011a,0x00000000,0x00030047,0x0000011b,
|
||||
0x00000000,0x00030047,0x0000011c,0x00000000,0x00030047,0x0000011d,0x00000000,0x00030047,
|
||||
0x0000011e,0x00000000,0x00030047,0x0000011f,0x00000000,0x00030047,0x00000120,0x00000000,
|
||||
0x00030047,0x00000121,0x00000000,0x00030047,0x00000122,0x00000000,0x00030047,0x00000123,
|
||||
0x00000000,0x00030047,0x00000124,0x00000000,0x00030047,0x00000126,0x00000000,0x00030047,
|
||||
0x00000128,0x00000000,0x00030047,0x0000012a,0x00000000,0x00030047,0x0000012e,0x00000000,
|
||||
0x00030047,0x00000130,0x00000000,0x00030047,0x00000133,0x00000000,0x00030047,0x00000135,
|
||||
0x00000000,0x00030047,0x00000137,0x00000000,0x00030047,0x0000013b,0x00000000,0x00030047,
|
||||
0x0000013d,0x00000000,0x00030047,0x00000146,0x00000000,0x00030047,0x00000147,0x00000000,
|
||||
0x00030047,0x00000148,0x00000000,0x00030047,0x00000149,0x00000000,0x00030047,0x0000014b,
|
||||
0x00000000,0x00030047,0x0000014d,0x00000000,0x00030047,0x0000014f,0x00000000,0x00030047,
|
||||
0x00000151,0x00000000,0x00030047,0x00000153,0x00000000,0x00030047,0x00000155,0x00000000,
|
||||
0x00030047,0x00000157,0x00000000,0x00030047,0x00000159,0x00000000,0x00030047,0x0000015b,
|
||||
0x00000000,0x00030047,0x0000015d,0x00000000,0x00030047,0x0000015f,0x00000000,0x00030047,
|
||||
0x00000161,0x00000000,0x00030047,0x00000163,0x00000000,0x00030047,0x00000165,0x00000000,
|
||||
0x00030047,0x00000167,0x00000000,0x00030047,0x00000169,0x00000000,0x00030047,0x0000016b,
|
||||
0x00000000,0x00030047,0x0000016d,0x00000000,0x00030047,0x0000016f,0x00000000,0x00030047,
|
||||
0x00000171,0x00000000,0x00030047,0x00000173,0x00000000,0x00030047,0x00000175,0x00000000,
|
||||
0x00030047,0x00000177,0x00000000,0x00030047,0x00000179,0x00000000,0x00030047,0x0000017b,
|
||||
0x00000000,0x00030047,0x0000017d,0x00000000,0x00030047,0x0000017f,0x00000000,0x00030047,
|
||||
0x00000181,0x00000000,0x00030047,0x00000183,0x00000000,0x00030047,0x00000187,0x00000000,
|
||||
0x00030047,0x0000018a,0x00000000,0x00030047,0x0000018c,0x00000000,0x00030047,0x0000018d,
|
||||
0x00000000,0x00030047,0x0000018e,0x00000000,0x00030047,0x0000018f,0x00000000,0x00030047,
|
||||
0x00000190,0x00000000,0x00030047,0x00000191,0x00000000,0x00030047,0x00000192,0x00000000,
|
||||
0x00030047,0x00000193,0x00000000,0x00030047,0x00000194,0x00000000,0x00030047,0x00000195,
|
||||
0x00000000,0x00030047,0x00000196,0x00000000,0x00030047,0x00000198,0x00000000,0x00030047,
|
||||
0x00000199,0x00000000,0x00030047,0x0000019a,0x00000000,0x00030047,0x0000019b,0x00000000,
|
||||
0x00030047,0x0000019c,0x00000000,0x00030047,0x0000019e,0x00000000,0x00030047,0x0000019f,
|
||||
0x00000000,0x00030047,0x000001a0,0x00000000,0x00030047,0x000001a1,0x00000000,0x00030047,
|
||||
0x000001a2,0x00000000,0x00030047,0x000001a4,0x00000000,0x00030047,0x000001a5,0x00000000,
|
||||
0x00030047,0x000001a6,0x00000000,0x00030047,0x000001a7,0x00000000,0x00030047,0x000001aa,
|
||||
0x00000000,0x00030047,0x000001ad,0x00000000,0x00030047,0x000001ae,0x00000000,0x00030047,
|
||||
0x000001af,0x00000000,0x00030047,0x000001b0,0x00000000,0x00030047,0x000001b1,0x00000000,
|
||||
0x00030047,0x000001b3,0x00000000,0x00030047,0x000001b4,0x00000000,0x00030047,0x000001b5,
|
||||
0x00000000,0x00030047,0x000001b7,0x00000000,0x00030047,0x000001ba,0x00000000,0x00030047,
|
||||
0x000001bb,0x00000000,0x00030047,0x000001bc,0x00000000,0x00030047,0x000001bd,0x00000000,
|
||||
0x00030047,0x000001be,0x00000000,0x00030047,0x000001c0,0x00000000,0x00030047,0x000001c1,
|
||||
0x00000000,0x00030047,0x000001c2,0x00000000,0x00030047,0x000001c4,0x00000000,0x00030047,
|
||||
0x000001c7,0x00000000,0x00030047,0x000001c8,0x00000000,0x00030047,0x000001c9,0x00000000,
|
||||
0x00030047,0x000001ca,0x00000000,0x00030047,0x000001cb,0x00000000,0x00030047,0x000001cd,
|
||||
0x00000000,0x00030047,0x000001ce,0x00000000,0x00030047,0x000001d0,0x00000000,0x00030047,
|
||||
0x000001d1,0x00000000,0x00030047,0x000001d2,0x00000000,0x00030047,0x000001d3,0x00000000,
|
||||
0x00030047,0x000001d4,0x00000000,0x00030047,0x000001d5,0x00000000,0x00030047,0x000001d7,
|
||||
0x00000000,0x00030047,0x000001d8,0x00000000,0x00030047,0x000001d9,0x00000000,0x00030047,
|
||||
0x000001da,0x00000000,0x00030047,0x000001db,0x00000000,0x00030047,0x000001dc,0x00000000,
|
||||
0x00030047,0x000001de,0x00000000,0x00030047,0x000001df,0x00000000,0x00030047,0x000001e0,
|
||||
0x00000000,0x00030047,0x000001e1,0x00000000,0x00030047,0x000001e2,0x00000000,0x00030047,
|
||||
0x000001e3,0x00000000,0x00030047,0x000001e4,0x00000000,0x00030047,0x000001e5,0x00000000,
|
||||
0x00030047,0x000001e8,0x00000000,0x00030047,0x000001eb,0x00000000,0x00030047,0x000001ec,
|
||||
0x00000000,0x00030047,0x000001ed,0x00000000,0x00030047,0x000001ef,0x00000000,0x00030047,
|
||||
0x000001f0,0x00000000,0x00030047,0x000001f1,0x00000000,0x00030047,0x000001f2,0x00000000,
|
||||
0x00030047,0x000001f4,0x00000000,0x00030047,0x000001f7,0x00000000,0x00030047,0x000001f8,
|
||||
0x00000000,0x00030047,0x000001f9,0x00000000,0x00030047,0x000001fb,0x00000000,0x00030047,
|
||||
0x000001fc,0x00000000,0x00030047,0x000001fd,0x00000000,0x00030047,0x000001fe,0x00000000,
|
||||
0x00030047,0x00000200,0x00000000,0x00030047,0x00000203,0x00000000,0x00030047,0x00000204,
|
||||
0x00000000,0x00030047,0x00000205,0x00000000,0x00030047,0x00000207,0x00000000,0x00030047,
|
||||
0x00000208,0x00000000,0x00030047,0x00000209,0x00000000,0x00030047,0x0000020a,0x00000000,
|
||||
0x00030047,0x0000020b,0x00000000,0x00030047,0x0000020c,0x00000000,0x00030047,0x0000020d,
|
||||
0x00000000,0x00030047,0x0000020e,0x00000000,0x00030047,0x0000020f,0x00000000,0x00030047,
|
||||
0x00000210,0x00000000,0x00030047,0x00000211,0x00000000,0x00030047,0x00000212,0x00000000,
|
||||
0x00030047,0x00000213,0x00000000,0x00030047,0x00000214,0x00000000,0x00030047,0x00000215,
|
||||
0x00000000,0x00030047,0x00000216,0x00000000,0x00030047,0x00000217,0x00000000,0x00030047,
|
||||
0x0000021a,0x00000000,0x00030047,0x0000021c,0x00000000,0x00030047,0x0000021e,0x00000000,
|
||||
0x00030047,0x00000227,0x00000000,0x00030047,0x00000228,0x00000000,0x00030047,0x00000229,
|
||||
0x00000000,0x00030047,0x0000022a,0x00000000,0x00030047,0x0000022d,0x00000000,0x00030047,
|
||||
0x0000022e,0x00000000,0x00030047,0x0000022f,0x00000000,0x00030047,0x00000230,0x00000000,
|
||||
0x00030047,0x00000231,0x00000000,0x00030047,0x00000232,0x00000000,0x00030047,0x00000233,
|
||||
0x00000000,0x00030047,0x00000234,0x00000000,0x00030047,0x00000235,0x00000000,0x00030047,
|
||||
0x00000236,0x00000000,0x00030047,0x00000237,0x00000000,0x00030047,0x00000238,0x00000000,
|
||||
0x00030047,0x00000239,0x00000000,0x00030047,0x0000023a,0x00000000,0x00030047,0x0000023b,
|
||||
0x00000000,0x00030047,0x0000023c,0x00000000,0x00030047,0x0000023d,0x00000000,0x00030047,
|
||||
0x0000023e,0x00000000,0x00030047,0x0000023f,0x00000000,0x00030047,0x00000240,0x00000000,
|
||||
0x00030047,0x00000241,0x00000000,0x00030047,0x00000242,0x00000000,0x00030047,0x00000243,
|
||||
0x00000000,0x00030047,0x00000244,0x00000000,0x00030047,0x00000245,0x00000000,0x00030047,
|
||||
0x00000246,0x00000000,0x00030047,0x00000247,0x00000000,0x00030047,0x00000248,0x00000000,
|
||||
0x00030047,0x00000249,0x00000000,0x00030047,0x0000024a,0x00000000,0x00030047,0x0000024b,
|
||||
0x00000000,0x00030047,0x0000024c,0x00000000,0x00030047,0x0000024d,0x00000000,0x00030047,
|
||||
0x0000024e,0x00000000,0x00030047,0x0000024f,0x00000000,0x00030047,0x00000250,0x00000000,
|
||||
0x00030047,0x00000251,0x00000000,0x00030047,0x00000252,0x00000000,0x00030047,0x00000253,
|
||||
0x00000000,0x00030047,0x00000254,0x00000000,0x00030047,0x00000255,0x00000000,0x00030047,
|
||||
0x00000256,0x00000000,0x00030047,0x00000257,0x00000000,0x00030047,0x00000258,0x00000000,
|
||||
0x00030047,0x00000259,0x00000000,0x00030047,0x0000025a,0x00000000,0x00030047,0x0000025b,
|
||||
0x00000000,0x00030047,0x0000025c,0x00000000,0x00030047,0x0000025d,0x00000000,0x00030047,
|
||||
0x0000025e,0x00000000,0x00030047,0x0000025f,0x00000000,0x00030047,0x00000260,0x00000000,
|
||||
0x00030047,0x00000261,0x00000000,0x00030047,0x00000262,0x00000000,0x00030047,0x00000263,
|
||||
0x00000000,0x00030047,0x00000264,0x00000000,0x00030047,0x00000265,0x00000000,0x00040047,
|
||||
0x00000269,0x0000001e,0x00000000,0x00030047,0x0000026b,0x00000002,0x00050048,0x0000026b,
|
||||
0x00000000,0x00000023,0x00000000,0x00050048,0x0000026b,0x00000001,0x00000023,0x00000010,
|
||||
0x00050048,0x0000026b,0x00000002,0x00000023,0x00000020,0x00030047,0x00000274,0x00000000,
|
||||
0x00030047,0x00000275,0x00000000,0x00030047,0x00000276,0x00000000,0x00030047,0x00000277,
|
||||
0x00000000,0x00030047,0x00000286,0x00000000,0x00040047,0x00000286,0x0000001e,0x00000000,
|
||||
0x00030047,0x00000287,0x00000000,0x00030047,0x00000288,0x00000000,0x00030047,0x00000289,
|
||||
0x00000000,0x00030047,0x0000028a,0x00000000,0x00030047,0x0000028b,0x00000000,0x00020013,
|
||||
0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040020,
|
||||
0x00000007,0x00000007,0x00000006,0x00040021,0x00000008,0x00000006,0x00000007,0x00060021,
|
||||
0x0000000f,0x00000006,0x00000007,0x00000007,0x00000007,0x00040015,0x0000001a,0x00000020,
|
||||
0x00000001,0x00040017,0x0000001b,0x0000001a,0x00000002,0x00040020,0x0000001c,0x00000007,
|
||||
0x0000001b,0x00040017,0x0000001d,0x00000006,0x00000004,0x00040021,0x0000001e,0x0000001d,
|
||||
0x0000001c,0x00060021,0x00000022,0x00000002,0x00000007,0x00000007,0x00000007,0x00040015,
|
||||
0x00000028,0x00000020,0x00000000,0x00040017,0x00000029,0x00000028,0x00000002,0x00040020,
|
||||
0x0000002a,0x00000007,0x00000029,0x00040017,0x0000002b,0x00000028,0x00000004,0x00040020,
|
||||
0x0000002c,0x00000007,0x0000002b,0x00080021,0x0000002d,0x00000002,0x00000007,0x00000007,
|
||||
0x00000007,0x0000002a,0x0000002c,0x0004002b,0x00000006,0x00000035,0x3f800000,0x0004002b,
|
||||
0x00000006,0x0000003b,0x00000000,0x00090019,0x0000004e,0x00000006,0x00000001,0x00000000,
|
||||
0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x0000004f,0x0000004e,0x00040020,
|
||||
0x00000050,0x00000000,0x0000004f,0x0004003b,0x00000050,0x00000051,0x00000000,0x0004002b,
|
||||
0x0000001a,0x00000053,0x00000000,0x0005002c,0x0000001b,0x00000058,0x00000053,0x00000053,
|
||||
0x0004002b,0x0000001a,0x0000005a,0x00000001,0x0005002c,0x0000001b,0x0000005b,0x0000005a,
|
||||
0x0000005a,0x00040017,0x00000065,0x00000006,0x00000003,0x00040020,0x00000066,0x00000007,
|
||||
0x00000065,0x0004002b,0x0000001a,0x00000069,0xffffffff,0x0005002c,0x0000001b,0x0000006a,
|
||||
0x00000053,0x00000069,0x0005002c,0x0000001b,0x00000071,0x00000069,0x00000053,0x0005002c,
|
||||
0x0000001b,0x0000007d,0x0000005a,0x00000053,0x0005002c,0x0000001b,0x00000084,0x00000053,
|
||||
0x0000005a,0x0004002b,0x00000028,0x0000008a,0x00000000,0x0004002b,0x00000028,0x0000008e,
|
||||
0x00000001,0x0004002b,0x00000028,0x00000092,0x00000002,0x0004002b,0x00000006,0x000000ed,
|
||||
0x3f000000,0x0004002b,0x00000006,0x00000115,0x3e800000,0x0004002b,0x00000006,0x00000145,
|
||||
0xbf000000,0x00040017,0x00000185,0x00000006,0x00000002,0x00040020,0x00000186,0x00000007,
|
||||
0x00000185,0x0004002b,0x00000006,0x00000188,0xc0800000,0x0005002c,0x00000185,0x00000189,
|
||||
0x00000035,0x00000188,0x0004002b,0x00000006,0x0000018b,0x40800000,0x00020014,0x000001a8,
|
||||
0x0004002b,0x00000006,0x000001e6,0x358637bd,0x0004002b,0x00000006,0x00000218,0xbe400000,
|
||||
0x00040020,0x00000222,0x00000007,0x00000028,0x00040020,0x00000268,0x00000001,0x00000185,
|
||||
0x0004003b,0x00000268,0x00000269,0x00000001,0x0005001e,0x0000026b,0x0000001d,0x0000002b,
|
||||
0x00000185,0x00040020,0x0000026c,0x00000009,0x0000026b,0x0004003b,0x0000026c,0x0000026d,
|
||||
0x00000009,0x0004002b,0x0000001a,0x0000026e,0x00000002,0x00040020,0x0000026f,0x00000009,
|
||||
0x00000185,0x00040020,0x0000027b,0x00000009,0x0000002b,0x00040020,0x00000285,0x00000003,
|
||||
0x0000001d,0x0004003b,0x00000285,0x00000286,0x00000003,0x00050036,0x00000002,0x00000004,
|
||||
0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x0000002a,0x00000267,0x00000007,
|
||||
0x0004003b,0x00000066,0x00000274,0x00000007,0x0004003b,0x00000007,0x00000275,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000276,0x00000007,0x0004003b,0x00000007,0x00000277,0x00000007,
|
||||
0x0004003b,0x0000002a,0x00000278,0x00000007,0x0004003b,0x0000002c,0x0000027a,0x00000007,
|
||||
0x0004003d,0x00000185,0x0000026a,0x00000269,0x00050041,0x0000026f,0x00000270,0x0000026d,
|
||||
0x0000026e,0x0004003d,0x00000185,0x00000271,0x00000270,0x00050085,0x00000185,0x00000272,
|
||||
0x0000026a,0x00000271,0x0004006d,0x00000029,0x00000273,0x00000272,0x0003003e,0x00000267,
|
||||
0x00000273,0x0004003d,0x00000029,0x00000279,0x00000267,0x0003003e,0x00000278,0x00000279,
|
||||
0x00050041,0x0000027b,0x0000027c,0x0000026d,0x0000005a,0x0004003d,0x0000002b,0x0000027d,
|
||||
0x0000027c,0x0003003e,0x0000027a,0x0000027d,0x00090039,0x00000002,0x0000027e,0x00000033,
|
||||
0x00000275,0x00000276,0x00000277,0x00000278,0x0000027a,0x0004003d,0x00000006,0x0000027f,
|
||||
0x00000275,0x00050041,0x00000007,0x00000280,0x00000274,0x0000008a,0x0003003e,0x00000280,
|
||||
0x0000027f,0x0004003d,0x00000006,0x00000281,0x00000276,0x00050041,0x00000007,0x00000282,
|
||||
0x00000274,0x0000008e,0x0003003e,0x00000282,0x00000281,0x0004003d,0x00000006,0x00000283,
|
||||
0x00000277,0x00050041,0x00000007,0x00000284,0x00000274,0x00000092,0x0003003e,0x00000284,
|
||||
0x00000283,0x0004003d,0x00000065,0x00000287,0x00000274,0x00050051,0x00000006,0x00000288,
|
||||
0x00000287,0x00000000,0x00050051,0x00000006,0x00000289,0x00000287,0x00000001,0x00050051,
|
||||
0x00000006,0x0000028a,0x00000287,0x00000002,0x00070050,0x0000001d,0x0000028b,0x00000288,
|
||||
0x00000289,0x0000028a,0x00000035,0x0003003e,0x00000286,0x0000028b,0x000100fd,0x00010038,
|
||||
0x00050036,0x00000006,0x0000000a,0x00000000,0x00000008,0x00030037,0x00000007,0x00000009,
|
||||
0x000200f8,0x0000000b,0x0004003d,0x00000006,0x00000036,0x00000009,0x00050088,0x00000006,
|
||||
0x00000037,0x00000035,0x00000036,0x000200fe,0x00000037,0x00010038,0x00050036,0x00000006,
|
||||
0x0000000d,0x00000000,0x00000008,0x00030037,0x00000007,0x0000000c,0x000200f8,0x0000000e,
|
||||
0x0004003d,0x00000006,0x0000003a,0x0000000c,0x0008000c,0x00000006,0x0000003c,0x00000001,
|
||||
0x0000002b,0x0000003a,0x0000003b,0x00000035,0x000200fe,0x0000003c,0x00010038,0x00050036,
|
||||
0x00000006,0x00000013,0x00000000,0x0000000f,0x00030037,0x00000007,0x00000010,0x00030037,
|
||||
0x00000007,0x00000011,0x00030037,0x00000007,0x00000012,0x000200f8,0x00000014,0x0004003d,
|
||||
0x00000006,0x0000003f,0x00000010,0x0004003d,0x00000006,0x00000040,0x00000011,0x0004003d,
|
||||
0x00000006,0x00000041,0x00000012,0x0007000c,0x00000006,0x00000042,0x00000001,0x00000025,
|
||||
0x00000040,0x00000041,0x0007000c,0x00000006,0x00000043,0x00000001,0x00000025,0x0000003f,
|
||||
0x00000042,0x000200fe,0x00000043,0x00010038,0x00050036,0x00000006,0x00000018,0x00000000,
|
||||
0x0000000f,0x00030037,0x00000007,0x00000015,0x00030037,0x00000007,0x00000016,0x00030037,
|
||||
0x00000007,0x00000017,0x000200f8,0x00000019,0x0004003d,0x00000006,0x00000046,0x00000015,
|
||||
0x0004003d,0x00000006,0x00000047,0x00000016,0x0004003d,0x00000006,0x00000048,0x00000017,
|
||||
0x0007000c,0x00000006,0x00000049,0x00000001,0x00000028,0x00000047,0x00000048,0x0007000c,
|
||||
0x00000006,0x0000004a,0x00000001,0x00000028,0x00000046,0x00000049,0x000200fe,0x0000004a,
|
||||
0x00010038,0x00050036,0x0000001d,0x00000020,0x00000000,0x0000001e,0x00030037,0x0000001c,
|
||||
0x0000001f,0x000200f8,0x00000021,0x0004003b,0x0000001c,0x0000004d,0x00000007,0x0004003d,
|
||||
0x0000004f,0x00000052,0x00000051,0x00040064,0x0000004e,0x00000054,0x00000052,0x00050067,
|
||||
0x0000001b,0x00000055,0x00000054,0x00000053,0x0003003e,0x0000004d,0x00000055,0x0004003d,
|
||||
0x0000004f,0x00000056,0x00000051,0x0004003d,0x0000001b,0x00000057,0x0000001f,0x0004003d,
|
||||
0x0000001b,0x00000059,0x0000004d,0x00050082,0x0000001b,0x0000005c,0x00000059,0x0000005b,
|
||||
0x0008000c,0x0000001b,0x0000005d,0x00000001,0x0000002d,0x00000057,0x00000058,0x0000005c,
|
||||
0x00040064,0x0000004e,0x0000005e,0x00000056,0x0007005f,0x0000001d,0x0000005f,0x0000005e,
|
||||
0x0000005d,0x00000002,0x00000053,0x000200fe,0x0000005f,0x00010038,0x00050036,0x00000002,
|
||||
0x00000026,0x00000000,0x00000022,0x00030037,0x00000007,0x00000023,0x00030037,0x00000007,
|
||||
0x00000024,0x00030037,0x00000007,0x00000025,0x000200f8,0x00000027,0x000100fd,0x00010038,
|
||||
0x00050036,0x00000002,0x00000033,0x00000000,0x0000002d,0x00030037,0x00000007,0x0000002e,
|
||||
0x00030037,0x00000007,0x0000002f,0x00030037,0x00000007,0x00000030,0x00030037,0x0000002a,
|
||||
0x00000031,0x00030037,0x0000002c,0x00000032,0x000200f8,0x00000034,0x0004003b,0x0000001c,
|
||||
0x00000062,0x00000007,0x0004003b,0x00000066,0x00000067,0x00000007,0x0004003b,0x0000001c,
|
||||
0x0000006c,0x00000007,0x0004003b,0x00000066,0x0000006f,0x00000007,0x0004003b,0x0000001c,
|
||||
0x00000073,0x00000007,0x0004003b,0x00000066,0x00000076,0x00000007,0x0004003b,0x0000001c,
|
||||
0x00000077,0x00000007,0x0004003b,0x00000066,0x0000007b,0x00000007,0x0004003b,0x0000001c,
|
||||
0x0000007f,0x00000007,0x0004003b,0x00000066,0x00000082,0x00000007,0x0004003b,0x0000001c,
|
||||
0x00000086,0x00000007,0x0004003b,0x00000007,0x00000089,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000008d,0x00000007,0x0004003b,0x00000007,0x00000091,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000095,0x00000007,0x0004003b,0x00000007,0x00000098,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000009b,0x00000007,0x0004003b,0x00000007,0x0000009e,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000a1,0x00000007,0x0004003b,0x00000007,0x000000a4,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000a7,0x00000007,0x0004003b,0x00000007,0x000000aa,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000ad,0x00000007,0x0004003b,0x00000007,0x000000b0,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000b3,0x00000007,0x0004003b,0x00000007,0x000000b6,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000b9,0x00000007,0x0004003b,0x00000007,0x000000bb,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000bd,0x00000007,0x0004003b,0x00000007,0x000000c3,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000c5,0x00000007,0x0004003b,0x00000007,0x000000c7,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000cd,0x00000007,0x0004003b,0x00000007,0x000000cf,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000d1,0x00000007,0x0004003b,0x00000007,0x000000d7,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000d9,0x00000007,0x0004003b,0x00000007,0x000000db,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000e1,0x00000007,0x0004003b,0x00000007,0x000000e3,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000e5,0x00000007,0x0004003b,0x00000007,0x000000eb,0x00000007,0x0004003b,0x00000007,
|
||||
0x000000f4,0x00000007,0x0004003b,0x00000007,0x000000fc,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000104,0x00000007,0x0004003b,0x00000007,0x0000010c,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000114,0x00000007,0x0004003b,0x00000007,0x00000125,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000127,0x00000007,0x0004003b,0x00000007,0x00000129,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000012c,0x00000007,0x0004003b,0x00000007,0x0000012d,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000012f,0x00000007,0x0004003b,0x00000007,0x00000132,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000134,0x00000007,0x0004003b,0x00000007,0x00000136,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000139,0x00000007,0x0004003b,0x00000007,0x0000013a,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000013c,0x00000007,0x0004003b,0x00000007,0x00000140,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000143,0x00000007,0x0004003b,0x00000007,0x00000149,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000014a,0x00000007,0x0004003b,0x00000007,0x0000014c,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000014e,0x00000007,0x0004003b,0x00000007,0x00000153,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000154,0x00000007,0x0004003b,0x00000007,0x00000156,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000158,0x00000007,0x0004003b,0x00000007,0x0000015d,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000015e,0x00000007,0x0004003b,0x00000007,0x00000160,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000162,0x00000007,0x0004003b,0x00000007,0x00000167,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000168,0x00000007,0x0004003b,0x00000007,0x0000016a,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000016c,0x00000007,0x0004003b,0x00000007,0x00000171,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000172,0x00000007,0x0004003b,0x00000007,0x00000174,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000176,0x00000007,0x0004003b,0x00000007,0x0000017b,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000017c,0x00000007,0x0004003b,0x00000007,0x0000017e,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000180,0x00000007,0x0004003b,0x00000186,0x00000187,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000018a,0x00000007,0x0004003b,0x00000007,0x0000018e,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000191,0x00000007,0x0004003b,0x00000007,0x00000194,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000019a,0x00000007,0x0004003b,0x00000007,0x000001a0,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001a6,0x00000007,0x0004003b,0x00000007,0x000001aa,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001b4,0x00000007,0x0004003b,0x00000007,0x000001b7,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001c1,0x00000007,0x0004003b,0x00000007,0x000001c4,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001ce,0x00000007,0x0004003b,0x00000007,0x000001d5,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001dc,0x00000007,0x0004003b,0x00000007,0x000001e3,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001e8,0x00000007,0x0004003b,0x00000007,0x000001f0,0x00000007,0x0004003b,0x00000007,
|
||||
0x000001f4,0x00000007,0x0004003b,0x00000007,0x000001fc,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000200,0x00000007,0x0004003b,0x00000007,0x00000208,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000020d,0x00000007,0x0004003b,0x00000007,0x00000212,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000217,0x00000007,0x0004003b,0x00000007,0x00000219,0x00000007,0x0004003b,0x00000007,
|
||||
0x0000021b,0x00000007,0x0004003b,0x00000007,0x0000021d,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000227,0x00000007,0x0004003b,0x00000007,0x0000022b,0x00000007,0x0004003d,0x00000029,
|
||||
0x00000063,0x00000031,0x0004007c,0x0000001b,0x00000064,0x00000063,0x0003003e,0x00000062,
|
||||
0x00000064,0x0004003d,0x0000001b,0x00000068,0x00000062,0x00050080,0x0000001b,0x0000006b,
|
||||
0x00000068,0x0000006a,0x0003003e,0x0000006c,0x0000006b,0x00050039,0x0000001d,0x0000006d,
|
||||
0x00000020,0x0000006c,0x0008004f,0x00000065,0x0000006e,0x0000006d,0x0000006d,0x00000000,
|
||||
0x00000001,0x00000002,0x0003003e,0x00000067,0x0000006e,0x0004003d,0x0000001b,0x00000070,
|
||||
0x00000062,0x00050080,0x0000001b,0x00000072,0x00000070,0x00000071,0x0003003e,0x00000073,
|
||||
0x00000072,0x00050039,0x0000001d,0x00000074,0x00000020,0x00000073,0x0008004f,0x00000065,
|
||||
0x00000075,0x00000074,0x00000074,0x00000000,0x00000001,0x00000002,0x0003003e,0x0000006f,
|
||||
0x00000075,0x0004003d,0x0000001b,0x00000078,0x00000062,0x0003003e,0x00000077,0x00000078,
|
||||
0x00050039,0x0000001d,0x00000079,0x00000020,0x00000077,0x0008004f,0x00000065,0x0000007a,
|
||||
0x00000079,0x00000079,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000076,0x0000007a,
|
||||
0x0004003d,0x0000001b,0x0000007c,0x00000062,0x00050080,0x0000001b,0x0000007e,0x0000007c,
|
||||
0x0000007d,0x0003003e,0x0000007f,0x0000007e,0x00050039,0x0000001d,0x00000080,0x00000020,
|
||||
0x0000007f,0x0008004f,0x00000065,0x00000081,0x00000080,0x00000080,0x00000000,0x00000001,
|
||||
0x00000002,0x0003003e,0x0000007b,0x00000081,0x0004003d,0x0000001b,0x00000083,0x00000062,
|
||||
0x00050080,0x0000001b,0x00000085,0x00000083,0x00000084,0x0003003e,0x00000086,0x00000085,
|
||||
0x00050039,0x0000001d,0x00000087,0x00000020,0x00000086,0x0008004f,0x00000065,0x00000088,
|
||||
0x00000087,0x00000087,0x00000000,0x00000001,0x00000002,0x0003003e,0x00000082,0x00000088,
|
||||
0x00050041,0x00000007,0x0000008b,0x00000067,0x0000008a,0x0004003d,0x00000006,0x0000008c,
|
||||
0x0000008b,0x0003003e,0x00000089,0x0000008c,0x00050041,0x00000007,0x0000008f,0x00000067,
|
||||
0x0000008e,0x0004003d,0x00000006,0x00000090,0x0000008f,0x0003003e,0x0000008d,0x00000090,
|
||||
0x00050041,0x00000007,0x00000093,0x00000067,0x00000092,0x0004003d,0x00000006,0x00000094,
|
||||
0x00000093,0x0003003e,0x00000091,0x00000094,0x00050041,0x00000007,0x00000096,0x0000006f,
|
||||
0x0000008a,0x0004003d,0x00000006,0x00000097,0x00000096,0x0003003e,0x00000095,0x00000097,
|
||||
0x00050041,0x00000007,0x00000099,0x0000006f,0x0000008e,0x0004003d,0x00000006,0x0000009a,
|
||||
0x00000099,0x0003003e,0x00000098,0x0000009a,0x00050041,0x00000007,0x0000009c,0x0000006f,
|
||||
0x00000092,0x0004003d,0x00000006,0x0000009d,0x0000009c,0x0003003e,0x0000009b,0x0000009d,
|
||||
0x00050041,0x00000007,0x0000009f,0x00000076,0x0000008a,0x0004003d,0x00000006,0x000000a0,
|
||||
0x0000009f,0x0003003e,0x0000009e,0x000000a0,0x00050041,0x00000007,0x000000a2,0x00000076,
|
||||
0x0000008e,0x0004003d,0x00000006,0x000000a3,0x000000a2,0x0003003e,0x000000a1,0x000000a3,
|
||||
0x00050041,0x00000007,0x000000a5,0x00000076,0x00000092,0x0004003d,0x00000006,0x000000a6,
|
||||
0x000000a5,0x0003003e,0x000000a4,0x000000a6,0x00050041,0x00000007,0x000000a8,0x0000007b,
|
||||
0x0000008a,0x0004003d,0x00000006,0x000000a9,0x000000a8,0x0003003e,0x000000a7,0x000000a9,
|
||||
0x00050041,0x00000007,0x000000ab,0x0000007b,0x0000008e,0x0004003d,0x00000006,0x000000ac,
|
||||
0x000000ab,0x0003003e,0x000000aa,0x000000ac,0x00050041,0x00000007,0x000000ae,0x0000007b,
|
||||
0x00000092,0x0004003d,0x00000006,0x000000af,0x000000ae,0x0003003e,0x000000ad,0x000000af,
|
||||
0x00050041,0x00000007,0x000000b1,0x00000082,0x0000008a,0x0004003d,0x00000006,0x000000b2,
|
||||
0x000000b1,0x0003003e,0x000000b0,0x000000b2,0x00050041,0x00000007,0x000000b4,0x00000082,
|
||||
0x0000008e,0x0004003d,0x00000006,0x000000b5,0x000000b4,0x0003003e,0x000000b3,0x000000b5,
|
||||
0x00050041,0x00000007,0x000000b7,0x00000082,0x00000092,0x0004003d,0x00000006,0x000000b8,
|
||||
0x000000b7,0x0003003e,0x000000b6,0x000000b8,0x0004003d,0x00000006,0x000000ba,0x00000089,
|
||||
0x0003003e,0x000000b9,0x000000ba,0x0004003d,0x00000006,0x000000bc,0x0000008d,0x0003003e,
|
||||
0x000000bb,0x000000bc,0x0004003d,0x00000006,0x000000be,0x00000091,0x0003003e,0x000000bd,
|
||||
0x000000be,0x00070039,0x00000002,0x000000bf,0x00000026,0x000000b9,0x000000bb,0x000000bd,
|
||||
0x0004003d,0x00000006,0x000000c0,0x000000b9,0x0003003e,0x00000089,0x000000c0,0x0004003d,
|
||||
0x00000006,0x000000c1,0x000000bb,0x0003003e,0x0000008d,0x000000c1,0x0004003d,0x00000006,
|
||||
0x000000c2,0x000000bd,0x0003003e,0x00000091,0x000000c2,0x0004003d,0x00000006,0x000000c4,
|
||||
0x00000095,0x0003003e,0x000000c3,0x000000c4,0x0004003d,0x00000006,0x000000c6,0x00000098,
|
||||
0x0003003e,0x000000c5,0x000000c6,0x0004003d,0x00000006,0x000000c8,0x0000009b,0x0003003e,
|
||||
0x000000c7,0x000000c8,0x00070039,0x00000002,0x000000c9,0x00000026,0x000000c3,0x000000c5,
|
||||
0x000000c7,0x0004003d,0x00000006,0x000000ca,0x000000c3,0x0003003e,0x00000095,0x000000ca,
|
||||
0x0004003d,0x00000006,0x000000cb,0x000000c5,0x0003003e,0x00000098,0x000000cb,0x0004003d,
|
||||
0x00000006,0x000000cc,0x000000c7,0x0003003e,0x0000009b,0x000000cc,0x0004003d,0x00000006,
|
||||
0x000000ce,0x0000009e,0x0003003e,0x000000cd,0x000000ce,0x0004003d,0x00000006,0x000000d0,
|
||||
0x000000a1,0x0003003e,0x000000cf,0x000000d0,0x0004003d,0x00000006,0x000000d2,0x000000a4,
|
||||
0x0003003e,0x000000d1,0x000000d2,0x00070039,0x00000002,0x000000d3,0x00000026,0x000000cd,
|
||||
0x000000cf,0x000000d1,0x0004003d,0x00000006,0x000000d4,0x000000cd,0x0003003e,0x0000009e,
|
||||
0x000000d4,0x0004003d,0x00000006,0x000000d5,0x000000cf,0x0003003e,0x000000a1,0x000000d5,
|
||||
0x0004003d,0x00000006,0x000000d6,0x000000d1,0x0003003e,0x000000a4,0x000000d6,0x0004003d,
|
||||
0x00000006,0x000000d8,0x000000a7,0x0003003e,0x000000d7,0x000000d8,0x0004003d,0x00000006,
|
||||
0x000000da,0x000000aa,0x0003003e,0x000000d9,0x000000da,0x0004003d,0x00000006,0x000000dc,
|
||||
0x000000ad,0x0003003e,0x000000db,0x000000dc,0x00070039,0x00000002,0x000000dd,0x00000026,
|
||||
0x000000d7,0x000000d9,0x000000db,0x0004003d,0x00000006,0x000000de,0x000000d7,0x0003003e,
|
||||
0x000000a7,0x000000de,0x0004003d,0x00000006,0x000000df,0x000000d9,0x0003003e,0x000000aa,
|
||||
0x000000df,0x0004003d,0x00000006,0x000000e0,0x000000db,0x0003003e,0x000000ad,0x000000e0,
|
||||
0x0004003d,0x00000006,0x000000e2,0x000000b0,0x0003003e,0x000000e1,0x000000e2,0x0004003d,
|
||||
0x00000006,0x000000e4,0x000000b3,0x0003003e,0x000000e3,0x000000e4,0x0004003d,0x00000006,
|
||||
0x000000e6,0x000000b6,0x0003003e,0x000000e5,0x000000e6,0x00070039,0x00000002,0x000000e7,
|
||||
0x00000026,0x000000e1,0x000000e3,0x000000e5,0x0004003d,0x00000006,0x000000e8,0x000000e1,
|
||||
0x0003003e,0x000000b0,0x000000e8,0x0004003d,0x00000006,0x000000e9,0x000000e3,0x0003003e,
|
||||
0x000000b3,0x000000e9,0x0004003d,0x00000006,0x000000ea,0x000000e5,0x0003003e,0x000000b6,
|
||||
0x000000ea,0x0004003d,0x00000006,0x000000ec,0x00000091,0x00050085,0x00000006,0x000000ee,
|
||||
0x000000ec,0x000000ed,0x0004003d,0x00000006,0x000000ef,0x00000089,0x00050085,0x00000006,
|
||||
0x000000f0,0x000000ef,0x000000ed,0x0004003d,0x00000006,0x000000f1,0x0000008d,0x00050081,
|
||||
0x00000006,0x000000f2,0x000000f0,0x000000f1,0x00050081,0x00000006,0x000000f3,0x000000ee,
|
||||
0x000000f2,0x0003003e,0x000000eb,0x000000f3,0x0004003d,0x00000006,0x000000f5,0x0000009b,
|
||||
0x00050085,0x00000006,0x000000f6,0x000000f5,0x000000ed,0x0004003d,0x00000006,0x000000f7,
|
||||
0x00000095,0x00050085,0x00000006,0x000000f8,0x000000f7,0x000000ed,0x0004003d,0x00000006,
|
||||
0x000000f9,0x00000098,0x00050081,0x00000006,0x000000fa,0x000000f8,0x000000f9,0x00050081,
|
||||
0x00000006,0x000000fb,0x000000f6,0x000000fa,0x0003003e,0x000000f4,0x000000fb,0x0004003d,
|
||||
0x00000006,0x000000fd,0x000000a4,0x00050085,0x00000006,0x000000fe,0x000000fd,0x000000ed,
|
||||
0x0004003d,0x00000006,0x000000ff,0x0000009e,0x00050085,0x00000006,0x00000100,0x000000ff,
|
||||
0x000000ed,0x0004003d,0x00000006,0x00000101,0x000000a1,0x00050081,0x00000006,0x00000102,
|
||||
0x00000100,0x00000101,0x00050081,0x00000006,0x00000103,0x000000fe,0x00000102,0x0003003e,
|
||||
0x000000fc,0x00000103,0x0004003d,0x00000006,0x00000105,0x000000ad,0x00050085,0x00000006,
|
||||
0x00000106,0x00000105,0x000000ed,0x0004003d,0x00000006,0x00000107,0x000000a7,0x00050085,
|
||||
0x00000006,0x00000108,0x00000107,0x000000ed,0x0004003d,0x00000006,0x00000109,0x000000aa,
|
||||
0x00050081,0x00000006,0x0000010a,0x00000108,0x00000109,0x00050081,0x00000006,0x0000010b,
|
||||
0x00000106,0x0000010a,0x0003003e,0x00000104,0x0000010b,0x0004003d,0x00000006,0x0000010d,
|
||||
0x000000b6,0x00050085,0x00000006,0x0000010e,0x0000010d,0x000000ed,0x0004003d,0x00000006,
|
||||
0x0000010f,0x000000b0,0x00050085,0x00000006,0x00000110,0x0000010f,0x000000ed,0x0004003d,
|
||||
0x00000006,0x00000111,0x000000b3,0x00050081,0x00000006,0x00000112,0x00000110,0x00000111,
|
||||
0x00050081,0x00000006,0x00000113,0x0000010e,0x00000112,0x0003003e,0x0000010c,0x00000113,
|
||||
0x0004003d,0x00000006,0x00000116,0x000000eb,0x00050085,0x00000006,0x00000117,0x00000115,
|
||||
0x00000116,0x0004003d,0x00000006,0x00000118,0x000000f4,0x00050085,0x00000006,0x00000119,
|
||||
0x00000115,0x00000118,0x00050081,0x00000006,0x0000011a,0x00000117,0x00000119,0x0004003d,
|
||||
0x00000006,0x0000011b,0x00000104,0x00050085,0x00000006,0x0000011c,0x00000115,0x0000011b,
|
||||
0x00050081,0x00000006,0x0000011d,0x0000011a,0x0000011c,0x0004003d,0x00000006,0x0000011e,
|
||||
0x0000010c,0x00050085,0x00000006,0x0000011f,0x00000115,0x0000011e,0x00050081,0x00000006,
|
||||
0x00000120,0x0000011d,0x0000011f,0x0004003d,0x00000006,0x00000121,0x000000fc,0x00050083,
|
||||
0x00000006,0x00000122,0x00000120,0x00000121,0x0003003e,0x00000114,0x00000122,0x0004003d,
|
||||
0x00000006,0x00000123,0x00000114,0x0006000c,0x00000006,0x00000124,0x00000001,0x00000004,
|
||||
0x00000123,0x0004003d,0x00000006,0x00000126,0x000000eb,0x0003003e,0x00000125,0x00000126,
|
||||
0x0004003d,0x00000006,0x00000128,0x000000f4,0x0003003e,0x00000127,0x00000128,0x0004003d,
|
||||
0x00000006,0x0000012a,0x000000fc,0x0003003e,0x00000129,0x0000012a,0x00070039,0x00000006,
|
||||
0x0000012b,0x00000018,0x00000125,0x00000127,0x00000129,0x0003003e,0x0000012c,0x0000012b,
|
||||
0x0004003d,0x00000006,0x0000012e,0x00000104,0x0003003e,0x0000012d,0x0000012e,0x0004003d,
|
||||
0x00000006,0x00000130,0x0000010c,0x0003003e,0x0000012f,0x00000130,0x00070039,0x00000006,
|
||||
0x00000131,0x00000018,0x0000012c,0x0000012d,0x0000012f,0x0004003d,0x00000006,0x00000133,
|
||||
0x000000eb,0x0003003e,0x00000132,0x00000133,0x0004003d,0x00000006,0x00000135,0x000000f4,
|
||||
0x0003003e,0x00000134,0x00000135,0x0004003d,0x00000006,0x00000137,0x000000fc,0x0003003e,
|
||||
0x00000136,0x00000137,0x00070039,0x00000006,0x00000138,0x00000013,0x00000132,0x00000134,
|
||||
0x00000136,0x0003003e,0x00000139,0x00000138,0x0004003d,0x00000006,0x0000013b,0x00000104,
|
||||
0x0003003e,0x0000013a,0x0000013b,0x0004003d,0x00000006,0x0000013d,0x0000010c,0x0003003e,
|
||||
0x0000013c,0x0000013d,0x00070039,0x00000006,0x0000013e,0x00000013,0x00000139,0x0000013a,
|
||||
0x0000013c,0x00050083,0x00000006,0x0000013f,0x00000131,0x0000013e,0x0003003e,0x00000140,
|
||||
0x0000013f,0x00050039,0x00000006,0x00000141,0x0000000a,0x00000140,0x00050085,0x00000006,
|
||||
0x00000142,0x00000124,0x00000141,0x0003003e,0x00000143,0x00000142,0x00050039,0x00000006,
|
||||
0x00000144,0x0000000d,0x00000143,0x0003003e,0x00000114,0x00000144,0x0004003d,0x00000006,
|
||||
0x00000146,0x00000114,0x00050085,0x00000006,0x00000147,0x00000145,0x00000146,0x00050081,
|
||||
0x00000006,0x00000148,0x00000147,0x00000035,0x0003003e,0x00000114,0x00000148,0x0004003d,
|
||||
0x00000006,0x0000014b,0x00000089,0x0003003e,0x0000014a,0x0000014b,0x0004003d,0x00000006,
|
||||
0x0000014d,0x00000095,0x0003003e,0x0000014c,0x0000014d,0x0004003d,0x00000006,0x0000014f,
|
||||
0x000000a7,0x0003003e,0x0000014e,0x0000014f,0x00070039,0x00000006,0x00000150,0x00000013,
|
||||
0x0000014a,0x0000014c,0x0000014e,0x0004003d,0x00000006,0x00000151,0x000000b0,0x0007000c,
|
||||
0x00000006,0x00000152,0x00000001,0x00000025,0x00000150,0x00000151,0x0003003e,0x00000149,
|
||||
0x00000152,0x0004003d,0x00000006,0x00000155,0x0000008d,0x0003003e,0x00000154,0x00000155,
|
||||
0x0004003d,0x00000006,0x00000157,0x00000098,0x0003003e,0x00000156,0x00000157,0x0004003d,
|
||||
0x00000006,0x00000159,0x000000aa,0x0003003e,0x00000158,0x00000159,0x00070039,0x00000006,
|
||||
0x0000015a,0x00000013,0x00000154,0x00000156,0x00000158,0x0004003d,0x00000006,0x0000015b,
|
||||
0x000000b3,0x0007000c,0x00000006,0x0000015c,0x00000001,0x00000025,0x0000015a,0x0000015b,
|
||||
0x0003003e,0x00000153,0x0000015c,0x0004003d,0x00000006,0x0000015f,0x00000091,0x0003003e,
|
||||
0x0000015e,0x0000015f,0x0004003d,0x00000006,0x00000161,0x0000009b,0x0003003e,0x00000160,
|
||||
0x00000161,0x0004003d,0x00000006,0x00000163,0x000000ad,0x0003003e,0x00000162,0x00000163,
|
||||
0x00070039,0x00000006,0x00000164,0x00000013,0x0000015e,0x00000160,0x00000162,0x0004003d,
|
||||
0x00000006,0x00000165,0x000000b6,0x0007000c,0x00000006,0x00000166,0x00000001,0x00000025,
|
||||
0x00000164,0x00000165,0x0003003e,0x0000015d,0x00000166,0x0004003d,0x00000006,0x00000169,
|
||||
0x00000089,0x0003003e,0x00000168,0x00000169,0x0004003d,0x00000006,0x0000016b,0x00000095,
|
||||
0x0003003e,0x0000016a,0x0000016b,0x0004003d,0x00000006,0x0000016d,0x000000a7,0x0003003e,
|
||||
0x0000016c,0x0000016d,0x00070039,0x00000006,0x0000016e,0x00000018,0x00000168,0x0000016a,
|
||||
0x0000016c,0x0004003d,0x00000006,0x0000016f,0x000000b0,0x0007000c,0x00000006,0x00000170,
|
||||
0x00000001,0x00000028,0x0000016e,0x0000016f,0x0003003e,0x00000167,0x00000170,0x0004003d,
|
||||
0x00000006,0x00000173,0x0000008d,0x0003003e,0x00000172,0x00000173,0x0004003d,0x00000006,
|
||||
0x00000175,0x00000098,0x0003003e,0x00000174,0x00000175,0x0004003d,0x00000006,0x00000177,
|
||||
0x000000aa,0x0003003e,0x00000176,0x00000177,0x00070039,0x00000006,0x00000178,0x00000018,
|
||||
0x00000172,0x00000174,0x00000176,0x0004003d,0x00000006,0x00000179,0x000000b3,0x0007000c,
|
||||
0x00000006,0x0000017a,0x00000001,0x00000028,0x00000178,0x00000179,0x0003003e,0x00000171,
|
||||
0x0000017a,0x0004003d,0x00000006,0x0000017d,0x00000091,0x0003003e,0x0000017c,0x0000017d,
|
||||
0x0004003d,0x00000006,0x0000017f,0x0000009b,0x0003003e,0x0000017e,0x0000017f,0x0004003d,
|
||||
0x00000006,0x00000181,0x000000ad,0x0003003e,0x00000180,0x00000181,0x00070039,0x00000006,
|
||||
0x00000182,0x00000018,0x0000017c,0x0000017e,0x00000180,0x0004003d,0x00000006,0x00000183,
|
||||
0x000000b6,0x0007000c,0x00000006,0x00000184,0x00000001,0x00000028,0x00000182,0x00000183,
|
||||
0x0003003e,0x0000017b,0x00000184,0x0003003e,0x00000187,0x00000189,0x0004003d,0x00000006,
|
||||
0x0000018c,0x00000167,0x00050085,0x00000006,0x0000018d,0x0000018b,0x0000018c,0x0003003e,
|
||||
0x0000018a,0x0000018d,0x0004003d,0x00000006,0x0000018f,0x00000171,0x00050085,0x00000006,
|
||||
0x00000190,0x0000018b,0x0000018f,0x0003003e,0x0000018e,0x00000190,0x0004003d,0x00000006,
|
||||
0x00000192,0x0000017b,0x00050085,0x00000006,0x00000193,0x0000018b,0x00000192,0x0003003e,
|
||||
0x00000191,0x00000193,0x0004003d,0x00000006,0x00000195,0x00000149,0x00050085,0x00000006,
|
||||
0x00000196,0x0000018b,0x00000195,0x00050041,0x00000007,0x00000197,0x00000187,0x0000008e,
|
||||
0x0004003d,0x00000006,0x00000198,0x00000197,0x00050081,0x00000006,0x00000199,0x00000196,
|
||||
0x00000198,0x0003003e,0x00000194,0x00000199,0x0004003d,0x00000006,0x0000019b,0x00000153,
|
||||
0x00050085,0x00000006,0x0000019c,0x0000018b,0x0000019b,0x00050041,0x00000007,0x0000019d,
|
||||
0x00000187,0x0000008e,0x0004003d,0x00000006,0x0000019e,0x0000019d,0x00050081,0x00000006,
|
||||
0x0000019f,0x0000019c,0x0000019e,0x0003003e,0x0000019a,0x0000019f,0x0004003d,0x00000006,
|
||||
0x000001a1,0x0000015d,0x00050085,0x00000006,0x000001a2,0x0000018b,0x000001a1,0x00050041,
|
||||
0x00000007,0x000001a3,0x00000187,0x0000008e,0x0004003d,0x00000006,0x000001a4,0x000001a3,
|
||||
0x00050081,0x00000006,0x000001a5,0x000001a2,0x000001a4,0x0003003e,0x000001a0,0x000001a5,
|
||||
0x0004003d,0x00000006,0x000001a7,0x0000018a,0x000500ba,0x000001a8,0x000001a9,0x000001a7,
|
||||
0x0000003b,0x000300f7,0x000001ac,0x00000000,0x000400fa,0x000001a9,0x000001ab,0x000001b2,
|
||||
0x000200f8,0x000001ab,0x0004003d,0x00000006,0x000001ad,0x00000149,0x0004003d,0x00000006,
|
||||
0x000001ae,0x0000009e,0x0007000c,0x00000006,0x000001af,0x00000001,0x00000025,0x000001ad,
|
||||
0x000001ae,0x0004003d,0x00000006,0x000001b0,0x0000018a,0x00050088,0x00000006,0x000001b1,
|
||||
0x000001af,0x000001b0,0x0003003e,0x000001aa,0x000001b1,0x000200f9,0x000001ac,0x000200f8,
|
||||
0x000001b2,0x0003003e,0x000001aa,0x0000003b,0x000200f9,0x000001ac,0x000200f8,0x000001ac,
|
||||
0x0004003d,0x00000006,0x000001b3,0x000001aa,0x0003003e,0x000001a6,0x000001b3,0x0004003d,
|
||||
0x00000006,0x000001b5,0x0000018e,0x000500ba,0x000001a8,0x000001b6,0x000001b5,0x0000003b,
|
||||
0x000300f7,0x000001b9,0x00000000,0x000400fa,0x000001b6,0x000001b8,0x000001bf,0x000200f8,
|
||||
0x000001b8,0x0004003d,0x00000006,0x000001ba,0x00000153,0x0004003d,0x00000006,0x000001bb,
|
||||
0x000000a1,0x0007000c,0x00000006,0x000001bc,0x00000001,0x00000025,0x000001ba,0x000001bb,
|
||||
0x0004003d,0x00000006,0x000001bd,0x0000018e,0x00050088,0x00000006,0x000001be,0x000001bc,
|
||||
0x000001bd,0x0003003e,0x000001b7,0x000001be,0x000200f9,0x000001b9,0x000200f8,0x000001bf,
|
||||
0x0003003e,0x000001b7,0x0000003b,0x000200f9,0x000001b9,0x000200f8,0x000001b9,0x0004003d,
|
||||
0x00000006,0x000001c0,0x000001b7,0x0003003e,0x000001b4,0x000001c0,0x0004003d,0x00000006,
|
||||
0x000001c2,0x00000191,0x000500ba,0x000001a8,0x000001c3,0x000001c2,0x0000003b,0x000300f7,
|
||||
0x000001c6,0x00000000,0x000400fa,0x000001c3,0x000001c5,0x000001cc,0x000200f8,0x000001c5,
|
||||
0x0004003d,0x00000006,0x000001c7,0x0000015d,0x0004003d,0x00000006,0x000001c8,0x000000a4,
|
||||
0x0007000c,0x00000006,0x000001c9,0x00000001,0x00000025,0x000001c7,0x000001c8,0x0004003d,
|
||||
0x00000006,0x000001ca,0x00000191,0x00050088,0x00000006,0x000001cb,0x000001c9,0x000001ca,
|
||||
0x0003003e,0x000001c4,0x000001cb,0x000200f9,0x000001c6,0x000200f8,0x000001cc,0x0003003e,
|
||||
0x000001c4,0x0000003b,0x000200f9,0x000001c6,0x000200f8,0x000001c6,0x0004003d,0x00000006,
|
||||
0x000001cd,0x000001c4,0x0003003e,0x000001c1,0x000001cd,0x00050041,0x00000007,0x000001cf,
|
||||
0x00000187,0x0000008a,0x0004003d,0x00000006,0x000001d0,0x000001cf,0x0004003d,0x00000006,
|
||||
0x000001d1,0x00000167,0x0004003d,0x00000006,0x000001d2,0x0000009e,0x0007000c,0x00000006,
|
||||
0x000001d3,0x00000001,0x00000028,0x000001d1,0x000001d2,0x00050083,0x00000006,0x000001d4,
|
||||
0x000001d0,0x000001d3,0x0003003e,0x000001ce,0x000001d4,0x00050041,0x00000007,0x000001d6,
|
||||
0x00000187,0x0000008a,0x0004003d,0x00000006,0x000001d7,0x000001d6,0x0004003d,0x00000006,
|
||||
0x000001d8,0x00000171,0x0004003d,0x00000006,0x000001d9,0x000000a1,0x0007000c,0x00000006,
|
||||
0x000001da,0x00000001,0x00000028,0x000001d8,0x000001d9,0x00050083,0x00000006,0x000001db,
|
||||
0x000001d7,0x000001da,0x0003003e,0x000001d5,0x000001db,0x00050041,0x00000007,0x000001dd,
|
||||
0x00000187,0x0000008a,0x0004003d,0x00000006,0x000001de,0x000001dd,0x0004003d,0x00000006,
|
||||
0x000001df,0x0000017b,0x0004003d,0x00000006,0x000001e0,0x000000a4,0x0007000c,0x00000006,
|
||||
0x000001e1,0x00000001,0x00000028,0x000001df,0x000001e0,0x00050083,0x00000006,0x000001e2,
|
||||
0x000001de,0x000001e1,0x0003003e,0x000001dc,0x000001e2,0x0004003d,0x00000006,0x000001e4,
|
||||
0x00000194,0x0006000c,0x00000006,0x000001e5,0x00000001,0x00000004,0x000001e4,0x000500ba,
|
||||
0x000001a8,0x000001e7,0x000001e5,0x000001e6,0x000300f7,0x000001ea,0x00000000,0x000400fa,
|
||||
0x000001e7,0x000001e9,0x000001ee,0x000200f8,0x000001e9,0x0004003d,0x00000006,0x000001eb,
|
||||
0x000001ce,0x0004003d,0x00000006,0x000001ec,0x00000194,0x00050088,0x00000006,0x000001ed,
|
||||
0x000001eb,0x000001ec,0x0003003e,0x000001e8,0x000001ed,0x000200f9,0x000001ea,0x000200f8,
|
||||
0x000001ee,0x0003003e,0x000001e8,0x0000003b,0x000200f9,0x000001ea,0x000200f8,0x000001ea,
|
||||
0x0004003d,0x00000006,0x000001ef,0x000001e8,0x0003003e,0x000001e3,0x000001ef,0x0004003d,
|
||||
0x00000006,0x000001f1,0x0000019a,0x0006000c,0x00000006,0x000001f2,0x00000001,0x00000004,
|
||||
0x000001f1,0x000500ba,0x000001a8,0x000001f3,0x000001f2,0x000001e6,0x000300f7,0x000001f6,
|
||||
0x00000000,0x000400fa,0x000001f3,0x000001f5,0x000001fa,0x000200f8,0x000001f5,0x0004003d,
|
||||
0x00000006,0x000001f7,0x000001d5,0x0004003d,0x00000006,0x000001f8,0x0000019a,0x00050088,
|
||||
0x00000006,0x000001f9,0x000001f7,0x000001f8,0x0003003e,0x000001f4,0x000001f9,0x000200f9,
|
||||
0x000001f6,0x000200f8,0x000001fa,0x0003003e,0x000001f4,0x0000003b,0x000200f9,0x000001f6,
|
||||
0x000200f8,0x000001f6,0x0004003d,0x00000006,0x000001fb,0x000001f4,0x0003003e,0x000001f0,
|
||||
0x000001fb,0x0004003d,0x00000006,0x000001fd,0x000001a0,0x0006000c,0x00000006,0x000001fe,
|
||||
0x00000001,0x00000004,0x000001fd,0x000500ba,0x000001a8,0x000001ff,0x000001fe,0x000001e6,
|
||||
0x000300f7,0x00000202,0x00000000,0x000400fa,0x000001ff,0x00000201,0x00000206,0x000200f8,
|
||||
0x00000201,0x0004003d,0x00000006,0x00000203,0x000001dc,0x0004003d,0x00000006,0x00000204,
|
||||
0x000001a0,0x00050088,0x00000006,0x00000205,0x00000203,0x00000204,0x0003003e,0x00000200,
|
||||
0x00000205,0x000200f9,0x00000202,0x000200f8,0x00000206,0x0003003e,0x00000200,0x0000003b,
|
||||
0x000200f9,0x00000202,0x000200f8,0x00000202,0x0004003d,0x00000006,0x00000207,0x00000200,
|
||||
0x0003003e,0x000001fc,0x00000207,0x0004003d,0x00000006,0x00000209,0x000001a6,0x0004007f,
|
||||
0x00000006,0x0000020a,0x00000209,0x0004003d,0x00000006,0x0000020b,0x000001e3,0x0007000c,
|
||||
0x00000006,0x0000020c,0x00000001,0x00000028,0x0000020a,0x0000020b,0x0003003e,0x00000208,
|
||||
0x0000020c,0x0004003d,0x00000006,0x0000020e,0x000001b4,0x0004007f,0x00000006,0x0000020f,
|
||||
0x0000020e,0x0004003d,0x00000006,0x00000210,0x000001f0,0x0007000c,0x00000006,0x00000211,
|
||||
0x00000001,0x00000028,0x0000020f,0x00000210,0x0003003e,0x0000020d,0x00000211,0x0004003d,
|
||||
0x00000006,0x00000213,0x000001c1,0x0004007f,0x00000006,0x00000214,0x00000213,0x0004003d,
|
||||
0x00000006,0x00000215,0x000001fc,0x0007000c,0x00000006,0x00000216,0x00000001,0x00000028,
|
||||
0x00000214,0x00000215,0x0003003e,0x00000212,0x00000216,0x0004003d,0x00000006,0x0000021a,
|
||||
0x00000208,0x0003003e,0x00000219,0x0000021a,0x0004003d,0x00000006,0x0000021c,0x0000020d,
|
||||
0x0003003e,0x0000021b,0x0000021c,0x0004003d,0x00000006,0x0000021e,0x00000212,0x0003003e,
|
||||
0x0000021d,0x0000021e,0x00070039,0x00000006,0x0000021f,0x00000018,0x00000219,0x0000021b,
|
||||
0x0000021d,0x0007000c,0x00000006,0x00000220,0x00000001,0x00000025,0x0000021f,0x0000003b,
|
||||
0x0007000c,0x00000006,0x00000221,0x00000001,0x00000028,0x00000218,0x00000220,0x00050041,
|
||||
0x00000222,0x00000223,0x00000032,0x0000008a,0x0004003d,0x00000028,0x00000224,0x00000223,
|
||||
0x0004007c,0x00000006,0x00000225,0x00000224,0x00050085,0x00000006,0x00000226,0x00000221,
|
||||
0x00000225,0x0003003e,0x00000217,0x00000226,0x0004003d,0x00000006,0x00000228,0x00000217,
|
||||
0x00050085,0x00000006,0x00000229,0x0000018b,0x00000228,0x00050081,0x00000006,0x0000022a,
|
||||
0x00000229,0x00000035,0x0003003e,0x0000022b,0x0000022a,0x00050039,0x00000006,0x0000022c,
|
||||
0x0000000a,0x0000022b,0x0003003e,0x00000227,0x0000022c,0x0004003d,0x00000006,0x0000022d,
|
||||
0x00000217,0x0004003d,0x00000006,0x0000022e,0x00000089,0x00050085,0x00000006,0x0000022f,
|
||||
0x0000022d,0x0000022e,0x0004003d,0x00000006,0x00000230,0x00000217,0x0004003d,0x00000006,
|
||||
0x00000231,0x00000095,0x00050085,0x00000006,0x00000232,0x00000230,0x00000231,0x00050081,
|
||||
0x00000006,0x00000233,0x0000022f,0x00000232,0x0004003d,0x00000006,0x00000234,0x00000217,
|
||||
0x0004003d,0x00000006,0x00000235,0x000000b0,0x00050085,0x00000006,0x00000236,0x00000234,
|
||||
0x00000235,0x00050081,0x00000006,0x00000237,0x00000233,0x00000236,0x0004003d,0x00000006,
|
||||
0x00000238,0x00000217,0x0004003d,0x00000006,0x00000239,0x000000a7,0x00050085,0x00000006,
|
||||
0x0000023a,0x00000238,0x00000239,0x00050081,0x00000006,0x0000023b,0x00000237,0x0000023a,
|
||||
0x0004003d,0x00000006,0x0000023c,0x0000009e,0x00050081,0x00000006,0x0000023d,0x0000023b,
|
||||
0x0000023c,0x0004003d,0x00000006,0x0000023e,0x00000227,0x00050085,0x00000006,0x0000023f,
|
||||
0x0000023d,0x0000023e,0x0003003e,0x0000002e,0x0000023f,0x0004003d,0x00000006,0x00000240,
|
||||
0x00000217,0x0004003d,0x00000006,0x00000241,0x0000008d,0x00050085,0x00000006,0x00000242,
|
||||
0x00000240,0x00000241,0x0004003d,0x00000006,0x00000243,0x00000217,0x0004003d,0x00000006,
|
||||
0x00000244,0x00000098,0x00050085,0x00000006,0x00000245,0x00000243,0x00000244,0x00050081,
|
||||
0x00000006,0x00000246,0x00000242,0x00000245,0x0004003d,0x00000006,0x00000247,0x00000217,
|
||||
0x0004003d,0x00000006,0x00000248,0x000000b3,0x00050085,0x00000006,0x00000249,0x00000247,
|
||||
0x00000248,0x00050081,0x00000006,0x0000024a,0x00000246,0x00000249,0x0004003d,0x00000006,
|
||||
0x0000024b,0x00000217,0x0004003d,0x00000006,0x0000024c,0x000000aa,0x00050085,0x00000006,
|
||||
0x0000024d,0x0000024b,0x0000024c,0x00050081,0x00000006,0x0000024e,0x0000024a,0x0000024d,
|
||||
0x0004003d,0x00000006,0x0000024f,0x000000a1,0x00050081,0x00000006,0x00000250,0x0000024e,
|
||||
0x0000024f,0x0004003d,0x00000006,0x00000251,0x00000227,0x00050085,0x00000006,0x00000252,
|
||||
0x00000250,0x00000251,0x0003003e,0x0000002f,0x00000252,0x0004003d,0x00000006,0x00000253,
|
||||
0x00000217,0x0004003d,0x00000006,0x00000254,0x00000091,0x00050085,0x00000006,0x00000255,
|
||||
0x00000253,0x00000254,0x0004003d,0x00000006,0x00000256,0x00000217,0x0004003d,0x00000006,
|
||||
0x00000257,0x0000009b,0x00050085,0x00000006,0x00000258,0x00000256,0x00000257,0x00050081,
|
||||
0x00000006,0x00000259,0x00000255,0x00000258,0x0004003d,0x00000006,0x0000025a,0x00000217,
|
||||
0x0004003d,0x00000006,0x0000025b,0x000000b6,0x00050085,0x00000006,0x0000025c,0x0000025a,
|
||||
0x0000025b,0x00050081,0x00000006,0x0000025d,0x00000259,0x0000025c,0x0004003d,0x00000006,
|
||||
0x0000025e,0x00000217,0x0004003d,0x00000006,0x0000025f,0x000000ad,0x00050085,0x00000006,
|
||||
0x00000260,0x0000025e,0x0000025f,0x00050081,0x00000006,0x00000261,0x0000025d,0x00000260,
|
||||
0x0004003d,0x00000006,0x00000262,0x000000a4,0x00050081,0x00000006,0x00000263,0x00000261,
|
||||
0x00000262,0x0004003d,0x00000006,0x00000264,0x00000227,0x00050085,0x00000006,0x00000265,
|
||||
0x00000263,0x00000264,0x0003003e,0x00000030,0x00000265,0x000100fd,0x00010038
|
||||
};
|
||||
@@ -12,11 +12,6 @@
|
||||
#
|
||||
# Usage: ./gen_shaders.sh # regenerate all shaders
|
||||
# ./gen_shaders.sh nis crt # regenerate only the named shaders
|
||||
#
|
||||
# The upscalers and CAS also get a half-precision build: the same source with
|
||||
# -DDD_HALF=1 -> <name>_half_frag.h (array <name>_half_code). The compositors
|
||||
# pick the plain or the half set at start-up (debug.droiddeck.upscale.shaders).
|
||||
# Names in HALF_ONLY are built half only.
|
||||
# =============================================================================
|
||||
set -euo pipefail
|
||||
|
||||
@@ -27,34 +22,17 @@ if ! command -v glslangValidator >/dev/null 2>&1; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
HALF=(sgsr sgsr_quality fsr_easu fsr_rcas cas_ffx nis_luma nis3)
|
||||
HALF_ONLY=(cas_ffx nis_luma nis3)
|
||||
|
||||
in_list() {
|
||||
local x="$1"; shift
|
||||
for y in "$@"; do [ "$x" = "$y" ] && return 0; done
|
||||
return 1
|
||||
}
|
||||
|
||||
gen() {
|
||||
local src="$1" # e.g. nis.frag
|
||||
local base="${src%.*}" # nis
|
||||
local ext="${src##*.}" # frag | vert
|
||||
if ! in_list "${base}" "${HALF_ONLY[@]}"; then
|
||||
local vn="${base}_code"
|
||||
if [ "$ext" = "vert" ]; then
|
||||
vn="${base}_vert_code"
|
||||
fi
|
||||
local out="${base}_${ext}.h"
|
||||
echo " ${src} -> ${out} (--vn ${vn})"
|
||||
glslangValidator -V "${src}" --vn "${vn}" -o "${out}"
|
||||
fi
|
||||
if in_list "${base}" "${HALF[@]}"; then
|
||||
local hvn="${base}_half_code"
|
||||
local hout="${base}_half_${ext}.h"
|
||||
echo " ${src} -> ${hout} (--vn ${hvn}, -DDD_HALF=1)"
|
||||
glslangValidator -V -DDD_HALF=1 "${src}" --vn "${hvn}" -o "${hout}"
|
||||
local vn="${base}_code"
|
||||
if [ "$ext" = "vert" ]; then
|
||||
vn="${base}_vert_code"
|
||||
fi
|
||||
local out="${base}_${ext}.h"
|
||||
echo " ${src} -> ${out} (--vn ${vn})"
|
||||
glslangValidator -V "${src}" --vn "${vn}" -o "${out}"
|
||||
}
|
||||
|
||||
shaders=()
|
||||
|
||||
@@ -36,25 +36,15 @@
|
||||
// then ViewportInfo (xy = 1/inputSize texel size, zw = inputSize px) + sharpness.
|
||||
// =============================================================================
|
||||
|
||||
// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and
|
||||
// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as NVIDIA's
|
||||
// NIS_USE_HALF_PRECISION path (pixels, weights, coefficient tables); positions and texture coordinates stay highp.
|
||||
#ifdef DD_HALF
|
||||
precision mediump float;
|
||||
#define BL_MP mediump
|
||||
#else
|
||||
#define BL_MP
|
||||
#endif
|
||||
|
||||
layout(binding = 0) uniform BL_MP sampler2D InputTexture;
|
||||
layout(binding = 0) uniform sampler2D InputTexture;
|
||||
|
||||
layout(push_constant) uniform PC {
|
||||
highp vec4 ndc; // quad NDC rect, consumed by upscale.vert (offset 0)
|
||||
highp vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels
|
||||
vec4 ndc; // quad NDC rect, consumed by upscale.vert (offset 0)
|
||||
vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels
|
||||
float sharpness; // "Sharpness" slider mapped to [0..1] (NIS sharpness)
|
||||
} pc;
|
||||
|
||||
layout(location = 0) in highp vec2 fragTexCoord;
|
||||
layout(location = 0) in vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
|
||||
// ---- SDR (HDR mode None) constants, from NVScalerUpdateConfig -----------------
|
||||
@@ -415,16 +405,16 @@ void main() {
|
||||
float sharpLimitMax = 0.5 + sharpen_slider * LimitScale * 0.6;
|
||||
gSharpLimitScale = sharpLimitMax - gSharpLimitMin;
|
||||
|
||||
highp vec2 inSize = pc.ViewportInfo.zw;
|
||||
highp vec2 invIn = pc.ViewportInfo.xy;
|
||||
vec2 inSize = pc.ViewportInfo.zw;
|
||||
vec2 invIn = pc.ViewportInfo.xy;
|
||||
|
||||
// Source sample position in input-pixel space (output viewport cancels out).
|
||||
highp float srcX = fragTexCoord.x * inSize.x - 0.5;
|
||||
highp float srcY = fragTexCoord.y * inSize.y - 0.5;
|
||||
highp float fsx = floor(srcX);
|
||||
highp float fsy = floor(srcY);
|
||||
highp float fx = srcX - fsx;
|
||||
highp float fy = srcY - fsy;
|
||||
float srcX = fragTexCoord.x * inSize.x - 0.5;
|
||||
float srcY = fragTexCoord.y * inSize.y - 0.5;
|
||||
float fsx = floor(srcX);
|
||||
float fsy = floor(srcY);
|
||||
float fx = srcX - fsx;
|
||||
float fy = srcY - fsy;
|
||||
int fx_int = int(fx * float(kPhaseCount));
|
||||
int fy_int = int(fy * float(kPhaseCount));
|
||||
|
||||
@@ -432,7 +422,7 @@ void main() {
|
||||
float p[6][6];
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
for (int j = 0; j < 6; ++j) {
|
||||
highp vec2 tc = (vec2(fsx + float(j) - 2.0, fsy + float(i) - 2.0) + 0.5) * invIn;
|
||||
vec2 tc = (vec2(fsx + float(j) - 2.0, fsy + float(i) - 2.0) + 0.5) * invIn;
|
||||
p[i][j] = getY(textureLod(InputTexture, tc, 0.0).rgb);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,357 +0,0 @@
|
||||
#version 450
|
||||
|
||||
// =============================================================================
|
||||
// nis3.frag (feat/nis-rewrite): nis.frag's NVScaler maths with
|
||||
// - the 6x6 luma support read from the nis_luma.frag prepass (luma in alpha)
|
||||
// by 9 textureGather calls instead of 36 textureLod + getY per pixel;
|
||||
// - the two coefficient banks in a uniform buffer (set 1, nis_coef.h) instead
|
||||
// of const arrays: indexed by the per-pixel phase, the 384-entry const arrays
|
||||
// were copied into a per-pixel variable before every lookup (glslang
|
||||
// OpStore %indexable), several times per pixel.
|
||||
// Edge maps and filter maths are nis.frag's. Built half only (nis3_half_frag.h);
|
||||
// the old set keeps nis.frag.
|
||||
// =============================================================================
|
||||
|
||||
// =============================================================================
|
||||
// NVIDIA Image Scaling (NIS) - NVScaler spatial upscaler + adaptive sharpen.
|
||||
//
|
||||
// Ported from NVIDIA's reference NVScaler:
|
||||
// NVIDIAGameWorks/NVIDIAImageScaling NIS/NIS_Scaler.h (+ NIS_Config.h)
|
||||
//
|
||||
// The MIT License (MIT)
|
||||
// Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
//
|
||||
// Adapted for the Winlator native Vulkan compositor:
|
||||
// - #version 450 (Vulkan GLSL), single-pass FRAGMENT shader (the reference is
|
||||
// an LDS-tiled compute shader). The block/LDS cooperative tile loads are
|
||||
// replaced with direct per-fragment texture() fetches of the 6x6 luma
|
||||
// support, and the edge map is computed inline from that support. The math
|
||||
// (edge detection + 6-tap directional scale/USM blend) is the reference's.
|
||||
// - The kPhaseCount x 6 scaler/USM coefficient banks (coef_scale, coef_usm,
|
||||
// fp32 path) are BAKED below as const arrays - no second descriptor binding
|
||||
// (the post dsLayout has ONE sampler at binding 0 shared by all pipelines).
|
||||
// - Config-UBO reads are replaced by push constants + baked SDR constants; the
|
||||
// sharpness-derived params are recomputed in-shader exactly as
|
||||
// NVScalerUpdateConfig does, driven by the existing "Sharpness" slider.
|
||||
// - fp32 only (NOT the fp16/bit-packed NIS_USE_HALF_PRECISION path) so there
|
||||
// are no bitwise/bvec ops - Adreno-compile-safe.
|
||||
// - HDR mode = None (SDR). The whole compositor chain is R8G8B8A8_UNORM and
|
||||
// values are display(gamma)-encoded here, matching NIS LDR expectations.
|
||||
// - Reuses upscale.vert: fragTexCoord spans [0,1] across the destination rect
|
||||
// (= normalised output position). With kScaleX = inputW/outputW, the source
|
||||
// sample position reduces to srcX = fragTexCoord.x*inputW - 0.5 (so the
|
||||
// output viewport origin/size cancel out and are never needed here).
|
||||
//
|
||||
// Conventions match sgsr.frag / cas.frag: combined-image-sampler at binding 0,
|
||||
// push-constant block leads with vec4 ndc (offset 0, consumed by upscale.vert),
|
||||
// then ViewportInfo (xy = 1/inputSize texel size, zw = inputSize px) + sharpness.
|
||||
// =============================================================================
|
||||
|
||||
// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and
|
||||
// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as NVIDIA's
|
||||
// NIS_USE_HALF_PRECISION path (pixels, weights, coefficient tables); positions and texture coordinates stay highp.
|
||||
#ifdef DD_HALF
|
||||
precision mediump float;
|
||||
#define BL_MP mediump
|
||||
#else
|
||||
#define BL_MP
|
||||
#endif
|
||||
|
||||
layout(binding = 0) uniform BL_MP sampler2D InputTexture;
|
||||
|
||||
layout(push_constant) uniform PC {
|
||||
highp vec4 ndc; // quad NDC rect, consumed by upscale.vert (offset 0)
|
||||
highp vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels
|
||||
float sharpness; // "Sharpness" slider mapped to [0..1] (NIS sharpness)
|
||||
} pc;
|
||||
|
||||
layout(location = 0) in highp vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 outColor;
|
||||
|
||||
// ---- SDR (HDR mode None) constants, from NVScalerUpdateConfig -----------------
|
||||
const float kDetectRatio = 2.0 * 1127.0 / 1024.0; // 2.201171875
|
||||
const float kDetectThres = 64.0 / 1024.0; // 0.0625
|
||||
const float kMinContrastRatio = 2.0;
|
||||
const float kMaxContrastRatio = 10.0;
|
||||
const float kRatioNorm = 1.0 / (kMaxContrastRatio - kMinContrastRatio); // 0.125
|
||||
const float kContrastBoost = 1.0;
|
||||
const float kEps = 1.0 / 255.0;
|
||||
const float kSharpStartY = 0.45;
|
||||
const float kSharpEndY = 0.9;
|
||||
const float kSharpScaleY = 1.0 / (kSharpEndY - kSharpStartY); // 2.222...
|
||||
const int kPhaseCount = 64;
|
||||
|
||||
// Sharpness-derived params (recomputed in main from pc.sharpness, read here).
|
||||
float gSharpStrengthMin;
|
||||
float gSharpStrengthScale;
|
||||
float gSharpLimitMin;
|
||||
float gSharpLimitScale;
|
||||
|
||||
// NVIDIA NIS coef_scale / coef_usm (64 phases x 6 taps, the values nis.frag bakes), filled by the
|
||||
// compositor from nis_coef.h: two vec4 per phase (taps 0-3, taps 4-5 + 2 zeros), std140.
|
||||
layout(std140, set = 1, binding = 0) uniform NisCoef {
|
||||
vec4 scale[128];
|
||||
vec4 usm[128];
|
||||
} nisCoef;
|
||||
|
||||
float getY(vec3 rgb) {
|
||||
return 0.2126 * rgb.x + 0.7152 * rgb.y + 0.0722 * rgb.z;
|
||||
}
|
||||
|
||||
// GetEdgeMap on a 3x3 luma window (pRC: R=row 0=top, C=col 0=left).
|
||||
vec4 edgeAt(float p00, float p01, float p02,
|
||||
float p10, float p11, float p12,
|
||||
float p20, float p21, float p22) {
|
||||
float g_0 = abs(p00 + p01 + p02 - p20 - p21 - p22);
|
||||
float g_45 = abs(p10 + p00 + p01 - p21 - p22 - p12);
|
||||
float g_90 = abs(p00 + p10 + p20 - p02 - p12 - p22);
|
||||
float g_135 = abs(p10 + p20 + p21 - p01 - p02 - p12);
|
||||
|
||||
float g_0_90_max = max(g_0, g_90);
|
||||
float g_0_90_min = min(g_0, g_90);
|
||||
float g_45_135_max = max(g_45, g_135);
|
||||
float g_45_135_min = min(g_45, g_135);
|
||||
|
||||
if (g_0_90_max + g_45_135_max == 0.0) {
|
||||
return vec4(0.0);
|
||||
}
|
||||
|
||||
float e_0_90 = min(g_0_90_max / (g_0_90_max + g_45_135_max), 1.0);
|
||||
float e_45_135 = 1.0 - e_0_90;
|
||||
|
||||
bool c_0_90 = (g_0_90_max > (g_0_90_min * kDetectRatio)) && (g_0_90_max > kDetectThres) && (g_0_90_max > g_45_135_min);
|
||||
bool c_45_135 = (g_45_135_max > (g_45_135_min * kDetectRatio)) && (g_45_135_max > kDetectThres) && (g_45_135_max > g_0_90_min);
|
||||
bool c_g_0_90 = (g_0_90_max == g_0);
|
||||
bool c_g_45_135= (g_45_135_max == g_45);
|
||||
|
||||
float f_e_0_90 = (c_0_90 && c_45_135) ? e_0_90 : 1.0;
|
||||
float f_e_45_135 = (c_0_90 && c_45_135) ? e_45_135 : 1.0;
|
||||
|
||||
float w0 = (c_0_90 && c_g_0_90) ? f_e_0_90 : 0.0;
|
||||
float w90 = (c_0_90 && !c_g_0_90) ? f_e_0_90 : 0.0;
|
||||
float w45 = (c_45_135 && c_g_45_135) ? f_e_45_135 : 0.0;
|
||||
float w135 = (c_45_135 && !c_g_45_135)? f_e_45_135 : 0.0;
|
||||
|
||||
return vec4(w0, w90, w45, w135);
|
||||
}
|
||||
|
||||
vec4 getInterpEdgeMap(vec4 e00, vec4 e01, vec4 e10, vec4 e11, float fx, float fy) {
|
||||
vec4 h0 = mix(e00, e01, fx);
|
||||
vec4 h1 = mix(e10, e11, fx);
|
||||
return mix(h0, h1, fy);
|
||||
}
|
||||
|
||||
float calcLTI(float p0, float p1, float p2, float p3, float p4, float p5, int phase_index) {
|
||||
bool selector = (phase_index <= kPhaseCount / 2);
|
||||
float sel = selector ? p0 : p3;
|
||||
float a_min = min(min(p1, p2), sel);
|
||||
float a_max = max(max(p1, p2), sel);
|
||||
sel = selector ? p2 : p5;
|
||||
float b_min = min(min(p3, p4), sel);
|
||||
float b_max = max(max(p3, p4), sel);
|
||||
|
||||
float a_cont = a_max - a_min;
|
||||
float b_cont = b_max - b_min;
|
||||
|
||||
float cont_ratio = max(a_cont, b_cont) / (min(a_cont, b_cont) + kEps);
|
||||
return (1.0 - clamp((cont_ratio - kMinContrastRatio) * kRatioNorm, 0.0, 1.0)) * kContrastBoost;
|
||||
}
|
||||
|
||||
float evalPoly6(float pxl[6], int phase_int) {
|
||||
phase_int = clamp(phase_int, 0, 63);
|
||||
vec4 s0 = nisCoef.scale[phase_int * 2], s1 = nisCoef.scale[phase_int * 2 + 1];
|
||||
vec4 u0 = nisCoef.usm[phase_int * 2], u1 = nisCoef.usm[phase_int * 2 + 1];
|
||||
float y = 0.0;
|
||||
y += s0.x * pxl[0]; y += s0.y * pxl[1]; y += s0.z * pxl[2];
|
||||
y += s0.w * pxl[3]; y += s1.x * pxl[4]; y += s1.y * pxl[5];
|
||||
float y_usm = 0.0;
|
||||
y_usm += u0.x * pxl[0]; y_usm += u0.y * pxl[1]; y_usm += u0.z * pxl[2];
|
||||
y_usm += u0.w * pxl[3]; y_usm += u1.x * pxl[4]; y_usm += u1.y * pxl[5];
|
||||
|
||||
// piece-wise ramp based on luma (NIS_SCALE_FLOAT == 1)
|
||||
float y_scale = 1.0 - clamp((y - kSharpStartY) * kSharpScaleY, 0.0, 1.0);
|
||||
float y_sharpness = y_scale * gSharpStrengthScale + gSharpStrengthMin;
|
||||
y_usm *= y_sharpness;
|
||||
|
||||
float y_sharpness_limit = (y_scale * gSharpLimitScale + gSharpLimitMin) * y;
|
||||
y_usm = min(y_sharpness_limit, max(-y_sharpness_limit, y_usm));
|
||||
y_usm *= calcLTI(pxl[0], pxl[1], pxl[2], pxl[3], pxl[4], pxl[5], phase_int);
|
||||
|
||||
return y + y_usm;
|
||||
}
|
||||
|
||||
float filterNormal(float p[6][6], int phase_x_int, int phase_y_int) {
|
||||
phase_x_int = clamp(phase_x_int, 0, 63);
|
||||
phase_y_int = clamp(phase_y_int, 0, 63);
|
||||
vec4 y0 = nisCoef.scale[phase_y_int * 2], y1 = nisCoef.scale[phase_y_int * 2 + 1];
|
||||
vec4 x0 = nisCoef.scale[phase_x_int * 2], x1 = nisCoef.scale[phase_x_int * 2 + 1];
|
||||
float cy[6] = float[6](y0.x, y0.y, y0.z, y0.w, y1.x, y1.y);
|
||||
float cx[6] = float[6](x0.x, x0.y, x0.z, x0.w, x1.x, x1.y);
|
||||
float h_acc = 0.0;
|
||||
for (int j = 0; j < 6; ++j) {
|
||||
float v_acc = 0.0;
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
v_acc += p[i][j] * cy[i];
|
||||
}
|
||||
h_acc += v_acc * cx[j];
|
||||
}
|
||||
return h_acc;
|
||||
}
|
||||
|
||||
float addDirFilters(float p[6][6], float phase_x_frac, float phase_y_frac,
|
||||
int phase_x_frac_int, int phase_y_frac_int, vec4 w) {
|
||||
float f = 0.0;
|
||||
if (w.x > 0.0) {
|
||||
// 0 deg filter
|
||||
float interp0Deg[6];
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
interp0Deg[i] = mix(p[i][2], p[i][3], phase_x_frac);
|
||||
}
|
||||
f += evalPoly6(interp0Deg, phase_y_frac_int) * w.x;
|
||||
}
|
||||
if (w.y > 0.0) {
|
||||
// 90 deg filter
|
||||
float interp90Deg[6];
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
interp90Deg[i] = mix(p[2][i], p[3][i], phase_y_frac);
|
||||
}
|
||||
f += evalPoly6(interp90Deg, phase_x_frac_int) * w.y;
|
||||
}
|
||||
if (w.z > 0.0) {
|
||||
// 45 deg filter
|
||||
float pphase_b45 = 0.5 + 0.5 * (phase_x_frac - phase_y_frac);
|
||||
|
||||
float temp_interp45Deg[7];
|
||||
temp_interp45Deg[1] = mix(p[2][1], p[1][2], pphase_b45);
|
||||
temp_interp45Deg[3] = mix(p[3][2], p[2][3], pphase_b45);
|
||||
temp_interp45Deg[5] = mix(p[4][3], p[3][4], pphase_b45);
|
||||
{
|
||||
pphase_b45 = pphase_b45 - 0.5;
|
||||
float a = (pphase_b45 >= 0.0) ? p[0][2] : p[2][0];
|
||||
float b = (pphase_b45 >= 0.0) ? p[1][3] : p[3][1];
|
||||
float c = (pphase_b45 >= 0.0) ? p[2][4] : p[4][2];
|
||||
float d = (pphase_b45 >= 0.0) ? p[3][5] : p[5][3];
|
||||
temp_interp45Deg[0] = mix(p[1][1], a, abs(pphase_b45));
|
||||
temp_interp45Deg[2] = mix(p[2][2], b, abs(pphase_b45));
|
||||
temp_interp45Deg[4] = mix(p[3][3], c, abs(pphase_b45));
|
||||
temp_interp45Deg[6] = mix(p[4][4], d, abs(pphase_b45));
|
||||
}
|
||||
|
||||
float interp45Deg[6];
|
||||
float pphase_p45 = phase_x_frac + phase_y_frac;
|
||||
if (pphase_p45 >= 1.0) {
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
interp45Deg[i] = temp_interp45Deg[i + 1];
|
||||
}
|
||||
pphase_p45 = pphase_p45 - 1.0;
|
||||
} else {
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
interp45Deg[i] = temp_interp45Deg[i];
|
||||
}
|
||||
}
|
||||
|
||||
f += evalPoly6(interp45Deg, int(pphase_p45 * 64.0)) * w.z;
|
||||
}
|
||||
if (w.w > 0.0) {
|
||||
// 135 deg filter
|
||||
float pphase_b135 = 0.5 * (phase_x_frac + phase_y_frac);
|
||||
|
||||
float temp_interp135Deg[7];
|
||||
temp_interp135Deg[1] = mix(p[3][1], p[4][2], pphase_b135);
|
||||
temp_interp135Deg[3] = mix(p[2][2], p[3][3], pphase_b135);
|
||||
temp_interp135Deg[5] = mix(p[1][3], p[2][4], pphase_b135);
|
||||
{
|
||||
pphase_b135 = pphase_b135 - 0.5;
|
||||
float a = (pphase_b135 >= 0.0) ? p[5][2] : p[3][0];
|
||||
float b = (pphase_b135 >= 0.0) ? p[4][3] : p[2][1];
|
||||
float c = (pphase_b135 >= 0.0) ? p[3][4] : p[1][2];
|
||||
float d = (pphase_b135 >= 0.0) ? p[2][5] : p[0][3];
|
||||
temp_interp135Deg[0] = mix(p[4][1], a, abs(pphase_b135));
|
||||
temp_interp135Deg[2] = mix(p[3][2], b, abs(pphase_b135));
|
||||
temp_interp135Deg[4] = mix(p[2][3], c, abs(pphase_b135));
|
||||
temp_interp135Deg[6] = mix(p[1][4], d, abs(pphase_b135));
|
||||
}
|
||||
|
||||
float interp135Deg[6];
|
||||
float pphase_p135 = 1.0 + (phase_x_frac - phase_y_frac);
|
||||
if (pphase_p135 >= 1.0) {
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
interp135Deg[i] = temp_interp135Deg[i + 1];
|
||||
}
|
||||
pphase_p135 = pphase_p135 - 1.0;
|
||||
} else {
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
interp135Deg[i] = temp_interp135Deg[i];
|
||||
}
|
||||
}
|
||||
|
||||
f += evalPoly6(interp135Deg, int(pphase_p135 * 64.0)) * w.w;
|
||||
}
|
||||
return f;
|
||||
}
|
||||
|
||||
void main() {
|
||||
// Sharpness-derived params - mirror NVScalerUpdateConfig (SDR path).
|
||||
float sharpness = clamp(pc.sharpness, 0.0, 1.0);
|
||||
float sharpen_slider = sharpness - 0.5;
|
||||
float MaxScale = (sharpen_slider >= 0.0) ? 1.25 : 1.75;
|
||||
float MinScale = (sharpen_slider >= 0.0) ? 1.25 : 1.0;
|
||||
float LimitScale = (sharpen_slider >= 0.0) ? 1.25 : 1.0;
|
||||
|
||||
gSharpStrengthMin = max(0.0, 0.4 + sharpen_slider * MinScale * 1.2);
|
||||
float sharpStrengthMax = 1.6 + sharpen_slider * MaxScale * 1.8;
|
||||
gSharpStrengthScale = sharpStrengthMax - gSharpStrengthMin;
|
||||
gSharpLimitMin = max(0.1, 0.14 + sharpen_slider * LimitScale * 0.32);
|
||||
float sharpLimitMax = 0.5 + sharpen_slider * LimitScale * 0.6;
|
||||
gSharpLimitScale = sharpLimitMax - gSharpLimitMin;
|
||||
|
||||
highp vec2 inSize = pc.ViewportInfo.zw;
|
||||
highp vec2 invIn = pc.ViewportInfo.xy;
|
||||
|
||||
// Source sample position in input-pixel space (output viewport cancels out).
|
||||
highp float srcX = fragTexCoord.x * inSize.x - 0.5;
|
||||
highp float srcY = fragTexCoord.y * inSize.y - 0.5;
|
||||
highp float fsx = floor(srcX);
|
||||
highp float fsy = floor(srcY);
|
||||
highp float fx = srcX - fsx;
|
||||
highp float fy = srcY - fsy;
|
||||
int fx_int = int(fx * float(kPhaseCount));
|
||||
int fy_int = int(fy * float(kPhaseCount));
|
||||
|
||||
// 6x6 luma support: p[i][j] = luma at source texel (fsx + j - 2, fsy + i - 2), from the
|
||||
// prepass alpha. A gather at the shared corner of texels (x, y)..(x + 1, y + 1) returns
|
||||
// .w = (x, y), .z = (x + 1, y), .x = (x, y + 1), .y = (x + 1, y + 1); block (bi, bj) starts
|
||||
// at x = fsx - 2 + 2 bj, y = fsy - 2 + 2 bi, so its corner is (fsx + 2 bj - 1, fsy + 2 bi - 1).
|
||||
// Clamp-to-edge clamps each gathered texel like the per-texel fetches did.
|
||||
float p[6][6];
|
||||
for (int bi = 0; bi < 3; ++bi) {
|
||||
for (int bj = 0; bj < 3; ++bj) {
|
||||
highp vec2 tc = vec2(fsx + float(2 * bj - 1), fsy + float(2 * bi - 1)) * invIn;
|
||||
vec4 g = textureGather(InputTexture, tc, 3);
|
||||
p[2 * bi][2 * bj] = g.w;
|
||||
p[2 * bi][2 * bj + 1] = g.z;
|
||||
p[2 * bi + 1][2 * bj] = g.x;
|
||||
p[2 * bi + 1][2 * bj + 1] = g.y;
|
||||
}
|
||||
}
|
||||
|
||||
// 2x2 edge map around the source pixel (3x3 luma window per corner).
|
||||
vec4 e00 = edgeAt(p[1][1], p[1][2], p[1][3], p[2][1], p[2][2], p[2][3], p[3][1], p[3][2], p[3][3]);
|
||||
vec4 e01 = edgeAt(p[1][2], p[1][3], p[1][4], p[2][2], p[2][3], p[2][4], p[3][2], p[3][3], p[3][4]);
|
||||
vec4 e10 = edgeAt(p[2][1], p[2][2], p[2][3], p[3][1], p[3][2], p[3][3], p[4][1], p[4][2], p[4][3]);
|
||||
vec4 e11 = edgeAt(p[2][2], p[2][3], p[2][4], p[3][2], p[3][3], p[3][4], p[4][2], p[4][3], p[4][4]);
|
||||
vec4 w = getInterpEdgeMap(e00, e01, e10, e11, fx, fy); // * NIS_SCALE_INT (==1)
|
||||
|
||||
float baseWeight = 1.0 - w.x - w.y - w.z - w.w; // NIS_SCALE_FLOAT - sum
|
||||
float opY = filterNormal(p, fx_int, fy_int) * baseWeight;
|
||||
opY += addDirFilters(p, fx, fy, fx_int, fy_int, w);
|
||||
|
||||
// Bilinear color tap from the prepass rgb (= the game image) + luma correction.
|
||||
vec4 op = texture(InputTexture, fragTexCoord);
|
||||
float y = getY(op.rgb);
|
||||
float corr = opY - y; // * (1/NIS_SCALE_FLOAT) == 1
|
||||
op.rgb += vec3(corr);
|
||||
|
||||
outColor = vec4(clamp(op.rgb, 0.0, 1.0), 1.0);
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,156 +0,0 @@
|
||||
// NVIDIA Image Scaling coefficient banks for nis3.frag (uniform buffer, set 1, binding 0):
|
||||
// coef_scale and coef_usm, 64 phases x 6 taps, laid out as two vec4 per phase (taps 0-3, taps 4-5
|
||||
// + two zeros) to match the shader's std140 vec4[128] arrays. Values = nis.frag's baked tables.
|
||||
//
|
||||
// The MIT License (MIT)
|
||||
// Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||||
// associated documentation files (the "Software"), to deal in the Software without restriction,
|
||||
// including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
||||
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in all copies or
|
||||
// substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
||||
// NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
||||
// OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#pragma once
|
||||
|
||||
static const float kNisCoefScale[64 * 8] = {
|
||||
0.0000f, 0.0000f, 1.0000f, 0.0000f, 0.0000f, 0.0000f, 0.0000f, 0.0000f, // phase 0
|
||||
0.0029f, -0.0127f, 1.0000f, 0.0132f, -0.0034f, 0.0000f, 0.0000f, 0.0000f, // phase 1
|
||||
0.0063f, -0.0249f, 0.9985f, 0.0269f, -0.0068f, 0.0000f, 0.0000f, 0.0000f, // phase 2
|
||||
0.0088f, -0.0361f, 0.9956f, 0.0415f, -0.0103f, 0.0005f, 0.0000f, 0.0000f, // phase 3
|
||||
0.0117f, -0.0474f, 0.9932f, 0.0562f, -0.0142f, 0.0005f, 0.0000f, 0.0000f, // phase 4
|
||||
0.0142f, -0.0576f, 0.9897f, 0.0713f, -0.0181f, 0.0005f, 0.0000f, 0.0000f, // phase 5
|
||||
0.0166f, -0.0674f, 0.9844f, 0.0874f, -0.0220f, 0.0010f, 0.0000f, 0.0000f, // phase 6
|
||||
0.0186f, -0.0762f, 0.9785f, 0.1040f, -0.0264f, 0.0015f, 0.0000f, 0.0000f, // phase 7
|
||||
0.0205f, -0.0850f, 0.9727f, 0.1206f, -0.0308f, 0.0020f, 0.0000f, 0.0000f, // phase 8
|
||||
0.0225f, -0.0928f, 0.9648f, 0.1382f, -0.0352f, 0.0024f, 0.0000f, 0.0000f, // phase 9
|
||||
0.0239f, -0.1006f, 0.9575f, 0.1558f, -0.0396f, 0.0029f, 0.0000f, 0.0000f, // phase 10
|
||||
0.0254f, -0.1074f, 0.9487f, 0.1738f, -0.0439f, 0.0034f, 0.0000f, 0.0000f, // phase 11
|
||||
0.0264f, -0.1138f, 0.9390f, 0.1929f, -0.0488f, 0.0044f, 0.0000f, 0.0000f, // phase 12
|
||||
0.0278f, -0.1191f, 0.9282f, 0.2119f, -0.0537f, 0.0049f, 0.0000f, 0.0000f, // phase 13
|
||||
0.0288f, -0.1245f, 0.9170f, 0.2310f, -0.0581f, 0.0059f, 0.0000f, 0.0000f, // phase 14
|
||||
0.0293f, -0.1294f, 0.9058f, 0.2510f, -0.0630f, 0.0063f, 0.0000f, 0.0000f, // phase 15
|
||||
0.0303f, -0.1333f, 0.8926f, 0.2710f, -0.0679f, 0.0073f, 0.0000f, 0.0000f, // phase 16
|
||||
0.0308f, -0.1367f, 0.8789f, 0.2915f, -0.0728f, 0.0083f, 0.0000f, 0.0000f, // phase 17
|
||||
0.0308f, -0.1401f, 0.8657f, 0.3120f, -0.0776f, 0.0093f, 0.0000f, 0.0000f, // phase 18
|
||||
0.0313f, -0.1426f, 0.8506f, 0.3330f, -0.0825f, 0.0103f, 0.0000f, 0.0000f, // phase 19
|
||||
0.0313f, -0.1445f, 0.8354f, 0.3540f, -0.0874f, 0.0112f, 0.0000f, 0.0000f, // phase 20
|
||||
0.0313f, -0.1460f, 0.8193f, 0.3755f, -0.0923f, 0.0122f, 0.0000f, 0.0000f, // phase 21
|
||||
0.0313f, -0.1470f, 0.8022f, 0.3965f, -0.0967f, 0.0137f, 0.0000f, 0.0000f, // phase 22
|
||||
0.0308f, -0.1479f, 0.7856f, 0.4185f, -0.1016f, 0.0146f, 0.0000f, 0.0000f, // phase 23
|
||||
0.0303f, -0.1479f, 0.7681f, 0.4399f, -0.1060f, 0.0156f, 0.0000f, 0.0000f, // phase 24
|
||||
0.0298f, -0.1479f, 0.7505f, 0.4614f, -0.1104f, 0.0166f, 0.0000f, 0.0000f, // phase 25
|
||||
0.0293f, -0.1470f, 0.7314f, 0.4829f, -0.1147f, 0.0181f, 0.0000f, 0.0000f, // phase 26
|
||||
0.0288f, -0.1460f, 0.7119f, 0.5049f, -0.1187f, 0.0190f, 0.0000f, 0.0000f, // phase 27
|
||||
0.0278f, -0.1445f, 0.6929f, 0.5264f, -0.1226f, 0.0200f, 0.0000f, 0.0000f, // phase 28
|
||||
0.0273f, -0.1431f, 0.6724f, 0.5479f, -0.1260f, 0.0215f, 0.0000f, 0.0000f, // phase 29
|
||||
0.0264f, -0.1411f, 0.6528f, 0.5693f, -0.1299f, 0.0225f, 0.0000f, 0.0000f, // phase 30
|
||||
0.0254f, -0.1387f, 0.6323f, 0.5903f, -0.1328f, 0.0234f, 0.0000f, 0.0000f, // phase 31
|
||||
0.0244f, -0.1357f, 0.6113f, 0.6113f, -0.1357f, 0.0244f, 0.0000f, 0.0000f, // phase 32
|
||||
0.0234f, -0.1328f, 0.5903f, 0.6323f, -0.1387f, 0.0254f, 0.0000f, 0.0000f, // phase 33
|
||||
0.0225f, -0.1299f, 0.5693f, 0.6528f, -0.1411f, 0.0264f, 0.0000f, 0.0000f, // phase 34
|
||||
0.0215f, -0.1260f, 0.5479f, 0.6724f, -0.1431f, 0.0273f, 0.0000f, 0.0000f, // phase 35
|
||||
0.0200f, -0.1226f, 0.5264f, 0.6929f, -0.1445f, 0.0278f, 0.0000f, 0.0000f, // phase 36
|
||||
0.0190f, -0.1187f, 0.5049f, 0.7119f, -0.1460f, 0.0288f, 0.0000f, 0.0000f, // phase 37
|
||||
0.0181f, -0.1147f, 0.4829f, 0.7314f, -0.1470f, 0.0293f, 0.0000f, 0.0000f, // phase 38
|
||||
0.0166f, -0.1104f, 0.4614f, 0.7505f, -0.1479f, 0.0298f, 0.0000f, 0.0000f, // phase 39
|
||||
0.0156f, -0.1060f, 0.4399f, 0.7681f, -0.1479f, 0.0303f, 0.0000f, 0.0000f, // phase 40
|
||||
0.0146f, -0.1016f, 0.4185f, 0.7856f, -0.1479f, 0.0308f, 0.0000f, 0.0000f, // phase 41
|
||||
0.0137f, -0.0967f, 0.3965f, 0.8022f, -0.1470f, 0.0313f, 0.0000f, 0.0000f, // phase 42
|
||||
0.0122f, -0.0923f, 0.3755f, 0.8193f, -0.1460f, 0.0313f, 0.0000f, 0.0000f, // phase 43
|
||||
0.0112f, -0.0874f, 0.3540f, 0.8354f, -0.1445f, 0.0313f, 0.0000f, 0.0000f, // phase 44
|
||||
0.0103f, -0.0825f, 0.3330f, 0.8506f, -0.1426f, 0.0313f, 0.0000f, 0.0000f, // phase 45
|
||||
0.0093f, -0.0776f, 0.3120f, 0.8657f, -0.1401f, 0.0308f, 0.0000f, 0.0000f, // phase 46
|
||||
0.0083f, -0.0728f, 0.2915f, 0.8789f, -0.1367f, 0.0308f, 0.0000f, 0.0000f, // phase 47
|
||||
0.0073f, -0.0679f, 0.2710f, 0.8926f, -0.1333f, 0.0303f, 0.0000f, 0.0000f, // phase 48
|
||||
0.0063f, -0.0630f, 0.2510f, 0.9058f, -0.1294f, 0.0293f, 0.0000f, 0.0000f, // phase 49
|
||||
0.0059f, -0.0581f, 0.2310f, 0.9170f, -0.1245f, 0.0288f, 0.0000f, 0.0000f, // phase 50
|
||||
0.0049f, -0.0537f, 0.2119f, 0.9282f, -0.1191f, 0.0278f, 0.0000f, 0.0000f, // phase 51
|
||||
0.0044f, -0.0488f, 0.1929f, 0.9390f, -0.1138f, 0.0264f, 0.0000f, 0.0000f, // phase 52
|
||||
0.0034f, -0.0439f, 0.1738f, 0.9487f, -0.1074f, 0.0254f, 0.0000f, 0.0000f, // phase 53
|
||||
0.0029f, -0.0396f, 0.1558f, 0.9575f, -0.1006f, 0.0239f, 0.0000f, 0.0000f, // phase 54
|
||||
0.0024f, -0.0352f, 0.1382f, 0.9648f, -0.0928f, 0.0225f, 0.0000f, 0.0000f, // phase 55
|
||||
0.0020f, -0.0308f, 0.1206f, 0.9727f, -0.0850f, 0.0205f, 0.0000f, 0.0000f, // phase 56
|
||||
0.0015f, -0.0264f, 0.1040f, 0.9785f, -0.0762f, 0.0186f, 0.0000f, 0.0000f, // phase 57
|
||||
0.0010f, -0.0220f, 0.0874f, 0.9844f, -0.0674f, 0.0166f, 0.0000f, 0.0000f, // phase 58
|
||||
0.0005f, -0.0181f, 0.0713f, 0.9897f, -0.0576f, 0.0142f, 0.0000f, 0.0000f, // phase 59
|
||||
0.0005f, -0.0142f, 0.0562f, 0.9932f, -0.0474f, 0.0117f, 0.0000f, 0.0000f, // phase 60
|
||||
0.0005f, -0.0103f, 0.0415f, 0.9956f, -0.0361f, 0.0088f, 0.0000f, 0.0000f, // phase 61
|
||||
0.0000f, -0.0068f, 0.0269f, 0.9985f, -0.0249f, 0.0063f, 0.0000f, 0.0000f, // phase 62
|
||||
0.0000f, -0.0034f, 0.0132f, 1.0000f, -0.0127f, 0.0029f, 0.0000f, 0.0000f, // phase 63
|
||||
};
|
||||
|
||||
static const float kNisCoefUsm[64 * 8] = {
|
||||
0.0000f, -0.6001f, 1.2002f, -0.6001f, 0.0000f, 0.0000f, 0.0000f, 0.0000f, // phase 0
|
||||
0.0029f, -0.6084f, 1.1987f, -0.5903f, -0.0029f, 0.0000f, 0.0000f, 0.0000f, // phase 1
|
||||
0.0049f, -0.6147f, 1.1958f, -0.5791f, -0.0068f, 0.0005f, 0.0000f, 0.0000f, // phase 2
|
||||
0.0073f, -0.6196f, 1.1890f, -0.5659f, -0.0103f, 0.0000f, 0.0000f, 0.0000f, // phase 3
|
||||
0.0093f, -0.6235f, 1.1802f, -0.5513f, -0.0151f, 0.0000f, 0.0000f, 0.0000f, // phase 4
|
||||
0.0112f, -0.6265f, 1.1699f, -0.5352f, -0.0195f, 0.0005f, 0.0000f, 0.0000f, // phase 5
|
||||
0.0122f, -0.6270f, 1.1582f, -0.5181f, -0.0259f, 0.0005f, 0.0000f, 0.0000f, // phase 6
|
||||
0.0142f, -0.6284f, 1.1455f, -0.5005f, -0.0317f, 0.0005f, 0.0000f, 0.0000f, // phase 7
|
||||
0.0156f, -0.6265f, 1.1274f, -0.4790f, -0.0386f, 0.0005f, 0.0000f, 0.0000f, // phase 8
|
||||
0.0166f, -0.6235f, 1.1089f, -0.4570f, -0.0454f, 0.0010f, 0.0000f, 0.0000f, // phase 9
|
||||
0.0176f, -0.6187f, 1.0879f, -0.4346f, -0.0532f, 0.0010f, 0.0000f, 0.0000f, // phase 10
|
||||
0.0181f, -0.6138f, 1.0659f, -0.4102f, -0.0615f, 0.0015f, 0.0000f, 0.0000f, // phase 11
|
||||
0.0190f, -0.6069f, 1.0405f, -0.3843f, -0.0698f, 0.0015f, 0.0000f, 0.0000f, // phase 12
|
||||
0.0195f, -0.6006f, 1.0161f, -0.3574f, -0.0796f, 0.0020f, 0.0000f, 0.0000f, // phase 13
|
||||
0.0200f, -0.5928f, 0.9893f, -0.3286f, -0.0898f, 0.0024f, 0.0000f, 0.0000f, // phase 14
|
||||
0.0200f, -0.5820f, 0.9580f, -0.2988f, -0.1001f, 0.0029f, 0.0000f, 0.0000f, // phase 15
|
||||
0.0200f, -0.5728f, 0.9292f, -0.2690f, -0.1104f, 0.0034f, 0.0000f, 0.0000f, // phase 16
|
||||
0.0200f, -0.5620f, 0.8975f, -0.2368f, -0.1226f, 0.0039f, 0.0000f, 0.0000f, // phase 17
|
||||
0.0205f, -0.5498f, 0.8643f, -0.2046f, -0.1343f, 0.0044f, 0.0000f, 0.0000f, // phase 18
|
||||
0.0200f, -0.5371f, 0.8301f, -0.1709f, -0.1465f, 0.0049f, 0.0000f, 0.0000f, // phase 19
|
||||
0.0195f, -0.5239f, 0.7944f, -0.1367f, -0.1587f, 0.0054f, 0.0000f, 0.0000f, // phase 20
|
||||
0.0195f, -0.5107f, 0.7598f, -0.1021f, -0.1724f, 0.0059f, 0.0000f, 0.0000f, // phase 21
|
||||
0.0190f, -0.4966f, 0.7231f, -0.0649f, -0.1865f, 0.0063f, 0.0000f, 0.0000f, // phase 22
|
||||
0.0186f, -0.4819f, 0.6846f, -0.0288f, -0.1997f, 0.0068f, 0.0000f, 0.0000f, // phase 23
|
||||
0.0186f, -0.4668f, 0.6460f, 0.0093f, -0.2144f, 0.0073f, 0.0000f, 0.0000f, // phase 24
|
||||
0.0176f, -0.4507f, 0.6055f, 0.0479f, -0.2290f, 0.0083f, 0.0000f, 0.0000f, // phase 25
|
||||
0.0171f, -0.4370f, 0.5693f, 0.0859f, -0.2446f, 0.0088f, 0.0000f, 0.0000f, // phase 26
|
||||
0.0161f, -0.4199f, 0.5283f, 0.1255f, -0.2598f, 0.0098f, 0.0000f, 0.0000f, // phase 27
|
||||
0.0161f, -0.4048f, 0.4883f, 0.1655f, -0.2754f, 0.0103f, 0.0000f, 0.0000f, // phase 28
|
||||
0.0151f, -0.3887f, 0.4497f, 0.2041f, -0.2910f, 0.0107f, 0.0000f, 0.0000f, // phase 29
|
||||
0.0142f, -0.3711f, 0.4072f, 0.2446f, -0.3066f, 0.0117f, 0.0000f, 0.0000f, // phase 30
|
||||
0.0137f, -0.3555f, 0.3672f, 0.2852f, -0.3228f, 0.0122f, 0.0000f, 0.0000f, // phase 31
|
||||
0.0132f, -0.3394f, 0.3262f, 0.3262f, -0.3394f, 0.0132f, 0.0000f, 0.0000f, // phase 32
|
||||
0.0122f, -0.3228f, 0.2852f, 0.3672f, -0.3555f, 0.0137f, 0.0000f, 0.0000f, // phase 33
|
||||
0.0117f, -0.3066f, 0.2446f, 0.4072f, -0.3711f, 0.0142f, 0.0000f, 0.0000f, // phase 34
|
||||
0.0107f, -0.2910f, 0.2041f, 0.4497f, -0.3887f, 0.0151f, 0.0000f, 0.0000f, // phase 35
|
||||
0.0103f, -0.2754f, 0.1655f, 0.4883f, -0.4048f, 0.0161f, 0.0000f, 0.0000f, // phase 36
|
||||
0.0098f, -0.2598f, 0.1255f, 0.5283f, -0.4199f, 0.0161f, 0.0000f, 0.0000f, // phase 37
|
||||
0.0088f, -0.2446f, 0.0859f, 0.5693f, -0.4370f, 0.0171f, 0.0000f, 0.0000f, // phase 38
|
||||
0.0083f, -0.2290f, 0.0479f, 0.6055f, -0.4507f, 0.0176f, 0.0000f, 0.0000f, // phase 39
|
||||
0.0073f, -0.2144f, 0.0093f, 0.6460f, -0.4668f, 0.0186f, 0.0000f, 0.0000f, // phase 40
|
||||
0.0068f, -0.1997f, -0.0288f, 0.6846f, -0.4819f, 0.0186f, 0.0000f, 0.0000f, // phase 41
|
||||
0.0063f, -0.1865f, -0.0649f, 0.7231f, -0.4966f, 0.0190f, 0.0000f, 0.0000f, // phase 42
|
||||
0.0059f, -0.1724f, -0.1021f, 0.7598f, -0.5107f, 0.0195f, 0.0000f, 0.0000f, // phase 43
|
||||
0.0054f, -0.1587f, -0.1367f, 0.7944f, -0.5239f, 0.0195f, 0.0000f, 0.0000f, // phase 44
|
||||
0.0049f, -0.1465f, -0.1709f, 0.8301f, -0.5371f, 0.0200f, 0.0000f, 0.0000f, // phase 45
|
||||
0.0044f, -0.1343f, -0.2046f, 0.8643f, -0.5498f, 0.0205f, 0.0000f, 0.0000f, // phase 46
|
||||
0.0039f, -0.1226f, -0.2368f, 0.8975f, -0.5620f, 0.0200f, 0.0000f, 0.0000f, // phase 47
|
||||
0.0034f, -0.1104f, -0.2690f, 0.9292f, -0.5728f, 0.0200f, 0.0000f, 0.0000f, // phase 48
|
||||
0.0029f, -0.1001f, -0.2988f, 0.9580f, -0.5820f, 0.0200f, 0.0000f, 0.0000f, // phase 49
|
||||
0.0024f, -0.0898f, -0.3286f, 0.9893f, -0.5928f, 0.0200f, 0.0000f, 0.0000f, // phase 50
|
||||
0.0020f, -0.0796f, -0.3574f, 1.0161f, -0.6006f, 0.0195f, 0.0000f, 0.0000f, // phase 51
|
||||
0.0015f, -0.0698f, -0.3843f, 1.0405f, -0.6069f, 0.0190f, 0.0000f, 0.0000f, // phase 52
|
||||
0.0015f, -0.0615f, -0.4102f, 1.0659f, -0.6138f, 0.0181f, 0.0000f, 0.0000f, // phase 53
|
||||
0.0010f, -0.0532f, -0.4346f, 1.0879f, -0.6187f, 0.0176f, 0.0000f, 0.0000f, // phase 54
|
||||
0.0010f, -0.0454f, -0.4570f, 1.1089f, -0.6235f, 0.0166f, 0.0000f, 0.0000f, // phase 55
|
||||
0.0005f, -0.0386f, -0.4790f, 1.1274f, -0.6265f, 0.0156f, 0.0000f, 0.0000f, // phase 56
|
||||
0.0005f, -0.0317f, -0.5005f, 1.1455f, -0.6284f, 0.0142f, 0.0000f, 0.0000f, // phase 57
|
||||
0.0005f, -0.0259f, -0.5181f, 1.1582f, -0.6270f, 0.0122f, 0.0000f, 0.0000f, // phase 58
|
||||
0.0005f, -0.0195f, -0.5352f, 1.1699f, -0.6265f, 0.0112f, 0.0000f, 0.0000f, // phase 59
|
||||
0.0000f, -0.0151f, -0.5513f, 1.1802f, -0.6235f, 0.0093f, 0.0000f, 0.0000f, // phase 60
|
||||
0.0000f, -0.0103f, -0.5659f, 1.1890f, -0.6196f, 0.0073f, 0.0000f, 0.0000f, // phase 61
|
||||
0.0005f, -0.0068f, -0.5791f, 1.1958f, -0.6147f, 0.0049f, 0.0000f, 0.0000f, // phase 62
|
||||
0.0000f, -0.0029f, -0.5903f, 1.1987f, -0.6084f, 0.0029f, 0.0000f, 0.0000f, // phase 63
|
||||
};
|
||||
@@ -1,36 +0,0 @@
|
||||
#version 450
|
||||
|
||||
// =============================================================================
|
||||
// NIS prepass for nis3.frag: the game image copied 1:1 with its NIS luma in
|
||||
// alpha (the compositor never uses the alpha of these targets). nis3.frag then
|
||||
// reads four luma texels per textureGather instead of computing luma for each
|
||||
// of 36 fetches per output pixel.
|
||||
//
|
||||
// Runs at the game (input) resolution into a target of the same size, so the
|
||||
// output pixel reads its input pixel 1:1 (texelFetch at gl_FragCoord).
|
||||
// Luma weights = nis.frag getY() (NVIDIA NIS, SDR: BT.709).
|
||||
// =============================================================================
|
||||
|
||||
// DD_HALF: colour and luma in mediump; the texel address from gl_FragCoord stays highp
|
||||
// (no default mediump: a 16-bit gl_FragCoord rounds pixel centres past x = 1024, e.g.
|
||||
// 1279.5 -> 1280, and texelFetch then reads the wrong or an outside texel).
|
||||
#ifdef DD_HALF
|
||||
#define BL_MP mediump
|
||||
#else
|
||||
#define BL_MP
|
||||
#endif
|
||||
|
||||
layout(binding = 0) uniform BL_MP sampler2D InputTexture;
|
||||
|
||||
layout(push_constant) uniform PC {
|
||||
highp vec4 ndc; // quad NDC rect, consumed by upscale.vert (offset 0); full target
|
||||
} pc;
|
||||
|
||||
layout(location = 0) in highp vec2 fragTexCoord;
|
||||
layout(location = 0) out BL_MP vec4 outColor;
|
||||
|
||||
void main() {
|
||||
highp ivec2 p = ivec2(gl_FragCoord.xy);
|
||||
BL_MP vec3 c = texelFetch(InputTexture, p, 0).rgb;
|
||||
outColor = vec4(c, 0.2126 * c.r + 0.7152 * c.g + 0.0722 * c.b);
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t nis_luma_half_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x0000003e,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0008000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000000d,0x00000020,0x0000003d,
|
||||
0x00030010,0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,
|
||||
0x6e69616d,0x00000000,0x00030005,0x00000009,0x00000070,0x00060005,0x0000000d,0x465f6c67,
|
||||
0x43676172,0x64726f6f,0x00000000,0x00030005,0x00000014,0x00000063,0x00060005,0x00000018,
|
||||
0x75706e49,0x78655474,0x65727574,0x00000000,0x00050005,0x00000020,0x4374756f,0x726f6c6f,
|
||||
0x00000000,0x00030005,0x00000039,0x00004350,0x00040006,0x00000039,0x00000000,0x0063646e,
|
||||
0x00030005,0x0000003b,0x00006370,0x00060005,0x0000003d,0x67617266,0x43786554,0x64726f6f,
|
||||
0x00000000,0x00040047,0x0000000d,0x0000000b,0x0000000f,0x00030047,0x00000014,0x00000000,
|
||||
0x00030047,0x00000018,0x00000000,0x00040047,0x00000018,0x00000021,0x00000000,0x00040047,
|
||||
0x00000018,0x00000022,0x00000000,0x00030047,0x00000019,0x00000000,0x00030047,0x0000001d,
|
||||
0x00000000,0x00030047,0x0000001e,0x00000000,0x00030047,0x00000020,0x00000000,0x00040047,
|
||||
0x00000020,0x0000001e,0x00000000,0x00030047,0x00000021,0x00000000,0x00030047,0x00000027,
|
||||
0x00000000,0x00030047,0x00000028,0x00000000,0x00030047,0x0000002c,0x00000000,0x00030047,
|
||||
0x0000002d,0x00000000,0x00030047,0x0000002e,0x00000000,0x00030047,0x00000032,0x00000000,
|
||||
0x00030047,0x00000033,0x00000000,0x00030047,0x00000034,0x00000000,0x00030047,0x00000035,
|
||||
0x00000000,0x00030047,0x00000036,0x00000000,0x00030047,0x00000037,0x00000000,0x00030047,
|
||||
0x00000038,0x00000000,0x00030047,0x00000039,0x00000002,0x00050048,0x00000039,0x00000000,
|
||||
0x00000023,0x00000000,0x00040047,0x0000003d,0x0000001e,0x00000000,0x00020013,0x00000002,
|
||||
0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040017,
|
||||
0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00030016,
|
||||
0x0000000a,0x00000020,0x00040017,0x0000000b,0x0000000a,0x00000004,0x00040020,0x0000000c,
|
||||
0x00000001,0x0000000b,0x0004003b,0x0000000c,0x0000000d,0x00000001,0x00040017,0x0000000e,
|
||||
0x0000000a,0x00000002,0x00040017,0x00000012,0x0000000a,0x00000003,0x00040020,0x00000013,
|
||||
0x00000007,0x00000012,0x00090019,0x00000015,0x0000000a,0x00000001,0x00000000,0x00000000,
|
||||
0x00000000,0x00000001,0x00000000,0x0003001b,0x00000016,0x00000015,0x00040020,0x00000017,
|
||||
0x00000000,0x00000016,0x0004003b,0x00000017,0x00000018,0x00000000,0x0004002b,0x00000006,
|
||||
0x0000001b,0x00000000,0x00040020,0x0000001f,0x00000003,0x0000000b,0x0004003b,0x0000001f,
|
||||
0x00000020,0x00000003,0x0004002b,0x0000000a,0x00000022,0x3e59b3d0,0x00040015,0x00000023,
|
||||
0x00000020,0x00000000,0x0004002b,0x00000023,0x00000024,0x00000000,0x00040020,0x00000025,
|
||||
0x00000007,0x0000000a,0x0004002b,0x0000000a,0x00000029,0x3f371759,0x0004002b,0x00000023,
|
||||
0x0000002a,0x00000001,0x0004002b,0x0000000a,0x0000002f,0x3d93dd98,0x0004002b,0x00000023,
|
||||
0x00000030,0x00000002,0x0003001e,0x00000039,0x0000000b,0x00040020,0x0000003a,0x00000009,
|
||||
0x00000039,0x0004003b,0x0000003a,0x0000003b,0x00000009,0x00040020,0x0000003c,0x00000001,
|
||||
0x0000000e,0x0004003b,0x0000003c,0x0000003d,0x00000001,0x00050036,0x00000002,0x00000004,
|
||||
0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000008,0x00000009,0x00000007,
|
||||
0x0004003b,0x00000013,0x00000014,0x00000007,0x0004003d,0x0000000b,0x0000000f,0x0000000d,
|
||||
0x0007004f,0x0000000e,0x00000010,0x0000000f,0x0000000f,0x00000000,0x00000001,0x0004006e,
|
||||
0x00000007,0x00000011,0x00000010,0x0003003e,0x00000009,0x00000011,0x0004003d,0x00000016,
|
||||
0x00000019,0x00000018,0x0004003d,0x00000007,0x0000001a,0x00000009,0x00040064,0x00000015,
|
||||
0x0000001c,0x00000019,0x0007005f,0x0000000b,0x0000001d,0x0000001c,0x0000001a,0x00000002,
|
||||
0x0000001b,0x0008004f,0x00000012,0x0000001e,0x0000001d,0x0000001d,0x00000000,0x00000001,
|
||||
0x00000002,0x0003003e,0x00000014,0x0000001e,0x0004003d,0x00000012,0x00000021,0x00000014,
|
||||
0x00050041,0x00000025,0x00000026,0x00000014,0x00000024,0x0004003d,0x0000000a,0x00000027,
|
||||
0x00000026,0x00050085,0x0000000a,0x00000028,0x00000022,0x00000027,0x00050041,0x00000025,
|
||||
0x0000002b,0x00000014,0x0000002a,0x0004003d,0x0000000a,0x0000002c,0x0000002b,0x00050085,
|
||||
0x0000000a,0x0000002d,0x00000029,0x0000002c,0x00050081,0x0000000a,0x0000002e,0x00000028,
|
||||
0x0000002d,0x00050041,0x00000025,0x00000031,0x00000014,0x00000030,0x0004003d,0x0000000a,
|
||||
0x00000032,0x00000031,0x00050085,0x0000000a,0x00000033,0x0000002f,0x00000032,0x00050081,
|
||||
0x0000000a,0x00000034,0x0000002e,0x00000033,0x00050051,0x0000000a,0x00000035,0x00000021,
|
||||
0x00000000,0x00050051,0x0000000a,0x00000036,0x00000021,0x00000001,0x00050051,0x0000000a,
|
||||
0x00000037,0x00000021,0x00000002,0x00070050,0x0000000b,0x00000038,0x00000035,0x00000036,
|
||||
0x00000037,0x00000034,0x0003003e,0x00000020,0x00000038,0x000100fd,0x00010038
|
||||
};
|
||||
@@ -17,25 +17,15 @@
|
||||
// destination rect = normalised output position = normalised source position)
|
||||
// =============================================================================
|
||||
|
||||
// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and
|
||||
// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as in Qualcomm's
|
||||
// reference; positions and texture coordinates stay highp.
|
||||
#ifdef DD_HALF
|
||||
precision mediump float;
|
||||
#define BL_MP mediump
|
||||
#else
|
||||
#define BL_MP
|
||||
#endif
|
||||
|
||||
layout(binding = 0) uniform BL_MP sampler2D ps0;
|
||||
layout(binding = 0) uniform sampler2D ps0;
|
||||
|
||||
layout(push_constant) uniform PC {
|
||||
highp vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0)
|
||||
highp vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels
|
||||
vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0)
|
||||
vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels
|
||||
float EdgeSharpness; // driven by the "Sharpness" slider (default 2.0)
|
||||
} pc;
|
||||
|
||||
layout(location = 0) in highp vec2 fragTexCoord;
|
||||
layout(location = 0) in vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 out_Target0;
|
||||
|
||||
const float EdgeThreshold = 8.0 / 255.0;
|
||||
@@ -54,15 +44,15 @@ vec2 weightY(float dx, float dy, float c, float std) {
|
||||
}
|
||||
|
||||
void main() {
|
||||
highp vec4 ViewportInfo = pc.ViewportInfo;
|
||||
highp vec2 uv = fragTexCoord;
|
||||
vec4 ViewportInfo = pc.ViewportInfo;
|
||||
vec2 uv = fragTexCoord;
|
||||
|
||||
vec4 color;
|
||||
color.xyz = textureLod(ps0, uv, 0.0).xyz;
|
||||
|
||||
highp vec2 imgCoord = ((uv * ViewportInfo.zw) + vec2(-0.5, 0.5));
|
||||
highp vec2 imgCoordPixel = floor(imgCoord);
|
||||
highp vec2 coord = (imgCoordPixel * ViewportInfo.xy);
|
||||
vec2 imgCoord = ((uv * ViewportInfo.zw) + vec2(-0.5, 0.5));
|
||||
vec2 imgCoordPixel = floor(imgCoord);
|
||||
vec2 coord = (imgCoordPixel * ViewportInfo.xy);
|
||||
vec2 pl = (imgCoord + (-imgCoordPixel));
|
||||
vec4 left = textureGather(ps0, coord, 1);
|
||||
|
||||
|
||||
@@ -1,530 +0,0 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t sgsr_half_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x00000216,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000051,0x00000214,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00070005,0x0000000a,0x74736166,0x636e614c,0x32736f7a,0x3b316628,0x00000000,
|
||||
0x00030005,0x00000009,0x00000078,0x00080005,0x00000012,0x67696577,0x28597468,0x663b3166,
|
||||
0x31663b31,0x3b31663b,0x00000000,0x00030005,0x0000000e,0x00007864,0x00030005,0x0000000f,
|
||||
0x00007964,0x00030005,0x00000010,0x00000063,0x00030005,0x00000011,0x00647473,0x00030005,
|
||||
0x00000014,0x00004177,0x00030005,0x00000018,0x00004277,0x00030005,0x00000026,0x00000078,
|
||||
0x00030005,0x00000038,0x00000077,0x00040005,0x00000039,0x61726170,0x0000006d,0x00060005,
|
||||
0x00000045,0x77656956,0x74726f70,0x6f666e49,0x00000000,0x00030005,0x00000046,0x00004350,
|
||||
0x00040006,0x00000046,0x00000000,0x0063646e,0x00070006,0x00000046,0x00000001,0x77656956,
|
||||
0x74726f70,0x6f666e49,0x00000000,0x00070006,0x00000046,0x00000002,0x65676445,0x72616853,
|
||||
0x73656e70,0x00000073,0x00030005,0x00000048,0x00006370,0x00030005,0x0000004f,0x00007675,
|
||||
0x00060005,0x00000051,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00040005,0x00000053,
|
||||
0x6f6c6f63,0x00000072,0x00030005,0x00000057,0x00307370,0x00050005,0x00000067,0x43676d69,
|
||||
0x64726f6f,0x00000000,0x00060005,0x00000070,0x43676d69,0x64726f6f,0x65786950,0x0000006c,
|
||||
0x00040005,0x00000073,0x726f6f63,0x00000064,0x00030005,0x00000078,0x00006c70,0x00040005,
|
||||
0x0000007d,0x7466656c,0x00000000,0x00050005,0x00000081,0x65676465,0x65746f56,0x00000000,
|
||||
0x00040005,0x000000a2,0x68676972,0x00000074,0x00040005,0x000000aa,0x6f447075,0x00006e77,
|
||||
0x00040005,0x000000c5,0x6e61656d,0x00000000,0x00030005,0x000000e4,0x006d7573,0x00030005,
|
||||
0x00000114,0x00647473,0x00030005,0x00000118,0x00595761,0x00040005,0x0000011c,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000011f,0x61726170,0x0000006d,0x00040005,0x00000120,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000123,0x61726170,0x0000006d,0x00040005,0x0000012c,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000012d,0x61726170,0x0000006d,0x00040005,0x0000012e,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000131,0x61726170,0x0000006d,0x00040005,0x0000013d,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000013e,0x61726170,0x0000006d,0x00040005,0x0000013f,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000142,0x61726170,0x0000006d,0x00040005,0x0000014a,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000014d,0x61726170,0x0000006d,0x00040005,0x0000014e,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000151,0x61726170,0x0000006d,0x00040005,0x0000015c,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000015d,0x61726170,0x0000006d,0x00040005,0x0000015e,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000161,0x61726170,0x0000006d,0x00040005,0x00000169,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000016c,0x61726170,0x0000006d,0x00040005,0x0000016d,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000170,0x61726170,0x0000006d,0x00040005,0x00000175,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000178,0x61726170,0x0000006d,0x00040005,0x0000017b,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000017e,0x61726170,0x0000006d,0x00040005,0x00000186,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000187,0x61726170,0x0000006d,0x00040005,0x0000018a,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000018d,0x61726170,0x0000006d,0x00040005,0x00000198,0x61726170,
|
||||
0x0000006d,0x00040005,0x00000199,0x61726170,0x0000006d,0x00040005,0x0000019a,0x61726170,
|
||||
0x0000006d,0x00040005,0x0000019d,0x61726170,0x0000006d,0x00040005,0x000001a8,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001a9,0x61726170,0x0000006d,0x00040005,0x000001aa,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001ad,0x61726170,0x0000006d,0x00040005,0x000001b5,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001b6,0x61726170,0x0000006d,0x00040005,0x000001b9,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001bc,0x61726170,0x0000006d,0x00040005,0x000001c4,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001c5,0x61726170,0x0000006d,0x00040005,0x000001c8,0x61726170,
|
||||
0x0000006d,0x00040005,0x000001cb,0x61726170,0x0000006d,0x00040005,0x000001d0,0x616e6966,
|
||||
0x0000596c,0x00040005,0x000001d6,0x5978616d,0x00000000,0x00040005,0x000001e2,0x596e696d,
|
||||
0x00000000,0x00040005,0x000001f7,0x746c6564,0x00005961,0x00050005,0x00000214,0x5f74756f,
|
||||
0x67726154,0x00307465,0x00030047,0x00000009,0x00000000,0x00030047,0x0000000a,0x00000000,
|
||||
0x00030047,0x0000000e,0x00000000,0x00030047,0x0000000f,0x00000000,0x00030047,0x00000010,
|
||||
0x00000000,0x00030047,0x00000011,0x00000000,0x00030047,0x00000012,0x00000000,0x00030047,
|
||||
0x00000014,0x00000000,0x00030047,0x00000015,0x00000000,0x00030047,0x00000017,0x00000000,
|
||||
0x00030047,0x00000018,0x00000000,0x00030047,0x00000019,0x00000000,0x00030047,0x0000001a,
|
||||
0x00000000,0x00030047,0x0000001b,0x00000000,0x00030047,0x0000001c,0x00000000,0x00030047,
|
||||
0x0000001d,0x00000000,0x00030047,0x0000001e,0x00000000,0x00030047,0x0000001f,0x00000000,
|
||||
0x00030047,0x00000020,0x00000000,0x00030047,0x00000021,0x00000000,0x00030047,0x00000022,
|
||||
0x00000000,0x00030047,0x00000023,0x00000000,0x00030047,0x00000026,0x00000000,0x00030047,
|
||||
0x00000027,0x00000000,0x00030047,0x00000028,0x00000000,0x00030047,0x00000029,0x00000000,
|
||||
0x00030047,0x0000002a,0x00000000,0x00030047,0x0000002b,0x00000000,0x00030047,0x0000002c,
|
||||
0x00000000,0x00030047,0x0000002d,0x00000000,0x00030047,0x0000002f,0x00000000,0x00030047,
|
||||
0x00000030,0x00000000,0x00030047,0x00000031,0x00000000,0x00030047,0x00000032,0x00000000,
|
||||
0x00030047,0x00000033,0x00000000,0x00030047,0x00000036,0x00000000,0x00030047,0x00000037,
|
||||
0x00000000,0x00030047,0x00000038,0x00000000,0x00030047,0x00000039,0x00000000,0x00030047,
|
||||
0x0000003a,0x00000000,0x00030047,0x0000003b,0x00000000,0x00030047,0x0000003c,0x00000000,
|
||||
0x00030047,0x0000003d,0x00000000,0x00030047,0x0000003e,0x00000000,0x00030047,0x0000003f,
|
||||
0x00000000,0x00030047,0x00000040,0x00000000,0x00030047,0x00000046,0x00000002,0x00050048,
|
||||
0x00000046,0x00000000,0x00000023,0x00000000,0x00050048,0x00000046,0x00000001,0x00000023,
|
||||
0x00000010,0x00040048,0x00000046,0x00000002,0x00000000,0x00050048,0x00000046,0x00000002,
|
||||
0x00000023,0x00000020,0x00040047,0x00000051,0x0000001e,0x00000000,0x00030047,0x00000053,
|
||||
0x00000000,0x00030047,0x00000057,0x00000000,0x00040047,0x00000057,0x00000021,0x00000000,
|
||||
0x00040047,0x00000057,0x00000022,0x00000000,0x00030047,0x00000058,0x00000000,0x00030047,
|
||||
0x0000005a,0x00000000,0x00030047,0x0000005c,0x00000000,0x00030047,0x00000078,0x00000000,
|
||||
0x00030047,0x0000007d,0x00000000,0x00030047,0x0000007e,0x00000000,0x00030047,0x00000080,
|
||||
0x00000000,0x00030047,0x00000081,0x00000000,0x00030047,0x00000083,0x00000000,0x00030047,
|
||||
0x00000085,0x00000000,0x00030047,0x00000086,0x00000000,0x00030047,0x00000087,0x00000000,
|
||||
0x00030047,0x00000089,0x00000000,0x00030047,0x0000008b,0x00000000,0x00030047,0x0000008c,
|
||||
0x00000000,0x00030047,0x0000008d,0x00000000,0x00030047,0x0000008e,0x00000000,0x00030047,
|
||||
0x00000090,0x00000000,0x00030047,0x00000092,0x00000000,0x00030047,0x00000093,0x00000000,
|
||||
0x00030047,0x00000094,0x00000000,0x00030047,0x00000095,0x00000000,0x00030047,0x00000096,
|
||||
0x00000000,0x00030047,0x00000097,0x00000000,0x00030047,0x000000a2,0x00000000,0x00030047,
|
||||
0x000000a3,0x00000000,0x00030047,0x000000a9,0x00000000,0x00030047,0x000000aa,0x00000000,
|
||||
0x00030047,0x000000ab,0x00000000,0x00030047,0x000000b2,0x00000000,0x00030047,0x000000b3,
|
||||
0x00000000,0x00030047,0x000000b8,0x00000000,0x00030047,0x000000be,0x00000000,0x00030047,
|
||||
0x000000bf,0x00000000,0x00030047,0x000000c5,0x00000000,0x00030047,0x000000c7,0x00000000,
|
||||
0x00030047,0x000000c9,0x00000000,0x00030047,0x000000ca,0x00000000,0x00030047,0x000000cc,
|
||||
0x00000000,0x00030047,0x000000cd,0x00000000,0x00030047,0x000000cf,0x00000000,0x00030047,
|
||||
0x000000d0,0x00000000,0x00030047,0x000000d2,0x00000000,0x00030047,0x000000d3,0x00000000,
|
||||
0x00030047,0x000000d4,0x00000000,0x00030047,0x000000d5,0x00000000,0x00030047,0x000000d6,
|
||||
0x00000000,0x00030047,0x000000d7,0x00000000,0x00030047,0x000000d8,0x00000000,0x00030047,
|
||||
0x000000d9,0x00000000,0x00030047,0x000000da,0x00000000,0x00030047,0x000000db,0x00000000,
|
||||
0x00030047,0x000000dc,0x00000000,0x00030047,0x000000dd,0x00000000,0x00030047,0x000000de,
|
||||
0x00000000,0x00030047,0x000000e0,0x00000000,0x00030047,0x000000e1,0x00000000,0x00030047,
|
||||
0x000000e2,0x00000000,0x00030047,0x000000e4,0x00000000,0x00030047,0x000000e6,0x00000000,
|
||||
0x00030047,0x000000e7,0x00000000,0x00030047,0x000000e9,0x00000000,0x00030047,0x000000ea,
|
||||
0x00000000,0x00030047,0x000000eb,0x00000000,0x00030047,0x000000ed,0x00000000,0x00030047,
|
||||
0x000000ee,0x00000000,0x00030047,0x000000ef,0x00000000,0x00030047,0x000000f1,0x00000000,
|
||||
0x00030047,0x000000f2,0x00000000,0x00030047,0x000000f3,0x00000000,0x00030047,0x000000f5,
|
||||
0x00000000,0x00030047,0x000000f6,0x00000000,0x00030047,0x000000f8,0x00000000,0x00030047,
|
||||
0x000000f9,0x00000000,0x00030047,0x000000fa,0x00000000,0x00030047,0x000000fc,0x00000000,
|
||||
0x00030047,0x000000fd,0x00000000,0x00030047,0x000000fe,0x00000000,0x00030047,0x00000100,
|
||||
0x00000000,0x00030047,0x00000101,0x00000000,0x00030047,0x00000102,0x00000000,0x00030047,
|
||||
0x00000103,0x00000000,0x00030047,0x00000105,0x00000000,0x00030047,0x00000106,0x00000000,
|
||||
0x00030047,0x00000108,0x00000000,0x00030047,0x00000109,0x00000000,0x00030047,0x0000010a,
|
||||
0x00000000,0x00030047,0x0000010c,0x00000000,0x00030047,0x0000010d,0x00000000,0x00030047,
|
||||
0x0000010e,0x00000000,0x00030047,0x00000110,0x00000000,0x00030047,0x00000111,0x00000000,
|
||||
0x00030047,0x00000112,0x00000000,0x00030047,0x00000113,0x00000000,0x00030047,0x00000114,
|
||||
0x00000000,0x00030047,0x00000116,0x00000000,0x00030047,0x00000117,0x00000000,0x00030047,
|
||||
0x00000118,0x00000000,0x00030047,0x0000011a,0x00000000,0x00030047,0x0000011b,0x00000000,
|
||||
0x00030047,0x0000011c,0x00000000,0x00030047,0x0000011e,0x00000000,0x00030047,0x0000011f,
|
||||
0x00000000,0x00030047,0x00000120,0x00000000,0x00030047,0x00000122,0x00000000,0x00030047,
|
||||
0x00000123,0x00000000,0x00030047,0x00000124,0x00000000,0x00030047,0x00000125,0x00000000,
|
||||
0x00030047,0x00000127,0x00000000,0x00030047,0x00000128,0x00000000,0x00030047,0x0000012a,
|
||||
0x00000000,0x00030047,0x0000012b,0x00000000,0x00030047,0x0000012c,0x00000000,0x00030047,
|
||||
0x0000012d,0x00000000,0x00030047,0x0000012e,0x00000000,0x00030047,0x00000130,0x00000000,
|
||||
0x00030047,0x00000131,0x00000000,0x00030047,0x00000132,0x00000000,0x00030047,0x00000133,
|
||||
0x00000000,0x00030047,0x00000134,0x00000000,0x00030047,0x00000135,0x00000000,0x00030047,
|
||||
0x00000137,0x00000000,0x00030047,0x00000138,0x00000000,0x00030047,0x0000013a,0x00000000,
|
||||
0x00030047,0x0000013c,0x00000000,0x00030047,0x0000013d,0x00000000,0x00030047,0x0000013e,
|
||||
0x00000000,0x00030047,0x0000013f,0x00000000,0x00030047,0x00000141,0x00000000,0x00030047,
|
||||
0x00000142,0x00000000,0x00030047,0x00000143,0x00000000,0x00030047,0x00000144,0x00000000,
|
||||
0x00030047,0x00000145,0x00000000,0x00030047,0x00000146,0x00000000,0x00030047,0x00000148,
|
||||
0x00000000,0x00030047,0x00000149,0x00000000,0x00030047,0x0000014a,0x00000000,0x00030047,
|
||||
0x0000014c,0x00000000,0x00030047,0x0000014d,0x00000000,0x00030047,0x0000014e,0x00000000,
|
||||
0x00030047,0x00000150,0x00000000,0x00030047,0x00000151,0x00000000,0x00030047,0x00000152,
|
||||
0x00000000,0x00030047,0x00000153,0x00000000,0x00030047,0x00000154,0x00000000,0x00030047,
|
||||
0x00000155,0x00000000,0x00030047,0x00000157,0x00000000,0x00030047,0x00000158,0x00000000,
|
||||
0x00030047,0x0000015a,0x00000000,0x00030047,0x0000015b,0x00000000,0x00030047,0x0000015c,
|
||||
0x00000000,0x00030047,0x0000015d,0x00000000,0x00030047,0x0000015e,0x00000000,0x00030047,
|
||||
0x00000160,0x00000000,0x00030047,0x00000161,0x00000000,0x00030047,0x00000162,0x00000000,
|
||||
0x00030047,0x00000163,0x00000000,0x00030047,0x00000164,0x00000000,0x00030047,0x00000165,
|
||||
0x00000000,0x00030047,0x00000167,0x00000000,0x00030047,0x00000168,0x00000000,0x00030047,
|
||||
0x00000169,0x00000000,0x00030047,0x0000016b,0x00000000,0x00030047,0x0000016c,0x00000000,
|
||||
0x00030047,0x0000016d,0x00000000,0x00030047,0x0000016f,0x00000000,0x00030047,0x00000170,
|
||||
0x00000000,0x00030047,0x00000171,0x00000000,0x00030047,0x00000172,0x00000000,0x00030047,
|
||||
0x00000173,0x00000000,0x00030047,0x00000174,0x00000000,0x00030047,0x00000175,0x00000000,
|
||||
0x00030047,0x00000177,0x00000000,0x00030047,0x00000178,0x00000000,0x00030047,0x0000017a,
|
||||
0x00000000,0x00030047,0x0000017b,0x00000000,0x00030047,0x0000017d,0x00000000,0x00030047,
|
||||
0x0000017e,0x00000000,0x00030047,0x0000017f,0x00000000,0x00030047,0x00000180,0x00000000,
|
||||
0x00030047,0x00000181,0x00000000,0x00030047,0x00000182,0x00000000,0x00030047,0x00000184,
|
||||
0x00000000,0x00030047,0x00000185,0x00000000,0x00030047,0x00000186,0x00000000,0x00030047,
|
||||
0x00000187,0x00000000,0x00030047,0x00000189,0x00000000,0x00030047,0x0000018a,0x00000000,
|
||||
0x00030047,0x0000018c,0x00000000,0x00030047,0x0000018d,0x00000000,0x00030047,0x0000018e,
|
||||
0x00000000,0x00030047,0x0000018f,0x00000000,0x00030047,0x00000190,0x00000000,0x00030047,
|
||||
0x00000191,0x00000000,0x00030047,0x00000193,0x00000000,0x00030047,0x00000194,0x00000000,
|
||||
0x00030047,0x00000196,0x00000000,0x00030047,0x00000197,0x00000000,0x00030047,0x00000198,
|
||||
0x00000000,0x00030047,0x00000199,0x00000000,0x00030047,0x0000019a,0x00000000,0x00030047,
|
||||
0x0000019c,0x00000000,0x00030047,0x0000019d,0x00000000,0x00030047,0x0000019e,0x00000000,
|
||||
0x00030047,0x0000019f,0x00000000,0x00030047,0x000001a0,0x00000000,0x00030047,0x000001a1,
|
||||
0x00000000,0x00030047,0x000001a3,0x00000000,0x00030047,0x000001a4,0x00000000,0x00030047,
|
||||
0x000001a6,0x00000000,0x00030047,0x000001a7,0x00000000,0x00030047,0x000001a8,0x00000000,
|
||||
0x00030047,0x000001a9,0x00000000,0x00030047,0x000001aa,0x00000000,0x00030047,0x000001ac,
|
||||
0x00000000,0x00030047,0x000001ad,0x00000000,0x00030047,0x000001ae,0x00000000,0x00030047,
|
||||
0x000001af,0x00000000,0x00030047,0x000001b0,0x00000000,0x00030047,0x000001b1,0x00000000,
|
||||
0x00030047,0x000001b3,0x00000000,0x00030047,0x000001b4,0x00000000,0x00030047,0x000001b5,
|
||||
0x00000000,0x00030047,0x000001b6,0x00000000,0x00030047,0x000001b8,0x00000000,0x00030047,
|
||||
0x000001b9,0x00000000,0x00030047,0x000001bb,0x00000000,0x00030047,0x000001bc,0x00000000,
|
||||
0x00030047,0x000001bd,0x00000000,0x00030047,0x000001be,0x00000000,0x00030047,0x000001bf,
|
||||
0x00000000,0x00030047,0x000001c0,0x00000000,0x00030047,0x000001c2,0x00000000,0x00030047,
|
||||
0x000001c3,0x00000000,0x00030047,0x000001c4,0x00000000,0x00030047,0x000001c5,0x00000000,
|
||||
0x00030047,0x000001c7,0x00000000,0x00030047,0x000001c8,0x00000000,0x00030047,0x000001ca,
|
||||
0x00000000,0x00030047,0x000001cb,0x00000000,0x00030047,0x000001cc,0x00000000,0x00030047,
|
||||
0x000001cd,0x00000000,0x00030047,0x000001ce,0x00000000,0x00030047,0x000001cf,0x00000000,
|
||||
0x00030047,0x000001d0,0x00000000,0x00030047,0x000001d2,0x00000000,0x00030047,0x000001d4,
|
||||
0x00000000,0x00030047,0x000001d5,0x00000000,0x00030047,0x000001d6,0x00000000,0x00030047,
|
||||
0x000001d8,0x00000000,0x00030047,0x000001da,0x00000000,0x00030047,0x000001db,0x00000000,
|
||||
0x00030047,0x000001dd,0x00000000,0x00030047,0x000001df,0x00000000,0x00030047,0x000001e0,
|
||||
0x00000000,0x00030047,0x000001e1,0x00000000,0x00030047,0x000001e2,0x00000000,0x00030047,
|
||||
0x000001e4,0x00000000,0x00030047,0x000001e6,0x00000000,0x00030047,0x000001e7,0x00000000,
|
||||
0x00030047,0x000001e9,0x00000000,0x00030047,0x000001eb,0x00000000,0x00030047,0x000001ec,
|
||||
0x00000000,0x00030047,0x000001ed,0x00000000,0x00030047,0x000001f1,0x00000000,0x00030047,
|
||||
0x000001f2,0x00000000,0x00030047,0x000001f3,0x00000000,0x00030047,0x000001f4,0x00000000,
|
||||
0x00030047,0x000001f5,0x00000000,0x00030047,0x000001f6,0x00000000,0x00030047,0x000001f7,
|
||||
0x00000000,0x00030047,0x000001f8,0x00000000,0x00030047,0x000001fa,0x00000000,0x00030047,
|
||||
0x000001fb,0x00000000,0x00030047,0x000001fc,0x00000000,0x00030047,0x000001ff,0x00000000,
|
||||
0x00030047,0x00000201,0x00000000,0x00030047,0x00000202,0x00000000,0x00030047,0x00000203,
|
||||
0x00000000,0x00030047,0x00000204,0x00000000,0x00030047,0x00000207,0x00000000,0x00030047,
|
||||
0x00000208,0x00000000,0x00030047,0x00000209,0x00000000,0x00030047,0x0000020a,0x00000000,
|
||||
0x00030047,0x0000020d,0x00000000,0x00030047,0x0000020e,0x00000000,0x00030047,0x0000020f,
|
||||
0x00000000,0x00030047,0x00000210,0x00000000,0x00030047,0x00000214,0x00000000,0x00040047,
|
||||
0x00000214,0x0000001e,0x00000000,0x00030047,0x00000215,0x00000000,0x00020013,0x00000002,
|
||||
0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040020,0x00000007,
|
||||
0x00000007,0x00000006,0x00040021,0x00000008,0x00000006,0x00000007,0x00040017,0x0000000c,
|
||||
0x00000006,0x00000002,0x00070021,0x0000000d,0x0000000c,0x00000007,0x00000007,0x00000007,
|
||||
0x00000007,0x0004002b,0x00000006,0x00000016,0x40800000,0x0004002b,0x00000006,0x0000002e,
|
||||
0x3f0ccccd,0x0004002b,0x00000006,0x00000034,0x00000000,0x0004002b,0x00000006,0x00000035,
|
||||
0x3f800000,0x00040017,0x00000043,0x00000006,0x00000004,0x00040020,0x00000044,0x00000007,
|
||||
0x00000043,0x0005001e,0x00000046,0x00000043,0x00000043,0x00000006,0x00040020,0x00000047,
|
||||
0x00000009,0x00000046,0x0004003b,0x00000047,0x00000048,0x00000009,0x00040015,0x00000049,
|
||||
0x00000020,0x00000001,0x0004002b,0x00000049,0x0000004a,0x00000001,0x00040020,0x0000004b,
|
||||
0x00000009,0x00000043,0x00040020,0x0000004e,0x00000007,0x0000000c,0x00040020,0x00000050,
|
||||
0x00000001,0x0000000c,0x0004003b,0x00000050,0x00000051,0x00000001,0x00090019,0x00000054,
|
||||
0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,
|
||||
0x00000055,0x00000054,0x00040020,0x00000056,0x00000000,0x00000055,0x0004003b,0x00000056,
|
||||
0x00000057,0x00000000,0x00040017,0x0000005b,0x00000006,0x00000003,0x00040015,0x0000005d,
|
||||
0x00000020,0x00000000,0x0004002b,0x0000005d,0x0000005e,0x00000000,0x0004002b,0x0000005d,
|
||||
0x00000061,0x00000001,0x0004002b,0x0000005d,0x00000064,0x00000002,0x0004002b,0x00000006,
|
||||
0x0000006c,0xbf000000,0x0004002b,0x00000006,0x0000006d,0x3f000000,0x0005002c,0x0000000c,
|
||||
0x0000006e,0x0000006c,0x0000006d,0x0004002b,0x00000006,0x00000097,0x3d008081,0x00020014,
|
||||
0x00000098,0x0004002b,0x0000005d,0x000000c2,0x00000003,0x0004002b,0x00000006,0x000000d1,
|
||||
0x3e800000,0x0004002b,0x00000006,0x00000115,0x400ba2e8,0x0004002b,0x00000006,0x0000013b,
|
||||
0x40000000,0x0004002b,0x00000049,0x000001ee,0x00000002,0x00040020,0x000001ef,0x00000009,
|
||||
0x00000006,0x0004002b,0x00000006,0x000001fd,0xbdb8b8b9,0x0004002b,0x00000006,0x000001fe,
|
||||
0x3db8b8b9,0x00040020,0x00000213,0x00000003,0x00000043,0x0004003b,0x00000213,0x00000214,
|
||||
0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,
|
||||
0x0004003b,0x00000044,0x00000045,0x00000007,0x0004003b,0x0000004e,0x0000004f,0x00000007,
|
||||
0x0004003b,0x00000044,0x00000053,0x00000007,0x0004003b,0x0000004e,0x00000067,0x00000007,
|
||||
0x0004003b,0x0000004e,0x00000070,0x00000007,0x0004003b,0x0000004e,0x00000073,0x00000007,
|
||||
0x0004003b,0x0000004e,0x00000078,0x00000007,0x0004003b,0x00000044,0x0000007d,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000081,0x00000007,0x0004003b,0x00000044,0x000000a2,0x00000007,
|
||||
0x0004003b,0x00000044,0x000000aa,0x00000007,0x0004003b,0x00000007,0x000000c5,0x00000007,
|
||||
0x0004003b,0x00000007,0x000000e4,0x00000007,0x0004003b,0x00000007,0x00000114,0x00000007,
|
||||
0x0004003b,0x0000004e,0x00000118,0x00000007,0x0004003b,0x00000007,0x0000011c,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000011f,0x00000007,0x0004003b,0x00000007,0x00000120,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000123,0x00000007,0x0004003b,0x00000007,0x0000012c,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000012d,0x00000007,0x0004003b,0x00000007,0x0000012e,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000131,0x00000007,0x0004003b,0x00000007,0x0000013d,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000013e,0x00000007,0x0004003b,0x00000007,0x0000013f,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000142,0x00000007,0x0004003b,0x00000007,0x0000014a,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000014d,0x00000007,0x0004003b,0x00000007,0x0000014e,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000151,0x00000007,0x0004003b,0x00000007,0x0000015c,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000015d,0x00000007,0x0004003b,0x00000007,0x0000015e,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000161,0x00000007,0x0004003b,0x00000007,0x00000169,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000016c,0x00000007,0x0004003b,0x00000007,0x0000016d,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000170,0x00000007,0x0004003b,0x00000007,0x00000175,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000178,0x00000007,0x0004003b,0x00000007,0x0000017b,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000017e,0x00000007,0x0004003b,0x00000007,0x00000186,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000187,0x00000007,0x0004003b,0x00000007,0x0000018a,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000018d,0x00000007,0x0004003b,0x00000007,0x00000198,0x00000007,
|
||||
0x0004003b,0x00000007,0x00000199,0x00000007,0x0004003b,0x00000007,0x0000019a,0x00000007,
|
||||
0x0004003b,0x00000007,0x0000019d,0x00000007,0x0004003b,0x00000007,0x000001a8,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001a9,0x00000007,0x0004003b,0x00000007,0x000001aa,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001ad,0x00000007,0x0004003b,0x00000007,0x000001b5,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001b6,0x00000007,0x0004003b,0x00000007,0x000001b9,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001bc,0x00000007,0x0004003b,0x00000007,0x000001c4,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001c5,0x00000007,0x0004003b,0x00000007,0x000001c8,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001cb,0x00000007,0x0004003b,0x00000007,0x000001d0,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001d6,0x00000007,0x0004003b,0x00000007,0x000001e2,0x00000007,
|
||||
0x0004003b,0x00000007,0x000001f7,0x00000007,0x00050041,0x0000004b,0x0000004c,0x00000048,
|
||||
0x0000004a,0x0004003d,0x00000043,0x0000004d,0x0000004c,0x0003003e,0x00000045,0x0000004d,
|
||||
0x0004003d,0x0000000c,0x00000052,0x00000051,0x0003003e,0x0000004f,0x00000052,0x0004003d,
|
||||
0x00000055,0x00000058,0x00000057,0x0004003d,0x0000000c,0x00000059,0x0000004f,0x00070058,
|
||||
0x00000043,0x0000005a,0x00000058,0x00000059,0x00000002,0x00000034,0x0008004f,0x0000005b,
|
||||
0x0000005c,0x0000005a,0x0000005a,0x00000000,0x00000001,0x00000002,0x00050041,0x00000007,
|
||||
0x0000005f,0x00000053,0x0000005e,0x00050051,0x00000006,0x00000060,0x0000005c,0x00000000,
|
||||
0x0003003e,0x0000005f,0x00000060,0x00050041,0x00000007,0x00000062,0x00000053,0x00000061,
|
||||
0x00050051,0x00000006,0x00000063,0x0000005c,0x00000001,0x0003003e,0x00000062,0x00000063,
|
||||
0x00050041,0x00000007,0x00000065,0x00000053,0x00000064,0x00050051,0x00000006,0x00000066,
|
||||
0x0000005c,0x00000002,0x0003003e,0x00000065,0x00000066,0x0004003d,0x0000000c,0x00000068,
|
||||
0x0000004f,0x0004003d,0x00000043,0x00000069,0x00000045,0x0007004f,0x0000000c,0x0000006a,
|
||||
0x00000069,0x00000069,0x00000002,0x00000003,0x00050085,0x0000000c,0x0000006b,0x00000068,
|
||||
0x0000006a,0x00050081,0x0000000c,0x0000006f,0x0000006b,0x0000006e,0x0003003e,0x00000067,
|
||||
0x0000006f,0x0004003d,0x0000000c,0x00000071,0x00000067,0x0006000c,0x0000000c,0x00000072,
|
||||
0x00000001,0x00000008,0x00000071,0x0003003e,0x00000070,0x00000072,0x0004003d,0x0000000c,
|
||||
0x00000074,0x00000070,0x0004003d,0x00000043,0x00000075,0x00000045,0x0007004f,0x0000000c,
|
||||
0x00000076,0x00000075,0x00000075,0x00000000,0x00000001,0x00050085,0x0000000c,0x00000077,
|
||||
0x00000074,0x00000076,0x0003003e,0x00000073,0x00000077,0x0004003d,0x0000000c,0x00000079,
|
||||
0x00000067,0x0004003d,0x0000000c,0x0000007a,0x00000070,0x0004007f,0x0000000c,0x0000007b,
|
||||
0x0000007a,0x00050081,0x0000000c,0x0000007c,0x00000079,0x0000007b,0x0003003e,0x00000078,
|
||||
0x0000007c,0x0004003d,0x00000055,0x0000007e,0x00000057,0x0004003d,0x0000000c,0x0000007f,
|
||||
0x00000073,0x00060060,0x00000043,0x00000080,0x0000007e,0x0000007f,0x0000004a,0x0003003e,
|
||||
0x0000007d,0x00000080,0x00050041,0x00000007,0x00000082,0x0000007d,0x00000064,0x0004003d,
|
||||
0x00000006,0x00000083,0x00000082,0x00050041,0x00000007,0x00000084,0x0000007d,0x00000061,
|
||||
0x0004003d,0x00000006,0x00000085,0x00000084,0x00050083,0x00000006,0x00000086,0x00000083,
|
||||
0x00000085,0x0006000c,0x00000006,0x00000087,0x00000001,0x00000004,0x00000086,0x00050041,
|
||||
0x00000007,0x00000088,0x00000053,0x00000061,0x0004003d,0x00000006,0x00000089,0x00000088,
|
||||
0x00050041,0x00000007,0x0000008a,0x0000007d,0x00000061,0x0004003d,0x00000006,0x0000008b,
|
||||
0x0000008a,0x00050083,0x00000006,0x0000008c,0x00000089,0x0000008b,0x0006000c,0x00000006,
|
||||
0x0000008d,0x00000001,0x00000004,0x0000008c,0x00050081,0x00000006,0x0000008e,0x00000087,
|
||||
0x0000008d,0x00050041,0x00000007,0x0000008f,0x00000053,0x00000061,0x0004003d,0x00000006,
|
||||
0x00000090,0x0000008f,0x00050041,0x00000007,0x00000091,0x0000007d,0x00000064,0x0004003d,
|
||||
0x00000006,0x00000092,0x00000091,0x00050083,0x00000006,0x00000093,0x00000090,0x00000092,
|
||||
0x0006000c,0x00000006,0x00000094,0x00000001,0x00000004,0x00000093,0x00050081,0x00000006,
|
||||
0x00000095,0x0000008e,0x00000094,0x0003003e,0x00000081,0x00000095,0x0004003d,0x00000006,
|
||||
0x00000096,0x00000081,0x000500ba,0x00000098,0x00000099,0x00000096,0x00000097,0x000300f7,
|
||||
0x0000009b,0x00000000,0x000400fa,0x00000099,0x0000009a,0x0000009b,0x000200f8,0x0000009a,
|
||||
0x00050041,0x00000007,0x0000009c,0x00000045,0x0000005e,0x0004003d,0x00000006,0x0000009d,
|
||||
0x0000009c,0x00050041,0x00000007,0x0000009e,0x00000073,0x0000005e,0x0004003d,0x00000006,
|
||||
0x0000009f,0x0000009e,0x00050081,0x00000006,0x000000a0,0x0000009f,0x0000009d,0x00050041,
|
||||
0x00000007,0x000000a1,0x00000073,0x0000005e,0x0003003e,0x000000a1,0x000000a0,0x0004003d,
|
||||
0x00000055,0x000000a3,0x00000057,0x0004003d,0x0000000c,0x000000a4,0x00000073,0x00050041,
|
||||
0x00000007,0x000000a5,0x00000045,0x0000005e,0x0004003d,0x00000006,0x000000a6,0x000000a5,
|
||||
0x00050050,0x0000000c,0x000000a7,0x000000a6,0x00000034,0x00050081,0x0000000c,0x000000a8,
|
||||
0x000000a4,0x000000a7,0x00060060,0x00000043,0x000000a9,0x000000a3,0x000000a8,0x0000004a,
|
||||
0x0003003e,0x000000a2,0x000000a9,0x0004003d,0x00000055,0x000000ab,0x00000057,0x0004003d,
|
||||
0x0000000c,0x000000ac,0x00000073,0x00050041,0x00000007,0x000000ad,0x00000045,0x00000061,
|
||||
0x0004003d,0x00000006,0x000000ae,0x000000ad,0x0004007f,0x00000006,0x000000af,0x000000ae,
|
||||
0x00050050,0x0000000c,0x000000b0,0x00000034,0x000000af,0x00050081,0x0000000c,0x000000b1,
|
||||
0x000000ac,0x000000b0,0x00060060,0x00000043,0x000000b2,0x000000ab,0x000000b1,0x0000004a,
|
||||
0x0007004f,0x0000000c,0x000000b3,0x000000b2,0x000000b2,0x00000003,0x00000002,0x00050041,
|
||||
0x00000007,0x000000b4,0x000000aa,0x0000005e,0x00050051,0x00000006,0x000000b5,0x000000b3,
|
||||
0x00000000,0x0003003e,0x000000b4,0x000000b5,0x00050041,0x00000007,0x000000b6,0x000000aa,
|
||||
0x00000061,0x00050051,0x00000006,0x000000b7,0x000000b3,0x00000001,0x0003003e,0x000000b6,
|
||||
0x000000b7,0x0004003d,0x00000055,0x000000b8,0x00000057,0x0004003d,0x0000000c,0x000000b9,
|
||||
0x00000073,0x00050041,0x00000007,0x000000ba,0x00000045,0x00000061,0x0004003d,0x00000006,
|
||||
0x000000bb,0x000000ba,0x00050050,0x0000000c,0x000000bc,0x00000034,0x000000bb,0x00050081,
|
||||
0x0000000c,0x000000bd,0x000000b9,0x000000bc,0x00060060,0x00000043,0x000000be,0x000000b8,
|
||||
0x000000bd,0x0000004a,0x0007004f,0x0000000c,0x000000bf,0x000000be,0x000000be,0x00000001,
|
||||
0x00000000,0x00050041,0x00000007,0x000000c0,0x000000aa,0x00000064,0x00050051,0x00000006,
|
||||
0x000000c1,0x000000bf,0x00000000,0x0003003e,0x000000c0,0x000000c1,0x00050041,0x00000007,
|
||||
0x000000c3,0x000000aa,0x000000c2,0x00050051,0x00000006,0x000000c4,0x000000bf,0x00000001,
|
||||
0x0003003e,0x000000c3,0x000000c4,0x00050041,0x00000007,0x000000c6,0x0000007d,0x00000061,
|
||||
0x0004003d,0x00000006,0x000000c7,0x000000c6,0x00050041,0x00000007,0x000000c8,0x0000007d,
|
||||
0x00000064,0x0004003d,0x00000006,0x000000c9,0x000000c8,0x00050081,0x00000006,0x000000ca,
|
||||
0x000000c7,0x000000c9,0x00050041,0x00000007,0x000000cb,0x000000a2,0x0000005e,0x0004003d,
|
||||
0x00000006,0x000000cc,0x000000cb,0x00050081,0x00000006,0x000000cd,0x000000ca,0x000000cc,
|
||||
0x00050041,0x00000007,0x000000ce,0x000000a2,0x000000c2,0x0004003d,0x00000006,0x000000cf,
|
||||
0x000000ce,0x00050081,0x00000006,0x000000d0,0x000000cd,0x000000cf,0x00050085,0x00000006,
|
||||
0x000000d2,0x000000d0,0x000000d1,0x0003003e,0x000000c5,0x000000d2,0x0004003d,0x00000043,
|
||||
0x000000d3,0x0000007d,0x0004003d,0x00000006,0x000000d4,0x000000c5,0x00070050,0x00000043,
|
||||
0x000000d5,0x000000d4,0x000000d4,0x000000d4,0x000000d4,0x00050083,0x00000043,0x000000d6,
|
||||
0x000000d3,0x000000d5,0x0003003e,0x0000007d,0x000000d6,0x0004003d,0x00000043,0x000000d7,
|
||||
0x000000a2,0x0004003d,0x00000006,0x000000d8,0x000000c5,0x00070050,0x00000043,0x000000d9,
|
||||
0x000000d8,0x000000d8,0x000000d8,0x000000d8,0x00050083,0x00000043,0x000000da,0x000000d7,
|
||||
0x000000d9,0x0003003e,0x000000a2,0x000000da,0x0004003d,0x00000043,0x000000db,0x000000aa,
|
||||
0x0004003d,0x00000006,0x000000dc,0x000000c5,0x00070050,0x00000043,0x000000dd,0x000000dc,
|
||||
0x000000dc,0x000000dc,0x000000dc,0x00050083,0x00000043,0x000000de,0x000000db,0x000000dd,
|
||||
0x0003003e,0x000000aa,0x000000de,0x00050041,0x00000007,0x000000df,0x00000053,0x00000061,
|
||||
0x0004003d,0x00000006,0x000000e0,0x000000df,0x0004003d,0x00000006,0x000000e1,0x000000c5,
|
||||
0x00050083,0x00000006,0x000000e2,0x000000e0,0x000000e1,0x00050041,0x00000007,0x000000e3,
|
||||
0x00000053,0x000000c2,0x0003003e,0x000000e3,0x000000e2,0x00050041,0x00000007,0x000000e5,
|
||||
0x0000007d,0x0000005e,0x0004003d,0x00000006,0x000000e6,0x000000e5,0x0006000c,0x00000006,
|
||||
0x000000e7,0x00000001,0x00000004,0x000000e6,0x00050041,0x00000007,0x000000e8,0x0000007d,
|
||||
0x00000061,0x0004003d,0x00000006,0x000000e9,0x000000e8,0x0006000c,0x00000006,0x000000ea,
|
||||
0x00000001,0x00000004,0x000000e9,0x00050081,0x00000006,0x000000eb,0x000000e7,0x000000ea,
|
||||
0x00050041,0x00000007,0x000000ec,0x0000007d,0x00000064,0x0004003d,0x00000006,0x000000ed,
|
||||
0x000000ec,0x0006000c,0x00000006,0x000000ee,0x00000001,0x00000004,0x000000ed,0x00050081,
|
||||
0x00000006,0x000000ef,0x000000eb,0x000000ee,0x00050041,0x00000007,0x000000f0,0x0000007d,
|
||||
0x000000c2,0x0004003d,0x00000006,0x000000f1,0x000000f0,0x0006000c,0x00000006,0x000000f2,
|
||||
0x00000001,0x00000004,0x000000f1,0x00050081,0x00000006,0x000000f3,0x000000ef,0x000000f2,
|
||||
0x00050041,0x00000007,0x000000f4,0x000000a2,0x0000005e,0x0004003d,0x00000006,0x000000f5,
|
||||
0x000000f4,0x0006000c,0x00000006,0x000000f6,0x00000001,0x00000004,0x000000f5,0x00050041,
|
||||
0x00000007,0x000000f7,0x000000a2,0x00000061,0x0004003d,0x00000006,0x000000f8,0x000000f7,
|
||||
0x0006000c,0x00000006,0x000000f9,0x00000001,0x00000004,0x000000f8,0x00050081,0x00000006,
|
||||
0x000000fa,0x000000f6,0x000000f9,0x00050041,0x00000007,0x000000fb,0x000000a2,0x00000064,
|
||||
0x0004003d,0x00000006,0x000000fc,0x000000fb,0x0006000c,0x00000006,0x000000fd,0x00000001,
|
||||
0x00000004,0x000000fc,0x00050081,0x00000006,0x000000fe,0x000000fa,0x000000fd,0x00050041,
|
||||
0x00000007,0x000000ff,0x000000a2,0x000000c2,0x0004003d,0x00000006,0x00000100,0x000000ff,
|
||||
0x0006000c,0x00000006,0x00000101,0x00000001,0x00000004,0x00000100,0x00050081,0x00000006,
|
||||
0x00000102,0x000000fe,0x00000101,0x00050081,0x00000006,0x00000103,0x000000f3,0x00000102,
|
||||
0x00050041,0x00000007,0x00000104,0x000000aa,0x0000005e,0x0004003d,0x00000006,0x00000105,
|
||||
0x00000104,0x0006000c,0x00000006,0x00000106,0x00000001,0x00000004,0x00000105,0x00050041,
|
||||
0x00000007,0x00000107,0x000000aa,0x00000061,0x0004003d,0x00000006,0x00000108,0x00000107,
|
||||
0x0006000c,0x00000006,0x00000109,0x00000001,0x00000004,0x00000108,0x00050081,0x00000006,
|
||||
0x0000010a,0x00000106,0x00000109,0x00050041,0x00000007,0x0000010b,0x000000aa,0x00000064,
|
||||
0x0004003d,0x00000006,0x0000010c,0x0000010b,0x0006000c,0x00000006,0x0000010d,0x00000001,
|
||||
0x00000004,0x0000010c,0x00050081,0x00000006,0x0000010e,0x0000010a,0x0000010d,0x00050041,
|
||||
0x00000007,0x0000010f,0x000000aa,0x000000c2,0x0004003d,0x00000006,0x00000110,0x0000010f,
|
||||
0x0006000c,0x00000006,0x00000111,0x00000001,0x00000004,0x00000110,0x00050081,0x00000006,
|
||||
0x00000112,0x0000010e,0x00000111,0x00050081,0x00000006,0x00000113,0x00000103,0x00000112,
|
||||
0x0003003e,0x000000e4,0x00000113,0x0004003d,0x00000006,0x00000116,0x000000e4,0x00050088,
|
||||
0x00000006,0x00000117,0x00000115,0x00000116,0x0003003e,0x00000114,0x00000117,0x00050041,
|
||||
0x00000007,0x00000119,0x00000078,0x00000061,0x0004003d,0x00000006,0x0000011a,0x00000119,
|
||||
0x00050081,0x00000006,0x0000011b,0x0000011a,0x00000035,0x00050041,0x00000007,0x0000011d,
|
||||
0x00000078,0x0000005e,0x0004003d,0x00000006,0x0000011e,0x0000011d,0x0003003e,0x0000011c,
|
||||
0x0000011e,0x0003003e,0x0000011f,0x0000011b,0x00050041,0x00000007,0x00000121,0x000000aa,
|
||||
0x0000005e,0x0004003d,0x00000006,0x00000122,0x00000121,0x0003003e,0x00000120,0x00000122,
|
||||
0x0004003d,0x00000006,0x00000124,0x00000114,0x0003003e,0x00000123,0x00000124,0x00080039,
|
||||
0x0000000c,0x00000125,0x00000012,0x0000011c,0x0000011f,0x00000120,0x00000123,0x0003003e,
|
||||
0x00000118,0x00000125,0x00050041,0x00000007,0x00000126,0x00000078,0x0000005e,0x0004003d,
|
||||
0x00000006,0x00000127,0x00000126,0x00050083,0x00000006,0x00000128,0x00000127,0x00000035,
|
||||
0x00050041,0x00000007,0x00000129,0x00000078,0x00000061,0x0004003d,0x00000006,0x0000012a,
|
||||
0x00000129,0x00050081,0x00000006,0x0000012b,0x0000012a,0x00000035,0x0003003e,0x0000012c,
|
||||
0x00000128,0x0003003e,0x0000012d,0x0000012b,0x00050041,0x00000007,0x0000012f,0x000000aa,
|
||||
0x00000061,0x0004003d,0x00000006,0x00000130,0x0000012f,0x0003003e,0x0000012e,0x00000130,
|
||||
0x0004003d,0x00000006,0x00000132,0x00000114,0x0003003e,0x00000131,0x00000132,0x00080039,
|
||||
0x0000000c,0x00000133,0x00000012,0x0000012c,0x0000012d,0x0000012e,0x00000131,0x0004003d,
|
||||
0x0000000c,0x00000134,0x00000118,0x00050081,0x0000000c,0x00000135,0x00000134,0x00000133,
|
||||
0x0003003e,0x00000118,0x00000135,0x00050041,0x00000007,0x00000136,0x00000078,0x0000005e,
|
||||
0x0004003d,0x00000006,0x00000137,0x00000136,0x00050083,0x00000006,0x00000138,0x00000137,
|
||||
0x00000035,0x00050041,0x00000007,0x00000139,0x00000078,0x00000061,0x0004003d,0x00000006,
|
||||
0x0000013a,0x00000139,0x00050083,0x00000006,0x0000013c,0x0000013a,0x0000013b,0x0003003e,
|
||||
0x0000013d,0x00000138,0x0003003e,0x0000013e,0x0000013c,0x00050041,0x00000007,0x00000140,
|
||||
0x000000aa,0x00000064,0x0004003d,0x00000006,0x00000141,0x00000140,0x0003003e,0x0000013f,
|
||||
0x00000141,0x0004003d,0x00000006,0x00000143,0x00000114,0x0003003e,0x00000142,0x00000143,
|
||||
0x00080039,0x0000000c,0x00000144,0x00000012,0x0000013d,0x0000013e,0x0000013f,0x00000142,
|
||||
0x0004003d,0x0000000c,0x00000145,0x00000118,0x00050081,0x0000000c,0x00000146,0x00000145,
|
||||
0x00000144,0x0003003e,0x00000118,0x00000146,0x00050041,0x00000007,0x00000147,0x00000078,
|
||||
0x00000061,0x0004003d,0x00000006,0x00000148,0x00000147,0x00050083,0x00000006,0x00000149,
|
||||
0x00000148,0x0000013b,0x00050041,0x00000007,0x0000014b,0x00000078,0x0000005e,0x0004003d,
|
||||
0x00000006,0x0000014c,0x0000014b,0x0003003e,0x0000014a,0x0000014c,0x0003003e,0x0000014d,
|
||||
0x00000149,0x00050041,0x00000007,0x0000014f,0x000000aa,0x000000c2,0x0004003d,0x00000006,
|
||||
0x00000150,0x0000014f,0x0003003e,0x0000014e,0x00000150,0x0004003d,0x00000006,0x00000152,
|
||||
0x00000114,0x0003003e,0x00000151,0x00000152,0x00080039,0x0000000c,0x00000153,0x00000012,
|
||||
0x0000014a,0x0000014d,0x0000014e,0x00000151,0x0004003d,0x0000000c,0x00000154,0x00000118,
|
||||
0x00050081,0x0000000c,0x00000155,0x00000154,0x00000153,0x0003003e,0x00000118,0x00000155,
|
||||
0x00050041,0x00000007,0x00000156,0x00000078,0x0000005e,0x0004003d,0x00000006,0x00000157,
|
||||
0x00000156,0x00050081,0x00000006,0x00000158,0x00000157,0x00000035,0x00050041,0x00000007,
|
||||
0x00000159,0x00000078,0x00000061,0x0004003d,0x00000006,0x0000015a,0x00000159,0x00050083,
|
||||
0x00000006,0x0000015b,0x0000015a,0x00000035,0x0003003e,0x0000015c,0x00000158,0x0003003e,
|
||||
0x0000015d,0x0000015b,0x00050041,0x00000007,0x0000015f,0x0000007d,0x0000005e,0x0004003d,
|
||||
0x00000006,0x00000160,0x0000015f,0x0003003e,0x0000015e,0x00000160,0x0004003d,0x00000006,
|
||||
0x00000162,0x00000114,0x0003003e,0x00000161,0x00000162,0x00080039,0x0000000c,0x00000163,
|
||||
0x00000012,0x0000015c,0x0000015d,0x0000015e,0x00000161,0x0004003d,0x0000000c,0x00000164,
|
||||
0x00000118,0x00050081,0x0000000c,0x00000165,0x00000164,0x00000163,0x0003003e,0x00000118,
|
||||
0x00000165,0x00050041,0x00000007,0x00000166,0x00000078,0x00000061,0x0004003d,0x00000006,
|
||||
0x00000167,0x00000166,0x00050083,0x00000006,0x00000168,0x00000167,0x00000035,0x00050041,
|
||||
0x00000007,0x0000016a,0x00000078,0x0000005e,0x0004003d,0x00000006,0x0000016b,0x0000016a,
|
||||
0x0003003e,0x00000169,0x0000016b,0x0003003e,0x0000016c,0x00000168,0x00050041,0x00000007,
|
||||
0x0000016e,0x0000007d,0x00000061,0x0004003d,0x00000006,0x0000016f,0x0000016e,0x0003003e,
|
||||
0x0000016d,0x0000016f,0x0004003d,0x00000006,0x00000171,0x00000114,0x0003003e,0x00000170,
|
||||
0x00000171,0x00080039,0x0000000c,0x00000172,0x00000012,0x00000169,0x0000016c,0x0000016d,
|
||||
0x00000170,0x0004003d,0x0000000c,0x00000173,0x00000118,0x00050081,0x0000000c,0x00000174,
|
||||
0x00000173,0x00000172,0x0003003e,0x00000118,0x00000174,0x00050041,0x00000007,0x00000176,
|
||||
0x00000078,0x0000005e,0x0004003d,0x00000006,0x00000177,0x00000176,0x0003003e,0x00000175,
|
||||
0x00000177,0x00050041,0x00000007,0x00000179,0x00000078,0x00000061,0x0004003d,0x00000006,
|
||||
0x0000017a,0x00000179,0x0003003e,0x00000178,0x0000017a,0x00050041,0x00000007,0x0000017c,
|
||||
0x0000007d,0x00000064,0x0004003d,0x00000006,0x0000017d,0x0000017c,0x0003003e,0x0000017b,
|
||||
0x0000017d,0x0004003d,0x00000006,0x0000017f,0x00000114,0x0003003e,0x0000017e,0x0000017f,
|
||||
0x00080039,0x0000000c,0x00000180,0x00000012,0x00000175,0x00000178,0x0000017b,0x0000017e,
|
||||
0x0004003d,0x0000000c,0x00000181,0x00000118,0x00050081,0x0000000c,0x00000182,0x00000181,
|
||||
0x00000180,0x0003003e,0x00000118,0x00000182,0x00050041,0x00000007,0x00000183,0x00000078,
|
||||
0x0000005e,0x0004003d,0x00000006,0x00000184,0x00000183,0x00050081,0x00000006,0x00000185,
|
||||
0x00000184,0x00000035,0x0003003e,0x00000186,0x00000185,0x00050041,0x00000007,0x00000188,
|
||||
0x00000078,0x00000061,0x0004003d,0x00000006,0x00000189,0x00000188,0x0003003e,0x00000187,
|
||||
0x00000189,0x00050041,0x00000007,0x0000018b,0x0000007d,0x000000c2,0x0004003d,0x00000006,
|
||||
0x0000018c,0x0000018b,0x0003003e,0x0000018a,0x0000018c,0x0004003d,0x00000006,0x0000018e,
|
||||
0x00000114,0x0003003e,0x0000018d,0x0000018e,0x00080039,0x0000000c,0x0000018f,0x00000012,
|
||||
0x00000186,0x00000187,0x0000018a,0x0000018d,0x0004003d,0x0000000c,0x00000190,0x00000118,
|
||||
0x00050081,0x0000000c,0x00000191,0x00000190,0x0000018f,0x0003003e,0x00000118,0x00000191,
|
||||
0x00050041,0x00000007,0x00000192,0x00000078,0x0000005e,0x0004003d,0x00000006,0x00000193,
|
||||
0x00000192,0x00050083,0x00000006,0x00000194,0x00000193,0x00000035,0x00050041,0x00000007,
|
||||
0x00000195,0x00000078,0x00000061,0x0004003d,0x00000006,0x00000196,0x00000195,0x00050083,
|
||||
0x00000006,0x00000197,0x00000196,0x00000035,0x0003003e,0x00000198,0x00000194,0x0003003e,
|
||||
0x00000199,0x00000197,0x00050041,0x00000007,0x0000019b,0x000000a2,0x0000005e,0x0004003d,
|
||||
0x00000006,0x0000019c,0x0000019b,0x0003003e,0x0000019a,0x0000019c,0x0004003d,0x00000006,
|
||||
0x0000019e,0x00000114,0x0003003e,0x0000019d,0x0000019e,0x00080039,0x0000000c,0x0000019f,
|
||||
0x00000012,0x00000198,0x00000199,0x0000019a,0x0000019d,0x0004003d,0x0000000c,0x000001a0,
|
||||
0x00000118,0x00050081,0x0000000c,0x000001a1,0x000001a0,0x0000019f,0x0003003e,0x00000118,
|
||||
0x000001a1,0x00050041,0x00000007,0x000001a2,0x00000078,0x0000005e,0x0004003d,0x00000006,
|
||||
0x000001a3,0x000001a2,0x00050083,0x00000006,0x000001a4,0x000001a3,0x0000013b,0x00050041,
|
||||
0x00000007,0x000001a5,0x00000078,0x00000061,0x0004003d,0x00000006,0x000001a6,0x000001a5,
|
||||
0x00050083,0x00000006,0x000001a7,0x000001a6,0x00000035,0x0003003e,0x000001a8,0x000001a4,
|
||||
0x0003003e,0x000001a9,0x000001a7,0x00050041,0x00000007,0x000001ab,0x000000a2,0x00000061,
|
||||
0x0004003d,0x00000006,0x000001ac,0x000001ab,0x0003003e,0x000001aa,0x000001ac,0x0004003d,
|
||||
0x00000006,0x000001ae,0x00000114,0x0003003e,0x000001ad,0x000001ae,0x00080039,0x0000000c,
|
||||
0x000001af,0x00000012,0x000001a8,0x000001a9,0x000001aa,0x000001ad,0x0004003d,0x0000000c,
|
||||
0x000001b0,0x00000118,0x00050081,0x0000000c,0x000001b1,0x000001b0,0x000001af,0x0003003e,
|
||||
0x00000118,0x000001b1,0x00050041,0x00000007,0x000001b2,0x00000078,0x0000005e,0x0004003d,
|
||||
0x00000006,0x000001b3,0x000001b2,0x00050083,0x00000006,0x000001b4,0x000001b3,0x0000013b,
|
||||
0x0003003e,0x000001b5,0x000001b4,0x00050041,0x00000007,0x000001b7,0x00000078,0x00000061,
|
||||
0x0004003d,0x00000006,0x000001b8,0x000001b7,0x0003003e,0x000001b6,0x000001b8,0x00050041,
|
||||
0x00000007,0x000001ba,0x000000a2,0x00000064,0x0004003d,0x00000006,0x000001bb,0x000001ba,
|
||||
0x0003003e,0x000001b9,0x000001bb,0x0004003d,0x00000006,0x000001bd,0x00000114,0x0003003e,
|
||||
0x000001bc,0x000001bd,0x00080039,0x0000000c,0x000001be,0x00000012,0x000001b5,0x000001b6,
|
||||
0x000001b9,0x000001bc,0x0004003d,0x0000000c,0x000001bf,0x00000118,0x00050081,0x0000000c,
|
||||
0x000001c0,0x000001bf,0x000001be,0x0003003e,0x00000118,0x000001c0,0x00050041,0x00000007,
|
||||
0x000001c1,0x00000078,0x0000005e,0x0004003d,0x00000006,0x000001c2,0x000001c1,0x00050083,
|
||||
0x00000006,0x000001c3,0x000001c2,0x00000035,0x0003003e,0x000001c4,0x000001c3,0x00050041,
|
||||
0x00000007,0x000001c6,0x00000078,0x00000061,0x0004003d,0x00000006,0x000001c7,0x000001c6,
|
||||
0x0003003e,0x000001c5,0x000001c7,0x00050041,0x00000007,0x000001c9,0x000000a2,0x000000c2,
|
||||
0x0004003d,0x00000006,0x000001ca,0x000001c9,0x0003003e,0x000001c8,0x000001ca,0x0004003d,
|
||||
0x00000006,0x000001cc,0x00000114,0x0003003e,0x000001cb,0x000001cc,0x00080039,0x0000000c,
|
||||
0x000001cd,0x00000012,0x000001c4,0x000001c5,0x000001c8,0x000001cb,0x0004003d,0x0000000c,
|
||||
0x000001ce,0x00000118,0x00050081,0x0000000c,0x000001cf,0x000001ce,0x000001cd,0x0003003e,
|
||||
0x00000118,0x000001cf,0x00050041,0x00000007,0x000001d1,0x00000118,0x00000061,0x0004003d,
|
||||
0x00000006,0x000001d2,0x000001d1,0x00050041,0x00000007,0x000001d3,0x00000118,0x0000005e,
|
||||
0x0004003d,0x00000006,0x000001d4,0x000001d3,0x00050088,0x00000006,0x000001d5,0x000001d2,
|
||||
0x000001d4,0x0003003e,0x000001d0,0x000001d5,0x00050041,0x00000007,0x000001d7,0x0000007d,
|
||||
0x00000061,0x0004003d,0x00000006,0x000001d8,0x000001d7,0x00050041,0x00000007,0x000001d9,
|
||||
0x0000007d,0x00000064,0x0004003d,0x00000006,0x000001da,0x000001d9,0x0007000c,0x00000006,
|
||||
0x000001db,0x00000001,0x00000028,0x000001d8,0x000001da,0x00050041,0x00000007,0x000001dc,
|
||||
0x000000a2,0x0000005e,0x0004003d,0x00000006,0x000001dd,0x000001dc,0x00050041,0x00000007,
|
||||
0x000001de,0x000000a2,0x000000c2,0x0004003d,0x00000006,0x000001df,0x000001de,0x0007000c,
|
||||
0x00000006,0x000001e0,0x00000001,0x00000028,0x000001dd,0x000001df,0x0007000c,0x00000006,
|
||||
0x000001e1,0x00000001,0x00000028,0x000001db,0x000001e0,0x0003003e,0x000001d6,0x000001e1,
|
||||
0x00050041,0x00000007,0x000001e3,0x0000007d,0x00000061,0x0004003d,0x00000006,0x000001e4,
|
||||
0x000001e3,0x00050041,0x00000007,0x000001e5,0x0000007d,0x00000064,0x0004003d,0x00000006,
|
||||
0x000001e6,0x000001e5,0x0007000c,0x00000006,0x000001e7,0x00000001,0x00000025,0x000001e4,
|
||||
0x000001e6,0x00050041,0x00000007,0x000001e8,0x000000a2,0x0000005e,0x0004003d,0x00000006,
|
||||
0x000001e9,0x000001e8,0x00050041,0x00000007,0x000001ea,0x000000a2,0x000000c2,0x0004003d,
|
||||
0x00000006,0x000001eb,0x000001ea,0x0007000c,0x00000006,0x000001ec,0x00000001,0x00000025,
|
||||
0x000001e9,0x000001eb,0x0007000c,0x00000006,0x000001ed,0x00000001,0x00000025,0x000001e7,
|
||||
0x000001ec,0x0003003e,0x000001e2,0x000001ed,0x00050041,0x000001ef,0x000001f0,0x00000048,
|
||||
0x000001ee,0x0004003d,0x00000006,0x000001f1,0x000001f0,0x0004003d,0x00000006,0x000001f2,
|
||||
0x000001d0,0x00050085,0x00000006,0x000001f3,0x000001f1,0x000001f2,0x0004003d,0x00000006,
|
||||
0x000001f4,0x000001e2,0x0004003d,0x00000006,0x000001f5,0x000001d6,0x0008000c,0x00000006,
|
||||
0x000001f6,0x00000001,0x0000002b,0x000001f3,0x000001f4,0x000001f5,0x0003003e,0x000001d0,
|
||||
0x000001f6,0x0004003d,0x00000006,0x000001f8,0x000001d0,0x00050041,0x00000007,0x000001f9,
|
||||
0x00000053,0x000000c2,0x0004003d,0x00000006,0x000001fa,0x000001f9,0x00050083,0x00000006,
|
||||
0x000001fb,0x000001f8,0x000001fa,0x0003003e,0x000001f7,0x000001fb,0x0004003d,0x00000006,
|
||||
0x000001fc,0x000001f7,0x0008000c,0x00000006,0x000001ff,0x00000001,0x0000002b,0x000001fc,
|
||||
0x000001fd,0x000001fe,0x0003003e,0x000001f7,0x000001ff,0x00050041,0x00000007,0x00000200,
|
||||
0x00000053,0x0000005e,0x0004003d,0x00000006,0x00000201,0x00000200,0x0004003d,0x00000006,
|
||||
0x00000202,0x000001f7,0x00050081,0x00000006,0x00000203,0x00000201,0x00000202,0x0008000c,
|
||||
0x00000006,0x00000204,0x00000001,0x0000002b,0x00000203,0x00000034,0x00000035,0x00050041,
|
||||
0x00000007,0x00000205,0x00000053,0x0000005e,0x0003003e,0x00000205,0x00000204,0x00050041,
|
||||
0x00000007,0x00000206,0x00000053,0x00000061,0x0004003d,0x00000006,0x00000207,0x00000206,
|
||||
0x0004003d,0x00000006,0x00000208,0x000001f7,0x00050081,0x00000006,0x00000209,0x00000207,
|
||||
0x00000208,0x0008000c,0x00000006,0x0000020a,0x00000001,0x0000002b,0x00000209,0x00000034,
|
||||
0x00000035,0x00050041,0x00000007,0x0000020b,0x00000053,0x00000061,0x0003003e,0x0000020b,
|
||||
0x0000020a,0x00050041,0x00000007,0x0000020c,0x00000053,0x00000064,0x0004003d,0x00000006,
|
||||
0x0000020d,0x0000020c,0x0004003d,0x00000006,0x0000020e,0x000001f7,0x00050081,0x00000006,
|
||||
0x0000020f,0x0000020d,0x0000020e,0x0008000c,0x00000006,0x00000210,0x00000001,0x0000002b,
|
||||
0x0000020f,0x00000034,0x00000035,0x00050041,0x00000007,0x00000211,0x00000053,0x00000064,
|
||||
0x0003003e,0x00000211,0x00000210,0x000200f9,0x0000009b,0x000200f8,0x0000009b,0x00050041,
|
||||
0x00000007,0x00000212,0x00000053,0x000000c2,0x0003003e,0x00000212,0x00000035,0x0004003d,
|
||||
0x00000043,0x00000215,0x00000053,0x0003003e,0x00000214,0x00000215,0x000100fd,0x00010038,
|
||||
0x00050036,0x00000006,0x0000000a,0x00000000,0x00000008,0x00030037,0x00000007,0x00000009,
|
||||
0x000200f8,0x0000000b,0x0004003b,0x00000007,0x00000014,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000018,0x00000007,0x0004003d,0x00000006,0x00000015,0x00000009,0x00050083,0x00000006,
|
||||
0x00000017,0x00000015,0x00000016,0x0003003e,0x00000014,0x00000017,0x0004003d,0x00000006,
|
||||
0x00000019,0x00000009,0x0004003d,0x00000006,0x0000001a,0x00000014,0x00050085,0x00000006,
|
||||
0x0000001b,0x00000019,0x0000001a,0x0004003d,0x00000006,0x0000001c,0x00000014,0x00050083,
|
||||
0x00000006,0x0000001d,0x0000001b,0x0000001c,0x0003003e,0x00000018,0x0000001d,0x0004003d,
|
||||
0x00000006,0x0000001e,0x00000014,0x0004003d,0x00000006,0x0000001f,0x00000014,0x00050085,
|
||||
0x00000006,0x00000020,0x0000001f,0x0000001e,0x0003003e,0x00000014,0x00000020,0x0004003d,
|
||||
0x00000006,0x00000021,0x00000018,0x0004003d,0x00000006,0x00000022,0x00000014,0x00050085,
|
||||
0x00000006,0x00000023,0x00000021,0x00000022,0x000200fe,0x00000023,0x00010038,0x00050036,
|
||||
0x0000000c,0x00000012,0x00000000,0x0000000d,0x00030037,0x00000007,0x0000000e,0x00030037,
|
||||
0x00000007,0x0000000f,0x00030037,0x00000007,0x00000010,0x00030037,0x00000007,0x00000011,
|
||||
0x000200f8,0x00000013,0x0004003b,0x00000007,0x00000026,0x00000007,0x0004003b,0x00000007,
|
||||
0x00000038,0x00000007,0x0004003b,0x00000007,0x00000039,0x00000007,0x0004003d,0x00000006,
|
||||
0x00000027,0x0000000e,0x0004003d,0x00000006,0x00000028,0x0000000e,0x00050085,0x00000006,
|
||||
0x00000029,0x00000027,0x00000028,0x0004003d,0x00000006,0x0000002a,0x0000000f,0x0004003d,
|
||||
0x00000006,0x0000002b,0x0000000f,0x00050085,0x00000006,0x0000002c,0x0000002a,0x0000002b,
|
||||
0x00050081,0x00000006,0x0000002d,0x00000029,0x0000002c,0x00050085,0x00000006,0x0000002f,
|
||||
0x0000002d,0x0000002e,0x0004003d,0x00000006,0x00000030,0x00000010,0x0006000c,0x00000006,
|
||||
0x00000031,0x00000001,0x00000004,0x00000030,0x0004003d,0x00000006,0x00000032,0x00000011,
|
||||
0x00050085,0x00000006,0x00000033,0x00000031,0x00000032,0x0008000c,0x00000006,0x00000036,
|
||||
0x00000001,0x0000002b,0x00000033,0x00000034,0x00000035,0x00050081,0x00000006,0x00000037,
|
||||
0x0000002f,0x00000036,0x0003003e,0x00000026,0x00000037,0x0004003d,0x00000006,0x0000003a,
|
||||
0x00000026,0x0003003e,0x00000039,0x0000003a,0x00050039,0x00000006,0x0000003b,0x0000000a,
|
||||
0x00000039,0x0003003e,0x00000038,0x0000003b,0x0004003d,0x00000006,0x0000003c,0x00000038,
|
||||
0x0004003d,0x00000006,0x0000003d,0x00000038,0x0004003d,0x00000006,0x0000003e,0x00000010,
|
||||
0x00050085,0x00000006,0x0000003f,0x0000003d,0x0000003e,0x00050050,0x0000000c,0x00000040,
|
||||
0x0000003c,0x0000003f,0x000200fe,0x00000040,0x00010038
|
||||
};
|
||||
@@ -23,25 +23,15 @@
|
||||
// - reuses window.vert (full-screen quad over the destination rect)
|
||||
// =============================================================================
|
||||
|
||||
// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and
|
||||
// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as in Qualcomm's
|
||||
// reference; positions and texture coordinates stay highp.
|
||||
#ifdef DD_HALF
|
||||
precision mediump float;
|
||||
#define BL_MP mediump
|
||||
#else
|
||||
#define BL_MP
|
||||
#endif
|
||||
|
||||
layout(binding = 0) uniform BL_MP sampler2D ps0;
|
||||
layout(binding = 0) uniform sampler2D ps0;
|
||||
|
||||
layout(push_constant) uniform PC {
|
||||
highp vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0)
|
||||
highp vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels
|
||||
vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0)
|
||||
vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels
|
||||
float EdgeSharpness; // driven by the "Sharpness" slider
|
||||
} pc;
|
||||
|
||||
layout(location = 0) in highp vec2 fragTexCoord;
|
||||
layout(location = 0) in vec2 fragTexCoord;
|
||||
layout(location = 0) out vec4 out_Target0;
|
||||
|
||||
const float EdgeThreshold = 8.0 / 255.0;
|
||||
@@ -70,27 +60,20 @@ vec2 edgeDirection(vec4 left, vec4 right) {
|
||||
vec2 delta;
|
||||
delta.x = RxLz + RwLy;
|
||||
delta.y = RxLz - RwLy;
|
||||
#ifdef DD_HALF
|
||||
// 3.07574e-05 is below the smallest normal 16-bit float (6.1e-05) and is
|
||||
// flushed to 0 where denormals are not kept: 0 * inf on a flat row. Highp here.
|
||||
highp vec2 dh = delta;
|
||||
float lengthInv = inversesqrt((dh.x * dh.x + 3.075740e-05) + (dh.y * dh.y));
|
||||
#else
|
||||
float lengthInv = inversesqrt((delta.x * delta.x + 3.075740e-05) + (delta.y * delta.y));
|
||||
#endif
|
||||
return delta * lengthInv;
|
||||
}
|
||||
|
||||
void main() {
|
||||
highp vec4 ViewportInfo = pc.ViewportInfo;
|
||||
highp vec2 uv = fragTexCoord;
|
||||
vec4 ViewportInfo = pc.ViewportInfo;
|
||||
vec2 uv = fragTexCoord;
|
||||
|
||||
vec4 color;
|
||||
color.xyz = textureLod(ps0, uv, 0.0).xyz;
|
||||
|
||||
highp vec2 imgCoord = ((uv * ViewportInfo.zw) + vec2(-0.5, 0.5));
|
||||
highp vec2 imgCoordPixel = floor(imgCoord);
|
||||
highp vec2 coord = (imgCoordPixel * ViewportInfo.xy);
|
||||
vec2 imgCoord = ((uv * ViewportInfo.zw) + vec2(-0.5, 0.5));
|
||||
vec2 imgCoordPixel = floor(imgCoord);
|
||||
vec2 coord = (imgCoordPixel * ViewportInfo.xy);
|
||||
vec2 pl = (imgCoord + (-imgCoordPixel));
|
||||
vec4 left = textureGather(ps0, coord, 1);
|
||||
|
||||
@@ -113,14 +96,7 @@ void main() {
|
||||
+ (((abs(right.x) + abs(right.y)) + abs(right.z)) + abs(right.w)))
|
||||
+ (((abs(upDown.x) + abs(upDown.y)) + abs(upDown.z)) + abs(upDown.w)));
|
||||
float sumMean = 1.014185e+01 / sum;
|
||||
#ifdef DD_HALF
|
||||
// (10.14 / sum)^2 passes 65504 (16-bit max) once sum < ~0.04, and c * c * inf
|
||||
// is NaN for c == 0. Capped: c * c * cap still saturates the clamp below for
|
||||
// any c >= 1/255.
|
||||
float std = min(sumMean * sumMean, 65504.0);
|
||||
#else
|
||||
float std = sumMean * sumMean;
|
||||
#endif
|
||||
|
||||
vec3 data = vec3(std, edgeDirection(left, right));
|
||||
|
||||
|
||||
@@ -1,612 +0,0 @@
|
||||
// 1116.2.0
|
||||
#pragma once
|
||||
const uint32_t sgsr_quality_half_code[] = {
|
||||
0x07230203,0x00010000,0x0008000b,0x0000026d,0x00000000,0x00020011,0x00000001,0x0006000b,
|
||||
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
||||
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000009e,0x0000026b,0x00030010,
|
||||
0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,
|
||||
0x00000000,0x00070005,0x0000000a,0x74736166,0x636e614c,0x32736f7a,0x3b316628,0x00000000,
|
||||
0x00030005,0x00000009,0x00000078,0x00080005,0x00000014,0x67696577,0x28597468,0x663b3166,
|
||||
0x31663b31,0x3366763b,0x0000003b,0x00030005,0x00000010,0x00007864,0x00030005,0x00000011,
|
||||
0x00007964,0x00030005,0x00000012,0x00000063,0x00040005,0x00000013,0x61746164,0x00000000,
|
||||
0x00080005,0x0000001b,0x65676465,0x65726944,0x6f697463,0x6676286e,0x66763b34,0x00003b34,
|
||||
0x00040005,0x00000019,0x7466656c,0x00000000,0x00040005,0x0000001a,0x68676972,0x00000074,
|
||||
0x00030005,0x0000001d,0x00004177,0x00030005,0x00000021,0x00004277,0x00030005,0x0000002f,
|
||||
0x00647473,0x00030005,0x00000035,0x00726964,0x00040005,0x00000038,0x65676465,0x00736944,
|
||||
0x00030005,0x00000043,0x00000078,0x00030005,0x0000005b,0x00000077,0x00040005,0x0000005c,
|
||||
0x61726170,0x0000006d,0x00040005,0x00000066,0x7a4c7852,0x00000000,0x00040005,0x0000006d,
|
||||
0x794c7752,0x00000000,0x00040005,0x00000074,0x746c6564,0x00000061,0x00030005,0x0000007d,
|
||||
0x00006864,0x00050005,0x0000007f,0x676e656c,0x6e496874,0x00000076,0x00060005,0x00000093,
|
||||
0x77656956,0x74726f70,0x6f666e49,0x00000000,0x00030005,0x00000094,0x00004350,0x00040006,
|
||||
0x00000094,0x00000000,0x0063646e,0x00070006,0x00000094,0x00000001,0x77656956,0x74726f70,
|
||||
0x6f666e49,0x00000000,0x00070006,0x00000094,0x00000002,0x65676445,0x72616853,0x73656e70,
|
||||
0x00000073,0x00030005,0x00000096,0x00006370,0x00030005,0x0000009c,0x00007675,0x00060005,
|
||||
0x0000009e,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00040005,0x000000a0,0x6f6c6f63,
|
||||
0x00000072,0x00030005,0x000000a4,0x00307370,0x00050005,0x000000af,0x43676d69,0x64726f6f,
|
||||
0x00000000,0x00060005,0x000000b8,0x43676d69,0x64726f6f,0x65786950,0x0000006c,0x00040005,
|
||||
0x000000bb,0x726f6f63,0x00000064,0x00030005,0x000000c0,0x00006c70,0x00040005,0x000000c5,
|
||||
0x7466656c,0x00000000,0x00050005,0x000000c9,0x65676465,0x65746f56,0x00000000,0x00040005,
|
||||
0x000000ea,0x68676972,0x00000074,0x00040005,0x000000f2,0x6f447075,0x00006e77,0x00040005,
|
||||
0x0000010c,0x6e61656d,0x00000000,0x00030005,0x0000012b,0x006d7573,0x00040005,0x0000015b,
|
||||
0x4d6d7573,0x006e6165,0x00030005,0x0000015f,0x00647473,0x00040005,0x00000165,0x61746164,
|
||||
0x00000000,0x00040005,0x00000167,0x61726170,0x0000006d,0x00040005,0x00000169,0x61726170,
|
||||
0x0000006d,0x00030005,0x0000016f,0x00595761,0x00040005,0x00000173,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000176,0x61726170,0x0000006d,0x00040005,0x00000177,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000017a,0x61726170,0x0000006d,0x00040005,0x00000183,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000184,0x61726170,0x0000006d,0x00040005,0x00000185,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000188,0x61726170,0x0000006d,0x00040005,0x00000194,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000195,0x61726170,0x0000006d,0x00040005,0x00000196,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000199,0x61726170,0x0000006d,0x00040005,0x000001a1,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001a4,0x61726170,0x0000006d,0x00040005,0x000001a5,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001a8,0x61726170,0x0000006d,0x00040005,0x000001b3,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001b4,0x61726170,0x0000006d,0x00040005,0x000001b5,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001b8,0x61726170,0x0000006d,0x00040005,0x000001c0,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001c3,0x61726170,0x0000006d,0x00040005,0x000001c4,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001c7,0x61726170,0x0000006d,0x00040005,0x000001cc,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001cf,0x61726170,0x0000006d,0x00040005,0x000001d2,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001d5,0x61726170,0x0000006d,0x00040005,0x000001dd,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001de,0x61726170,0x0000006d,0x00040005,0x000001e1,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001e4,0x61726170,0x0000006d,0x00040005,0x000001ef,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001f0,0x61726170,0x0000006d,0x00040005,0x000001f1,0x61726170,0x0000006d,
|
||||
0x00040005,0x000001f4,0x61726170,0x0000006d,0x00040005,0x000001ff,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000200,0x61726170,0x0000006d,0x00040005,0x00000201,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000204,0x61726170,0x0000006d,0x00040005,0x0000020c,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000020d,0x61726170,0x0000006d,0x00040005,0x00000210,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000213,0x61726170,0x0000006d,0x00040005,0x0000021b,0x61726170,0x0000006d,
|
||||
0x00040005,0x0000021c,0x61726170,0x0000006d,0x00040005,0x0000021f,0x61726170,0x0000006d,
|
||||
0x00040005,0x00000222,0x61726170,0x0000006d,0x00040005,0x00000227,0x616e6966,0x0000596c,
|
||||
0x00040005,0x0000022d,0x5978616d,0x00000000,0x00040005,0x00000239,0x596e696d,0x00000000,
|
||||
0x00040005,0x0000024e,0x746c6564,0x00005961,0x00050005,0x0000026b,0x5f74756f,0x67726154,
|
||||
0x00307465,0x00030047,0x00000009,0x00000000,0x00030047,0x0000000a,0x00000000,0x00030047,
|
||||
0x00000010,0x00000000,0x00030047,0x00000011,0x00000000,0x00030047,0x00000012,0x00000000,
|
||||
0x00030047,0x00000013,0x00000000,0x00030047,0x00000014,0x00000000,0x00030047,0x00000019,
|
||||
0x00000000,0x00030047,0x0000001a,0x00000000,0x00030047,0x0000001b,0x00000000,0x00030047,
|
||||
0x0000001d,0x00000000,0x00030047,0x0000001e,0x00000000,0x00030047,0x00000020,0x00000000,
|
||||
0x00030047,0x00000021,0x00000000,0x00030047,0x00000022,0x00000000,0x00030047,0x00000023,
|
||||
0x00000000,0x00030047,0x00000024,0x00000000,0x00030047,0x00000025,0x00000000,0x00030047,
|
||||
0x00000026,0x00000000,0x00030047,0x00000027,0x00000000,0x00030047,0x00000028,0x00000000,
|
||||
0x00030047,0x00000029,0x00000000,0x00030047,0x0000002a,0x00000000,0x00030047,0x0000002b,
|
||||
0x00000000,0x00030047,0x0000002c,0x00000000,0x00030047,0x0000002f,0x00000000,0x00030047,
|
||||
0x00000033,0x00000000,0x00030047,0x00000035,0x00000000,0x00030047,0x00000036,0x00000000,
|
||||
0x00030047,0x00000037,0x00000000,0x00030047,0x00000038,0x00000000,0x00030047,0x00000039,
|
||||
0x00000000,0x00030047,0x0000003c,0x00000000,0x00030047,0x0000003d,0x00000000,0x00030047,
|
||||
0x0000003e,0x00000000,0x00030047,0x00000040,0x00000000,0x00030047,0x00000041,0x00000000,
|
||||
0x00030047,0x00000042,0x00000000,0x00030047,0x00000043,0x00000000,0x00030047,0x00000044,
|
||||
0x00000000,0x00030047,0x00000045,0x00000000,0x00030047,0x00000046,0x00000000,0x00030047,
|
||||
0x00000047,0x00000000,0x00030047,0x00000048,0x00000000,0x00030047,0x00000049,0x00000000,
|
||||
0x00030047,0x0000004a,0x00000000,0x00030047,0x0000004b,0x00000000,0x00030047,0x0000004c,
|
||||
0x00000000,0x00030047,0x0000004d,0x00000000,0x00030047,0x0000004e,0x00000000,0x00030047,
|
||||
0x0000004f,0x00000000,0x00030047,0x00000050,0x00000000,0x00030047,0x00000051,0x00000000,
|
||||
0x00030047,0x00000052,0x00000000,0x00030047,0x00000055,0x00000000,0x00030047,0x00000057,
|
||||
0x00000000,0x00030047,0x00000058,0x00000000,0x00030047,0x00000059,0x00000000,0x00030047,
|
||||
0x0000005a,0x00000000,0x00030047,0x0000005b,0x00000000,0x00030047,0x0000005c,0x00000000,
|
||||
0x00030047,0x0000005d,0x00000000,0x00030047,0x0000005e,0x00000000,0x00030047,0x0000005f,
|
||||
0x00000000,0x00030047,0x00000060,0x00000000,0x00030047,0x00000061,0x00000000,0x00030047,
|
||||
0x00000062,0x00000000,0x00030047,0x00000063,0x00000000,0x00030047,0x00000066,0x00000000,
|
||||
0x00030047,0x00000068,0x00000000,0x00030047,0x0000006b,0x00000000,0x00030047,0x0000006c,
|
||||
0x00000000,0x00030047,0x0000006d,0x00000000,0x00030047,0x00000070,0x00000000,0x00030047,
|
||||
0x00000072,0x00000000,0x00030047,0x00000073,0x00000000,0x00030047,0x00000074,0x00000000,
|
||||
0x00030047,0x00000075,0x00000000,0x00030047,0x00000076,0x00000000,0x00030047,0x00000077,
|
||||
0x00000000,0x00030047,0x00000079,0x00000000,0x00030047,0x0000007a,0x00000000,0x00030047,
|
||||
0x0000007b,0x00000000,0x00030047,0x0000007e,0x00000000,0x00030047,0x0000007f,0x00000000,
|
||||
0x00030047,0x0000008e,0x00000000,0x00030047,0x0000008f,0x00000000,0x00030047,0x00000090,
|
||||
0x00000000,0x00030047,0x00000094,0x00000002,0x00050048,0x00000094,0x00000000,0x00000023,
|
||||
0x00000000,0x00050048,0x00000094,0x00000001,0x00000023,0x00000010,0x00040048,0x00000094,
|
||||
0x00000002,0x00000000,0x00050048,0x00000094,0x00000002,0x00000023,0x00000020,0x00040047,
|
||||
0x0000009e,0x0000001e,0x00000000,0x00030047,0x000000a0,0x00000000,0x00030047,0x000000a4,
|
||||
0x00000000,0x00040047,0x000000a4,0x00000021,0x00000000,0x00040047,0x000000a4,0x00000022,
|
||||
0x00000000,0x00030047,0x000000a5,0x00000000,0x00030047,0x000000a7,0x00000000,0x00030047,
|
||||
0x000000a8,0x00000000,0x00030047,0x000000c0,0x00000000,0x00030047,0x000000c5,0x00000000,
|
||||
0x00030047,0x000000c6,0x00000000,0x00030047,0x000000c8,0x00000000,0x00030047,0x000000c9,
|
||||
0x00000000,0x00030047,0x000000cb,0x00000000,0x00030047,0x000000cd,0x00000000,0x00030047,
|
||||
0x000000ce,0x00000000,0x00030047,0x000000cf,0x00000000,0x00030047,0x000000d1,0x00000000,
|
||||
0x00030047,0x000000d3,0x00000000,0x00030047,0x000000d4,0x00000000,0x00030047,0x000000d5,
|
||||
0x00000000,0x00030047,0x000000d6,0x00000000,0x00030047,0x000000d8,0x00000000,0x00030047,
|
||||
0x000000da,0x00000000,0x00030047,0x000000db,0x00000000,0x00030047,0x000000dc,0x00000000,
|
||||
0x00030047,0x000000dd,0x00000000,0x00030047,0x000000de,0x00000000,0x00030047,0x000000df,
|
||||
0x00000000,0x00030047,0x000000ea,0x00000000,0x00030047,0x000000eb,0x00000000,0x00030047,
|
||||
0x000000f1,0x00000000,0x00030047,0x000000f2,0x00000000,0x00030047,0x000000f3,0x00000000,
|
||||
0x00030047,0x000000fa,0x00000000,0x00030047,0x000000fb,0x00000000,0x00030047,0x00000100,
|
||||
0x00000000,0x00030047,0x00000106,0x00000000,0x00030047,0x00000107,0x00000000,0x00030047,
|
||||
0x0000010c,0x00000000,0x00030047,0x0000010e,0x00000000,0x00030047,0x00000110,0x00000000,
|
||||
0x00030047,0x00000111,0x00000000,0x00030047,0x00000113,0x00000000,0x00030047,0x00000114,
|
||||
0x00000000,0x00030047,0x00000116,0x00000000,0x00030047,0x00000117,0x00000000,0x00030047,
|
||||
0x00000119,0x00000000,0x00030047,0x0000011a,0x00000000,0x00030047,0x0000011b,0x00000000,
|
||||
0x00030047,0x0000011c,0x00000000,0x00030047,0x0000011d,0x00000000,0x00030047,0x0000011e,
|
||||
0x00000000,0x00030047,0x0000011f,0x00000000,0x00030047,0x00000120,0x00000000,0x00030047,
|
||||
0x00000121,0x00000000,0x00030047,0x00000122,0x00000000,0x00030047,0x00000123,0x00000000,
|
||||
0x00030047,0x00000124,0x00000000,0x00030047,0x00000125,0x00000000,0x00030047,0x00000127,
|
||||
0x00000000,0x00030047,0x00000128,0x00000000,0x00030047,0x00000129,0x00000000,0x00030047,
|
||||
0x0000012b,0x00000000,0x00030047,0x0000012d,0x00000000,0x00030047,0x0000012e,0x00000000,
|
||||
0x00030047,0x00000130,0x00000000,0x00030047,0x00000131,0x00000000,0x00030047,0x00000132,
|
||||
0x00000000,0x00030047,0x00000134,0x00000000,0x00030047,0x00000135,0x00000000,0x00030047,
|
||||
0x00000136,0x00000000,0x00030047,0x00000138,0x00000000,0x00030047,0x00000139,0x00000000,
|
||||
0x00030047,0x0000013a,0x00000000,0x00030047,0x0000013c,0x00000000,0x00030047,0x0000013d,
|
||||
0x00000000,0x00030047,0x0000013f,0x00000000,0x00030047,0x00000140,0x00000000,0x00030047,
|
||||
0x00000141,0x00000000,0x00030047,0x00000143,0x00000000,0x00030047,0x00000144,0x00000000,
|
||||
0x00030047,0x00000145,0x00000000,0x00030047,0x00000147,0x00000000,0x00030047,0x00000148,
|
||||
0x00000000,0x00030047,0x00000149,0x00000000,0x00030047,0x0000014a,0x00000000,0x00030047,
|
||||
0x0000014c,0x00000000,0x00030047,0x0000014d,0x00000000,0x00030047,0x0000014f,0x00000000,
|
||||
0x00030047,0x00000150,0x00000000,0x00030047,0x00000151,0x00000000,0x00030047,0x00000153,
|
||||
0x00000000,0x00030047,0x00000154,0x00000000,0x00030047,0x00000155,0x00000000,0x00030047,
|
||||
0x00000157,0x00000000,0x00030047,0x00000158,0x00000000,0x00030047,0x00000159,0x00000000,
|
||||
0x00030047,0x0000015a,0x00000000,0x00030047,0x0000015b,0x00000000,0x00030047,0x0000015d,
|
||||
0x00000000,0x00030047,0x0000015e,0x00000000,0x00030047,0x0000015f,0x00000000,0x00030047,
|
||||
0x00000160,0x00000000,0x00030047,0x00000161,0x00000000,0x00030047,0x00000162,0x00000000,
|
||||
0x00030047,0x00000164,0x00000000,0x00030047,0x00000165,0x00000000,0x00030047,0x00000166,
|
||||
0x00000000,0x00030047,0x00000167,0x00000000,0x00030047,0x00000168,0x00000000,0x00030047,
|
||||
0x00000169,0x00000000,0x00030047,0x0000016a,0x00000000,0x00030047,0x0000016b,0x00000000,
|
||||
0x00030047,0x0000016c,0x00000000,0x00030047,0x0000016d,0x00000000,0x00030047,0x0000016e,
|
||||
0x00000000,0x00030047,0x0000016f,0x00000000,0x00030047,0x00000171,0x00000000,0x00030047,
|
||||
0x00000172,0x00000000,0x00030047,0x00000173,0x00000000,0x00030047,0x00000175,0x00000000,
|
||||
0x00030047,0x00000176,0x00000000,0x00030047,0x00000177,0x00000000,0x00030047,0x00000179,
|
||||
0x00000000,0x00030047,0x0000017a,0x00000000,0x00030047,0x0000017b,0x00000000,0x00030047,
|
||||
0x0000017c,0x00000000,0x00030047,0x0000017e,0x00000000,0x00030047,0x0000017f,0x00000000,
|
||||
0x00030047,0x00000181,0x00000000,0x00030047,0x00000182,0x00000000,0x00030047,0x00000183,
|
||||
0x00000000,0x00030047,0x00000184,0x00000000,0x00030047,0x00000185,0x00000000,0x00030047,
|
||||
0x00000187,0x00000000,0x00030047,0x00000188,0x00000000,0x00030047,0x00000189,0x00000000,
|
||||
0x00030047,0x0000018a,0x00000000,0x00030047,0x0000018b,0x00000000,0x00030047,0x0000018c,
|
||||
0x00000000,0x00030047,0x0000018e,0x00000000,0x00030047,0x0000018f,0x00000000,0x00030047,
|
||||
0x00000191,0x00000000,0x00030047,0x00000193,0x00000000,0x00030047,0x00000194,0x00000000,
|
||||
0x00030047,0x00000195,0x00000000,0x00030047,0x00000196,0x00000000,0x00030047,0x00000198,
|
||||
0x00000000,0x00030047,0x00000199,0x00000000,0x00030047,0x0000019a,0x00000000,0x00030047,
|
||||
0x0000019b,0x00000000,0x00030047,0x0000019c,0x00000000,0x00030047,0x0000019d,0x00000000,
|
||||
0x00030047,0x0000019f,0x00000000,0x00030047,0x000001a0,0x00000000,0x00030047,0x000001a1,
|
||||
0x00000000,0x00030047,0x000001a3,0x00000000,0x00030047,0x000001a4,0x00000000,0x00030047,
|
||||
0x000001a5,0x00000000,0x00030047,0x000001a7,0x00000000,0x00030047,0x000001a8,0x00000000,
|
||||
0x00030047,0x000001a9,0x00000000,0x00030047,0x000001aa,0x00000000,0x00030047,0x000001ab,
|
||||
0x00000000,0x00030047,0x000001ac,0x00000000,0x00030047,0x000001ae,0x00000000,0x00030047,
|
||||
0x000001af,0x00000000,0x00030047,0x000001b1,0x00000000,0x00030047,0x000001b2,0x00000000,
|
||||
0x00030047,0x000001b3,0x00000000,0x00030047,0x000001b4,0x00000000,0x00030047,0x000001b5,
|
||||
0x00000000,0x00030047,0x000001b7,0x00000000,0x00030047,0x000001b8,0x00000000,0x00030047,
|
||||
0x000001b9,0x00000000,0x00030047,0x000001ba,0x00000000,0x00030047,0x000001bb,0x00000000,
|
||||
0x00030047,0x000001bc,0x00000000,0x00030047,0x000001be,0x00000000,0x00030047,0x000001bf,
|
||||
0x00000000,0x00030047,0x000001c0,0x00000000,0x00030047,0x000001c2,0x00000000,0x00030047,
|
||||
0x000001c3,0x00000000,0x00030047,0x000001c4,0x00000000,0x00030047,0x000001c6,0x00000000,
|
||||
0x00030047,0x000001c7,0x00000000,0x00030047,0x000001c8,0x00000000,0x00030047,0x000001c9,
|
||||
0x00000000,0x00030047,0x000001ca,0x00000000,0x00030047,0x000001cb,0x00000000,0x00030047,
|
||||
0x000001cc,0x00000000,0x00030047,0x000001ce,0x00000000,0x00030047,0x000001cf,0x00000000,
|
||||
0x00030047,0x000001d1,0x00000000,0x00030047,0x000001d2,0x00000000,0x00030047,0x000001d4,
|
||||
0x00000000,0x00030047,0x000001d5,0x00000000,0x00030047,0x000001d6,0x00000000,0x00030047,
|
||||
0x000001d7,0x00000000,0x00030047,0x000001d8,0x00000000,0x00030047,0x000001d9,0x00000000,
|
||||
0x00030047,0x000001db,0x00000000,0x00030047,0x000001dc,0x00000000,0x00030047,0x000001dd,
|
||||
0x00000000,0x00030047,0x000001de,0x00000000,0x00030047,0x000001e0,0x00000000,0x00030047,
|
||||
0x000001e1,0x00000000,0x00030047,0x000001e3,0x00000000,0x00030047,0x000001e4,0x00000000,
|
||||
0x00030047,0x000001e5,0x00000000,0x00030047,0x000001e6,0x00000000,0x00030047,0x000001e7,
|
||||
0x00000000,0x00030047,0x000001e8,0x00000000,0x00030047,0x000001ea,0x00000000,0x00030047,
|
||||
0x000001eb,0x00000000,0x00030047,0x000001ed,0x00000000,0x00030047,0x000001ee,0x00000000,
|
||||
0x00030047,0x000001ef,0x00000000,0x00030047,0x000001f0,0x00000000,0x00030047,0x000001f1,
|
||||
0x00000000,0x00030047,0x000001f3,0x00000000,0x00030047,0x000001f4,0x00000000,0x00030047,
|
||||
0x000001f5,0x00000000,0x00030047,0x000001f6,0x00000000,0x00030047,0x000001f7,0x00000000,
|
||||
0x00030047,0x000001f8,0x00000000,0x00030047,0x000001fa,0x00000000,0x00030047,0x000001fb,
|
||||
0x00000000,0x00030047,0x000001fd,0x00000000,0x00030047,0x000001fe,0x00000000,0x00030047,
|
||||
0x000001ff,0x00000000,0x00030047,0x00000200,0x00000000,0x00030047,0x00000201,0x00000000,
|
||||
0x00030047,0x00000203,0x00000000,0x00030047,0x00000204,0x00000000,0x00030047,0x00000205,
|
||||
0x00000000,0x00030047,0x00000206,0x00000000,0x00030047,0x00000207,0x00000000,0x00030047,
|
||||
0x00000208,0x00000000,0x00030047,0x0000020a,0x00000000,0x00030047,0x0000020b,0x00000000,
|
||||
0x00030047,0x0000020c,0x00000000,0x00030047,0x0000020d,0x00000000,0x00030047,0x0000020f,
|
||||
0x00000000,0x00030047,0x00000210,0x00000000,0x00030047,0x00000212,0x00000000,0x00030047,
|
||||
0x00000213,0x00000000,0x00030047,0x00000214,0x00000000,0x00030047,0x00000215,0x00000000,
|
||||
0x00030047,0x00000216,0x00000000,0x00030047,0x00000217,0x00000000,0x00030047,0x00000219,
|
||||
0x00000000,0x00030047,0x0000021a,0x00000000,0x00030047,0x0000021b,0x00000000,0x00030047,
|
||||
0x0000021c,0x00000000,0x00030047,0x0000021e,0x00000000,0x00030047,0x0000021f,0x00000000,
|
||||
0x00030047,0x00000221,0x00000000,0x00030047,0x00000222,0x00000000,0x00030047,0x00000223,
|
||||
0x00000000,0x00030047,0x00000224,0x00000000,0x00030047,0x00000225,0x00000000,0x00030047,
|
||||
0x00000226,0x00000000,0x00030047,0x00000227,0x00000000,0x00030047,0x00000229,0x00000000,
|
||||
0x00030047,0x0000022b,0x00000000,0x00030047,0x0000022c,0x00000000,0x00030047,0x0000022d,
|
||||
0x00000000,0x00030047,0x0000022f,0x00000000,0x00030047,0x00000231,0x00000000,0x00030047,
|
||||
0x00000232,0x00000000,0x00030047,0x00000234,0x00000000,0x00030047,0x00000236,0x00000000,
|
||||
0x00030047,0x00000237,0x00000000,0x00030047,0x00000238,0x00000000,0x00030047,0x00000239,
|
||||
0x00000000,0x00030047,0x0000023b,0x00000000,0x00030047,0x0000023d,0x00000000,0x00030047,
|
||||
0x0000023e,0x00000000,0x00030047,0x00000240,0x00000000,0x00030047,0x00000242,0x00000000,
|
||||
0x00030047,0x00000243,0x00000000,0x00030047,0x00000244,0x00000000,0x00030047,0x00000248,
|
||||
0x00000000,0x00030047,0x00000249,0x00000000,0x00030047,0x0000024a,0x00000000,0x00030047,
|
||||
0x0000024b,0x00000000,0x00030047,0x0000024c,0x00000000,0x00030047,0x0000024d,0x00000000,
|
||||
0x00030047,0x0000024e,0x00000000,0x00030047,0x0000024f,0x00000000,0x00030047,0x00000251,
|
||||
0x00000000,0x00030047,0x00000252,0x00000000,0x00030047,0x00000253,0x00000000,0x00030047,
|
||||
0x00000256,0x00000000,0x00030047,0x00000258,0x00000000,0x00030047,0x00000259,0x00000000,
|
||||
0x00030047,0x0000025a,0x00000000,0x00030047,0x0000025b,0x00000000,0x00030047,0x0000025e,
|
||||
0x00000000,0x00030047,0x0000025f,0x00000000,0x00030047,0x00000260,0x00000000,0x00030047,
|
||||
0x00000261,0x00000000,0x00030047,0x00000264,0x00000000,0x00030047,0x00000265,0x00000000,
|
||||
0x00030047,0x00000266,0x00000000,0x00030047,0x00000267,0x00000000,0x00030047,0x0000026b,
|
||||
0x00000000,0x00040047,0x0000026b,0x0000001e,0x00000000,0x00030047,0x0000026c,0x00000000,
|
||||
0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,
|
||||
0x00040020,0x00000007,0x00000007,0x00000006,0x00040021,0x00000008,0x00000006,0x00000007,
|
||||
0x00040017,0x0000000c,0x00000006,0x00000003,0x00040020,0x0000000d,0x00000007,0x0000000c,
|
||||
0x00040017,0x0000000e,0x00000006,0x00000002,0x00070021,0x0000000f,0x0000000e,0x00000007,
|
||||
0x00000007,0x00000007,0x0000000d,0x00040017,0x00000016,0x00000006,0x00000004,0x00040020,
|
||||
0x00000017,0x00000007,0x00000016,0x00050021,0x00000018,0x0000000e,0x00000017,0x00000017,
|
||||
0x0004002b,0x00000006,0x0000001f,0x40800000,0x00040015,0x00000030,0x00000020,0x00000000,
|
||||
0x0004002b,0x00000030,0x00000031,0x00000000,0x00040020,0x00000034,0x00000007,0x0000000e,
|
||||
0x0004002b,0x00000030,0x0000003a,0x00000001,0x0004002b,0x00000006,0x00000053,0x00000000,
|
||||
0x0004002b,0x00000006,0x00000054,0x3f800000,0x0004002b,0x00000006,0x00000056,0x3f333333,
|
||||
0x0004002b,0x00000030,0x00000069,0x00000002,0x0004002b,0x00000030,0x0000006e,0x00000003,
|
||||
0x0004002b,0x00000006,0x00000085,0x38010182,0x0005001e,0x00000094,0x00000016,0x00000016,
|
||||
0x00000006,0x00040020,0x00000095,0x00000009,0x00000094,0x0004003b,0x00000095,0x00000096,
|
||||
0x00000009,0x00040015,0x00000097,0x00000020,0x00000001,0x0004002b,0x00000097,0x00000098,
|
||||
0x00000001,0x00040020,0x00000099,0x00000009,0x00000016,0x00040020,0x0000009d,0x00000001,
|
||||
0x0000000e,0x0004003b,0x0000009d,0x0000009e,0x00000001,0x00090019,0x000000a1,0x00000006,
|
||||
0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x000000a2,
|
||||
0x000000a1,0x00040020,0x000000a3,0x00000000,0x000000a2,0x0004003b,0x000000a3,0x000000a4,
|
||||
0x00000000,0x0004002b,0x00000006,0x000000b4,0xbf000000,0x0004002b,0x00000006,0x000000b5,
|
||||
0x3f000000,0x0005002c,0x0000000e,0x000000b6,0x000000b4,0x000000b5,0x0004002b,0x00000006,
|
||||
0x000000df,0x3d008081,0x00020014,0x000000e0,0x0004002b,0x00000006,0x00000118,0x3e800000,
|
||||
0x0004002b,0x00000006,0x0000015c,0x41224505,0x0004002b,0x00000006,0x00000163,0x477fe000,
|
||||
0x0004002b,0x00000006,0x00000192,0x40000000,0x0004002b,0x00000097,0x00000245,0x00000002,
|
||||
0x00040020,0x00000246,0x00000009,0x00000006,0x0004002b,0x00000006,0x00000254,0xbdb8b8b9,
|
||||
0x0004002b,0x00000006,0x00000255,0x3db8b8b9,0x00040020,0x0000026a,0x00000003,0x00000016,
|
||||
0x0004003b,0x0000026a,0x0000026b,0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,
|
||||
0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000017,0x00000093,0x00000007,0x0004003b,
|
||||
0x00000034,0x0000009c,0x00000007,0x0004003b,0x00000017,0x000000a0,0x00000007,0x0004003b,
|
||||
0x00000034,0x000000af,0x00000007,0x0004003b,0x00000034,0x000000b8,0x00000007,0x0004003b,
|
||||
0x00000034,0x000000bb,0x00000007,0x0004003b,0x00000034,0x000000c0,0x00000007,0x0004003b,
|
||||
0x00000017,0x000000c5,0x00000007,0x0004003b,0x00000007,0x000000c9,0x00000007,0x0004003b,
|
||||
0x00000017,0x000000ea,0x00000007,0x0004003b,0x00000017,0x000000f2,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000010c,0x00000007,0x0004003b,0x00000007,0x0000012b,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000015b,0x00000007,0x0004003b,0x00000007,0x0000015f,0x00000007,0x0004003b,
|
||||
0x0000000d,0x00000165,0x00000007,0x0004003b,0x00000017,0x00000167,0x00000007,0x0004003b,
|
||||
0x00000017,0x00000169,0x00000007,0x0004003b,0x00000034,0x0000016f,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000173,0x00000007,0x0004003b,0x00000007,0x00000176,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000177,0x00000007,0x0004003b,0x0000000d,0x0000017a,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000183,0x00000007,0x0004003b,0x00000007,0x00000184,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000185,0x00000007,0x0004003b,0x0000000d,0x00000188,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000194,0x00000007,0x0004003b,0x00000007,0x00000195,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000196,0x00000007,0x0004003b,0x0000000d,0x00000199,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001a1,0x00000007,0x0004003b,0x00000007,0x000001a4,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001a5,0x00000007,0x0004003b,0x0000000d,0x000001a8,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001b3,0x00000007,0x0004003b,0x00000007,0x000001b4,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001b5,0x00000007,0x0004003b,0x0000000d,0x000001b8,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001c0,0x00000007,0x0004003b,0x00000007,0x000001c3,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001c4,0x00000007,0x0004003b,0x0000000d,0x000001c7,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001cc,0x00000007,0x0004003b,0x00000007,0x000001cf,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001d2,0x00000007,0x0004003b,0x0000000d,0x000001d5,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001dd,0x00000007,0x0004003b,0x00000007,0x000001de,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001e1,0x00000007,0x0004003b,0x0000000d,0x000001e4,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001ef,0x00000007,0x0004003b,0x00000007,0x000001f0,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001f1,0x00000007,0x0004003b,0x0000000d,0x000001f4,0x00000007,0x0004003b,
|
||||
0x00000007,0x000001ff,0x00000007,0x0004003b,0x00000007,0x00000200,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000201,0x00000007,0x0004003b,0x0000000d,0x00000204,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000020c,0x00000007,0x0004003b,0x00000007,0x0000020d,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000210,0x00000007,0x0004003b,0x0000000d,0x00000213,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000021b,0x00000007,0x0004003b,0x00000007,0x0000021c,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000021f,0x00000007,0x0004003b,0x0000000d,0x00000222,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000227,0x00000007,0x0004003b,0x00000007,0x0000022d,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000239,0x00000007,0x0004003b,0x00000007,0x0000024e,0x00000007,0x00050041,
|
||||
0x00000099,0x0000009a,0x00000096,0x00000098,0x0004003d,0x00000016,0x0000009b,0x0000009a,
|
||||
0x0003003e,0x00000093,0x0000009b,0x0004003d,0x0000000e,0x0000009f,0x0000009e,0x0003003e,
|
||||
0x0000009c,0x0000009f,0x0004003d,0x000000a2,0x000000a5,0x000000a4,0x0004003d,0x0000000e,
|
||||
0x000000a6,0x0000009c,0x00070058,0x00000016,0x000000a7,0x000000a5,0x000000a6,0x00000002,
|
||||
0x00000053,0x0008004f,0x0000000c,0x000000a8,0x000000a7,0x000000a7,0x00000000,0x00000001,
|
||||
0x00000002,0x00050041,0x00000007,0x000000a9,0x000000a0,0x00000031,0x00050051,0x00000006,
|
||||
0x000000aa,0x000000a8,0x00000000,0x0003003e,0x000000a9,0x000000aa,0x00050041,0x00000007,
|
||||
0x000000ab,0x000000a0,0x0000003a,0x00050051,0x00000006,0x000000ac,0x000000a8,0x00000001,
|
||||
0x0003003e,0x000000ab,0x000000ac,0x00050041,0x00000007,0x000000ad,0x000000a0,0x00000069,
|
||||
0x00050051,0x00000006,0x000000ae,0x000000a8,0x00000002,0x0003003e,0x000000ad,0x000000ae,
|
||||
0x0004003d,0x0000000e,0x000000b0,0x0000009c,0x0004003d,0x00000016,0x000000b1,0x00000093,
|
||||
0x0007004f,0x0000000e,0x000000b2,0x000000b1,0x000000b1,0x00000002,0x00000003,0x00050085,
|
||||
0x0000000e,0x000000b3,0x000000b0,0x000000b2,0x00050081,0x0000000e,0x000000b7,0x000000b3,
|
||||
0x000000b6,0x0003003e,0x000000af,0x000000b7,0x0004003d,0x0000000e,0x000000b9,0x000000af,
|
||||
0x0006000c,0x0000000e,0x000000ba,0x00000001,0x00000008,0x000000b9,0x0003003e,0x000000b8,
|
||||
0x000000ba,0x0004003d,0x0000000e,0x000000bc,0x000000b8,0x0004003d,0x00000016,0x000000bd,
|
||||
0x00000093,0x0007004f,0x0000000e,0x000000be,0x000000bd,0x000000bd,0x00000000,0x00000001,
|
||||
0x00050085,0x0000000e,0x000000bf,0x000000bc,0x000000be,0x0003003e,0x000000bb,0x000000bf,
|
||||
0x0004003d,0x0000000e,0x000000c1,0x000000af,0x0004003d,0x0000000e,0x000000c2,0x000000b8,
|
||||
0x0004007f,0x0000000e,0x000000c3,0x000000c2,0x00050081,0x0000000e,0x000000c4,0x000000c1,
|
||||
0x000000c3,0x0003003e,0x000000c0,0x000000c4,0x0004003d,0x000000a2,0x000000c6,0x000000a4,
|
||||
0x0004003d,0x0000000e,0x000000c7,0x000000bb,0x00060060,0x00000016,0x000000c8,0x000000c6,
|
||||
0x000000c7,0x00000098,0x0003003e,0x000000c5,0x000000c8,0x00050041,0x00000007,0x000000ca,
|
||||
0x000000c5,0x00000069,0x0004003d,0x00000006,0x000000cb,0x000000ca,0x00050041,0x00000007,
|
||||
0x000000cc,0x000000c5,0x0000003a,0x0004003d,0x00000006,0x000000cd,0x000000cc,0x00050083,
|
||||
0x00000006,0x000000ce,0x000000cb,0x000000cd,0x0006000c,0x00000006,0x000000cf,0x00000001,
|
||||
0x00000004,0x000000ce,0x00050041,0x00000007,0x000000d0,0x000000a0,0x0000003a,0x0004003d,
|
||||
0x00000006,0x000000d1,0x000000d0,0x00050041,0x00000007,0x000000d2,0x000000c5,0x0000003a,
|
||||
0x0004003d,0x00000006,0x000000d3,0x000000d2,0x00050083,0x00000006,0x000000d4,0x000000d1,
|
||||
0x000000d3,0x0006000c,0x00000006,0x000000d5,0x00000001,0x00000004,0x000000d4,0x00050081,
|
||||
0x00000006,0x000000d6,0x000000cf,0x000000d5,0x00050041,0x00000007,0x000000d7,0x000000a0,
|
||||
0x0000003a,0x0004003d,0x00000006,0x000000d8,0x000000d7,0x00050041,0x00000007,0x000000d9,
|
||||
0x000000c5,0x00000069,0x0004003d,0x00000006,0x000000da,0x000000d9,0x00050083,0x00000006,
|
||||
0x000000db,0x000000d8,0x000000da,0x0006000c,0x00000006,0x000000dc,0x00000001,0x00000004,
|
||||
0x000000db,0x00050081,0x00000006,0x000000dd,0x000000d6,0x000000dc,0x0003003e,0x000000c9,
|
||||
0x000000dd,0x0004003d,0x00000006,0x000000de,0x000000c9,0x000500ba,0x000000e0,0x000000e1,
|
||||
0x000000de,0x000000df,0x000300f7,0x000000e3,0x00000000,0x000400fa,0x000000e1,0x000000e2,
|
||||
0x000000e3,0x000200f8,0x000000e2,0x00050041,0x00000007,0x000000e4,0x00000093,0x00000031,
|
||||
0x0004003d,0x00000006,0x000000e5,0x000000e4,0x00050041,0x00000007,0x000000e6,0x000000bb,
|
||||
0x00000031,0x0004003d,0x00000006,0x000000e7,0x000000e6,0x00050081,0x00000006,0x000000e8,
|
||||
0x000000e7,0x000000e5,0x00050041,0x00000007,0x000000e9,0x000000bb,0x00000031,0x0003003e,
|
||||
0x000000e9,0x000000e8,0x0004003d,0x000000a2,0x000000eb,0x000000a4,0x0004003d,0x0000000e,
|
||||
0x000000ec,0x000000bb,0x00050041,0x00000007,0x000000ed,0x00000093,0x00000031,0x0004003d,
|
||||
0x00000006,0x000000ee,0x000000ed,0x00050050,0x0000000e,0x000000ef,0x000000ee,0x00000053,
|
||||
0x00050081,0x0000000e,0x000000f0,0x000000ec,0x000000ef,0x00060060,0x00000016,0x000000f1,
|
||||
0x000000eb,0x000000f0,0x00000098,0x0003003e,0x000000ea,0x000000f1,0x0004003d,0x000000a2,
|
||||
0x000000f3,0x000000a4,0x0004003d,0x0000000e,0x000000f4,0x000000bb,0x00050041,0x00000007,
|
||||
0x000000f5,0x00000093,0x0000003a,0x0004003d,0x00000006,0x000000f6,0x000000f5,0x0004007f,
|
||||
0x00000006,0x000000f7,0x000000f6,0x00050050,0x0000000e,0x000000f8,0x00000053,0x000000f7,
|
||||
0x00050081,0x0000000e,0x000000f9,0x000000f4,0x000000f8,0x00060060,0x00000016,0x000000fa,
|
||||
0x000000f3,0x000000f9,0x00000098,0x0007004f,0x0000000e,0x000000fb,0x000000fa,0x000000fa,
|
||||
0x00000003,0x00000002,0x00050041,0x00000007,0x000000fc,0x000000f2,0x00000031,0x00050051,
|
||||
0x00000006,0x000000fd,0x000000fb,0x00000000,0x0003003e,0x000000fc,0x000000fd,0x00050041,
|
||||
0x00000007,0x000000fe,0x000000f2,0x0000003a,0x00050051,0x00000006,0x000000ff,0x000000fb,
|
||||
0x00000001,0x0003003e,0x000000fe,0x000000ff,0x0004003d,0x000000a2,0x00000100,0x000000a4,
|
||||
0x0004003d,0x0000000e,0x00000101,0x000000bb,0x00050041,0x00000007,0x00000102,0x00000093,
|
||||
0x0000003a,0x0004003d,0x00000006,0x00000103,0x00000102,0x00050050,0x0000000e,0x00000104,
|
||||
0x00000053,0x00000103,0x00050081,0x0000000e,0x00000105,0x00000101,0x00000104,0x00060060,
|
||||
0x00000016,0x00000106,0x00000100,0x00000105,0x00000098,0x0007004f,0x0000000e,0x00000107,
|
||||
0x00000106,0x00000106,0x00000001,0x00000000,0x00050041,0x00000007,0x00000108,0x000000f2,
|
||||
0x00000069,0x00050051,0x00000006,0x00000109,0x00000107,0x00000000,0x0003003e,0x00000108,
|
||||
0x00000109,0x00050041,0x00000007,0x0000010a,0x000000f2,0x0000006e,0x00050051,0x00000006,
|
||||
0x0000010b,0x00000107,0x00000001,0x0003003e,0x0000010a,0x0000010b,0x00050041,0x00000007,
|
||||
0x0000010d,0x000000c5,0x0000003a,0x0004003d,0x00000006,0x0000010e,0x0000010d,0x00050041,
|
||||
0x00000007,0x0000010f,0x000000c5,0x00000069,0x0004003d,0x00000006,0x00000110,0x0000010f,
|
||||
0x00050081,0x00000006,0x00000111,0x0000010e,0x00000110,0x00050041,0x00000007,0x00000112,
|
||||
0x000000ea,0x00000031,0x0004003d,0x00000006,0x00000113,0x00000112,0x00050081,0x00000006,
|
||||
0x00000114,0x00000111,0x00000113,0x00050041,0x00000007,0x00000115,0x000000ea,0x0000006e,
|
||||
0x0004003d,0x00000006,0x00000116,0x00000115,0x00050081,0x00000006,0x00000117,0x00000114,
|
||||
0x00000116,0x00050085,0x00000006,0x00000119,0x00000117,0x00000118,0x0003003e,0x0000010c,
|
||||
0x00000119,0x0004003d,0x00000016,0x0000011a,0x000000c5,0x0004003d,0x00000006,0x0000011b,
|
||||
0x0000010c,0x00070050,0x00000016,0x0000011c,0x0000011b,0x0000011b,0x0000011b,0x0000011b,
|
||||
0x00050083,0x00000016,0x0000011d,0x0000011a,0x0000011c,0x0003003e,0x000000c5,0x0000011d,
|
||||
0x0004003d,0x00000016,0x0000011e,0x000000ea,0x0004003d,0x00000006,0x0000011f,0x0000010c,
|
||||
0x00070050,0x00000016,0x00000120,0x0000011f,0x0000011f,0x0000011f,0x0000011f,0x00050083,
|
||||
0x00000016,0x00000121,0x0000011e,0x00000120,0x0003003e,0x000000ea,0x00000121,0x0004003d,
|
||||
0x00000016,0x00000122,0x000000f2,0x0004003d,0x00000006,0x00000123,0x0000010c,0x00070050,
|
||||
0x00000016,0x00000124,0x00000123,0x00000123,0x00000123,0x00000123,0x00050083,0x00000016,
|
||||
0x00000125,0x00000122,0x00000124,0x0003003e,0x000000f2,0x00000125,0x00050041,0x00000007,
|
||||
0x00000126,0x000000a0,0x0000003a,0x0004003d,0x00000006,0x00000127,0x00000126,0x0004003d,
|
||||
0x00000006,0x00000128,0x0000010c,0x00050083,0x00000006,0x00000129,0x00000127,0x00000128,
|
||||
0x00050041,0x00000007,0x0000012a,0x000000a0,0x0000006e,0x0003003e,0x0000012a,0x00000129,
|
||||
0x00050041,0x00000007,0x0000012c,0x000000c5,0x00000031,0x0004003d,0x00000006,0x0000012d,
|
||||
0x0000012c,0x0006000c,0x00000006,0x0000012e,0x00000001,0x00000004,0x0000012d,0x00050041,
|
||||
0x00000007,0x0000012f,0x000000c5,0x0000003a,0x0004003d,0x00000006,0x00000130,0x0000012f,
|
||||
0x0006000c,0x00000006,0x00000131,0x00000001,0x00000004,0x00000130,0x00050081,0x00000006,
|
||||
0x00000132,0x0000012e,0x00000131,0x00050041,0x00000007,0x00000133,0x000000c5,0x00000069,
|
||||
0x0004003d,0x00000006,0x00000134,0x00000133,0x0006000c,0x00000006,0x00000135,0x00000001,
|
||||
0x00000004,0x00000134,0x00050081,0x00000006,0x00000136,0x00000132,0x00000135,0x00050041,
|
||||
0x00000007,0x00000137,0x000000c5,0x0000006e,0x0004003d,0x00000006,0x00000138,0x00000137,
|
||||
0x0006000c,0x00000006,0x00000139,0x00000001,0x00000004,0x00000138,0x00050081,0x00000006,
|
||||
0x0000013a,0x00000136,0x00000139,0x00050041,0x00000007,0x0000013b,0x000000ea,0x00000031,
|
||||
0x0004003d,0x00000006,0x0000013c,0x0000013b,0x0006000c,0x00000006,0x0000013d,0x00000001,
|
||||
0x00000004,0x0000013c,0x00050041,0x00000007,0x0000013e,0x000000ea,0x0000003a,0x0004003d,
|
||||
0x00000006,0x0000013f,0x0000013e,0x0006000c,0x00000006,0x00000140,0x00000001,0x00000004,
|
||||
0x0000013f,0x00050081,0x00000006,0x00000141,0x0000013d,0x00000140,0x00050041,0x00000007,
|
||||
0x00000142,0x000000ea,0x00000069,0x0004003d,0x00000006,0x00000143,0x00000142,0x0006000c,
|
||||
0x00000006,0x00000144,0x00000001,0x00000004,0x00000143,0x00050081,0x00000006,0x00000145,
|
||||
0x00000141,0x00000144,0x00050041,0x00000007,0x00000146,0x000000ea,0x0000006e,0x0004003d,
|
||||
0x00000006,0x00000147,0x00000146,0x0006000c,0x00000006,0x00000148,0x00000001,0x00000004,
|
||||
0x00000147,0x00050081,0x00000006,0x00000149,0x00000145,0x00000148,0x00050081,0x00000006,
|
||||
0x0000014a,0x0000013a,0x00000149,0x00050041,0x00000007,0x0000014b,0x000000f2,0x00000031,
|
||||
0x0004003d,0x00000006,0x0000014c,0x0000014b,0x0006000c,0x00000006,0x0000014d,0x00000001,
|
||||
0x00000004,0x0000014c,0x00050041,0x00000007,0x0000014e,0x000000f2,0x0000003a,0x0004003d,
|
||||
0x00000006,0x0000014f,0x0000014e,0x0006000c,0x00000006,0x00000150,0x00000001,0x00000004,
|
||||
0x0000014f,0x00050081,0x00000006,0x00000151,0x0000014d,0x00000150,0x00050041,0x00000007,
|
||||
0x00000152,0x000000f2,0x00000069,0x0004003d,0x00000006,0x00000153,0x00000152,0x0006000c,
|
||||
0x00000006,0x00000154,0x00000001,0x00000004,0x00000153,0x00050081,0x00000006,0x00000155,
|
||||
0x00000151,0x00000154,0x00050041,0x00000007,0x00000156,0x000000f2,0x0000006e,0x0004003d,
|
||||
0x00000006,0x00000157,0x00000156,0x0006000c,0x00000006,0x00000158,0x00000001,0x00000004,
|
||||
0x00000157,0x00050081,0x00000006,0x00000159,0x00000155,0x00000158,0x00050081,0x00000006,
|
||||
0x0000015a,0x0000014a,0x00000159,0x0003003e,0x0000012b,0x0000015a,0x0004003d,0x00000006,
|
||||
0x0000015d,0x0000012b,0x00050088,0x00000006,0x0000015e,0x0000015c,0x0000015d,0x0003003e,
|
||||
0x0000015b,0x0000015e,0x0004003d,0x00000006,0x00000160,0x0000015b,0x0004003d,0x00000006,
|
||||
0x00000161,0x0000015b,0x00050085,0x00000006,0x00000162,0x00000160,0x00000161,0x0007000c,
|
||||
0x00000006,0x00000164,0x00000001,0x00000025,0x00000162,0x00000163,0x0003003e,0x0000015f,
|
||||
0x00000164,0x0004003d,0x00000006,0x00000166,0x0000015f,0x0004003d,0x00000016,0x00000168,
|
||||
0x000000c5,0x0003003e,0x00000167,0x00000168,0x0004003d,0x00000016,0x0000016a,0x000000ea,
|
||||
0x0003003e,0x00000169,0x0000016a,0x00060039,0x0000000e,0x0000016b,0x0000001b,0x00000167,
|
||||
0x00000169,0x00050051,0x00000006,0x0000016c,0x0000016b,0x00000000,0x00050051,0x00000006,
|
||||
0x0000016d,0x0000016b,0x00000001,0x00060050,0x0000000c,0x0000016e,0x00000166,0x0000016c,
|
||||
0x0000016d,0x0003003e,0x00000165,0x0000016e,0x00050041,0x00000007,0x00000170,0x000000c0,
|
||||
0x0000003a,0x0004003d,0x00000006,0x00000171,0x00000170,0x00050081,0x00000006,0x00000172,
|
||||
0x00000171,0x00000054,0x00050041,0x00000007,0x00000174,0x000000c0,0x00000031,0x0004003d,
|
||||
0x00000006,0x00000175,0x00000174,0x0003003e,0x00000173,0x00000175,0x0003003e,0x00000176,
|
||||
0x00000172,0x00050041,0x00000007,0x00000178,0x000000f2,0x00000031,0x0004003d,0x00000006,
|
||||
0x00000179,0x00000178,0x0003003e,0x00000177,0x00000179,0x0004003d,0x0000000c,0x0000017b,
|
||||
0x00000165,0x0003003e,0x0000017a,0x0000017b,0x00080039,0x0000000e,0x0000017c,0x00000014,
|
||||
0x00000173,0x00000176,0x00000177,0x0000017a,0x0003003e,0x0000016f,0x0000017c,0x00050041,
|
||||
0x00000007,0x0000017d,0x000000c0,0x00000031,0x0004003d,0x00000006,0x0000017e,0x0000017d,
|
||||
0x00050083,0x00000006,0x0000017f,0x0000017e,0x00000054,0x00050041,0x00000007,0x00000180,
|
||||
0x000000c0,0x0000003a,0x0004003d,0x00000006,0x00000181,0x00000180,0x00050081,0x00000006,
|
||||
0x00000182,0x00000181,0x00000054,0x0003003e,0x00000183,0x0000017f,0x0003003e,0x00000184,
|
||||
0x00000182,0x00050041,0x00000007,0x00000186,0x000000f2,0x0000003a,0x0004003d,0x00000006,
|
||||
0x00000187,0x00000186,0x0003003e,0x00000185,0x00000187,0x0004003d,0x0000000c,0x00000189,
|
||||
0x00000165,0x0003003e,0x00000188,0x00000189,0x00080039,0x0000000e,0x0000018a,0x00000014,
|
||||
0x00000183,0x00000184,0x00000185,0x00000188,0x0004003d,0x0000000e,0x0000018b,0x0000016f,
|
||||
0x00050081,0x0000000e,0x0000018c,0x0000018b,0x0000018a,0x0003003e,0x0000016f,0x0000018c,
|
||||
0x00050041,0x00000007,0x0000018d,0x000000c0,0x00000031,0x0004003d,0x00000006,0x0000018e,
|
||||
0x0000018d,0x00050083,0x00000006,0x0000018f,0x0000018e,0x00000054,0x00050041,0x00000007,
|
||||
0x00000190,0x000000c0,0x0000003a,0x0004003d,0x00000006,0x00000191,0x00000190,0x00050083,
|
||||
0x00000006,0x00000193,0x00000191,0x00000192,0x0003003e,0x00000194,0x0000018f,0x0003003e,
|
||||
0x00000195,0x00000193,0x00050041,0x00000007,0x00000197,0x000000f2,0x00000069,0x0004003d,
|
||||
0x00000006,0x00000198,0x00000197,0x0003003e,0x00000196,0x00000198,0x0004003d,0x0000000c,
|
||||
0x0000019a,0x00000165,0x0003003e,0x00000199,0x0000019a,0x00080039,0x0000000e,0x0000019b,
|
||||
0x00000014,0x00000194,0x00000195,0x00000196,0x00000199,0x0004003d,0x0000000e,0x0000019c,
|
||||
0x0000016f,0x00050081,0x0000000e,0x0000019d,0x0000019c,0x0000019b,0x0003003e,0x0000016f,
|
||||
0x0000019d,0x00050041,0x00000007,0x0000019e,0x000000c0,0x0000003a,0x0004003d,0x00000006,
|
||||
0x0000019f,0x0000019e,0x00050083,0x00000006,0x000001a0,0x0000019f,0x00000192,0x00050041,
|
||||
0x00000007,0x000001a2,0x000000c0,0x00000031,0x0004003d,0x00000006,0x000001a3,0x000001a2,
|
||||
0x0003003e,0x000001a1,0x000001a3,0x0003003e,0x000001a4,0x000001a0,0x00050041,0x00000007,
|
||||
0x000001a6,0x000000f2,0x0000006e,0x0004003d,0x00000006,0x000001a7,0x000001a6,0x0003003e,
|
||||
0x000001a5,0x000001a7,0x0004003d,0x0000000c,0x000001a9,0x00000165,0x0003003e,0x000001a8,
|
||||
0x000001a9,0x00080039,0x0000000e,0x000001aa,0x00000014,0x000001a1,0x000001a4,0x000001a5,
|
||||
0x000001a8,0x0004003d,0x0000000e,0x000001ab,0x0000016f,0x00050081,0x0000000e,0x000001ac,
|
||||
0x000001ab,0x000001aa,0x0003003e,0x0000016f,0x000001ac,0x00050041,0x00000007,0x000001ad,
|
||||
0x000000c0,0x00000031,0x0004003d,0x00000006,0x000001ae,0x000001ad,0x00050081,0x00000006,
|
||||
0x000001af,0x000001ae,0x00000054,0x00050041,0x00000007,0x000001b0,0x000000c0,0x0000003a,
|
||||
0x0004003d,0x00000006,0x000001b1,0x000001b0,0x00050083,0x00000006,0x000001b2,0x000001b1,
|
||||
0x00000054,0x0003003e,0x000001b3,0x000001af,0x0003003e,0x000001b4,0x000001b2,0x00050041,
|
||||
0x00000007,0x000001b6,0x000000c5,0x00000031,0x0004003d,0x00000006,0x000001b7,0x000001b6,
|
||||
0x0003003e,0x000001b5,0x000001b7,0x0004003d,0x0000000c,0x000001b9,0x00000165,0x0003003e,
|
||||
0x000001b8,0x000001b9,0x00080039,0x0000000e,0x000001ba,0x00000014,0x000001b3,0x000001b4,
|
||||
0x000001b5,0x000001b8,0x0004003d,0x0000000e,0x000001bb,0x0000016f,0x00050081,0x0000000e,
|
||||
0x000001bc,0x000001bb,0x000001ba,0x0003003e,0x0000016f,0x000001bc,0x00050041,0x00000007,
|
||||
0x000001bd,0x000000c0,0x0000003a,0x0004003d,0x00000006,0x000001be,0x000001bd,0x00050083,
|
||||
0x00000006,0x000001bf,0x000001be,0x00000054,0x00050041,0x00000007,0x000001c1,0x000000c0,
|
||||
0x00000031,0x0004003d,0x00000006,0x000001c2,0x000001c1,0x0003003e,0x000001c0,0x000001c2,
|
||||
0x0003003e,0x000001c3,0x000001bf,0x00050041,0x00000007,0x000001c5,0x000000c5,0x0000003a,
|
||||
0x0004003d,0x00000006,0x000001c6,0x000001c5,0x0003003e,0x000001c4,0x000001c6,0x0004003d,
|
||||
0x0000000c,0x000001c8,0x00000165,0x0003003e,0x000001c7,0x000001c8,0x00080039,0x0000000e,
|
||||
0x000001c9,0x00000014,0x000001c0,0x000001c3,0x000001c4,0x000001c7,0x0004003d,0x0000000e,
|
||||
0x000001ca,0x0000016f,0x00050081,0x0000000e,0x000001cb,0x000001ca,0x000001c9,0x0003003e,
|
||||
0x0000016f,0x000001cb,0x00050041,0x00000007,0x000001cd,0x000000c0,0x00000031,0x0004003d,
|
||||
0x00000006,0x000001ce,0x000001cd,0x0003003e,0x000001cc,0x000001ce,0x00050041,0x00000007,
|
||||
0x000001d0,0x000000c0,0x0000003a,0x0004003d,0x00000006,0x000001d1,0x000001d0,0x0003003e,
|
||||
0x000001cf,0x000001d1,0x00050041,0x00000007,0x000001d3,0x000000c5,0x00000069,0x0004003d,
|
||||
0x00000006,0x000001d4,0x000001d3,0x0003003e,0x000001d2,0x000001d4,0x0004003d,0x0000000c,
|
||||
0x000001d6,0x00000165,0x0003003e,0x000001d5,0x000001d6,0x00080039,0x0000000e,0x000001d7,
|
||||
0x00000014,0x000001cc,0x000001cf,0x000001d2,0x000001d5,0x0004003d,0x0000000e,0x000001d8,
|
||||
0x0000016f,0x00050081,0x0000000e,0x000001d9,0x000001d8,0x000001d7,0x0003003e,0x0000016f,
|
||||
0x000001d9,0x00050041,0x00000007,0x000001da,0x000000c0,0x00000031,0x0004003d,0x00000006,
|
||||
0x000001db,0x000001da,0x00050081,0x00000006,0x000001dc,0x000001db,0x00000054,0x0003003e,
|
||||
0x000001dd,0x000001dc,0x00050041,0x00000007,0x000001df,0x000000c0,0x0000003a,0x0004003d,
|
||||
0x00000006,0x000001e0,0x000001df,0x0003003e,0x000001de,0x000001e0,0x00050041,0x00000007,
|
||||
0x000001e2,0x000000c5,0x0000006e,0x0004003d,0x00000006,0x000001e3,0x000001e2,0x0003003e,
|
||||
0x000001e1,0x000001e3,0x0004003d,0x0000000c,0x000001e5,0x00000165,0x0003003e,0x000001e4,
|
||||
0x000001e5,0x00080039,0x0000000e,0x000001e6,0x00000014,0x000001dd,0x000001de,0x000001e1,
|
||||
0x000001e4,0x0004003d,0x0000000e,0x000001e7,0x0000016f,0x00050081,0x0000000e,0x000001e8,
|
||||
0x000001e7,0x000001e6,0x0003003e,0x0000016f,0x000001e8,0x00050041,0x00000007,0x000001e9,
|
||||
0x000000c0,0x00000031,0x0004003d,0x00000006,0x000001ea,0x000001e9,0x00050083,0x00000006,
|
||||
0x000001eb,0x000001ea,0x00000054,0x00050041,0x00000007,0x000001ec,0x000000c0,0x0000003a,
|
||||
0x0004003d,0x00000006,0x000001ed,0x000001ec,0x00050083,0x00000006,0x000001ee,0x000001ed,
|
||||
0x00000054,0x0003003e,0x000001ef,0x000001eb,0x0003003e,0x000001f0,0x000001ee,0x00050041,
|
||||
0x00000007,0x000001f2,0x000000ea,0x00000031,0x0004003d,0x00000006,0x000001f3,0x000001f2,
|
||||
0x0003003e,0x000001f1,0x000001f3,0x0004003d,0x0000000c,0x000001f5,0x00000165,0x0003003e,
|
||||
0x000001f4,0x000001f5,0x00080039,0x0000000e,0x000001f6,0x00000014,0x000001ef,0x000001f0,
|
||||
0x000001f1,0x000001f4,0x0004003d,0x0000000e,0x000001f7,0x0000016f,0x00050081,0x0000000e,
|
||||
0x000001f8,0x000001f7,0x000001f6,0x0003003e,0x0000016f,0x000001f8,0x00050041,0x00000007,
|
||||
0x000001f9,0x000000c0,0x00000031,0x0004003d,0x00000006,0x000001fa,0x000001f9,0x00050083,
|
||||
0x00000006,0x000001fb,0x000001fa,0x00000192,0x00050041,0x00000007,0x000001fc,0x000000c0,
|
||||
0x0000003a,0x0004003d,0x00000006,0x000001fd,0x000001fc,0x00050083,0x00000006,0x000001fe,
|
||||
0x000001fd,0x00000054,0x0003003e,0x000001ff,0x000001fb,0x0003003e,0x00000200,0x000001fe,
|
||||
0x00050041,0x00000007,0x00000202,0x000000ea,0x0000003a,0x0004003d,0x00000006,0x00000203,
|
||||
0x00000202,0x0003003e,0x00000201,0x00000203,0x0004003d,0x0000000c,0x00000205,0x00000165,
|
||||
0x0003003e,0x00000204,0x00000205,0x00080039,0x0000000e,0x00000206,0x00000014,0x000001ff,
|
||||
0x00000200,0x00000201,0x00000204,0x0004003d,0x0000000e,0x00000207,0x0000016f,0x00050081,
|
||||
0x0000000e,0x00000208,0x00000207,0x00000206,0x0003003e,0x0000016f,0x00000208,0x00050041,
|
||||
0x00000007,0x00000209,0x000000c0,0x00000031,0x0004003d,0x00000006,0x0000020a,0x00000209,
|
||||
0x00050083,0x00000006,0x0000020b,0x0000020a,0x00000192,0x0003003e,0x0000020c,0x0000020b,
|
||||
0x00050041,0x00000007,0x0000020e,0x000000c0,0x0000003a,0x0004003d,0x00000006,0x0000020f,
|
||||
0x0000020e,0x0003003e,0x0000020d,0x0000020f,0x00050041,0x00000007,0x00000211,0x000000ea,
|
||||
0x00000069,0x0004003d,0x00000006,0x00000212,0x00000211,0x0003003e,0x00000210,0x00000212,
|
||||
0x0004003d,0x0000000c,0x00000214,0x00000165,0x0003003e,0x00000213,0x00000214,0x00080039,
|
||||
0x0000000e,0x00000215,0x00000014,0x0000020c,0x0000020d,0x00000210,0x00000213,0x0004003d,
|
||||
0x0000000e,0x00000216,0x0000016f,0x00050081,0x0000000e,0x00000217,0x00000216,0x00000215,
|
||||
0x0003003e,0x0000016f,0x00000217,0x00050041,0x00000007,0x00000218,0x000000c0,0x00000031,
|
||||
0x0004003d,0x00000006,0x00000219,0x00000218,0x00050083,0x00000006,0x0000021a,0x00000219,
|
||||
0x00000054,0x0003003e,0x0000021b,0x0000021a,0x00050041,0x00000007,0x0000021d,0x000000c0,
|
||||
0x0000003a,0x0004003d,0x00000006,0x0000021e,0x0000021d,0x0003003e,0x0000021c,0x0000021e,
|
||||
0x00050041,0x00000007,0x00000220,0x000000ea,0x0000006e,0x0004003d,0x00000006,0x00000221,
|
||||
0x00000220,0x0003003e,0x0000021f,0x00000221,0x0004003d,0x0000000c,0x00000223,0x00000165,
|
||||
0x0003003e,0x00000222,0x00000223,0x00080039,0x0000000e,0x00000224,0x00000014,0x0000021b,
|
||||
0x0000021c,0x0000021f,0x00000222,0x0004003d,0x0000000e,0x00000225,0x0000016f,0x00050081,
|
||||
0x0000000e,0x00000226,0x00000225,0x00000224,0x0003003e,0x0000016f,0x00000226,0x00050041,
|
||||
0x00000007,0x00000228,0x0000016f,0x0000003a,0x0004003d,0x00000006,0x00000229,0x00000228,
|
||||
0x00050041,0x00000007,0x0000022a,0x0000016f,0x00000031,0x0004003d,0x00000006,0x0000022b,
|
||||
0x0000022a,0x00050088,0x00000006,0x0000022c,0x00000229,0x0000022b,0x0003003e,0x00000227,
|
||||
0x0000022c,0x00050041,0x00000007,0x0000022e,0x000000c5,0x0000003a,0x0004003d,0x00000006,
|
||||
0x0000022f,0x0000022e,0x00050041,0x00000007,0x00000230,0x000000c5,0x00000069,0x0004003d,
|
||||
0x00000006,0x00000231,0x00000230,0x0007000c,0x00000006,0x00000232,0x00000001,0x00000028,
|
||||
0x0000022f,0x00000231,0x00050041,0x00000007,0x00000233,0x000000ea,0x00000031,0x0004003d,
|
||||
0x00000006,0x00000234,0x00000233,0x00050041,0x00000007,0x00000235,0x000000ea,0x0000006e,
|
||||
0x0004003d,0x00000006,0x00000236,0x00000235,0x0007000c,0x00000006,0x00000237,0x00000001,
|
||||
0x00000028,0x00000234,0x00000236,0x0007000c,0x00000006,0x00000238,0x00000001,0x00000028,
|
||||
0x00000232,0x00000237,0x0003003e,0x0000022d,0x00000238,0x00050041,0x00000007,0x0000023a,
|
||||
0x000000c5,0x0000003a,0x0004003d,0x00000006,0x0000023b,0x0000023a,0x00050041,0x00000007,
|
||||
0x0000023c,0x000000c5,0x00000069,0x0004003d,0x00000006,0x0000023d,0x0000023c,0x0007000c,
|
||||
0x00000006,0x0000023e,0x00000001,0x00000025,0x0000023b,0x0000023d,0x00050041,0x00000007,
|
||||
0x0000023f,0x000000ea,0x00000031,0x0004003d,0x00000006,0x00000240,0x0000023f,0x00050041,
|
||||
0x00000007,0x00000241,0x000000ea,0x0000006e,0x0004003d,0x00000006,0x00000242,0x00000241,
|
||||
0x0007000c,0x00000006,0x00000243,0x00000001,0x00000025,0x00000240,0x00000242,0x0007000c,
|
||||
0x00000006,0x00000244,0x00000001,0x00000025,0x0000023e,0x00000243,0x0003003e,0x00000239,
|
||||
0x00000244,0x00050041,0x00000246,0x00000247,0x00000096,0x00000245,0x0004003d,0x00000006,
|
||||
0x00000248,0x00000247,0x0004003d,0x00000006,0x00000249,0x00000227,0x00050085,0x00000006,
|
||||
0x0000024a,0x00000248,0x00000249,0x0004003d,0x00000006,0x0000024b,0x00000239,0x0004003d,
|
||||
0x00000006,0x0000024c,0x0000022d,0x0008000c,0x00000006,0x0000024d,0x00000001,0x0000002b,
|
||||
0x0000024a,0x0000024b,0x0000024c,0x0003003e,0x00000227,0x0000024d,0x0004003d,0x00000006,
|
||||
0x0000024f,0x00000227,0x00050041,0x00000007,0x00000250,0x000000a0,0x0000006e,0x0004003d,
|
||||
0x00000006,0x00000251,0x00000250,0x00050083,0x00000006,0x00000252,0x0000024f,0x00000251,
|
||||
0x0003003e,0x0000024e,0x00000252,0x0004003d,0x00000006,0x00000253,0x0000024e,0x0008000c,
|
||||
0x00000006,0x00000256,0x00000001,0x0000002b,0x00000253,0x00000254,0x00000255,0x0003003e,
|
||||
0x0000024e,0x00000256,0x00050041,0x00000007,0x00000257,0x000000a0,0x00000031,0x0004003d,
|
||||
0x00000006,0x00000258,0x00000257,0x0004003d,0x00000006,0x00000259,0x0000024e,0x00050081,
|
||||
0x00000006,0x0000025a,0x00000258,0x00000259,0x0008000c,0x00000006,0x0000025b,0x00000001,
|
||||
0x0000002b,0x0000025a,0x00000053,0x00000054,0x00050041,0x00000007,0x0000025c,0x000000a0,
|
||||
0x00000031,0x0003003e,0x0000025c,0x0000025b,0x00050041,0x00000007,0x0000025d,0x000000a0,
|
||||
0x0000003a,0x0004003d,0x00000006,0x0000025e,0x0000025d,0x0004003d,0x00000006,0x0000025f,
|
||||
0x0000024e,0x00050081,0x00000006,0x00000260,0x0000025e,0x0000025f,0x0008000c,0x00000006,
|
||||
0x00000261,0x00000001,0x0000002b,0x00000260,0x00000053,0x00000054,0x00050041,0x00000007,
|
||||
0x00000262,0x000000a0,0x0000003a,0x0003003e,0x00000262,0x00000261,0x00050041,0x00000007,
|
||||
0x00000263,0x000000a0,0x00000069,0x0004003d,0x00000006,0x00000264,0x00000263,0x0004003d,
|
||||
0x00000006,0x00000265,0x0000024e,0x00050081,0x00000006,0x00000266,0x00000264,0x00000265,
|
||||
0x0008000c,0x00000006,0x00000267,0x00000001,0x0000002b,0x00000266,0x00000053,0x00000054,
|
||||
0x00050041,0x00000007,0x00000268,0x000000a0,0x00000069,0x0003003e,0x00000268,0x00000267,
|
||||
0x000200f9,0x000000e3,0x000200f8,0x000000e3,0x00050041,0x00000007,0x00000269,0x000000a0,
|
||||
0x0000006e,0x0003003e,0x00000269,0x00000054,0x0004003d,0x00000016,0x0000026c,0x000000a0,
|
||||
0x0003003e,0x0000026b,0x0000026c,0x000100fd,0x00010038,0x00050036,0x00000006,0x0000000a,
|
||||
0x00000000,0x00000008,0x00030037,0x00000007,0x00000009,0x000200f8,0x0000000b,0x0004003b,
|
||||
0x00000007,0x0000001d,0x00000007,0x0004003b,0x00000007,0x00000021,0x00000007,0x0004003d,
|
||||
0x00000006,0x0000001e,0x00000009,0x00050083,0x00000006,0x00000020,0x0000001e,0x0000001f,
|
||||
0x0003003e,0x0000001d,0x00000020,0x0004003d,0x00000006,0x00000022,0x00000009,0x0004003d,
|
||||
0x00000006,0x00000023,0x0000001d,0x00050085,0x00000006,0x00000024,0x00000022,0x00000023,
|
||||
0x0004003d,0x00000006,0x00000025,0x0000001d,0x00050083,0x00000006,0x00000026,0x00000024,
|
||||
0x00000025,0x0003003e,0x00000021,0x00000026,0x0004003d,0x00000006,0x00000027,0x0000001d,
|
||||
0x0004003d,0x00000006,0x00000028,0x0000001d,0x00050085,0x00000006,0x00000029,0x00000028,
|
||||
0x00000027,0x0003003e,0x0000001d,0x00000029,0x0004003d,0x00000006,0x0000002a,0x00000021,
|
||||
0x0004003d,0x00000006,0x0000002b,0x0000001d,0x00050085,0x00000006,0x0000002c,0x0000002a,
|
||||
0x0000002b,0x000200fe,0x0000002c,0x00010038,0x00050036,0x0000000e,0x00000014,0x00000000,
|
||||
0x0000000f,0x00030037,0x00000007,0x00000010,0x00030037,0x00000007,0x00000011,0x00030037,
|
||||
0x00000007,0x00000012,0x00030037,0x0000000d,0x00000013,0x000200f8,0x00000015,0x0004003b,
|
||||
0x00000007,0x0000002f,0x00000007,0x0004003b,0x00000034,0x00000035,0x00000007,0x0004003b,
|
||||
0x00000007,0x00000038,0x00000007,0x0004003b,0x00000007,0x00000043,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000005b,0x00000007,0x0004003b,0x00000007,0x0000005c,0x00000007,0x00050041,
|
||||
0x00000007,0x00000032,0x00000013,0x00000031,0x0004003d,0x00000006,0x00000033,0x00000032,
|
||||
0x0003003e,0x0000002f,0x00000033,0x0004003d,0x0000000c,0x00000036,0x00000013,0x0007004f,
|
||||
0x0000000e,0x00000037,0x00000036,0x00000036,0x00000001,0x00000002,0x0003003e,0x00000035,
|
||||
0x00000037,0x0004003d,0x00000006,0x00000039,0x00000010,0x00050041,0x00000007,0x0000003b,
|
||||
0x00000035,0x0000003a,0x0004003d,0x00000006,0x0000003c,0x0000003b,0x00050085,0x00000006,
|
||||
0x0000003d,0x00000039,0x0000003c,0x0004003d,0x00000006,0x0000003e,0x00000011,0x00050041,
|
||||
0x00000007,0x0000003f,0x00000035,0x00000031,0x0004003d,0x00000006,0x00000040,0x0000003f,
|
||||
0x00050085,0x00000006,0x00000041,0x0000003e,0x00000040,0x00050081,0x00000006,0x00000042,
|
||||
0x0000003d,0x00000041,0x0003003e,0x00000038,0x00000042,0x0004003d,0x00000006,0x00000044,
|
||||
0x00000010,0x0004003d,0x00000006,0x00000045,0x00000010,0x00050085,0x00000006,0x00000046,
|
||||
0x00000044,0x00000045,0x0004003d,0x00000006,0x00000047,0x00000011,0x0004003d,0x00000006,
|
||||
0x00000048,0x00000011,0x00050085,0x00000006,0x00000049,0x00000047,0x00000048,0x00050081,
|
||||
0x00000006,0x0000004a,0x00000046,0x00000049,0x0004003d,0x00000006,0x0000004b,0x00000038,
|
||||
0x0004003d,0x00000006,0x0000004c,0x00000038,0x00050085,0x00000006,0x0000004d,0x0000004b,
|
||||
0x0000004c,0x0004003d,0x00000006,0x0000004e,0x00000012,0x0004003d,0x00000006,0x0000004f,
|
||||
0x00000012,0x00050085,0x00000006,0x00000050,0x0000004e,0x0000004f,0x0004003d,0x00000006,
|
||||
0x00000051,0x0000002f,0x00050085,0x00000006,0x00000052,0x00000050,0x00000051,0x0008000c,
|
||||
0x00000006,0x00000055,0x00000001,0x0000002b,0x00000052,0x00000053,0x00000054,0x00050085,
|
||||
0x00000006,0x00000057,0x00000055,0x00000056,0x00050083,0x00000006,0x00000058,0x00000057,
|
||||
0x00000054,0x00050085,0x00000006,0x00000059,0x0000004d,0x00000058,0x00050081,0x00000006,
|
||||
0x0000005a,0x0000004a,0x00000059,0x0003003e,0x00000043,0x0000005a,0x0004003d,0x00000006,
|
||||
0x0000005d,0x00000043,0x0003003e,0x0000005c,0x0000005d,0x00050039,0x00000006,0x0000005e,
|
||||
0x0000000a,0x0000005c,0x0003003e,0x0000005b,0x0000005e,0x0004003d,0x00000006,0x0000005f,
|
||||
0x0000005b,0x0004003d,0x00000006,0x00000060,0x0000005b,0x0004003d,0x00000006,0x00000061,
|
||||
0x00000012,0x00050085,0x00000006,0x00000062,0x00000060,0x00000061,0x00050050,0x0000000e,
|
||||
0x00000063,0x0000005f,0x00000062,0x000200fe,0x00000063,0x00010038,0x00050036,0x0000000e,
|
||||
0x0000001b,0x00000000,0x00000018,0x00030037,0x00000017,0x00000019,0x00030037,0x00000017,
|
||||
0x0000001a,0x000200f8,0x0000001c,0x0004003b,0x00000007,0x00000066,0x00000007,0x0004003b,
|
||||
0x00000007,0x0000006d,0x00000007,0x0004003b,0x00000034,0x00000074,0x00000007,0x0004003b,
|
||||
0x00000034,0x0000007d,0x00000007,0x0004003b,0x00000007,0x0000007f,0x00000007,0x00050041,
|
||||
0x00000007,0x00000067,0x0000001a,0x00000031,0x0004003d,0x00000006,0x00000068,0x00000067,
|
||||
0x00050041,0x00000007,0x0000006a,0x00000019,0x00000069,0x0004003d,0x00000006,0x0000006b,
|
||||
0x0000006a,0x00050083,0x00000006,0x0000006c,0x00000068,0x0000006b,0x0003003e,0x00000066,
|
||||
0x0000006c,0x00050041,0x00000007,0x0000006f,0x0000001a,0x0000006e,0x0004003d,0x00000006,
|
||||
0x00000070,0x0000006f,0x00050041,0x00000007,0x00000071,0x00000019,0x0000003a,0x0004003d,
|
||||
0x00000006,0x00000072,0x00000071,0x00050083,0x00000006,0x00000073,0x00000070,0x00000072,
|
||||
0x0003003e,0x0000006d,0x00000073,0x0004003d,0x00000006,0x00000075,0x00000066,0x0004003d,
|
||||
0x00000006,0x00000076,0x0000006d,0x00050081,0x00000006,0x00000077,0x00000075,0x00000076,
|
||||
0x00050041,0x00000007,0x00000078,0x00000074,0x00000031,0x0003003e,0x00000078,0x00000077,
|
||||
0x0004003d,0x00000006,0x00000079,0x00000066,0x0004003d,0x00000006,0x0000007a,0x0000006d,
|
||||
0x00050083,0x00000006,0x0000007b,0x00000079,0x0000007a,0x00050041,0x00000007,0x0000007c,
|
||||
0x00000074,0x0000003a,0x0003003e,0x0000007c,0x0000007b,0x0004003d,0x0000000e,0x0000007e,
|
||||
0x00000074,0x0003003e,0x0000007d,0x0000007e,0x00050041,0x00000007,0x00000080,0x0000007d,
|
||||
0x00000031,0x0004003d,0x00000006,0x00000081,0x00000080,0x00050041,0x00000007,0x00000082,
|
||||
0x0000007d,0x00000031,0x0004003d,0x00000006,0x00000083,0x00000082,0x00050085,0x00000006,
|
||||
0x00000084,0x00000081,0x00000083,0x00050081,0x00000006,0x00000086,0x00000084,0x00000085,
|
||||
0x00050041,0x00000007,0x00000087,0x0000007d,0x0000003a,0x0004003d,0x00000006,0x00000088,
|
||||
0x00000087,0x00050041,0x00000007,0x00000089,0x0000007d,0x0000003a,0x0004003d,0x00000006,
|
||||
0x0000008a,0x00000089,0x00050085,0x00000006,0x0000008b,0x00000088,0x0000008a,0x00050081,
|
||||
0x00000006,0x0000008c,0x00000086,0x0000008b,0x0006000c,0x00000006,0x0000008d,0x00000001,
|
||||
0x00000020,0x0000008c,0x0003003e,0x0000007f,0x0000008d,0x0004003d,0x0000000e,0x0000008e,
|
||||
0x00000074,0x0004003d,0x00000006,0x0000008f,0x0000007f,0x0005008e,0x0000000e,0x00000090,
|
||||
0x0000008e,0x0000008f,0x000200fe,0x00000090,0x00010038
|
||||
};
|
||||
@@ -27,18 +27,6 @@
|
||||
#include "ntsc_frag.h"
|
||||
#include "crt_frag.h"
|
||||
#include "deband_frag.h"
|
||||
/* Half-precision upscaler/CAS set (shaders/gen_shaders.sh -DDD_HALF=1), ported from Bannerlator. */
|
||||
#include "sgsr_half_frag.h"
|
||||
#include "sgsr_quality_half_frag.h"
|
||||
#include "nis_luma_half_frag.h"
|
||||
#include "nis3_half_frag.h"
|
||||
#include "nis_coef.h"
|
||||
#include "fsr_easu_half_frag.h"
|
||||
#include "fsr_rcas_half_frag.h"
|
||||
#include "cas_ffx_half_frag.h"
|
||||
#ifdef __ANDROID__
|
||||
#include <sys/system_properties.h>
|
||||
#endif
|
||||
|
||||
#define FX_FORMAT VK_FORMAT_R8G8B8A8_UNORM
|
||||
|
||||
@@ -233,21 +221,9 @@ static VkDescriptorSetLayout g_dsl;
|
||||
static VkPipelineLayout g_pl;
|
||||
static VkDescriptorPool g_dpool;
|
||||
static VkSampler g_sampler;
|
||||
enum { P_SGSR, P_SGSR_HQ, P_NIS, P_EASU, P_RCAS, P_CAS, P_COLOR, P_FXAA, P_FXAA_TOON, P_SMAA_EDGE, P_SMAA_WEIGHTS, P_SMAA_BLEND, P_TOON, P_TOON_COLOR, P_HDR, P_NTSC, P_CRT, P_DEBAND, P_NIS_LUMA, P_COUNT };
|
||||
enum { P_SGSR, P_SGSR_HQ, P_NIS, P_EASU, P_RCAS, P_CAS, P_COLOR, P_FXAA, P_FXAA_TOON, P_SMAA_EDGE, P_SMAA_WEIGHTS, P_SMAA_BLEND, P_TOON, P_TOON_COLOR, P_HDR, P_NTSC, P_CRT, P_DEBAND, P_COUNT };
|
||||
static VkPipeline g_pipe[P_COUNT];
|
||||
static struct fx_target g_t[2], g_mid, g_smaa_edges, g_smaa_weights;
|
||||
/* Half set: NIS = nis_luma prepass (scene rgb + luma in alpha, scene size) into g_nissrc, then
|
||||
* nis3 gathers its luma from that alpha, its coefficient banks (nis_coef.h) in a uniform buffer
|
||||
* at descriptor set 1 (g_pl_nis = {g_dsl, g_coef_dsl}, same push-constant range as g_pl).
|
||||
* Old set (or no buffer): nis.frag on the scene, P_NIS_LUMA unused. */
|
||||
static struct fx_target g_nissrc;
|
||||
static int g_nis_fast;
|
||||
static VkDescriptorSetLayout g_coef_dsl;
|
||||
static VkPipelineLayout g_pl_nis;
|
||||
static VkDescriptorPool g_coef_pool;
|
||||
static VkDescriptorSet g_coef_ds;
|
||||
static VkBuffer g_coef_buf;
|
||||
static VkDeviceMemory g_coef_mem;
|
||||
|
||||
static struct { VkImage img; VkImageView view; VkDescriptorSet ds; int w, h; } g_scene;
|
||||
|
||||
@@ -368,7 +344,7 @@ static VkShaderModule shader(const uint32_t *code, size_t size) {
|
||||
|
||||
static VkPipeline post_pipeline_for_renderpass(VkShaderModule vert,
|
||||
const uint32_t *frag_code, size_t frag_size, VkRenderPass render_pass,
|
||||
const char *name, VkPipelineLayout layout) {
|
||||
const char *name) {
|
||||
VkShaderModule frag = shader(frag_code, frag_size);
|
||||
if (!frag) { droiddeck_log("error", "effects: %s: vkCreateShaderModule failed", name); return VK_NULL_HANDLE; }
|
||||
VkPipelineShaderStageCreateInfo st[2] = {
|
||||
@@ -393,7 +369,7 @@ static VkPipeline post_pipeline_for_renderpass(VkShaderModule vert,
|
||||
VkGraphicsPipelineCreateInfo pi = {.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO, .stageCount = 2,
|
||||
.pStages = st, .pVertexInputState = &vi, .pInputAssemblyState = &ia,
|
||||
.pViewportState = &vp, .pRasterizationState = &rs, .pMultisampleState = &ms,
|
||||
.pColorBlendState = &cb, .pDynamicState = &ds, .layout = layout,
|
||||
.pColorBlendState = &cb, .pDynamicState = &ds, .layout = g_pl,
|
||||
.renderPass = render_pass, .subpass = 0};
|
||||
VkPipeline p = VK_NULL_HANDLE;
|
||||
VkResult r = g_vk.CreateGraphicsPipelines(g_dev, VK_NULL_HANDLE, 1, &pi, NULL, &p);
|
||||
@@ -402,84 +378,19 @@ static VkPipeline post_pipeline_for_renderpass(VkShaderModule vert,
|
||||
return p;
|
||||
}
|
||||
|
||||
static void coef_destroy(void) {
|
||||
if (g_coef_pool) g_vk.DestroyDescriptorPool(g_dev, g_coef_pool, NULL); /* frees g_coef_ds */
|
||||
if (g_coef_buf) g_vk.DestroyBuffer(g_dev, g_coef_buf, NULL);
|
||||
if (g_coef_mem) g_vk.FreeMemory(g_dev, g_coef_mem, NULL);
|
||||
if (g_pl_nis) g_vk.DestroyPipelineLayout(g_dev, g_pl_nis, NULL);
|
||||
if (g_coef_dsl) g_vk.DestroyDescriptorSetLayout(g_dev, g_coef_dsl, NULL);
|
||||
g_coef_pool = VK_NULL_HANDLE; g_coef_ds = VK_NULL_HANDLE; g_coef_buf = VK_NULL_HANDLE;
|
||||
g_coef_mem = VK_NULL_HANDLE; g_pl_nis = VK_NULL_HANDLE; g_coef_dsl = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
/* nis3's coefficient banks: a 4 KB host-visible uniform buffer (scale then usm), filled once. 0 = ok. */
|
||||
static int coef_create(void) {
|
||||
VkDescriptorSetLayoutBinding b = {.binding = 0, .descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER,
|
||||
.descriptorCount = 1, .stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT};
|
||||
VkDescriptorSetLayoutCreateInfo dli = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO, .bindingCount = 1, .pBindings = &b};
|
||||
if (g_vk.CreateDescriptorSetLayout(g_dev, &dli, NULL, &g_coef_dsl) != VK_SUCCESS) goto fail;
|
||||
VkDescriptorSetLayout sets[2] = {g_dsl, g_coef_dsl};
|
||||
VkPushConstantRange pcr = {.stageFlags = VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, .offset = 0, .size = PC_MAX_SIZE};
|
||||
VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 2, .pSetLayouts = sets,
|
||||
.pushConstantRangeCount = 1, .pPushConstantRanges = &pcr};
|
||||
if (g_vk.CreatePipelineLayout(g_dev, &pli, NULL, &g_pl_nis) != VK_SUCCESS) goto fail;
|
||||
VkBufferCreateInfo bci = {.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, .size = 4096,
|
||||
.usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT, .sharingMode = VK_SHARING_MODE_EXCLUSIVE};
|
||||
if (g_vk.CreateBuffer(g_dev, &bci, NULL, &g_coef_buf) != VK_SUCCESS) goto fail;
|
||||
VkMemoryRequirements req;
|
||||
g_vk.GetBufferMemoryRequirements(g_dev, g_coef_buf, &req);
|
||||
int idx = memtype(req.memoryTypeBits, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT);
|
||||
if (idx < 0) goto fail;
|
||||
VkMemoryAllocateInfo mai = {.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, .allocationSize = req.size, .memoryTypeIndex = (uint32_t)idx};
|
||||
if (g_vk.AllocateMemory(g_dev, &mai, NULL, &g_coef_mem) != VK_SUCCESS) goto fail;
|
||||
if (g_vk.BindBufferMemory(g_dev, g_coef_buf, g_coef_mem, 0) != VK_SUCCESS) goto fail;
|
||||
void *p = NULL;
|
||||
if (g_vk.MapMemory(g_dev, g_coef_mem, 0, 4096, 0, &p) != VK_SUCCESS || !p) goto fail;
|
||||
memcpy(p, kNisCoefScale, sizeof(kNisCoefScale));
|
||||
memcpy((char *)p + sizeof(kNisCoefScale), kNisCoefUsm, sizeof(kNisCoefUsm));
|
||||
g_vk.UnmapMemory(g_dev, g_coef_mem);
|
||||
VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1};
|
||||
VkDescriptorPoolCreateInfo dpi = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, .maxSets = 1, .poolSizeCount = 1, .pPoolSizes = &ps};
|
||||
if (g_vk.CreateDescriptorPool(g_dev, &dpi, NULL, &g_coef_pool) != VK_SUCCESS) goto fail;
|
||||
VkDescriptorSetAllocateInfo ai = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO, .descriptorPool = g_coef_pool,
|
||||
.descriptorSetCount = 1, .pSetLayouts = &g_coef_dsl};
|
||||
if (g_vk.AllocateDescriptorSets(g_dev, &ai, &g_coef_ds) != VK_SUCCESS) goto fail;
|
||||
VkDescriptorBufferInfo bi = {.buffer = g_coef_buf, .offset = 0, .range = 4096};
|
||||
VkWriteDescriptorSet wr = {.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, .dstSet = g_coef_ds, .dstBinding = 0,
|
||||
.descriptorCount = 1, .descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, .pBufferInfo = &bi};
|
||||
g_vk.UpdateDescriptorSets(g_dev, 1, &wr, 0, NULL);
|
||||
return 0;
|
||||
fail:
|
||||
coef_destroy();
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* nis_luma keeps luma in the target's alpha: only formats with at least 8 alpha bits (not the
|
||||
* 2-bit alpha of the 10-bit HDR composition format) can hold it. */
|
||||
static int fx_alpha_holds_luma(VkFormat f) {
|
||||
return f == VK_FORMAT_R8G8B8A8_UNORM || f == VK_FORMAT_B8G8R8A8_UNORM ||
|
||||
f == VK_FORMAT_R16G16B16A16_SFLOAT || f == VK_FORMAT_R16G16B16A16_UNORM;
|
||||
}
|
||||
|
||||
/* The half-precision upscaler set unless debug.droiddeck.upscale.shaders is "old" (the fp32
|
||||
* shaders, for A/B comparisons). */
|
||||
static int upscale_half_set(void) {
|
||||
#ifdef __ANDROID__
|
||||
char v[PROP_VALUE_MAX] = {0};
|
||||
if (__system_property_get("debug.droiddeck.upscale.shaders", v) > 0 && strcmp(v, "old") == 0) return 0;
|
||||
#endif
|
||||
return 1;
|
||||
static VkPipeline post_pipeline(VkShaderModule vert, const uint32_t *frag_code,
|
||||
size_t frag_size, const char *name) {
|
||||
return post_pipeline_for_renderpass(vert, frag_code, frag_size, g_rp, name);
|
||||
}
|
||||
|
||||
static void objects_destroy(void) {
|
||||
if (!g_dev) return;
|
||||
scene_release();
|
||||
target_destroy(&g_t[0]); target_destroy(&g_t[1]); target_destroy(&g_mid);
|
||||
target_destroy(&g_smaa_edges); target_destroy(&g_smaa_weights); target_destroy(&g_nissrc);
|
||||
target_destroy(&g_smaa_edges); target_destroy(&g_smaa_weights);
|
||||
for (int i = 0; i < P_COUNT; i++) { if (g_pipe[i]) g_vk.DestroyPipeline(g_dev, g_pipe[i], NULL); g_pipe[i] = VK_NULL_HANDLE; }
|
||||
if (g_dpool) g_vk.DestroyDescriptorPool(g_dev, g_dpool, NULL);
|
||||
if (g_pl) g_vk.DestroyPipelineLayout(g_dev, g_pl, NULL);
|
||||
coef_destroy();
|
||||
if (g_dsl) g_vk.DestroyDescriptorSetLayout(g_dev, g_dsl, NULL);
|
||||
if (g_sampler) g_vk.DestroySampler(g_dev, g_sampler, NULL);
|
||||
if (g_smaa_rp) g_vk.DestroyRenderPass(g_dev, g_smaa_rp, NULL);
|
||||
@@ -556,61 +467,29 @@ static int objects_ensure(void) {
|
||||
VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 2, .pSetLayouts = set_layouts,
|
||||
.pushConstantRangeCount = 1, .pPushConstantRanges = &pcr};
|
||||
if (g_vk.CreatePipelineLayout(g_dev, &pli, NULL, &g_pl) != VK_SUCCESS) goto fail;
|
||||
VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 10};
|
||||
VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 8};
|
||||
VkDescriptorPoolCreateInfo dpi = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO,
|
||||
.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, .maxSets = 10,
|
||||
.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, .maxSets = 8,
|
||||
.poolSizeCount = 1, .pPoolSizes = &ps};
|
||||
if (g_vk.CreateDescriptorPool(g_dev, &dpi, NULL, &g_dpool) != VK_SUCCESS) goto fail;
|
||||
|
||||
VkShaderModule vert = shader(upscale_vert_code, sizeof(upscale_vert_code));
|
||||
if (!vert) goto fail;
|
||||
#define MKL(slot, code, name, layout) do { g_pipe[slot] = post_pipeline_for_renderpass(vert, code, sizeof(code), g_rp, name, layout); if (!g_pipe[slot]) { g_vk.DestroyShaderModule(g_dev, vert, NULL); goto fail; } } while (0)
|
||||
#define MK(slot, code, name) MKL(slot, code, name, g_pl)
|
||||
const int half = upscale_half_set();
|
||||
g_nis_fast = 0;
|
||||
if (half && !fx_alpha_holds_luma(g_fx_fmt))
|
||||
droiddeck_log("effects", "NIS uses nis.frag: the chain format has no 8-bit alpha for the luma prepass");
|
||||
else if (half && coef_create() != 0)
|
||||
droiddeck_log("effects", "NIS coefficient buffer unavailable; NIS uses nis.frag");
|
||||
else if (half)
|
||||
g_nis_fast = 1;
|
||||
if (half) {
|
||||
MK(P_SGSR, sgsr_half_code, "sgsr_half");
|
||||
MK(P_SGSR_HQ, sgsr_quality_half_code, "sgsr_quality_half");
|
||||
if (g_nis_fast) {
|
||||
/* optional: a driver that rejects either fast NIS pipeline gets nis.frag, not a dead chain */
|
||||
g_pipe[P_NIS] = post_pipeline_for_renderpass(vert, nis3_half_code, sizeof(nis3_half_code), g_rp, "nis3_half", g_pl_nis);
|
||||
g_pipe[P_NIS_LUMA] = g_pipe[P_NIS]
|
||||
? post_pipeline_for_renderpass(vert, nis_luma_half_code, sizeof(nis_luma_half_code), g_rp, "nis_luma_half", g_pl)
|
||||
: VK_NULL_HANDLE;
|
||||
if (!g_pipe[P_NIS] || !g_pipe[P_NIS_LUMA]) {
|
||||
if (g_pipe[P_NIS]) g_vk.DestroyPipeline(g_dev, g_pipe[P_NIS], NULL);
|
||||
g_pipe[P_NIS] = VK_NULL_HANDLE;
|
||||
coef_destroy();
|
||||
g_nis_fast = 0;
|
||||
droiddeck_log("effects", "fast NIS pipelines failed to build; NIS uses nis.frag");
|
||||
}
|
||||
}
|
||||
if (!g_nis_fast) MK(P_NIS, nis_code, "nis");
|
||||
MK(P_EASU, fsr_easu_half_code, "fsr_easu_half");
|
||||
MK(P_RCAS, fsr_rcas_half_code, "fsr_rcas_half");
|
||||
MK(P_CAS, cas_ffx_half_code, "cas_ffx_half");
|
||||
} else {
|
||||
MK(P_SGSR, sgsr_code, "sgsr");
|
||||
MK(P_SGSR_HQ, sgsr_quality_code, "sgsr_quality");
|
||||
MK(P_NIS, nis_code, "nis");
|
||||
MK(P_EASU, fsr_easu_code, "fsr_easu");
|
||||
MK(P_RCAS, fsr_rcas_code, "fsr_rcas");
|
||||
MK(P_CAS, cas_code, "cas");
|
||||
}
|
||||
#define MK(slot, code, name) do { g_pipe[slot] = post_pipeline(vert, code, sizeof(code), name); if (!g_pipe[slot]) { g_vk.DestroyShaderModule(g_dev, vert, NULL); goto fail; } } while (0)
|
||||
MK(P_SGSR, sgsr_code, "sgsr");
|
||||
MK(P_SGSR_HQ, sgsr_quality_code, "sgsr_quality");
|
||||
MK(P_NIS, nis_code, "nis");
|
||||
MK(P_EASU, fsr_easu_code, "fsr_easu");
|
||||
MK(P_RCAS, fsr_rcas_code, "fsr_rcas");
|
||||
MK(P_CAS, cas_code, "cas");
|
||||
MK(P_COLOR, color_code, "color");
|
||||
MK(P_FXAA, fxaa_code, "fxaa");
|
||||
MK(P_FXAA_TOON, fxaa_toon_code, "fxaa_toon");
|
||||
g_pipe[P_SMAA_EDGE] = post_pipeline_for_renderpass(
|
||||
vert, smaa_edge_code, sizeof(smaa_edge_code), g_smaa_rp, "smaa_edge", g_pl);
|
||||
vert, smaa_edge_code, sizeof(smaa_edge_code), g_smaa_rp, "smaa_edge");
|
||||
if (!g_pipe[P_SMAA_EDGE]) { g_vk.DestroyShaderModule(g_dev, vert, NULL); goto fail; }
|
||||
g_pipe[P_SMAA_WEIGHTS] = post_pipeline_for_renderpass(
|
||||
vert, smaa_weights_code, sizeof(smaa_weights_code), g_smaa_rp, "smaa_weights", g_pl);
|
||||
vert, smaa_weights_code, sizeof(smaa_weights_code), g_smaa_rp, "smaa_weights");
|
||||
if (!g_pipe[P_SMAA_WEIGHTS]) { g_vk.DestroyShaderModule(g_dev, vert, NULL); goto fail; }
|
||||
MK(P_SMAA_BLEND, smaa_blend_code, "smaa_blend");
|
||||
MK(P_TOON, toon_code, "toon");
|
||||
@@ -620,11 +499,9 @@ static int objects_ensure(void) {
|
||||
MK(P_CRT, crt_code, "crt");
|
||||
MK(P_DEBAND, deband_code, "deband");
|
||||
#undef MK
|
||||
#undef MKL
|
||||
g_vk.DestroyShaderModule(g_dev, vert, NULL);
|
||||
g_ready = 1;
|
||||
droiddeck_log("effects", "chain ready: 16 pipelines (SGSR, SGSR HQ, NIS, FSR EASU+RCAS, CAS, colour, FXAA, SMAA edge/weights/blend, Toon, HDR, NTSC, CRT, deband), %s upscalers%s, on %s",
|
||||
half ? "half-precision" : "old fp32", g_nis_fast ? " + NIS luma prepass" : "", vkp_gpu_name());
|
||||
droiddeck_log("effects", "chain ready: 16 pipelines (SGSR, SGSR HQ, NIS, FSR EASU+RCAS, CAS, colour, FXAA, SMAA edge/weights/blend, Toon, HDR, NTSC, CRT, deband) on %s", vkp_gpu_name());
|
||||
return 0;
|
||||
fail:
|
||||
objects_destroy();
|
||||
@@ -652,8 +529,6 @@ static void pass_renderpass(VkCommandBuffer cmd, VkRenderPass render_pass,
|
||||
g_vk.CmdBeginRenderPass(cmd, &rpi, VK_SUBPASS_CONTENTS_INLINE);
|
||||
g_vk.CmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, p);
|
||||
g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl, 0, 1, &src, 0, NULL);
|
||||
if (g_nis_fast && p == g_pipe[P_NIS] && g_coef_ds) /* nis3: coefficient banks at set 1 */
|
||||
g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl_nis, 1, 1, &g_coef_ds, 0, NULL);
|
||||
g_vk.CmdPushConstants(cmd, g_pl, VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, 0, pcsz, pc);
|
||||
g_vk.CmdDraw(cmd, 4, 1, 0, 0);
|
||||
g_vk.CmdEndRenderPass(cmd);
|
||||
@@ -758,31 +633,7 @@ VkImage vkp_effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int sce
|
||||
pc.vp[0] = 1.0f / (float)scene_w; pc.vp[1] = 1.0f / (float)scene_h;
|
||||
pc.vp[2] = (float)scene_w; pc.vp[3] = (float)scene_h;
|
||||
pc.edge = spatial == 7 ? sharp01 : 0.5f + sharp01 * 4.0f;
|
||||
VkDescriptorSet src = g_scene.ds;
|
||||
int nis_pipe = P_NIS;
|
||||
if (spatial == 7 && g_nis_fast &&
|
||||
target_ensure(&g_nissrc, scene_w, scene_h, FX_SCRATCH_USAGE, "NIS luma") != 0) {
|
||||
/* nis3 needs the prepass image; without it this frame takes SGSR from the scene
|
||||
* instead of dropping every effect */
|
||||
static int warned;
|
||||
if (!__atomic_exchange_n(&warned, 1, __ATOMIC_RELAXED))
|
||||
droiddeck_log("error", "effects: NIS luma target allocation failed; SGSR instead");
|
||||
nis_pipe = P_SGSR;
|
||||
pc.edge = 0.5f + sharp01 * 4.0f;
|
||||
} else if (spatial == 7 && g_nis_fast) {
|
||||
/* NIS prepass: scene -> g_nissrc 1:1 (rgb + luma in alpha); only ndc is read. */
|
||||
struct pc_res pl = {0};
|
||||
SET_NDC(pl);
|
||||
VkViewport scene_vp = {0, 0, (float)scene_w, (float)scene_h, 0, 1};
|
||||
VkRect2D scene_sc = {{0, 0}, {(uint32_t)scene_w, (uint32_t)scene_h}};
|
||||
g_vk.CmdSetViewport(cmd, 0, 1, &scene_vp);
|
||||
g_vk.CmdSetScissor(cmd, 0, 1, &scene_sc);
|
||||
pass(cmd, g_pipe[P_NIS_LUMA], &g_nissrc, g_scene.ds, &pl, sizeof(pl.ndc));
|
||||
g_vk.CmdSetViewport(cmd, 0, 1, &chain_vp);
|
||||
g_vk.CmdSetScissor(cmd, 0, 1, &chain_sc);
|
||||
src = g_nissrc.ds;
|
||||
}
|
||||
pass(cmd, g_pipe[spatial == 3 ? P_SGSR : spatial == 8 ? P_SGSR_HQ : nis_pipe], dst, src, &pc, sizeof(pc));
|
||||
pass(cmd, g_pipe[spatial == 3 ? P_SGSR : spatial == 8 ? P_SGSR_HQ : P_NIS], dst, g_scene.ds, &pc, sizeof(pc));
|
||||
} else if (spatial == 6) {
|
||||
struct pc_rcas pc = {0};
|
||||
SET_NDC(pc);
|
||||
|
||||
@@ -450,22 +450,13 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
return true
|
||||
}
|
||||
private val uiHandler = Handler(Looper.getMainLooper())
|
||||
private var backTapOpenedDrawer = false
|
||||
private val backTapsAtOnce: Boolean get() = SessionState.mode != SessionService.MODE_STEAM || !backActionsInverted
|
||||
private val backTaps = com.droiddeck.launcher.input.BackTaps(
|
||||
windowMs = { backDoubleTapMs.toLong() },
|
||||
atOnce = { backTapsAtOnce },
|
||||
onTap = { performBackAction(double = it) },
|
||||
sameAction = { SessionState.mode != SessionService.MODE_STEAM },
|
||||
)
|
||||
private var pendingBackAction: Runnable? = null
|
||||
private val backQamInput = com.droiddeck.launcher.input.BackQamInput(
|
||||
setPressed = { padBridge?.setBackQamPressed(it) },
|
||||
onTap = { performBackAction(double = it) },
|
||||
doubleTapMs = { backDoubleTapMs.toLong() },
|
||||
onCancel = { padBridge?.cancelBackQam() },
|
||||
holds = { backHold },
|
||||
atOnce = { backTapsAtOnce },
|
||||
sameAction = { SessionState.mode != SessionService.MODE_STEAM },
|
||||
)
|
||||
private val mouseBackInput = com.droiddeck.launcher.input.MouseBackInput(
|
||||
sendRight = { down -> heldButtons.set(32, PointerGestures.BTN_RIGHT, down) },
|
||||
@@ -913,8 +904,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
onCapturedPointer(event) || super.dispatchCapturedPointerEvent(event)
|
||||
override fun dispatchPointerCaptureChanged(hasCapture: Boolean) {
|
||||
super.dispatchPointerCaptureChanged(hasCapture)
|
||||
capturedTouchpad.cancel()
|
||||
heldButtons.release(64)
|
||||
Log.i(TAG, "pointer capture " + if (hasCapture) "on" else "off")
|
||||
if (hasCapture) {
|
||||
pointerCaptureRefused = false
|
||||
@@ -1138,11 +1127,11 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
when {
|
||||
::loading.isInitialized && loading.ended -> finish()
|
||||
inputSettingsOpen -> inputSettingsOpen = false
|
||||
dockedTouchOnly || backTaps.pending -> backTaps.tap()
|
||||
dockedTouchOnly -> routeBackAction()
|
||||
drawerOpen -> drawerOpen = false
|
||||
achievementsOpen -> closeAchievements()
|
||||
pcKeyboardOpen -> pcKeyboardOpen = false
|
||||
else -> backTaps.tap()
|
||||
else -> routeBackAction()
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1339,15 +1328,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
LaunchedEffect(drawerOpen, menuOwnsController, pcKeyboardOpen, achievementsOpen, gestureSettingsOpen, inputSettingsOpen, pipUi, SessionState.suspended, resumed, appTextFocus) {
|
||||
updateOnScreenControls()
|
||||
padBridge?.setInputEnabled(resumed && !menuOwnsController && !pcKeyboardOpen && !achievementsOpen && !gestureSettingsOpen && !inputSettingsOpen && !pipUi && !appTextFocus && !SessionState.suspended)
|
||||
if (!drawerOpen && backTapOpenedDrawer) {
|
||||
backTaps.cancel()
|
||||
backQamInput.cancelTap()
|
||||
backTapOpenedDrawer = false
|
||||
}
|
||||
val otherPanel = pcKeyboardOpen || achievementsOpen || gestureSettingsOpen || inputSettingsOpen || pipUi || appTextFocus || SessionState.suspended
|
||||
if (drawerOpen || otherPanel) {
|
||||
if (otherPanel || !backTapOpenedDrawer) backTaps.cancel()
|
||||
backQamInput.cancel(keepTap = backTapOpenedDrawer && !otherPanel)
|
||||
if (drawerOpen || pcKeyboardOpen || achievementsOpen || gestureSettingsOpen || inputSettingsOpen || pipUi || appTextFocus || SessionState.suspended) {
|
||||
backQamInput.cancel()
|
||||
com.droiddeck.launcher.input.HomeButtonShortcuts.cancel(this@SessionActivity)
|
||||
cancelTouchGestures()
|
||||
}
|
||||
@@ -1401,7 +1383,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (drawerOpen) {
|
||||
syncLossless()
|
||||
if (menuOwnsController) {
|
||||
releasePads(keepBackTap = backTapOpenedDrawer)
|
||||
releasePads()
|
||||
androidx.compose.runtime.withFrameNanos { }
|
||||
val requested = focusDrawer()
|
||||
Log.i(TAG, "drawer root focus requested=$requested docked=$drawerDocked")
|
||||
@@ -1440,8 +1422,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
LaunchedEffect(pcKeyboardOpen, drawerOpen, achievementsOpen) {
|
||||
if (pcKeyboardOpen || drawerOpen || achievementsOpen) padMouse.reset()
|
||||
}
|
||||
val panelShown = panelOverGame
|
||||
LaunchedEffect(panelShown) { boostGpuClock(panelShown && resumed) }
|
||||
if (pcKeyboardOpen) com.droiddeck.launcher.ui.PcKeyboard(
|
||||
sendKey = { code, down -> if (CompositorHost.isStarted) sendGuestKey(code, down, 32) },
|
||||
onAndroidKeyboard = { pcKeyboardOpen = false; togglePrimaryKeyboard() },
|
||||
@@ -2136,13 +2116,25 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
unfoldedPanel?.reload()
|
||||
}
|
||||
|
||||
private fun routeBackAction() {
|
||||
pendingBackAction?.let { pending ->
|
||||
uiHandler.removeCallbacks(pending)
|
||||
pendingBackAction = null
|
||||
performBackAction(double = true)
|
||||
return
|
||||
}
|
||||
val pending = Runnable {
|
||||
pendingBackAction = null
|
||||
performBackAction(double = false)
|
||||
}
|
||||
pendingBackAction = pending
|
||||
uiHandler.postDelayed(pending, backDoubleTapMs.toLong())
|
||||
}
|
||||
|
||||
private fun performBackAction(double: Boolean) {
|
||||
val isSteam = SessionState.mode == SessionService.MODE_STEAM
|
||||
val opensQam = isSteam && (double xor backActionsInverted)
|
||||
if (opensQam) triggerSteamQam() else if (!dockedTouchOnly) {
|
||||
drawerOpen = !drawerOpen
|
||||
backTapOpenedDrawer = drawerOpen && !double
|
||||
}
|
||||
if (opensQam) triggerSteamQam() else if (!dockedTouchOnly) drawerOpen = !drawerOpen
|
||||
}
|
||||
|
||||
private fun handleHomeGuideIntent(incoming: Intent?) {
|
||||
@@ -2627,13 +2619,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
|
||||
private fun gpuClockHeld() = SessionPrefs.gpuClockPin(this) && !GpuClockPin.failed
|
||||
|
||||
private val panelOverGame: Boolean get() = ((drawerOpen && !drawerDocked) || achievementsOpen || gestureSettingsOpen || inputSettingsOpen) && !pipUi
|
||||
|
||||
private fun boostGpuClock(on: Boolean) {
|
||||
if (!GpuClockPin.boost(on)) return
|
||||
Thread { GpuClockPin.sync(applicationContext)?.let { Log.i(TAG, it) } }.start()
|
||||
}
|
||||
|
||||
private fun readPrefs() {
|
||||
pipAutoEnter = SessionPrefs.pipAutoEnter(this)
|
||||
unfoldedControls = SessionPrefs.unfoldedControls(this)
|
||||
@@ -3502,11 +3487,11 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
focusEndedScreen()
|
||||
}
|
||||
|
||||
private fun releasePads(keepBackTap: Boolean = false) {
|
||||
private fun releasePads() {
|
||||
inputMotion.stop()
|
||||
physicalInputBindings?.release()
|
||||
com.droiddeck.launcher.input.HomeButtonShortcuts.cancel(this)
|
||||
backQamInput.cancel(keepTap = keepBackTap)
|
||||
backQamInput.cancel()
|
||||
padBridge?.releaseAll()
|
||||
joyConVr?.releaseButtons()
|
||||
}
|
||||
@@ -3666,7 +3651,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
!pcKeyboardOpen && !achievementsOpen && !gestureSettingsOpen && !inputSettingsOpen,
|
||||
steam = SessionState.mode == SessionService.MODE_STEAM,
|
||||
) { action ->
|
||||
backTaps.cancel()
|
||||
pendingBackAction?.let(uiHandler::removeCallbacks)
|
||||
pendingBackAction = null
|
||||
if (!dockedMenuIdle) drawerControllerActive = true
|
||||
Log.i(TAG, "physical shortcut ${action.name} device=${event.deviceId} key=${event.keyCode} scan=${event.scanCode}")
|
||||
when (action) {
|
||||
@@ -3698,23 +3684,16 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
}
|
||||
if (mouseBackHandled) return true
|
||||
val backToQam = !pipUi && !appTextFocus && (!menuOwnsController || backQamInput.awaitingTap) && !pcKeyboardOpen && !achievementsOpen &&
|
||||
val backToQam = !pipUi && !appTextFocus && !menuOwnsController && !pcKeyboardOpen && !achievementsOpen &&
|
||||
!inputSettingsOpen && !gestureSettingsOpen &&
|
||||
SessionState.mode == SessionService.MODE_STEAM && SessionState.running && SessionState.firstFrameSeen &&
|
||||
!SessionState.suspended && padBridge?.canHoldQam() == true
|
||||
if (backQamInput.onKeyEvent(event, backToQam)) {
|
||||
backTaps.cancel()
|
||||
pendingBackAction?.let(uiHandler::removeCallbacks)
|
||||
pendingBackAction = null
|
||||
return true
|
||||
}
|
||||
if (pipUi) return true
|
||||
if (event.keyCode == KeyEvent.KEYCODE_BACK && backTapOpenedDrawer && backTaps.pending) {
|
||||
when {
|
||||
event.action == KeyEvent.ACTION_DOWN -> backTaps.hold()
|
||||
event.action == KeyEvent.ACTION_UP && !event.isCanceled -> backTaps.tap()
|
||||
event.action == KeyEvent.ACTION_UP -> backTaps.cancel()
|
||||
}
|
||||
return true
|
||||
}
|
||||
val pad = com.droiddeck.launcher.input.JoyCon.normalize(event)
|
||||
if (pad !== event) return dispatchKeyEvent(pad)
|
||||
val fromController = PadBridge.isControllerKeyEvent(event)
|
||||
@@ -3857,8 +3836,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
else -> return super.dispatchGenericMotionEvent(event)
|
||||
}
|
||||
if ((event.isFromSource(android.view.InputDevice.SOURCE_MOUSE) ||
|
||||
event.isFromSource(android.view.InputDevice.SOURCE_TOUCHPAD)) && !drawerOpen) {
|
||||
if (event.isFromSource(android.view.InputDevice.SOURCE_MOUSE) && !drawerOpen) {
|
||||
if (appUiOwnsPointer()) {
|
||||
if (super.dispatchGenericMotionEvent(event)) return true
|
||||
if (touchEditorOpen) return false
|
||||
@@ -4042,7 +4020,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
steamSession = SessionState.mode == SessionService.MODE_STEAM,
|
||||
steamDesktopUi = SessionState.steamUi == "desktop",
|
||||
)) == com.droiddeck.launcher.input.TouchRouter.Route.TOUCHPAD
|
||||
val mode = com.droiddeck.launcher.input.TouchGestureConfig.gamescopeRelativeMouse(wanted, pointerAttached(), touchpadRoute)
|
||||
val mode = com.droiddeck.launcher.input.TouchGestureConfig.gamescopeRelativeMouse(wanted, mouseAttached(), touchpadRoute)
|
||||
if (appliedRelativeMouseMode == mode) return
|
||||
if (AgentGuest.setGamescopeConvar(this, "relative_mouse", mode)) appliedRelativeMouseMode = mode
|
||||
else if (relativeMouseRetries++ < RELATIVE_MOUSE_MAX_RETRIES) uiHandler.postDelayed({ requestRelativeMouse() }, 2_000)
|
||||
@@ -4173,27 +4151,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
}
|
||||
|
||||
private val capturedTouchpadListener: PointerGestures.Listener = object : PointerGestures.Listener by pointerListener {
|
||||
override fun onMove(x: Float, y: Float) {
|
||||
val rect = drawnRect() ?: return
|
||||
val scale = sceneScale(rect)
|
||||
capturedTouchpad.place(CAPTURED_PAD_CENTRE, CAPTURED_PAD_CENTRE)
|
||||
onRelativeMouse((x - CAPTURED_PAD_CENTRE) * scale, (y - CAPTURED_PAD_CENTRE) * scale)
|
||||
}
|
||||
override fun onButton(button: Int, pressed: Boolean, x: Float, y: Float) {
|
||||
heldButtons.set(64, button, pressed)
|
||||
}
|
||||
override fun onThreeFingerTap(): Boolean = false
|
||||
}
|
||||
|
||||
private val capturedTouchpad: TouchpadGestures by lazy {
|
||||
TouchpadGestures(PointerGestures.slop(this), capturedTouchpadListener, holdDrags = false).apply {
|
||||
bounds = android.graphics.RectF(0f, 0f, CAPTURED_PAD_CENTRE * 2f, CAPTURED_PAD_CENTRE * 2f)
|
||||
place(CAPTURED_PAD_CENTRE, CAPTURED_PAD_CENTRE)
|
||||
}
|
||||
}
|
||||
private val capturedPadMatrix = android.graphics.Matrix()
|
||||
|
||||
private val scrollListener = object : ScrollTouchGestures.Listener {
|
||||
override fun onMove(x: Float, y: Float) {
|
||||
val rect = pointerSurfaceRect() ?: return
|
||||
@@ -5370,8 +5327,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private fun handleTouch(event: MotionEvent): Boolean {
|
||||
val pen = PenStream.penIndex(event)
|
||||
val penRouted = if (pen >= 0) routePen(event, pen).takeIf { it != PenRouter.Route.TOUCH } else null
|
||||
if (penRouted == null && (event.isFromSource(android.view.InputDevice.SOURCE_MOUSE) ||
|
||||
event.isFromSource(android.view.InputDevice.SOURCE_TOUCHPAD))) return onMouse(event)
|
||||
if (penRouted == null && event.isFromSource(android.view.InputDevice.SOURCE_MOUSE)) return onMouse(event)
|
||||
when (event.actionMasked) {
|
||||
MotionEvent.ACTION_DOWN -> {
|
||||
sessionTouchDown = true
|
||||
@@ -5617,11 +5573,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
|
||||
private fun isHardwareMouse(d: InputDevice?): Boolean =
|
||||
d != null && !d.isVirtual && !d.supportsSource(InputDevice.SOURCE_STYLUS) &&
|
||||
(d.supportsSource(InputDevice.SOURCE_MOUSE) || d.supportsSource(InputDevice.SOURCE_MOUSE_RELATIVE) ||
|
||||
d.supportsSource(InputDevice.SOURCE_TOUCHPAD))
|
||||
|
||||
private fun isTouchpad(d: InputDevice?): Boolean =
|
||||
d?.supportsSource(InputDevice.SOURCE_TOUCHPAD) == true
|
||||
(d.supportsSource(InputDevice.SOURCE_MOUSE) || d.supportsSource(InputDevice.SOURCE_MOUSE_RELATIVE))
|
||||
|
||||
/** Android also sends the Back and Forward buttons as key events, so they are handled as keys. */
|
||||
private fun guestMouseButton(actionButton: Int): Int? = when (actionButton) {
|
||||
@@ -5631,13 +5583,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
else -> PointerGestures.BTN_LEFT
|
||||
}
|
||||
|
||||
private fun pointerAttached(): Boolean = usbMouse.active || InputDevice.getDeviceIds().any { id ->
|
||||
isHardwareMouse(InputDevice.getDevice(id))
|
||||
}
|
||||
|
||||
private fun mouseAttached(): Boolean = usbMouse.active || InputDevice.getDeviceIds().any { id ->
|
||||
val d = InputDevice.getDevice(id)
|
||||
isHardwareMouse(d) && !isTouchpad(d)
|
||||
isHardwareMouse(d) && d?.supportsSource(InputDevice.SOURCE_TOUCHPAD) != true
|
||||
}
|
||||
|
||||
private fun externalMouseAttached(): Boolean {
|
||||
@@ -5655,7 +5603,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private fun updatePointerCapture() {
|
||||
if (!::surfaceView.isInitialized) return
|
||||
val view = window.decorView
|
||||
val want = (pointerLocked || relativeMouseAttached()) && sessionOwnsInput() && hasWindowFocus() && pointerAttached()
|
||||
val want = (pointerLocked || relativeMouseAttached()) && sessionOwnsInput() && hasWindowFocus() && mouseAttached()
|
||||
releaseDesktopMouseGrab()
|
||||
updateUsbMouse(want)
|
||||
if (want == view.hasPointerCapture()) return
|
||||
@@ -5708,7 +5656,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
|
||||
private fun dropMouseCursor() {
|
||||
if (!mouseOwnsCursor || pointerAttached()) return
|
||||
if (!mouseOwnsCursor || mouseAttached()) return
|
||||
mouseOwnsCursor = false
|
||||
uiHandler.removeCallbacks(cursorResync)
|
||||
cursorVisible = false
|
||||
@@ -5759,22 +5707,20 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
|
||||
private fun onCapturedPointer(event: MotionEvent): Boolean {
|
||||
if (!com.droiddeck.launcher.input.PointerCapture.accepts(event)) return false
|
||||
if (!event.isFromSource(InputDevice.SOURCE_MOUSE_RELATIVE)) return false
|
||||
notePress(event)
|
||||
val pad = com.droiddeck.launcher.input.PointerCapture.isTouchpad(event)
|
||||
when (event.actionMasked) {
|
||||
MotionEvent.ACTION_BUTTON_PRESS, MotionEvent.ACTION_BUTTON_RELEASE -> {
|
||||
if (pad && event.actionMasked == MotionEvent.ACTION_BUTTON_PRESS) capturedTouchpad.buttonPressed()
|
||||
guestMouseButton(event.actionButton)?.let { heldButtons.set(8, it, event.actionMasked == MotionEvent.ACTION_BUTTON_PRESS) }
|
||||
}
|
||||
else -> if (pad) return onCapturedTouchpad(event)
|
||||
}
|
||||
when (event.actionMasked) {
|
||||
MotionEvent.ACTION_MOVE -> {
|
||||
val delta = com.droiddeck.launcher.input.PointerCapture.delta(event)
|
||||
onRelativeMouse(delta[0], delta[1])
|
||||
var dx = event.x
|
||||
var dy = event.y
|
||||
for (i in 0 until event.historySize) {
|
||||
dx += event.getHistoricalX(i)
|
||||
dy += event.getHistoricalY(i)
|
||||
}
|
||||
onRelativeMouse(dx, dy)
|
||||
}
|
||||
MotionEvent.ACTION_BUTTON_PRESS, MotionEvent.ACTION_BUTTON_RELEASE -> {}
|
||||
MotionEvent.ACTION_BUTTON_PRESS, MotionEvent.ACTION_BUTTON_RELEASE ->
|
||||
guestMouseButton(event.actionButton)?.let { heldButtons.set(8, it, event.actionMasked == MotionEvent.ACTION_BUTTON_PRESS) }
|
||||
MotionEvent.ACTION_SCROLL -> {
|
||||
val v = event.getAxisValue(MotionEvent.AXIS_VSCROLL)
|
||||
if (v != 0f) sendSceneWheel(-Math.round(v))
|
||||
@@ -5785,21 +5731,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
return true
|
||||
}
|
||||
|
||||
private fun onCapturedTouchpad(event: MotionEvent): Boolean {
|
||||
if (event.actionMasked == MotionEvent.ACTION_DOWN) {
|
||||
val metrics = resources.displayMetrics
|
||||
val scale = com.droiddeck.launcher.input.PointerCapture.touchpadScale(event, metrics.xdpi / 25.4f, metrics.widthPixels)
|
||||
capturedPadMatrix.setScale(scale, scale)
|
||||
capturedTouchpad.desktop = SessionState.mode == SessionService.MODE_DESKTOP
|
||||
if (::touchpad.isInitialized) capturedTouchpad.sensitivity = touchpad.sensitivity
|
||||
}
|
||||
val scaled = MotionEvent.obtain(event)
|
||||
scaled.transform(capturedPadMatrix)
|
||||
val handled = capturedTouchpad.onTouch(scaled)
|
||||
scaled.recycle()
|
||||
return handled
|
||||
}
|
||||
|
||||
private fun logInputDevice(what: String, deviceId: Int) {
|
||||
val d = InputDevice.getDevice(deviceId) ?: return
|
||||
if (!PadBridge.isFromController(d)) return
|
||||
@@ -6196,7 +6127,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
drawerOpen = false
|
||||
pcKeyboardOpen = false
|
||||
achievementsOpen = false
|
||||
backTaps.cancel()
|
||||
pendingBackAction?.let(uiHandler::removeCallbacks)
|
||||
pendingBackAction = null
|
||||
releaseDrawerDirection()
|
||||
onScreenControls?.releaseAll()
|
||||
bottomInputControls?.releaseAll()
|
||||
@@ -6359,7 +6291,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
onScreenControls?.reload()
|
||||
controllerSettings = ControllerPrefs.read(this)
|
||||
resumed = true
|
||||
boostGpuClock(panelOverGame)
|
||||
updateKeyboardRoute()
|
||||
retryFieldKeyboard(hasWindowFocus())
|
||||
updateDesktopKeyboardButton()
|
||||
@@ -6410,7 +6341,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (runtimeRemovalBlocked) return
|
||||
physicalShortcuts.clear()
|
||||
backQamInput.cancel()
|
||||
backTaps.cancel()
|
||||
mouseBackInput.cancel()
|
||||
capturePausedFrame()
|
||||
padBridge?.setInputEnabled(false)
|
||||
@@ -6444,7 +6374,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (::scrollTouch.isInitialized) scrollTouch.cancel()
|
||||
if (::padMouse.isInitialized) padMouse.reset()
|
||||
resumed = false
|
||||
boostGpuClock(false)
|
||||
updateKeyboardRoute()
|
||||
updatePointerCapture()
|
||||
updatePadMotion()
|
||||
@@ -7027,7 +6956,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
super.onWindowFocusChanged(hasFocus)
|
||||
if (!hasFocus) com.droiddeck.launcher.input.HomeButtonShortcuts.cancel(this)
|
||||
if (!hasFocus) backQamInput.cancel()
|
||||
if (!hasFocus) backTaps.cancel()
|
||||
if (!hasFocus) mouseBackInput.cancel()
|
||||
if (!hasFocus && ::padMouse.isInitialized) padMouse.reset()
|
||||
if (runtimeRemovalBlocked) return
|
||||
@@ -7101,7 +7029,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (runtimeRemovalBlocked) { super.onDestroy(); return }
|
||||
watching = false
|
||||
releaseDrawerDirection()
|
||||
backTaps.cancel()
|
||||
pendingBackAction?.let(uiHandler::removeCallbacks)
|
||||
pendingBackAction = null
|
||||
if (::pip.isInitialized) pip.destroyed()
|
||||
closeSecondScreen(reset = false)
|
||||
glassesScope.cancel()
|
||||
@@ -7233,7 +7162,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
private const val PAD_SCROLL_POINTER_X = 0.985f
|
||||
private const val PAD_SCROLL_HEIGHTS_PER_S = 3f
|
||||
private const val AXIS_UNITS_PER_PIXEL = 3f
|
||||
private const val CAPTURED_PAD_CENTRE = 1_000_000f
|
||||
private const val KEY_LEFTCTRL = 29
|
||||
private const val KEY_RIGHTCTRL = 97
|
||||
private const val KEY_A = 30
|
||||
|
||||
@@ -6,15 +6,18 @@ import android.os.Looper
|
||||
|
||||
class BackQamInput(private val setPressed: (Boolean) -> Unit, private val onTap: (Boolean) -> Unit,
|
||||
private val doubleTapMs: () -> Long = { 500 }, private val onCancel: () -> Unit = {},
|
||||
private val holds: () -> Boolean = { true }, atOnce: () -> Boolean = { false }, sameAction: () -> Boolean = { false }) {
|
||||
private val holds: () -> Boolean = { true }) {
|
||||
private class Press(val hold: Runnable, var held: Boolean = false, var used: Boolean = false)
|
||||
private val handler = Handler(Looper.getMainLooper())
|
||||
private val presses = mutableMapOf<Int, Press>()
|
||||
private val cancelled = mutableSetOf<Int>()
|
||||
private val taps = BackTaps(doubleTapMs, atOnce, onTap, sameAction)
|
||||
val awaitingTap: Boolean get() = taps.pending
|
||||
private var tapPending = false
|
||||
private val singleTap = Runnable { tapPending = false; onTap(false) }
|
||||
|
||||
fun cancelTap() = taps.cancel()
|
||||
private fun cancelTap() {
|
||||
handler.removeCallbacks(singleTap)
|
||||
tapPending = false
|
||||
}
|
||||
|
||||
fun onChordInput() {
|
||||
if (presses.isEmpty()) return
|
||||
@@ -43,7 +46,7 @@ class BackQamInput(private val setPressed: (Boolean) -> Unit, private val onTap:
|
||||
cancelled.remove(device)
|
||||
if (!enabled || event.isCanceled) return false
|
||||
if (device in presses) return true
|
||||
taps.hold()
|
||||
handler.removeCallbacks(singleTap)
|
||||
val hold = Runnable {
|
||||
val press = presses[device] ?: return@Runnable
|
||||
if (!holds()) { press.used = true; cancelTap(); return@Runnable }
|
||||
@@ -63,8 +66,10 @@ class BackQamInput(private val setPressed: (Boolean) -> Unit, private val onTap:
|
||||
if (press != null) {
|
||||
handler.removeCallbacks(press.hold)
|
||||
if (press.held && presses.values.none { it.held }) setPressed(false)
|
||||
if (!press.used && !event.isCanceled) taps.tap()
|
||||
else if (event.isCanceled) cancelTap()
|
||||
if (!press.used && !event.isCanceled) {
|
||||
if (tapPending) { cancelTap(); onTap(true) }
|
||||
else { tapPending = true; handler.postDelayed(singleTap, doubleTapMs()) }
|
||||
} else if (event.isCanceled) cancelTap()
|
||||
}
|
||||
press != null || wasCancelled || enabled
|
||||
}
|
||||
@@ -72,8 +77,8 @@ class BackQamInput(private val setPressed: (Boolean) -> Unit, private val onTap:
|
||||
}
|
||||
}
|
||||
|
||||
fun cancel(keepTap: Boolean = false) {
|
||||
if (!keepTap) cancelTap()
|
||||
fun cancel() {
|
||||
cancelTap()
|
||||
val wasHeld = presses.values.any { it.held }
|
||||
presses.values.forEach { handler.removeCallbacks(it.hold) }
|
||||
cancelled.addAll(presses.keys)
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
|
||||
class BackTaps(
|
||||
private val windowMs: () -> Long,
|
||||
private val atOnce: () -> Boolean,
|
||||
private val onTap: (Boolean) -> Unit,
|
||||
private val sameAction: () -> Boolean = { false },
|
||||
) {
|
||||
private val handler = Handler(Looper.getMainLooper())
|
||||
private var deferred = false
|
||||
var pending = false
|
||||
private set
|
||||
private val expire = Runnable {
|
||||
pending = false
|
||||
if (deferred) onTap(false)
|
||||
}
|
||||
|
||||
fun tap() {
|
||||
if (pending) {
|
||||
cancel()
|
||||
if (deferred || !sameAction()) onTap(true)
|
||||
return
|
||||
}
|
||||
pending = true
|
||||
deferred = !atOnce()
|
||||
handler.postDelayed(expire, windowMs())
|
||||
if (!deferred) onTap(false)
|
||||
}
|
||||
|
||||
fun hold() = handler.removeCallbacks(expire)
|
||||
|
||||
fun cancel() {
|
||||
handler.removeCallbacks(expire)
|
||||
pending = false
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.view.InputDevice
|
||||
import android.view.MotionEvent
|
||||
|
||||
object PointerCapture {
|
||||
fun accepts(event: MotionEvent): Boolean =
|
||||
event.isFromSource(InputDevice.SOURCE_MOUSE_RELATIVE) ||
|
||||
event.isFromSource(InputDevice.SOURCE_TOUCHPAD)
|
||||
|
||||
fun isTouchpad(event: MotionEvent): Boolean = event.isFromSource(InputDevice.SOURCE_TOUCHPAD)
|
||||
|
||||
fun delta(event: MotionEvent): FloatArray {
|
||||
var dx = event.x
|
||||
var dy = event.y
|
||||
for (i in 0 until event.historySize) {
|
||||
dx += event.getHistoricalX(i)
|
||||
dy += event.getHistoricalY(i)
|
||||
}
|
||||
return floatArrayOf(dx, dy)
|
||||
}
|
||||
|
||||
fun touchpadScale(unitsPerMm: Float, padWidth: Float, pixelsPerMm: Float, screenWidth: Int): Float = when {
|
||||
unitsPerMm > 0f && pixelsPerMm > 0f -> pixelsPerMm / unitsPerMm
|
||||
padWidth > 0f && screenWidth > 0 -> screenWidth / padWidth
|
||||
else -> 1f
|
||||
}
|
||||
|
||||
fun touchpadScale(event: MotionEvent, pixelsPerMm: Float, screenWidth: Int): Float {
|
||||
val range = event.device?.getMotionRange(MotionEvent.AXIS_X, InputDevice.SOURCE_TOUCHPAD)
|
||||
return touchpadScale(range?.resolution ?: 0f, range?.range ?: 0f, pixelsPerMm, screenWidth)
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,6 @@ import kotlin.math.hypot
|
||||
class TouchpadGestures(
|
||||
private val slopPx: Float,
|
||||
private val listener: PointerGestures.Listener,
|
||||
private val holdDrags: Boolean = true,
|
||||
) {
|
||||
var x = 0f
|
||||
private set
|
||||
@@ -34,7 +33,6 @@ class TouchpadGestures(
|
||||
private var held = false
|
||||
private var secondDownAt = 0L
|
||||
private var secondWasTap = false
|
||||
private var pressed = false
|
||||
private var twoFingers = false
|
||||
private var scrollAnchorX = 0f
|
||||
private var scrollAnchorY = 0f
|
||||
@@ -92,15 +90,6 @@ class TouchpadGestures(
|
||||
lastTapAt = 0L
|
||||
}
|
||||
|
||||
fun buttonPressed() {
|
||||
pressed = true
|
||||
handler.removeCallbacks(longPress)
|
||||
releaseClick()
|
||||
travelled = slopPx + 1f
|
||||
secondWasTap = false
|
||||
lastTapAt = 0L
|
||||
}
|
||||
|
||||
fun place(px: Float, py: Float) {
|
||||
x = px.coerceIn(bounds.left, bounds.right)
|
||||
y = py.coerceIn(bounds.top, bounds.bottom)
|
||||
@@ -126,7 +115,7 @@ class TouchpadGestures(
|
||||
releaseClick()
|
||||
lastX = event.x; lastY = event.y
|
||||
downAt = event.eventTime
|
||||
travelled = 0f; held = false; twoFingers = false; scrolled = false; secondWasTap = false; pressed = false
|
||||
travelled = 0f; held = false; twoFingers = false; scrolled = false; secondWasTap = false
|
||||
fingers = 1; pinching = false
|
||||
anchorId = event.getPointerId(0); moverId = -1; holdDrag = false; scrollLocked = false
|
||||
if (clicks && event.eventTime - lastTapAt < TouchTiming.DOUBLE_TAP_MS) {
|
||||
@@ -134,7 +123,7 @@ class TouchpadGestures(
|
||||
press(PointerGestures.BTN_LEFT)
|
||||
} else {
|
||||
dragging = false
|
||||
if (clicks && holdDrags) handler.postDelayed(longPress, TouchTiming.HOLD_MS)
|
||||
if (clicks) handler.postDelayed(longPress, TouchTiming.HOLD_MS)
|
||||
}
|
||||
return true
|
||||
}
|
||||
@@ -153,7 +142,7 @@ class TouchpadGestures(
|
||||
if (holdDrag) return true
|
||||
twoFingers = true
|
||||
secondDownAt = event.eventTime
|
||||
secondWasTap = !pressed
|
||||
secondWasTap = true
|
||||
scrollAnchorX = (event.getX(0) + event.getX(1)) / 2f
|
||||
scrollAnchorY = (event.getY(0) + event.getY(1)) / 2f
|
||||
pinchSpan = span(event)
|
||||
@@ -164,7 +153,7 @@ class TouchpadGestures(
|
||||
val mi = if (moverId == -1) -1 else event.findPointerIndex(moverId)
|
||||
if (ai >= 0 && mi >= 0) {
|
||||
val mx = event.getX(mi); val my = event.getY(mi)
|
||||
if (holdDrags && !holdDrag && !scrolled && !scrollLocked) {
|
||||
if (!holdDrag && !scrolled && !scrollLocked) {
|
||||
val anchorMoved = abs(event.getX(ai) - anchorStartX) + abs(event.getY(ai) - anchorStartY)
|
||||
val moverMoved = abs(mx - moverStartX) + abs(my - moverStartY)
|
||||
if (anchorMoved >= slopPx) {
|
||||
|
||||
@@ -18,24 +18,10 @@ object GpuClockPin {
|
||||
var failed = false
|
||||
private set
|
||||
|
||||
var supported: Boolean = File(KGSL_NODE).exists()
|
||||
internal set
|
||||
|
||||
internal var turbo: (Boolean) -> Unit = { WaylandCompositor.nativeSetGpuTurbo(it) }
|
||||
val supported: Boolean by lazy { File(KGSL_NODE).exists() }
|
||||
|
||||
private var live = false
|
||||
|
||||
@Volatile
|
||||
private var boosted = false
|
||||
|
||||
private fun wanted(context: Context) = boosted || SessionPrefs.gpuClockPin(context)
|
||||
|
||||
fun boost(on: Boolean): Boolean {
|
||||
if (boosted == on) return false
|
||||
boosted = on
|
||||
return true
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun start(context: Context): String {
|
||||
live = true
|
||||
@@ -44,11 +30,11 @@ object GpuClockPin {
|
||||
|
||||
private fun hold(context: Context): String {
|
||||
failed = false
|
||||
if (!wanted(context)) return "gpu clock: governed"
|
||||
if (!SessionPrefs.gpuClockPin(context)) return "gpu clock: governed"
|
||||
if (!supported) return "gpu clock: no $KGSL_NODE, left governed"
|
||||
return try {
|
||||
File(context.filesDir, MARKER).createNewFile()
|
||||
turbo(true)
|
||||
WaylandCompositor.nativeSetGpuTurbo(true)
|
||||
pinned = true
|
||||
"gpu clock: held at its top"
|
||||
} catch (t: Throwable) {
|
||||
@@ -62,14 +48,13 @@ object GpuClockPin {
|
||||
@Synchronized
|
||||
fun sync(context: Context): String? {
|
||||
if (!live) return null
|
||||
if (!wanted(context) && pinned) clear(context)
|
||||
if (!SessionPrefs.gpuClockPin(context) && pinned) clear(context)
|
||||
return hold(context)
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun stop(context: Context) {
|
||||
live = false
|
||||
boosted = false
|
||||
if (pinned) clear(context)
|
||||
}
|
||||
|
||||
@@ -81,7 +66,7 @@ object GpuClockPin {
|
||||
private fun clear(context: Context) {
|
||||
if (supported) {
|
||||
try {
|
||||
turbo(false)
|
||||
WaylandCompositor.nativeSetGpuTurbo(false)
|
||||
} catch (t: Throwable) {
|
||||
Log.w(TAG, "clear", t)
|
||||
}
|
||||
|
||||
@@ -63,46 +63,6 @@ class BackQamInputTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun anAtOnceSingleTapActsOnReleaseAndADoubleTapStillFollows() {
|
||||
val direct = BackQamInput(changes::add, taps::add, atOnce = { true })
|
||||
fun press(action: Int) = direct.onKeyEvent(KeyEvent(action, KeyEvent.KEYCODE_BACK), true)
|
||||
press(KeyEvent.ACTION_DOWN)
|
||||
assertTrue(taps.isEmpty())
|
||||
press(KeyEvent.ACTION_UP)
|
||||
assertEquals(listOf(false), taps)
|
||||
assertTrue(direct.awaitingTap)
|
||||
advance(300)
|
||||
press(KeyEvent.ACTION_DOWN)
|
||||
advance(400)
|
||||
assertTrue(direct.awaitingTap)
|
||||
press(KeyEvent.ACTION_UP)
|
||||
assertEquals(listOf(false, true), taps)
|
||||
assertFalse(direct.awaitingTap)
|
||||
assertTrue(changes.isEmpty())
|
||||
}
|
||||
|
||||
@Test fun cancellingOnlyTheTapKeepsAPressThatIsAlreadyDown() {
|
||||
val direct = BackQamInput(changes::add, taps::add, atOnce = { true })
|
||||
fun press(action: Int) = direct.onKeyEvent(KeyEvent(action, KeyEvent.KEYCODE_BACK), true)
|
||||
press(KeyEvent.ACTION_DOWN)
|
||||
press(KeyEvent.ACTION_UP)
|
||||
advance(100)
|
||||
press(KeyEvent.ACTION_DOWN)
|
||||
direct.cancelTap()
|
||||
assertFalse(direct.awaitingTap)
|
||||
press(KeyEvent.ACTION_UP)
|
||||
assertEquals(listOf(false, false), taps)
|
||||
}
|
||||
|
||||
@Test fun anAtOnceTapStopsAwaitingWhenTheWindowEnds() {
|
||||
val direct = BackQamInput(changes::add, taps::add, atOnce = { true })
|
||||
direct.onKeyEvent(KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK), true)
|
||||
direct.onKeyEvent(KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK), true)
|
||||
advance(500)
|
||||
assertFalse(direct.awaitingTap)
|
||||
assertEquals(listOf(false), taps)
|
||||
}
|
||||
|
||||
@Test fun aHoldStartsAt700msAndNeverProducesATap() {
|
||||
assertTrue(send(KeyEvent.ACTION_DOWN))
|
||||
advance(699)
|
||||
@@ -231,19 +191,6 @@ class BackQamInputTest {
|
||||
assertTrue(taps.isEmpty())
|
||||
}
|
||||
|
||||
@Test fun cancellingHeldInputCanKeepThePendingTapForTheDoubleAction() {
|
||||
val direct = BackQamInput(changes::add, taps::add, atOnce = { true })
|
||||
fun press(action: Int) = direct.onKeyEvent(KeyEvent(action, KeyEvent.KEYCODE_BACK), true)
|
||||
press(KeyEvent.ACTION_DOWN)
|
||||
press(KeyEvent.ACTION_UP)
|
||||
direct.cancel(keepTap = true)
|
||||
assertTrue(direct.awaitingTap)
|
||||
press(KeyEvent.ACTION_DOWN)
|
||||
press(KeyEvent.ACTION_UP)
|
||||
assertEquals(listOf(false, true), taps)
|
||||
assertFalse(direct.awaitingTap)
|
||||
}
|
||||
|
||||
@Test fun cancellationAlsoDiscardsAPendingSingleTap() {
|
||||
send(KeyEvent.ACTION_DOWN)
|
||||
send(KeyEvent.ACTION_UP)
|
||||
|
||||
@@ -1,133 +0,0 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.os.Looper
|
||||
import java.time.Duration
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.Shadows.shadowOf
|
||||
import org.robolectric.annotation.Config
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
@Config(sdk = [34], manifest = Config.NONE)
|
||||
class BackTapsTest {
|
||||
private val seen = mutableListOf<Boolean>()
|
||||
private var atOnce = true
|
||||
private var window = 500L
|
||||
private val taps = BackTaps({ window }, { atOnce }, seen::add)
|
||||
|
||||
@Test fun aSingleTapActsWithoutWaitingForTheWindow() {
|
||||
taps.tap()
|
||||
assertEquals(listOf(false), seen)
|
||||
assertTrue(taps.pending)
|
||||
advance(500)
|
||||
assertEquals(listOf(false), seen)
|
||||
assertFalse(taps.pending)
|
||||
}
|
||||
|
||||
@Test fun aSecondTapInsideTheWindowAddsTheDoubleAction() {
|
||||
taps.tap()
|
||||
advance(499)
|
||||
taps.tap()
|
||||
assertEquals(listOf(false, true), seen)
|
||||
assertFalse(taps.pending)
|
||||
advance(1000)
|
||||
assertEquals(listOf(false, true), seen)
|
||||
}
|
||||
|
||||
@Test fun aTapAfterTheWindowIsANewSingleTap() {
|
||||
taps.tap()
|
||||
advance(500)
|
||||
taps.tap()
|
||||
assertEquals(listOf(false, false), seen)
|
||||
}
|
||||
|
||||
@Test fun aDeferredSingleTapWaitsForTheWindow() {
|
||||
atOnce = false
|
||||
taps.tap()
|
||||
advance(499)
|
||||
assertTrue(seen.isEmpty())
|
||||
advance(1)
|
||||
assertEquals(listOf(false), seen)
|
||||
}
|
||||
|
||||
@Test fun aDeferredDoubleTapProducesOnlyTheDoubleAction() {
|
||||
atOnce = false
|
||||
taps.tap()
|
||||
advance(100)
|
||||
taps.tap()
|
||||
advance(1000)
|
||||
assertEquals(listOf(true), seen)
|
||||
}
|
||||
|
||||
@Test fun theConfiguredWindowAppliesInBothModes() {
|
||||
for (mode in listOf(true, false)) for (ms in listOf(100L, 800L)) {
|
||||
seen.clear()
|
||||
atOnce = mode
|
||||
window = ms
|
||||
taps.tap()
|
||||
advance(ms - 1)
|
||||
taps.tap()
|
||||
assertEquals(true, seen.last())
|
||||
advance(ms)
|
||||
assertFalse(taps.pending)
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun holdKeepsTheWindowOpenUntilTheNextTap() {
|
||||
taps.tap()
|
||||
advance(400)
|
||||
taps.hold()
|
||||
advance(5000)
|
||||
assertTrue(taps.pending)
|
||||
taps.tap()
|
||||
assertEquals(listOf(false, true), seen)
|
||||
}
|
||||
|
||||
@Test fun cancelDropsADeferredTapAndClosesTheWindow() {
|
||||
atOnce = false
|
||||
taps.tap()
|
||||
taps.cancel()
|
||||
advance(1000)
|
||||
assertTrue(seen.isEmpty())
|
||||
assertFalse(taps.pending)
|
||||
taps.tap()
|
||||
advance(500)
|
||||
assertEquals(listOf(false), seen)
|
||||
}
|
||||
|
||||
@Test fun aDoubleTapWhoseActionMatchesTheImmediateSingleTapIsNotRepeated() {
|
||||
var same = true
|
||||
val coalesced = BackTaps({ window }, { atOnce }, seen::add, { same })
|
||||
coalesced.tap()
|
||||
coalesced.tap()
|
||||
assertEquals(listOf(false), seen)
|
||||
assertFalse(coalesced.pending)
|
||||
same = false
|
||||
coalesced.tap()
|
||||
coalesced.tap()
|
||||
assertEquals(listOf(false, false, true), seen)
|
||||
}
|
||||
|
||||
@Test fun aDeferredDoubleTapStillActsWhenBothActionsMatch() {
|
||||
atOnce = false
|
||||
val coalesced = BackTaps({ window }, { atOnce }, seen::add, { true })
|
||||
coalesced.tap()
|
||||
coalesced.tap()
|
||||
advance(1000)
|
||||
assertEquals(listOf(true), seen)
|
||||
}
|
||||
|
||||
@Test fun aHeldTapCancelledBeforeItsReleaseLeavesTheNextTapASingleTap() {
|
||||
val coalesced = BackTaps({ window }, { atOnce }, seen::add, { true })
|
||||
coalesced.tap()
|
||||
coalesced.hold()
|
||||
coalesced.cancel()
|
||||
advance(5000)
|
||||
coalesced.tap()
|
||||
assertEquals(listOf(false, false), seen)
|
||||
}
|
||||
|
||||
private fun advance(ms: Long) = shadowOf(Looper.getMainLooper()).idleFor(Duration.ofMillis(ms))
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
package com.droiddeck.launcher.input
|
||||
|
||||
import android.view.InputDevice
|
||||
import android.view.MotionEvent
|
||||
import org.junit.Assert.assertArrayEquals
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.annotation.Config
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
@Config(sdk = [34], manifest = Config.NONE)
|
||||
class PointerCaptureTest {
|
||||
@Test fun aCapturedMouseReportsItsPositionAsMovement() {
|
||||
val event = event(MotionEvent.ACTION_MOVE, InputDevice.SOURCE_MOUSE_RELATIVE, x = 12f, y = -7f)
|
||||
try {
|
||||
assertTrue(PointerCapture.accepts(event))
|
||||
assertFalse(PointerCapture.isTouchpad(event))
|
||||
assertArrayEquals(floatArrayOf(12f, -7f), PointerCapture.delta(event), 0.001f)
|
||||
} finally {
|
||||
event.recycle()
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun batchedMouseSamplesAddUp() {
|
||||
val event = event(MotionEvent.ACTION_MOVE, InputDevice.SOURCE_MOUSE_RELATIVE, x = 3f, y = -5f)
|
||||
try {
|
||||
event.addBatch(1L, arrayOf(MotionEvent.PointerCoords().apply { x = 2f; y = 4f }), 0)
|
||||
assertArrayEquals(floatArrayOf(5f, -1f), PointerCapture.delta(event), 0.001f)
|
||||
} finally {
|
||||
event.recycle()
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun aCapturedTouchpadIsACapturedPointer() {
|
||||
val event = event(MotionEvent.ACTION_DOWN, InputDevice.SOURCE_TOUCHPAD, x = 800f, y = 400f)
|
||||
try {
|
||||
assertTrue(PointerCapture.accepts(event))
|
||||
assertTrue(PointerCapture.isTouchpad(event))
|
||||
} finally {
|
||||
event.recycle()
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun anUncapturedMouseIsNotACapturedPointer() {
|
||||
val event = event(MotionEvent.ACTION_HOVER_MOVE, InputDevice.SOURCE_MOUSE, x = 12f, y = -7f)
|
||||
try {
|
||||
assertFalse(PointerCapture.accepts(event))
|
||||
} finally {
|
||||
event.recycle()
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun touchpadTravelMatchesTheSameDistanceOnScreen() {
|
||||
assertEquals(0.5f, PointerCapture.touchpadScale(unitsPerMm = 20f, padWidth = 2000f, pixelsPerMm = 10f, screenWidth = 1920), 0.001f)
|
||||
}
|
||||
|
||||
@Test fun aTouchpadWithoutAResolutionSpansTheScreen() {
|
||||
assertEquals(1.92f, PointerCapture.touchpadScale(unitsPerMm = 0f, padWidth = 1000f, pixelsPerMm = 10f, screenWidth = 1920), 0.001f)
|
||||
}
|
||||
|
||||
@Test fun aTouchpadWithoutARangeKeepsItsUnits() {
|
||||
assertEquals(1f, PointerCapture.touchpadScale(unitsPerMm = 0f, padWidth = 0f, pixelsPerMm = 10f, screenWidth = 1920), 0.001f)
|
||||
}
|
||||
|
||||
private fun event(action: Int, source: Int, x: Float, y: Float): MotionEvent {
|
||||
val properties = arrayOf(MotionEvent.PointerProperties().apply {
|
||||
id = 0
|
||||
toolType = MotionEvent.TOOL_TYPE_FINGER
|
||||
})
|
||||
val coords = arrayOf(MotionEvent.PointerCoords().apply { this.x = x; this.y = y })
|
||||
return MotionEvent.obtain(0L, 0L, action, 1, properties, coords, 0, 0, 1f, 1f, 0, 0, source, 0)
|
||||
}
|
||||
}
|
||||
@@ -331,81 +331,6 @@ class TouchpadGesturesTest {
|
||||
assertEquals(listOf("left down", "left up", "left down"), events)
|
||||
}
|
||||
|
||||
@Test fun aRestingFingerNeverDragsWhenHoldDragsAreOff() {
|
||||
touchpad = TouchpadGestures(SLOP, listener, holdDrags = false)
|
||||
touchpad.bounds = RectF(0f, 0f, 1920f, 1080f)
|
||||
touchpad.place(960f, 540f)
|
||||
touch(MotionEvent.ACTION_DOWN, 0, 1 to (400f to 300f))
|
||||
advance(TouchTiming.HOLD_MS + 100)
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 1, 1 to (400f to 300f), 2 to (600f to 300f))
|
||||
advance(10)
|
||||
touch(MotionEvent.ACTION_MOVE, 0, 1 to (400f to 300f), 2 to (620f to 300f))
|
||||
advance(10)
|
||||
touch(MotionEvent.ACTION_MOVE, 0, 1 to (400f to 300f), 2 to (640f to 300f))
|
||||
assertFalse(events.any { it.startsWith("left") || it == "long press" })
|
||||
}
|
||||
|
||||
@Test fun tapsStillClickWhenHoldDragsAreOff() {
|
||||
touchpad = TouchpadGestures(SLOP, listener, holdDrags = false)
|
||||
tap()
|
||||
assertEquals(listOf("left down"), events)
|
||||
}
|
||||
|
||||
@Test fun aPhysicalButtonPressIsNotAlsoATap() {
|
||||
touch(MotionEvent.ACTION_DOWN, 0, 1 to (400f to 300f))
|
||||
touchpad.buttonPressed()
|
||||
advance(80)
|
||||
touch(MotionEvent.ACTION_UP, 0, 1 to (400f to 300f))
|
||||
advance(TouchTiming.HOLD_MS + 100)
|
||||
assertTrue(events.isEmpty())
|
||||
}
|
||||
|
||||
@Test fun aPhysicalButtonPressDuringTwoFingersIsNotARightClick() {
|
||||
touch(MotionEvent.ACTION_DOWN, 0, 1 to (400f to 300f))
|
||||
advance(10)
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 1, 1 to (400f to 300f), 2 to (600f to 300f))
|
||||
touchpad.buttonPressed()
|
||||
advance(40)
|
||||
touch(MotionEvent.ACTION_POINTER_UP, 1, 1 to (400f to 300f), 2 to (600f to 300f))
|
||||
touch(MotionEvent.ACTION_UP, 0, 1 to (400f to 300f))
|
||||
assertTrue(events.isEmpty())
|
||||
}
|
||||
|
||||
@Test fun aSecondFingerAfterAPhysicalButtonPressIsNotARightClick() {
|
||||
touch(MotionEvent.ACTION_DOWN, 0, 1 to (400f to 300f))
|
||||
touchpad.buttonPressed()
|
||||
advance(10)
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 1, 1 to (400f to 300f), 2 to (600f to 300f))
|
||||
advance(40)
|
||||
touch(MotionEvent.ACTION_POINTER_UP, 1, 1 to (400f to 300f), 2 to (600f to 300f))
|
||||
touch(MotionEvent.ACTION_UP, 0, 1 to (400f to 300f))
|
||||
advance(TouchTiming.HOLD_MS + 100)
|
||||
assertTrue(events.isEmpty())
|
||||
twoFingerTapStillRightClicks()
|
||||
}
|
||||
|
||||
@Test fun aPhysicalButtonPressReleasesAPendingTapClickFirst() {
|
||||
tap()
|
||||
assertEquals(listOf("left down"), events)
|
||||
touchpad.buttonPressed()
|
||||
assertEquals(listOf("left down", "left up"), events)
|
||||
advance(TouchTiming.CLICK_MS + 100)
|
||||
assertEquals(listOf("left down", "left up"), events)
|
||||
}
|
||||
|
||||
private fun twoFingerTapStillRightClicks() {
|
||||
advance(1000)
|
||||
events.clear()
|
||||
touch(MotionEvent.ACTION_DOWN, 0, 1 to (400f to 300f))
|
||||
advance(10)
|
||||
touch(MotionEvent.ACTION_POINTER_DOWN, 1, 1 to (400f to 300f), 2 to (600f to 300f))
|
||||
advance(40)
|
||||
touch(MotionEvent.ACTION_POINTER_UP, 1, 1 to (400f to 300f), 2 to (600f to 300f))
|
||||
touch(MotionEvent.ACTION_UP, 0, 1 to (400f to 300f))
|
||||
advance(TouchTiming.HOLD_MS + 100)
|
||||
assertTrue("right down" in events)
|
||||
}
|
||||
|
||||
private fun tap() {
|
||||
touch(MotionEvent.ACTION_DOWN, 0, 1 to (400f to 300f))
|
||||
advance(80)
|
||||
|
||||
@@ -2,9 +2,7 @@ package com.droiddeck.launcher.session
|
||||
|
||||
import org.junit.After
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertNull
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
@@ -16,21 +14,7 @@ import org.robolectric.annotation.Config
|
||||
class GpuClockPinTest {
|
||||
private val context = RuntimeEnvironment.getApplication()
|
||||
|
||||
private val calls = mutableListOf<Boolean>()
|
||||
private val node = GpuClockPin.supported
|
||||
private val turbo = GpuClockPin.turbo
|
||||
|
||||
@After fun stop() {
|
||||
GpuClockPin.stop(context)
|
||||
GpuClockPin.supported = node
|
||||
GpuClockPin.turbo = turbo
|
||||
SessionPrefs.setGpuClockPin(context, false)
|
||||
}
|
||||
|
||||
private fun fakeGpu() {
|
||||
GpuClockPin.supported = true
|
||||
GpuClockPin.turbo = { calls += it }
|
||||
}
|
||||
@After fun stop() { GpuClockPin.stop(context) }
|
||||
|
||||
@Test fun aToggleOutsideASessionSaysNothing() {
|
||||
SessionPrefs.setGpuClockPin(context, true)
|
||||
@@ -47,52 +31,4 @@ class GpuClockPinTest {
|
||||
SessionPrefs.setGpuClockPin(context, false)
|
||||
assertEquals(started, GpuClockPin.sync(context))
|
||||
}
|
||||
|
||||
@Test fun aBoostHoldsTheClockOnlyWhileItLasts() {
|
||||
fakeGpu()
|
||||
assertEquals("gpu clock: governed", GpuClockPin.start(context))
|
||||
assertTrue(GpuClockPin.boost(true))
|
||||
assertEquals("gpu clock: held at its top", GpuClockPin.sync(context))
|
||||
assertFalse(GpuClockPin.boost(true))
|
||||
assertTrue(GpuClockPin.boost(false))
|
||||
assertEquals("gpu clock: governed", GpuClockPin.sync(context))
|
||||
assertEquals(listOf(true, false), calls)
|
||||
}
|
||||
|
||||
@Test fun endingABoostKeepsTheHoldTheUserTurnedOn() {
|
||||
fakeGpu()
|
||||
SessionPrefs.setGpuClockPin(context, true)
|
||||
GpuClockPin.start(context)
|
||||
GpuClockPin.boost(true)
|
||||
GpuClockPin.sync(context)
|
||||
GpuClockPin.boost(false)
|
||||
assertEquals("gpu clock: held at its top", GpuClockPin.sync(context))
|
||||
assertFalse(false in calls)
|
||||
}
|
||||
|
||||
@Test fun aBoostOutsideASessionDoesNothing() {
|
||||
fakeGpu()
|
||||
GpuClockPin.boost(true)
|
||||
assertNull(GpuClockPin.sync(context))
|
||||
assertTrue(calls.isEmpty())
|
||||
}
|
||||
|
||||
@Test fun aBoostDoesNotOutliveItsSession() {
|
||||
fakeGpu()
|
||||
GpuClockPin.start(context)
|
||||
GpuClockPin.boost(true)
|
||||
GpuClockPin.sync(context)
|
||||
GpuClockPin.stop(context)
|
||||
assertEquals("gpu clock: governed", GpuClockPin.start(context))
|
||||
assertEquals(listOf(true, false), calls)
|
||||
}
|
||||
|
||||
@Test fun aBoostWithoutTheGpuNodeLeavesTheClockGoverned() {
|
||||
GpuClockPin.supported = false
|
||||
GpuClockPin.turbo = { calls += it }
|
||||
GpuClockPin.start(context)
|
||||
GpuClockPin.boost(true)
|
||||
assertEquals("gpu clock: no /dev/kgsl-3d0, left governed", GpuClockPin.sync(context))
|
||||
assertTrue(calls.isEmpty())
|
||||
}
|
||||
}
|
||||
@@ -444,33 +444,3 @@ starts there as before, but no motion is sent for it. The fake pointer position
|
||||
With the patch, the Duo starts with only the bottom bar under the parked pointer hovered and controller focus on the
|
||||
first tile (4 of 4 starts), and returns from a game the same way (3 of 3). Making 0100 ignore the X server's initial
|
||||
pointer instead was tried and rejected: the centre motion still arrived, and the header or search bar ended up hovered.
|
||||
|
||||
## 0143 wlserver: only the first finger drives the emulated mouse
|
||||
|
||||
In the Hover, Left, Right, Middle and Trackpad touch click modes every finger warped the X pointer and any finger lifting
|
||||
released the click. With a second finger down the pointer jumped between both fingers on every frame while the button
|
||||
stayed held, so a dragged item followed whichever finger moved last, and lifting the second finger dropped it under the
|
||||
first. The first finger of a gesture now owns the emulated mouse: only it moves the pointer and only its lift releases the
|
||||
click. Fingers that land while it is down are ignored, and so are the others once it lifts, until every finger is up.
|
||||
Touches the click modes never claimed (Passthrough, Disabled, no focused surface) still release a held click when they
|
||||
lift, and the nested pointer (`bAlwaysWarpCursor`) moves the pointer as before. `tools/tests/test_gamescope_touch_click_owner.py`
|
||||
compiles the rule from this patch.
|
||||
|
||||
## 0144 steamcompmgr: motion into the screen edge does not decide the pointer hold
|
||||
|
||||
0133 compares the motion gamescope sends with how the X pointer moves. At the edge of the X screen the pointer cannot move
|
||||
further, so a drawn-cursor game whose pointer sat at an edge while touch or mouse motion pushed outward counted as
|
||||
holding the pointer: the hold stayed on, every such frame restarted the 30 frames needed to release it, and touch drags
|
||||
kept turning into relative motion with no button held. The sent motion is now clamped to what the pointer can reach
|
||||
inside the X screen before it is compared, so motion into an edge counts as no motion. A recentring game is detected as
|
||||
before, since its pointer stays away from the edges. `tools/tests/test_gamescope_pointer_hold_edge.py` compiles the rule
|
||||
from this patch with the 0133 rule.
|
||||
|
||||
## 0145 steamcompmgr: touch-down warps do not decide the pointer hold
|
||||
|
||||
In click mode every touch-down warps the X pointer to the finger. 0133 read that jump as the pointer not following the
|
||||
sent motion, so each new stroke on a drawn-cursor game restarted the 30 following frames needed to release the hold.
|
||||
Short strokes never released it, and taps kept landing at the relative pointer instead of under the finger. wlserver now
|
||||
counts its touch-down warps, and a frame that contains one is left out of the hold decision. Touch drags, mouse motion
|
||||
and mouse warps still count, so a drag on a game that follows the pointer releases the hold and a recentring game is
|
||||
still held. `tools/tests/test_gamescope_pointer_hold_touch_down.py` compiles the rule with the 0133 rule.
|
||||
@@ -1,75 +0,0 @@
|
||||
diff --git a/src/wlserver.cpp b/src/wlserver.cpp
|
||||
index 9740875..cb72051 100644
|
||||
--- a/src/wlserver.cpp
|
||||
+++ b/src/wlserver.cpp
|
||||
@@ -3283,6 +3283,38 @@ static void apply_touchscreen_orientation(GamescopePanelOrientation orientation,
|
||||
*y = ty;
|
||||
}
|
||||
|
||||
+struct TouchClickState
|
||||
+{
|
||||
+ std::set<int> ids;
|
||||
+ int nOwner = -1;
|
||||
+};
|
||||
+
|
||||
+static TouchClickState s_TouchClick;
|
||||
+
|
||||
+static bool touch_click_claim( TouchClickState &state, int nTouchId )
|
||||
+{
|
||||
+ if ( state.ids.empty() )
|
||||
+ state.nOwner = nTouchId;
|
||||
+ state.ids.insert( nTouchId );
|
||||
+ return state.nOwner == nTouchId;
|
||||
+}
|
||||
+
|
||||
+static bool touch_click_drives( const TouchClickState &state, int nTouchId )
|
||||
+{
|
||||
+ return state.nOwner == nTouchId;
|
||||
+}
|
||||
+
|
||||
+static bool touch_click_lift( TouchClickState &state, int nTouchId )
|
||||
+{
|
||||
+ const bool bTracked = state.ids.erase( nTouchId ) > 0;
|
||||
+ if ( state.nOwner == nTouchId )
|
||||
+ {
|
||||
+ state.nOwner = -1;
|
||||
+ return true;
|
||||
+ }
|
||||
+ return !bTracked && state.nOwner < 0;
|
||||
+}
|
||||
+
|
||||
void wlserver_touchmotion( double x, double y, int touch_id, uint32_t time, bool bAlwaysWarpCursor, gamescope::IBackendConnector* connector )
|
||||
{
|
||||
assert( wlserver_is_lock_held() );
|
||||
@@ -3333,9 +3365,10 @@ void wlserver_touchmotion( double x, double y, int touch_id, uint32_t time, bool
|
||||
}
|
||||
else if ( eMode == gamescope::TouchClickModes::Trackpad )
|
||||
{
|
||||
- wlserver_mousemotion( trackpad_dx, trackpad_dy, time );
|
||||
+ if ( touch_click_drives( s_TouchClick, touch_id ) )
|
||||
+ wlserver_mousemotion( trackpad_dx, trackpad_dy, time );
|
||||
}
|
||||
- else
|
||||
+ else if ( bAlwaysWarpCursor || touch_click_drives( s_TouchClick, touch_id ) )
|
||||
{
|
||||
g_bPendingTouchMovement = true;
|
||||
|
||||
@@ -3389,7 +3422,7 @@ void wlserver_touchdown( double x, double y, int touch_id, uint32_t time, gamesc
|
||||
{
|
||||
return;
|
||||
}
|
||||
- else
|
||||
+ else if ( touch_click_claim( s_TouchClick, touch_id ) )
|
||||
{
|
||||
g_bPendingTouchMovement = true;
|
||||
|
||||
@@ -3417,7 +3450,8 @@ void wlserver_touchup( int touch_id, uint32_t time )
|
||||
|
||||
// Release whatever the touch pressed even if its surface is gone, or the seat keeps the button down.
|
||||
bool bReleasedAny = false;
|
||||
- for ( int i = 0; i < WLSERVER_BUTTON_COUNT; i++ )
|
||||
+ const bool bClickTouch = touch_click_lift( s_TouchClick, touch_id );
|
||||
+ for ( int i = 0; bClickTouch && i < WLSERVER_BUTTON_COUNT; i++ )
|
||||
{
|
||||
if ( wlserver.button_held[ i ] == true )
|
||||
{
|
||||
@@ -1,28 +0,0 @@
|
||||
diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp
|
||||
index e98d320..85af598 100644
|
||||
--- a/src/steamcompmgr.cpp
|
||||
+++ b/src/steamcompmgr.cpp
|
||||
@@ -3245,6 +3245,11 @@ static bool pointer_hold_step( PointerHold &state, bool bConstrained, double flS
|
||||
return state.bHeld;
|
||||
}
|
||||
|
||||
+static double pointer_reach( int nFrom, double flDelta, int nSize )
|
||||
+{
|
||||
+ return std::clamp( nFrom + flDelta, 0.0, double( std::max( nSize - 1, 0 ) ) ) - nFrom;
|
||||
+}
|
||||
+
|
||||
static bool s_bPointerHeld = false;
|
||||
|
||||
static void update_pointer_hold( global_focus_t *pFocus, bool bConstrained, bool bHinted )
|
||||
@@ -3311,7 +3316,10 @@ static void update_pointer_hold( global_focus_t *pFocus, bool bConstrained, bool
|
||||
|
||||
if ( s_bTracking )
|
||||
{
|
||||
- s_bPointerHeld = pointer_hold_step( s_Hold, true, flDX, flDY, nRootX - s_nRootX, nRootY - s_nRootY, get_time_in_nanos() );
|
||||
+ const xwayland_ctx_t *pCtx = pFocus->cursor->getCtx();
|
||||
+ const double flReachX = pointer_reach( s_nRootX, flDX, pCtx->root_width );
|
||||
+ const double flReachY = pointer_reach( s_nRootY, flDY, pCtx->root_height );
|
||||
+ s_bPointerHeld = pointer_hold_step( s_Hold, true, flReachX, flReachY, nRootX - s_nRootX, nRootY - s_nRootY, get_time_in_nanos() );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1,73 +0,0 @@
|
||||
diff --git a/src/wlserver.hpp b/src/wlserver.hpp
|
||||
--- a/src/wlserver.hpp
|
||||
+++ b/src/wlserver.hpp
|
||||
@@ -173,6 +173,7 @@
|
||||
double flFollowDY = 0.0;
|
||||
double flSentDX = 0.0;
|
||||
double flSentDY = 0.0;
|
||||
+ uint64_t ulTouchDownWarps = 0;
|
||||
|
||||
bool button_held[ WLSERVER_BUTTON_COUNT ];
|
||||
std::set <uint32_t> touch_down_ids;
|
||||
diff --git a/src/wlserver.cpp b/src/wlserver.cpp
|
||||
--- a/src/wlserver.cpp
|
||||
+++ b/src/wlserver.cpp
|
||||
@@ -3429,6 +3429,7 @@
|
||||
if ( eMode != gamescope::TouchClickModes::Trackpad )
|
||||
{
|
||||
wlserver_mousewarp( tx, ty, time, false, true );
|
||||
+ wlserver.ulTouchDownWarps++;
|
||||
}
|
||||
|
||||
uint32_t button = TouchClickModeToLinuxButton( eMode );
|
||||
diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp
|
||||
--- a/src/steamcompmgr.cpp
|
||||
+++ b/src/steamcompmgr.cpp
|
||||
@@ -3263,6 +3263,7 @@
|
||||
static bool s_bHinted = false;
|
||||
static const steamcompmgr_win_t *s_pWindow = nullptr;
|
||||
static const struct wlr_pointer_constraint_v1 *s_pConstraint = nullptr;
|
||||
+ static uint64_t s_ulTouchDownWarps = 0;
|
||||
|
||||
wlserver_lock();
|
||||
const double flX = wlserver.mouse_surface_cursorx;
|
||||
@@ -3272,8 +3273,12 @@
|
||||
const struct wlr_pointer_constraint_v1 *pConstraint = wlserver.GetCursorConstraint();
|
||||
wlserver.flSentDX = 0.0;
|
||||
wlserver.flSentDY = 0.0;
|
||||
+ const uint64_t ulTouchDownWarps = wlserver.ulTouchDownWarps;
|
||||
wlserver_unlock();
|
||||
|
||||
+ const bool bTouchDown = ulTouchDownWarps != s_ulTouchDownWarps;
|
||||
+ s_ulTouchDownWarps = ulTouchDownWarps;
|
||||
+
|
||||
if ( !bConstrained || !pFocus->cursor )
|
||||
{
|
||||
s_bTracking = false;
|
||||
@@ -3314,19 +3319,19 @@
|
||||
int nRootY = 0;
|
||||
pFocus->cursor->QueryRootPosition( &nRootX, &nRootY );
|
||||
|
||||
- if ( s_bTracking )
|
||||
+ if ( !s_bTracking )
|
||||
+ {
|
||||
+ s_Hold = PointerHold{};
|
||||
+ s_Hold.bHeld = bHinted;
|
||||
+ s_bPointerHeld = bHinted;
|
||||
+ }
|
||||
+ else if ( !bTouchDown )
|
||||
{
|
||||
const xwayland_ctx_t *pCtx = pFocus->cursor->getCtx();
|
||||
const double flReachX = pointer_reach( s_nRootX, flDX, pCtx->root_width );
|
||||
const double flReachY = pointer_reach( s_nRootY, flDY, pCtx->root_height );
|
||||
s_bPointerHeld = pointer_hold_step( s_Hold, true, flReachX, flReachY, nRootX - s_nRootX, nRootY - s_nRootY, get_time_in_nanos() );
|
||||
}
|
||||
- else
|
||||
- {
|
||||
- s_Hold = PointerHold{};
|
||||
- s_Hold.bHeld = bHinted;
|
||||
- s_bPointerHeld = bHinted;
|
||||
- }
|
||||
|
||||
s_bTracking = true;
|
||||
s_flSeatX = flX;
|
||||
@@ -1,102 +0,0 @@
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
HOLD = ROOT / "tools/gamescope/patches/0133-constraint-relative-when-held.patch"
|
||||
EDGE = ROOT / "tools/gamescope/patches/0144-pointer-hold-ignores-motion-into-the-edge.patch"
|
||||
|
||||
|
||||
def added_source(patch):
|
||||
return "\n".join(line[1:] for line in patch.read_text().splitlines() if line.startswith("+") and not line.startswith("+++"))
|
||||
|
||||
|
||||
def block(text, start):
|
||||
begin = text.index(start)
|
||||
return text[begin:text.index("\n}", begin) + 3]
|
||||
|
||||
|
||||
PREAMBLE = r'''
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
'''
|
||||
|
||||
MAIN = r'''
|
||||
static const uint64_t FRAME = 16'666'667ul;
|
||||
|
||||
struct Pointer {
|
||||
PointerHold hold;
|
||||
int x;
|
||||
int width;
|
||||
uint64_t now = 1'000'000'000ul;
|
||||
bool step(double seatDX, int pointerDX) {
|
||||
now += FRAME;
|
||||
const double reach = pointer_reach(x, seatDX, width);
|
||||
x += pointerDX;
|
||||
return pointer_hold_step(hold, true, reach, 0.0, pointerDX, 0.0, now);
|
||||
}
|
||||
};
|
||||
|
||||
int main() {
|
||||
assert(pointer_reach(1279, 26.0, 1280) == 0.0);
|
||||
assert(pointer_reach(1270, 26.0, 1280) == 9.0);
|
||||
assert(pointer_reach(0, -13.0, 1280) == 0.0);
|
||||
assert(pointer_reach(640, -13.0, 1280) == -13.0);
|
||||
assert(pointer_reach(5, 3.0, 0) == -5.0);
|
||||
|
||||
Pointer pinned{{}, 1279, 1280};
|
||||
for (int i = 0; i < 20; i++) assert(!pinned.step(26.0, 0));
|
||||
|
||||
Pointer release{{}, 1279, 1280};
|
||||
release.hold.bHeld = true;
|
||||
for (int i = 0; i < 20; i++) assert(release.step(26.0, 0));
|
||||
for (int i = 0; i < 10; i++) assert(release.step(-13.0, -13));
|
||||
for (int i = 0; i < 10; i++) assert(release.step(13.0, 13));
|
||||
assert(release.x == 1279);
|
||||
for (int i = 0; i < 20; i++) assert(release.step(26.0, 0));
|
||||
for (int i = 0; i < 9; i++) assert(release.step(-13.0, -13));
|
||||
assert(!release.step(-13.0, -13));
|
||||
bool held = false;
|
||||
|
||||
Pointer recentre{{}, 640, 1280};
|
||||
held = false;
|
||||
for (int i = 0; i < 3; i++) held = recentre.step(26.0, 0);
|
||||
assert(held);
|
||||
return 0;
|
||||
}
|
||||
'''
|
||||
|
||||
|
||||
class GamescopePointerHoldEdgeTest(unittest.TestCase):
|
||||
def test_motion_into_the_screen_edge_neither_holds_nor_resets_the_release(self):
|
||||
compiler = shutil.which("c++") or shutil.which("g++") or shutil.which("clang++")
|
||||
if not compiler:
|
||||
self.skipTest("no C++ compiler")
|
||||
hold = added_source(HOLD)
|
||||
edge = added_source(EDGE)
|
||||
source = PREAMBLE + "\n".join([
|
||||
block(hold, "struct PointerHold"),
|
||||
block(hold, "static bool pointer_hold_step"),
|
||||
block(edge, "static double pointer_reach"),
|
||||
]) + MAIN
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
src = Path(tmp) / "pointer_hold_edge.cpp"
|
||||
exe = Path(tmp) / "pointer_hold_edge"
|
||||
src.write_text(source)
|
||||
subprocess.run([compiler, "-std=c++17", "-Wall", "-Werror", "-UNDEBUG", str(src), "-o", str(exe)], check=True)
|
||||
subprocess.run([str(exe)], check=True)
|
||||
|
||||
def test_the_hold_rule_compares_against_the_reachable_motion(self):
|
||||
edge = added_source(EDGE)
|
||||
self.assertIn("pointer_reach( s_nRootX, flDX, pCtx->root_width )", edge)
|
||||
self.assertIn("pointer_reach( s_nRootY, flDY, pCtx->root_height )", edge)
|
||||
self.assertIn("pointer_hold_step( s_Hold, true, flReachX, flReachY,", edge)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -1,109 +0,0 @@
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
HOLD = ROOT / "tools/gamescope/patches/0133-constraint-relative-when-held.patch"
|
||||
DOWN = ROOT / "tools/gamescope/patches/0145-pointer-hold-skips-touch-down-warps.patch"
|
||||
|
||||
|
||||
def added_source(patch):
|
||||
return "\n".join(line[1:] for line in patch.read_text().splitlines() if line.startswith("+") and not line.startswith("+++"))
|
||||
|
||||
|
||||
def block(text, start):
|
||||
begin = text.index(start)
|
||||
return text[begin:text.index("\n}", begin) + 3]
|
||||
|
||||
|
||||
PREAMBLE = r'''
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
'''
|
||||
|
||||
MAIN = r'''
|
||||
static const uint64_t FRAME = 16'666'667ul;
|
||||
|
||||
struct Session {
|
||||
PointerHold hold;
|
||||
uint64_t now = 1'000'000'000ul;
|
||||
bool skipTouchDown;
|
||||
bool frame(double seatDX, double pointerDX, bool touchDown) {
|
||||
now += FRAME;
|
||||
if (touchDown && skipTouchDown) return hold.bHeld;
|
||||
return pointer_hold_step(hold, true, seatDX, 0.0, pointerDX, 0.0, now);
|
||||
}
|
||||
void held() {
|
||||
hold = PointerHold{};
|
||||
hold.bHeld = true;
|
||||
}
|
||||
bool strokes() {
|
||||
held();
|
||||
bool result = true;
|
||||
for (int i = 0; i < 17; i++) result = frame(80.0, 80.0, false);
|
||||
result = frame(41.0, -1106.0, true);
|
||||
for (int i = 0; i < 15; i++) result = frame(73.3, 73.0, false);
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
int main() {
|
||||
Session counted{{}, 1'000'000'000ul, false};
|
||||
assert(counted.strokes());
|
||||
|
||||
Session skipped{{}, 1'000'000'000ul, true};
|
||||
assert(!skipped.strokes());
|
||||
|
||||
Session drag{{}, 1'000'000'000ul, true};
|
||||
drag.held();
|
||||
bool result = drag.frame(41.0, -1106.0, true);
|
||||
assert(result);
|
||||
for (int i = 0; i < 29; i++) result = drag.frame(12.0, 12.0, false);
|
||||
assert(result);
|
||||
result = drag.frame(12.0, 12.0, false);
|
||||
assert(!result);
|
||||
|
||||
Session recentre{{}, 1'000'000'000ul, true};
|
||||
for (int i = 0; i < 3; i++) result = recentre.frame(26.0, 0.0, false);
|
||||
assert(result);
|
||||
result = recentre.frame(-400.0, 300.0, true);
|
||||
assert(result);
|
||||
for (int i = 0; i < 40; i++) result = recentre.frame(12.0, 0.0, false);
|
||||
assert(result);
|
||||
return 0;
|
||||
}
|
||||
'''
|
||||
|
||||
|
||||
class GamescopePointerHoldTouchDownTest(unittest.TestCase):
|
||||
def test_touch_down_is_skipped_and_touch_drags_release_the_hold(self):
|
||||
compiler = shutil.which("c++") or shutil.which("g++") or shutil.which("clang++")
|
||||
if not compiler:
|
||||
self.skipTest("no C++ compiler")
|
||||
hold = added_source(HOLD)
|
||||
source = PREAMBLE + "\n".join([
|
||||
block(hold, "struct PointerHold"),
|
||||
block(hold, "static bool pointer_hold_step"),
|
||||
]) + MAIN
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
src = Path(tmp) / "pointer_hold_touch_down.cpp"
|
||||
exe = Path(tmp) / "pointer_hold_touch_down"
|
||||
src.write_text(source)
|
||||
subprocess.run([compiler, "-std=c++17", "-Wall", "-Werror", "-UNDEBUG", str(src), "-o", str(exe)], check=True)
|
||||
subprocess.run([str(exe)], check=True)
|
||||
|
||||
def test_only_touch_down_warps_are_skipped(self):
|
||||
added = added_source(DOWN)
|
||||
self.assertIn(" \t\t\t\twlserver_mousewarp( tx, ty, time, false, true );\n+\t\t\t\twlserver.ulTouchDownWarps++;", DOWN.read_text())
|
||||
self.assertEqual(1, added.count("wlserver.ulTouchDownWarps++"))
|
||||
self.assertIn("const bool bTouchDown = ulTouchDownWarps != s_ulTouchDownWarps;", added)
|
||||
self.assertIn("else if ( !bTouchDown )", added)
|
||||
self.assertNotIn("bFromTouch )\n\t\twlserver.ulTouchDownWarps++", added)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -1,121 +0,0 @@
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
PATCH = ROOT / "tools/gamescope/patches/0143-touch-click-first-finger-drives.patch"
|
||||
|
||||
|
||||
def added_source():
|
||||
return "\n".join(line[1:] for line in PATCH.read_text().splitlines() if line.startswith("+") and not line.startswith("+++"))
|
||||
|
||||
|
||||
def block(text, start):
|
||||
begin = text.index(start)
|
||||
return text[begin:text.index("\n}", begin) + 3]
|
||||
|
||||
|
||||
PREAMBLE = r'''
|
||||
#include <cassert>
|
||||
#include <set>
|
||||
'''
|
||||
|
||||
MAIN = r'''
|
||||
struct Pointer {
|
||||
TouchClickState state;
|
||||
int warps = 0;
|
||||
int presses = 0;
|
||||
int releases = 0;
|
||||
void down(int id) { if (touch_click_claim(state, id)) { warps++; presses++; } }
|
||||
void move(int id, bool nested = false) { if (nested || touch_click_drives(state, id)) warps++; }
|
||||
void up(int id) { if (touch_click_lift(state, id)) releases++; }
|
||||
};
|
||||
|
||||
int main() {
|
||||
Pointer tap;
|
||||
tap.down(1);
|
||||
tap.move(1);
|
||||
tap.up(1);
|
||||
assert(tap.presses == 1 && tap.releases == 1 && tap.warps == 2);
|
||||
|
||||
Pointer drag;
|
||||
drag.down(1);
|
||||
drag.move(1);
|
||||
drag.down(2);
|
||||
drag.move(2);
|
||||
drag.move(1);
|
||||
drag.up(2);
|
||||
assert(drag.presses == 1 && drag.releases == 0 && drag.warps == 3);
|
||||
drag.move(1);
|
||||
drag.up(1);
|
||||
assert(drag.releases == 1 && drag.warps == 4);
|
||||
|
||||
Pointer handover;
|
||||
handover.down(1);
|
||||
handover.down(2);
|
||||
handover.up(1);
|
||||
assert(handover.releases == 1);
|
||||
handover.move(2);
|
||||
handover.down(3);
|
||||
handover.move(3);
|
||||
assert(handover.warps == 1 && handover.presses == 1);
|
||||
handover.up(3);
|
||||
handover.up(2);
|
||||
assert(handover.releases == 1);
|
||||
handover.down(4);
|
||||
handover.move(4);
|
||||
handover.up(4);
|
||||
assert(handover.presses == 2 && handover.releases == 2 && handover.warps == 3);
|
||||
|
||||
Pointer nested;
|
||||
nested.move(0, true);
|
||||
nested.down(1);
|
||||
nested.move(0, true);
|
||||
assert(nested.warps == 3);
|
||||
|
||||
Pointer stray;
|
||||
stray.up(7);
|
||||
assert(stray.releases == 1);
|
||||
stray.down(1);
|
||||
stray.up(7);
|
||||
assert(stray.releases == 1);
|
||||
stray.up(1);
|
||||
assert(stray.releases == 2);
|
||||
return 0;
|
||||
}
|
||||
'''
|
||||
|
||||
|
||||
class GamescopeTouchClickOwnerTest(unittest.TestCase):
|
||||
def test_only_the_first_finger_drives_the_emulated_mouse(self):
|
||||
compiler = shutil.which("c++") or shutil.which("g++") or shutil.which("clang++")
|
||||
if not compiler:
|
||||
self.skipTest("no C++ compiler")
|
||||
added = added_source()
|
||||
helpers = "\n".join(block(added, start) for start in (
|
||||
"struct TouchClickState",
|
||||
"static bool touch_click_claim",
|
||||
"static bool touch_click_drives",
|
||||
"static bool touch_click_lift",
|
||||
))
|
||||
source = PREAMBLE + helpers + MAIN
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
src = Path(tmp) / "touch_click_owner.cpp"
|
||||
exe = Path(tmp) / "touch_click_owner"
|
||||
src.write_text(source)
|
||||
subprocess.run([compiler, "-std=c++17", "-Wall", "-Werror", "-UNDEBUG", str(src), "-o", str(exe)], check=True)
|
||||
subprocess.run([str(exe)], check=True)
|
||||
|
||||
def test_the_patch_gates_every_finger_path(self):
|
||||
added = added_source()
|
||||
self.assertIn("else if ( bAlwaysWarpCursor || touch_click_drives( s_TouchClick, touch_id ) )", added)
|
||||
self.assertIn("if ( touch_click_drives( s_TouchClick, touch_id ) )", added)
|
||||
self.assertIn("else if ( touch_click_claim( s_TouchClick, touch_id ) )", added)
|
||||
self.assertIn("bClickTouch && i < WLSERVER_BUTTON_COUNT", added)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user