Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2024-02-19 | shader_recompiler: throw on missing geometry streams in geometry shaders | Liam | 3 | -3/+10 | |
2024-02-16 | shader_recompiler: fix non-const offset for arrayed image types | Liam | 1 | -4/+10 | |
2024-02-16 | Revert "shader_recompiler: use only ConstOffset for OpImageFetch" | Liam | 2 | -7/+38 | |
This reverts commit f296a9ce9a1a144d322d54d4628dba6f8a800cb7. | |||||
2024-02-05 | shader_recompiler: use only ConstOffset for OpImageFetch | Liam | 2 | -38/+7 | |
2024-01-16 | Fix more typos | Viktor Szépe | 1 | -2/+2 | |
2024-01-11 | shader_recompiler: emulate 8-bit and 16-bit storage writes with cas loop | Liam | 3 | -8/+86 | |
2024-01-11 | shader_recompiler: fix Offset operand usage for non-OpImage*Gather | Liam | 2 | -23/+55 | |
2024-01-08 | Fix "Propietary" typo elsewhere | Viktor Szépe | 2 | -4/+4 | |
2023-12-27 | shader_recompiler: use default value for clip distances array | Liam | 1 | -7/+13 | |
2023-12-27 | shader_recompiler: respect clip distance limits in indexed store | Liam | 1 | -18/+28 | |
2023-12-22 | spirv_emit_context: Fix BaseInstance for OGL spirv | Ameer J | 1 | -1/+1 | |
2023-12-22 | shader_recompiler: ensure derivatives for textureGrad are f32 | Liam | 1 | -1/+11 | |
2023-12-21 | shader_recompiler: use float image operations on load/store when required | Liam | 6 | -20/+158 | |
2023-12-21 | emit_glsl_image: Use inlined texelFetch offsets | Ameer J | 2 | -7/+7 | |
2023-12-19 | shader_recompiler: use minimal clip distance array | Liam | 3 | -2/+9 | |
2023-12-19 | shader_recompiler: ignore clip distances beyond driver support level | Liam | 3 | -1/+8 | |
2023-11-27 | GLSL: Prefer known used cbuf sizes | Ameer J | 1 | -1/+4 | |
2023-11-19 | renderer_vulkan: ignore viewport stores on non-supporting drivers | Liam | 3 | -1/+6 | |
2023-11-18 | shader_recompiler: Fix spelling of "derivate" (#12067) | Ameer J | 9 | -58/+59 | |
2023-11-18 | shader_recompiler: add byteswap pattern workaround for Nvidia | Ameer J | 4 | -0/+82 | |
2023-11-01 | shader_recompiler: Align SSBO offsets in GlobalMemory functions | Ameer J | 4 | -5/+15 | |
2023-11-01 | shader_recompiler: Align SSBO offsets to meet host requirements | Ameer J | 4 | -6/+12 | |
Co-Authored-By: Billy Laws <blaws05@gmail.com> | |||||
2023-10-22 | emit_glsl_warp: Fix shfl_in_bounds conditional | Ameer J | 2 | -4/+9 | |
2023-10-19 | Manually robust on Maxwell and earlier | Kelebek1 | 3 | -4/+59 | |
2023-10-03 | ci: fix new codespell errors | Liam | 1 | -1/+1 | |
2023-09-22 | emit_spirv: fix incorrect use of descriptor index in image atomics | Liam | 2 | -13/+9 | |
2023-09-14 | shader_recompiler: skip sampler for buffer textures (#11435) | liamwhite | 3 | -6/+2 | |
2023-09-03 | msvc: set warning level to /W4 globally | Danila Malyutin | 1 | -2/+0 | |
And fix a bunch of warnings | |||||
2023-09-02 | shader_recompiler: always declare image format for image buffers | Liam | 1 | -1/+6 | |
2023-09-02 | shader_recompiler: fix emulation of 3D textureGrad | Liam | 2 | -3/+34 | |
2023-08-27 | Shader Recompiler: Auto stub special registers and dump pipelines on exception. | Fernando Sahmkow | 1 | -1/+2 | |
2023-08-19 | Shader Recomnpiler: implement textuzreGrad 3D emulation constant propagation | Fernando Sahmkow | 8 | -11/+261 | |
2023-08-03 | Fix shader dumps with nvdisasm | Kelebek1 | 1 | -1/+1 | |
skip fragment shaders when rasterizer is disabled initialize env_ptrs | |||||
2023-07-23 | ssa_rewrite_pass: use proper maps | Liam | 1 | -6/+5 | |
2023-06-26 | shaders: Track local memory usage | ameerj | 2 | -0/+5 | |
2023-06-26 | emit_glasm: Fix lmem size computation | ameerj | 1 | -1/+1 | |
2023-06-22 | Remove memory allocations in some hot paths | Kelebek1 | 4 | -4/+5 | |
2023-06-10 | shader_recompiler: translate f64 to f32 when unsupported on host | Liam | 5 | -0/+191 | |
2023-06-10 | shader_recompiler: remove barriers in conditional control flow when device lacks support | Liam | 5 | -0/+51 | |
2023-06-03 | video_core: Enable support_descriptor_aliasing on Turnip, disable storage atomic otherwise. | bunnei | 1 | -0/+10 | |
2023-06-03 | Avoid using VectorExtractDynamic for subgroup mask on Adreno GPUs | Billy Laws | 2 | -1/+18 | |
This crashes their shader compiler for some reason. | |||||
2023-06-03 | Implement scaled vertex buffer format emulation | Billy Laws | 5 | -49/+75 | |
These formats are unsupported by mobile GPUs so they need to be emulated in shaders instead. | |||||
2023-05-26 | shader_recompiler: fix copy-paste error | Liam | 1 | -1/+1 | |
2023-05-11 | Fix Tears of the Kingdom flickering clouds and depths. | Kelebek1 | 2 | -12/+3 | |
2023-04-30 | Define SampleMask as an array | Kelebek1 | 2 | -2/+4 | |
2023-04-08 | shader_recompiler: Use vector arithmetic rather than component-wise in ImageGatherSubpixelOffset | Wollnashorn | 1 | -18/+9 | |
Should be more efficient and better readable | |||||
2023-04-08 | video_core: Enable ImageGather with subpixel offset on Intel | Wollnashorn | 1 | -3/+3 | |
2023-04-08 | shader_recompiler: Add subpixel offset for correct rounding at `ImageGather` | Wollnashorn | 3 | -0/+72 | |
On AMD a subpixel offset of 1/512 of the texel size is applied to the texture coordinates at a ImageGather call to ensure the rounding at the texel centers is done the same way as in Maxwell or other Nvidia architectures. See https://www.reedbeta.com/blog/texture-gathers-and-coordinate-precision/ for more details why this might be necessary. This should fix shadow artifacts at object edges in Zelda: Breath of the Wild (#9957, #6956). | |||||
2023-03-12 | general: fix spelling mistakes | Liam | 2 | -41/+41 | |
2023-02-25 | buffer_cache: Add logic for non-NVN storage buffer tracking | ameerj | 1 | -1/+7 | |
2023-02-14 | remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency | arades79 | 5 | -6/+6 | |
Signed-off-by: arades79 <scravers@protonmail.com> | |||||
2023-02-14 | add static lifetime to constexpr values to force compile time evaluation where possible | arades79 | 5 | -6/+6 | |
Signed-off-by: arades79 <scravers@protonmail.com> | |||||
2023-02-09 | glsl_emit_context: Remove redeclarations of gl_SampleID and gl_SampleMask | ameerj | 1 | -6/+0 | |
These built-ins seem to be available without needing to be declared for fragment shaders, similar i.e. to gl_FragDepth | |||||
2023-02-04 | shader_recompiler/value.h: Remove lingering references to S32 | ameerj | 1 | -11/+0 | |
2023-01-30 | Move to Clang Format 15 | Levi Behunin | 3 | -10/+10 | |
Depends on https://github.com/yuzu-emu/build-environments/pull/69 clang-15 primary run | |||||
2023-01-29 | spirv: Fix TXQ with MSAA textures | ameerj | 3 | -8/+19 | |
2023-01-29 | emit_glasm_image: Fix TXQ with MSAA textures | ameerj | 1 | -1/+9 | |
2023-01-29 | emit_glsl_image: Implement TXQ with MSAA textures | ameerj | 1 | -9/+23 | |
Also fixes for texture buffers, which do not have mips eithers. | |||||
2023-01-29 | texture_pass: Fix texture descriptors comparisons | ameerj | 1 | -2/+9 | |
2023-01-29 | texture_pass: Refactor texture handle retrieval | ameerj | 1 | -7/+7 | |
2023-01-28 | shader_recompiler: TXQ: Skip QueryLevels when possible | ameerj | 11 | -29/+37 | |
2023-01-28 | emit_glsl_image: Fix ImageFetch for MSAA textures | ameerj | 1 | -6/+11 | |
2023-01-27 | glasm: Add MS sampler types | ameerj | 2 | -5/+8 | |
2023-01-27 | glsl: Add MS sampler types | ameerj | 1 | -22/+27 | |
2023-01-26 | shader_recompiler: Remove S32 IR type | ameerj | 13 | -46/+19 | |
The frontend IR opcodes do not distinguish between signed and unsigned integer types. Fixes broken shaders when IR validation/graphics debugging is enabled for shaders that used BitCastS32F32 | |||||
2023-01-23 | spirv: fix multisampled image fetch | Liam | 4 | -2/+16 | |
2023-01-07 | Revert "shader_recompiler: Align SSBO offsets to meet host requirements" | Liam | 4 | -12/+6 | |
This reverts commit 8804a4eb23e0c4f3e4bab03dee7c204bd38bf21e. | |||||
2023-01-07 | Avoid OOB array access reading passthrough attr mask | Billy Laws | 1 | -1/+1 | |
YFC 1.5 extended the size of the varying mask used to hold passthrough attrs without considering this | |||||
2023-01-05 | Run clang-format | Billy Laws | 5 | -23/+33 | |
2023-01-05 | shader_recompiler: Fix shuffle partitioning for >64 invoc-per-subgroup GPUs | Billy Laws | 1 | -30/+28 | |
The existing implementation only supports 64 invoc-per-subgroup GPUs, and misbehaves on adreno when invocations need to be split into 4 emulated subgroups. | |||||
2023-01-05 | shader_recompiler: Add support for lowering geometry passthrough | Billy Laws | 2 | -40/+67 | |
Reuses most of the existing code for generating the gl_Layer passthrough. Fixes geometry in Nier: Automata on GPUs without HW passthrough support. | |||||
2023-01-05 | shader_recompiler: Align SSBO offsets to meet host requirements | Billy Laws | 4 | -6/+11 | |
We can take advantage of SSBO addresses being passed in a constant bufer to account for the extra alignment requirements in the shader itself. | |||||
2023-01-05 | shader_recompiler: SPIRV: Only enable int64 feature when supported | Billy Laws | 1 | -1/+1 | |
2023-01-05 | shader_recompiler: Add comparison operators to descriptor types | Billy Laws | 1 | -0/+12 | |
2023-01-05 | Vulkan: Add a workaround for input_position on Adreno drivers | Billy Laws | 4 | -11/+41 | |
Adreno drivers will crash compiling geometry shaders if the input position is not wrapped in a gl_in struct. | |||||
2023-01-04 | Video_core: Address feedback | Fernando Sahmkow | 9 | -0/+39 | |
2023-01-03 | ShaderCompiler: Inline driver specific constants. | Fernando Sahmkow | 2 | -1/+34 | |
2023-01-01 | MacroHLE: Final cleanup and fixes. | Fernando Sahmkow | 1 | -2/+2 | |
2023-01-01 | MacroHLE: Add OpenGL Support | Fernando Sahmkow | 2 | -1/+13 | |
2023-01-01 | MacroHLE: Add HLE replacement for base vertex and base instance. | Fernando Sahmkow | 12 | -6/+91 | |
2022-12-14 | Vulkan: Add support for VK_EXT_depth_clip_control. | FernandoS27 | 3 | -3/+5 | |
2022-12-14 | spirv_emit_context: declare GroupNonUniform capability for SubgroupLocalInvocationId | Liam | 1 | -0/+2 | |
2022-12-01 | shader_recompiler: add gl_Layer translation GS for older hardware | Liam | 7 | -1/+165 | |
2022-12-01 | CMake: Consolidate common PCH headers | ameerj | 1 | -7/+1 | |
2022-11-30 | CMake: Use precompiled headers | ameerj | 2 | -0/+18 | |
2022-11-30 | value.h: remove recursive include | ameerj | 1 | -1/+0 | |
2022-11-27 | Vulkan: update initialization | Liam | 3 | -19/+31 | |
Co-authored-by: bylaws <bylaws@users.noreply.github.com> | |||||
2022-11-23 | general: fix compile for Apple Clang | Liam | 6 | -3/+9 | |
2022-11-19 | spirv_emit_context: add missing flat decoration | Liam | 1 | -0/+1 | |
2022-11-17 | shader: Implement miss attribute layer | FengChen | 5 | -0/+13 | |
2022-11-11 | ir/texture_pass: Use host_info instead of querying Settings::values (#9176) | Morph | 4 | -8/+13 | |
2022-11-07 | video_core: Fix few issues in Tess stage | FengChen | 16 | -5/+60 | |
2022-11-04 | video_core: Fix SNORM texture buffer emulating error (#9001) | Feng Chen | 15 | -16/+115 | |
2022-10-25 | Revert "shader_recompiler/dead_code_elimination: Add DeadBranchElimination pass" | Feng Chen | 3 | -98/+9 | |
2022-10-22 | CMakeLists: Disable C4100 and C4324 | Morph | 2 | -8/+0 | |
Disabling C4100 is similar to -Wno-unused-parameter | |||||
2022-10-22 | CMakeLists: Remove redundant warnings | Morph | 1 | -2/+0 | |
These warnings are already included in /W3. | |||||
2022-10-22 | CMakeLists: Treat MSVC warnings as errors | Morph | 1 | -1/+0 | |
2022-10-22 | general: Enforce C4800 everywhere except in video_core | Morph | 1 | -1/+0 | |
2022-10-22 | CMakeLists: Remove all redundant warnings | Morph | 1 | -8/+2 | |
These are already explicitly or implicitly set in src/CMakeLists.txt | |||||
2022-10-17 | Address feedback | FengChen | 1 | -6/+6 | |
2022-10-06 | General: Fix compilation for GCC | Liam White | 1 | -1/+1 | |
2022-10-06 | Shader Decompiler: implement better tracking for Vulkan samplers. | Fernando Sahmkow | 1 | -9/+59 | |
2022-10-06 | Shader Decompiler: Check for shift when deriving composite samplers. | Fernando Sahmkow | 2 | -3/+35 | |
2022-10-06 | Shader Decompiler: Fix dangerous behavior of invalid iterator insertion. | Fernando Sahmkow | 1 | -3/+3 | |
2022-10-02 | shader_recompiler: add extended LDC to GLASM backend | Liam | 1 | -4/+21 | |
2022-09-23 | chore: fix some typos | Andrea Pappacoda | 2 | -2/+2 | |
Fix some typos reported by Lintian | |||||
2022-09-20 | video_core: Fix legacy to generic location unpaired | FengChen | 3 | -15/+29 | |
2022-09-20 | video_core: Generate mipmap texture by drawing | FengChen | 20 | -1/+163 | |
2022-08-31 | style: General style changes to match with the rest of the codebase | Morph | 1 | -5/+5 | |
2022-08-25 | video_code: support rectangle texture | FengChen | 10 | -2/+44 | |
2022-07-29 | Add missed shader defines. Fixes Xenoblade Chronicles 3 booting with Vulkan. | Kelebek1 | 1 | -2/+3 | |
2022-07-27 | chore: make yuzu REUSE compliant | Andrea Pappacoda | 2 | -4/+5 | |
[REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254 | |||||
2022-06-14 | general: fix compilation on GCC 12 | Liam | 1 | -1/+1 | |
2022-06-14 | structured_control_flow: Remove constexpr Flow::Block | lat9nq | 1 | -6/+0 | |
This seems to be unsupported in newer libstdc++ versions due to Flow::Block's base class being a non-literal type. It's not clear to me why this was permitted in earlier versions. | |||||
2022-06-14 | CMakeLists: Make variable shadowing a compile-time error | Morph | 1 | -3/+0 | |
Now that the entire project is free of variable shadowing, we can enforce this as a compile time error to prevent any further introduction of this logic bug. | |||||
2022-05-14 | general: Avoid ambiguous format_to compilation errors | Lioncash | 2 | -2/+2 | |
Ensures that we're using the fmt version of format_to. These are also the only three outliers. All of the other formatters we have are properly qualified. | |||||
2022-04-28 | GCC 12 fixes | Liam | 1 | -1/+1 | |
2022-04-23 | general: Convert source file copyright comments over to SPDX | Morph | 233 | -699/+466 | |
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later. | |||||
2022-04-04 | shader_recompiler: Decrease indirect cbuf limit to match hardware | Liam | 1 | -1/+1 | |
2022-04-02 | fix: typos | Andrea Pappacoda | 2 | -2/+2 | |
2022-04-01 | shader_compiler: support const buffer indirect addressing in GLSL | Liam | 4 | -9/+38 | |
2022-04-01 | shader_recompiler: support const buffer indirect addressing on OpenGL SPIR-V | Liam | 3 | -17/+14 | |
2022-03-23 | dead_code_elimination_pass: Remove unreachable Phi arguments | ameerj | 3 | -0/+36 | |
2022-03-22 | Include <bit> header when std::count{r,l}_zero is used | Billy Laws | 3 | -0/+4 | |
Needed for compilation with older libc++ releases | |||||
2022-03-22 | shader_recompiler/dead_code_elimination: Add DeadBranchElimination pass | ameerj | 1 | -9/+62 | |
This adds a pass to eliminate if(false) branches within the shader code | |||||
2022-03-20 | general: Fix clang/gcc build errors | ameerj | 1 | -0/+1 | |
2022-03-20 | shader_recompiler: Reduce unused includes | ameerj | 69 | -106/+7 | |
2022-03-18 | Address review comments | Liam | 1 | -1/+1 | |
2022-03-18 | shader_recompiler/EXIT: skip render targets with no outputs | Liam | 2 | -0/+8 | |
2022-03-18 | shader_recompiler/EXIT: increment output register on failed enable test | Liam | 1 | -0/+1 | |
2022-03-17 | Address review comments | Liam | 4 | -52/+36 | |
2022-03-17 | shader_recompiler: Use functions for indirect const buffer accesses | Liam | 5 | -39/+94 | |
2022-03-17 | Address review comments | Liam | 1 | -16/+15 | |
2022-03-16 | shader_recompiler: Implement LDC.IS address mode | Liam | 1 | -2/+12 | |
2022-03-15 | shader: add support for const buffer indirect addressing | Liam | 2 | -18/+68 | |
2022-03-13 | Shader decompiler: do constant propgation before texture pass. | Fernando Sahmkow | 1 | -2/+2 | |
2022-03-13 | Shader decompiler: Fix storage tracking in deko3d. | Fernando Sahmkow | 1 | -1/+2 | |
2022-03-12 | rescaling_pass: Fix rescaling Color2DArray ImageFetch offsets | ameerj | 1 | -2/+27 | |
ImageFetch offsets for 2D array coordinates have a different composite size than the coordinates. The rescaling pass was not taking this into account. Fixes broken shaders when scaling is enabled in Astral Chain, and likely other titles. | |||||
2022-03-12 | emit_spirv, vk_compute_pass: Resolve VS2022 compiler errors | ameerj | 1 | -1/+1 | |
2022-03-08 | shader_recompiler/LOP3: Use brute force python results within switch/case. | Markus Wick | 2 | -52/+620 | |
Thanks to @asLody for optimizing this function. This raised the focus that this function should be optimized more. The current table assumes that the host GPU is able to invert for free, so only AND,OR,XOR are accumulated in the performance metrik. Performance results: Instructions 0: 8 1: 30 2: 114 3: 80 4: 24 Latency 0: 8 1: 30 2: 194 3: 24 | |||||
2022-01-30 | emit_glsl_atomic: Implement 32x2 fallback atomic ops | ameerj | 1 | -9/+55 | |
2022-01-30 | lower_int64_to_int32: Add 64-bit atomic fallbacks | ameerj | 3 | -11/+76 | |
2022-01-30 | shaders: Add U64->U32x2 Atomic fallback functions | ameerj | 9 | -1/+469 | |
2022-01-29 | spirv_atomic: Define U32x2 storage buffers for 64-bit storage atomics | ameerj | 2 | -3/+3 | |
Some drivers do not support 64-bit atomics, and fallback to atomically modifying U32x2 vectors. This change ensures that U32x2 storage vectors are defined in the spir-v shader when 64-bit atomics are used. Fixes a hang on some devices, notably Intel GPUs, when booting Pokemon Legends Arceus | |||||
2022-01-28 | emit_spirv: Add Xfb execution mode when transform feedback is used | ameerj | 1 | -3/+9 | |
Fixes Transform Feedback on Vulkan AMD drivers. | |||||
2022-01-27 | video_minimum_maximum: Implement src operand selectors | ameerj | 1 | -12/+6 | |
Used by Pokemon Legends: Arceus | |||||
2022-01-25 | shader_recompiler: Remove unnecessary [[nodiscard]] | Lioncash | 1 | -2/+1 | |
Since ConvertLegacyToGeneric has a void return value, there's nothing that is actually returned by the function. | |||||
2022-01-17 | shader_recompiler: fix potential OOB access | v1993 | 2 | -6/+8 | |
Found by static analysis with PVS-Studio. Original check wasn't actually checking for OOB and would segfault in case of it. | |||||
2022-01-10 | logging/log.h: move enum class formatter to a separate file ... | liushuyu | 3 | -7/+7 | |
... to common/logging/formatter.h | |||||
2022-01-08 | logging: adapt to changes in fmt 8.1 | liushuyu | 2 | -6/+6 | |
2022-01-05 | glsl: Remove unreachable return | Narr the Reg | 1 | -1/+0 | |
2022-01-04 | ShaderDecompiler: Add a debug option to dump the game's shaders. | Fernando Sahmkow | 1 | -0/+2 | |
2021-12-30 | glsl: Add boolean reference workaround | ameerj | 3 | -2/+8 | |
2021-12-30 | glsl_context_get_set: Add alternative cbuf type for broken drivers | ameerj | 3 | -17/+27 | |
some drivers have a bug bitwise converting floating point cbuf values to uint variables. This adds a workaround for these drivers to make all cbufs uint and convert to floating point as needed. | |||||
2021-12-30 | emit_glsl_integer: Use negation work around | ameerj | 1 | -2/+2 | |
2021-12-30 | shader: Add integer attribute get optimization pass | ameerj | 9 | -0/+86 | |
Works around an nvidia driver bug, where casting the integer attributes to float and back to an integer always returned 0. | |||||
2021-12-28 | Empty spaces | Matías Locatti | 1 | -1/+1 | |
2021-12-28 | Changes to avoid warnings in SSE4.2 optimized SPIR-V | Matías Locatti | 1 | -0/+9 | |
2021-12-25 | emit_glasm_context_get_set: Fix GetAttribute return value type. | ameerj | 1 | -4/+4 | |
GetAttribute expects an F32 result type at the IR level, this fixes the return value of attributes which were not returning an F32 | |||||
2021-12-25 | emit_glsl_floating_point: Fix FPNeg on newer Nvidia drivers | ameerj | 1 | -2/+2 | |
2021-12-18 | Address format clang | vonchenplus | 1 | -36/+36 | |
2021-12-18 | Remove spirv handle legacy related code | vonchenplus | 4 | -190/+1 | |
2021-12-18 | Remove glsl handle legacy related code | vonchenplus | 3 | -103/+1 | |
2021-12-06 | emit_spirv: Reduce emit_spirv.h include overhead | ameerj | 20 | -3/+20 | |
emit_spirv.h is included in video_core, which was propagating further includes that video_core did not depend on. | |||||
2021-12-06 | glasm: Move implemented instructions from not_implemented.cpp | ameerj | 7 | -169/+220 | |
2021-12-06 | shader_recompiler: Adjust emit_context includes | ameerj | 37 | -37/+37 | |
2021-12-05 | shader_recompiler: Rename backend emit_context files | ameerj | 7 | -6/+6 | |
2021-12-05 | general: Add missing copyright notices | ameerj | 1 | -0/+4 | |
2021-11-19 | Implement convert legacy to generic | Feng Chen | 4 | -1/+103 | |
2021-11-16 | ShaderCache: Better fix for Shuffling gl_FragCoord | Fernando Sahmkow | 1 | -2/+13 | |
2021-11-16 | Texture Cahe/Shader decompiler: Resize PointSize on rescaling, refactor and make reaper more agressive on 4Gb GPUs. | FernandoS27 | 1 | -0/+21 | |
2021-11-16 | vulkan: Fix rescaling push constant usage | ameerj | 4 | -34/+36 | |
2021-11-16 | rescaling_pass: Fix IR errors when unscalable texture types are encountered | ameerj | 1 | -0/+28 | |
2021-11-16 | rescaling_pass: Logic simplification and minor style cleanup | ameerj | 2 | -33/+17 | |
2021-11-16 | rescaling_pass: Scale ImageFetch offset if it exists | ameerj | 1 | -59/+37 | |
Plus some code deduplication | |||||
2021-11-16 | rescaling_pass: Enable PatchImageQueryDimensions on fragment stages | ameerj | 1 | -5/+4 | |
2021-11-16 | gl_texture_cache/rescaling_pass: minor cleanup | ameerj | 1 | -12/+8 | |
2021-11-16 | rescaling_pass: Fix and simplify shuffle/fragcoord pass | ameerj | 1 | -26/+20 | |
2021-11-16 | Shader: Don't rescale FragCoord if used by Shuffle | Fernando Sahmkow | 2 | -2/+55 | |
2021-11-16 | shader, video_core: Fix GCC build errors | ameerj | 1 | -4/+0 | |
2021-11-16 | emit_spirv: Fix RescalingLayout alignment | ameerj | 1 | -0/+1 | |
2021-11-16 | RescalingPass: Agregate pixels on texelFetch while on Fragment Shader | Fernando Sahmkow | 1 | -3/+97 | |
2021-11-16 | shader: Fix TextureSize check on rescaling. | Fernando Sahmkow | 1 | -27/+21 | |
2021-11-16 | emit_spirv: Fix RescalingLayout alignment | ameerj | 1 | -2/+2 | |
2021-11-16 | shader: Properly scale image reads and add GL SPIR-V support | ReinUsesLisp | 20 | -51/+171 | |
Thanks for everything! | |||||
2021-11-16 | shader: Properly blacklist and scale image loads | ReinUsesLisp | 1 | -3/+19 | |
2021-11-16 | glsl/glasm: Pass and use scaling parameters in shaders | ReinUsesLisp | 6 | -7/+11 | |
2021-11-16 | gl_graphics_pipeline: Add downscale factor to shader uniforms | ameerj | 3 | -4/+5 | |
2021-11-16 | spirv: Implement rescaling patching | ReinUsesLisp | 8 | -5/+86 | |
2021-11-16 | shader/rescaling_pass: Patch more instructions | ReinUsesLisp | 1 | -4/+101 | |
2021-11-16 | shader: Add IsTextureScaled opcode | ReinUsesLisp | 10 | -0/+34 | |
2021-11-16 | shader: Add copy constructor to instructions | ReinUsesLisp | 4 | -1/+20 | |
2021-11-16 | shader: Add integer division opcodes | ReinUsesLisp | 9 | -0/+37 | |
2021-11-16 | shader: Fix rescaling pass | ReinUsesLisp | 1 | -1/+1 | |
2021-11-16 | shader: Fix resolution scaling pass | ReinUsesLisp | 5 | -35/+32 | |
2021-11-16 | shader: Add resolution down factor opcode | ReinUsesLisp | 9 | -0/+25 | |
2021-11-16 | ShaderDecompiler: Add initial support for rescaling. | Fernando Sahmkow | 2 | -0/+73 | |
2021-11-04 | Simply legacy attribute implement | Feng Chen | 3 | -152/+125 | |
2021-11-02 | Shader Cahe: Fix Phi Nodes on GLASM. | Fernando Sahmkow | 1 | -1/+1 | |
2021-11-01 | ShaderCache: Fix Phi Nodes Type on OGL. | Fernando Sahmkow | 3 | -2/+30 | |
2021-10-31 | ShaderCache: Order Phi Arguments from farthest away to nearest. | Fernando Sahmkow | 5 | -0/+37 | |
2021-10-31 | Support gl_FogFragCoord attribute | vonchenplus | 3 | -48/+58 | |
2021-10-26 | Support gl_BackSecondaryColor attribute | vonchenplus | 3 | -0/+33 | |
2021-10-26 | Support gl_FrontSecondaryColor attribute | vonchenplus | 3 | -0/+33 | |
2021-10-26 | Support gl_BackColor attribute | vonchenplus | 3 | -0/+33 | |
2021-10-24 | TexturePass: Fix clamping of images as this allowed negative indices. | Fernando Sahmkow | 1 | -1/+1 | |
2021-10-17 | emit_spirv_image: Fix depth image implicit lod sample in compute | ameerj | 1 | -5/+16 | |
Ensures all drivers behave the same way in this case. | |||||
2021-10-17 | Shader Compiler: avoid overflowed indices on indixed samplers. | Fernando Sahmkow | 1 | -1/+2 | |
2021-09-29 | style: Remove extra space preceding the :: operator | Morph | 1 | -2/+2 | |
2021-09-24 | general: Update style to clang-format-12 | ameerj | 1 | -2/+4 | |
2021-09-15 | Spir-V: Rescale the frag depth to 0,1 mode when -1,1 mode is used in Vulkan. | Fernando Sahmkow | 1 | -1/+7 | |
2021-09-08 | Detail adjustment | Feng Chen | 1 | -13/+14 | |
2021-09-08 | Detail adjustment | Feng Chen | 2 | -28/+35 | |
2021-09-07 | Re-implement get unused location | Feng Chen | 1 | -30/+30 | |
2021-09-07 | Move attribute related definitions to spirv anonymous namespace | Feng Chen | 4 | -30/+26 | |
2021-09-06 | Dynamic get unused location | Feng Chen | 1 | -27/+49 | |
2021-09-06 | Implement intput and output fixed fnc textures | Feng Chen | 4 | -19/+25 | |
2021-09-03 | Rename parameters | Feng Chen | 5 | -14/+24 | |
2021-09-03 | Fix create GraphicsPipelines crash | Feng Chen | 1 | -5/+5 | |
2021-09-02 | Add input/output location | Feng Chen | 1 | -5/+13 | |
2021-08-31 | emit_glsl_warp: Fix shuffle ops for 64-thread warp sizes | ameerj | 1 | -24/+36 | |
2021-08-31 | emit_glsl_warp: Fix ballot related ops for 64-thread warp sizes | ameerj | 1 | -24/+38 | |
2021-08-31 | emit_spirv_warp: Fix shuffle ops for 64-thread warp sizes | ameerj | 1 | -1/+29 | |
2021-08-31 | emit_spirv_warp: Fix ballot related ops for 64-thread warp sizes | ameerj | 1 | -10/+11 | |
2021-08-31 | Add colorfront and txtcoord support | Feng Chen | 5 | -0/+57 | |
2021-08-30 | structured_control_flow: Skip reordering nested demote branches. | ameerj | 1 | -0/+11 | |
Nested demote branches add complexity with combining the condition if it has not been initialized yet. Skip them for the time being. | |||||
2021-08-30 | structured_control_flow: Conditionally invoke demote reorder pass | ameerj | 4 | -10/+16 | |
This is only needed on select drivers when a fragment shader discards/demotes. | |||||
2021-08-28 | structured_control_flow: Add DemoteCombinationPass | ameerj | 1 | -1/+107 | |
Some drivers misread data when demotes are interleaved in the program. This moves demote branches to be checked at the end of the program. Fixes "wireframe" issue in Pokemon SwSh on some drivers | |||||
2021-08-27 | emit_spirv_context_get_set: Fix Get FrontFace return value | ameerj | 1 | -2/+3 | |
The IR expects GetAttribute to return an F32 value. This case was returning a U32 instead. | |||||
2021-08-19 | SPIR-V: Merge two ifs in EmitGetAttribute | Valeri | 1 | -6/+2 | |
2021-07-30 | shader: Fold UnpackFloat2x16 and PackFloat2x16 | ReinUsesLisp | 1 | -0/+4 | |
Simplifies the code a bit when possible. These instructions should be no-ops codegen wise. | |||||
2021-07-28 | shader: Mark ConvertF16F32 and ConvertF32F16 as fp16 instructions | ReinUsesLisp | 1 | -0/+2 | |
Fixes instances where fp16 types are not declared on SPIR-V but they are used. This shouldn't happen on master, as it's been uncovered by an additional optimization pass. | |||||
2021-07-27 | exception: Make constructors explicit | Lioncash | 1 | -4/+4 | |
Ensures that exception construction is always explicit. | |||||
2021-07-27 | exception: Make what() member function nodiscard | Lioncash | 1 | -1/+1 | |
2021-07-27 | exception: Narrow down specific header | Lioncash | 1 | -1/+1 | |
We can use the <exception> header instead of pulling in all of the exception-style classes. | |||||
2021-07-26 | emit_glasm: Fix LINESS_ADJACENCY typo in InputPrimitive() | Lioncash | 1 | -1/+1 | |
This should be LINES_ADJACENCY | |||||
2021-07-26 | emit_spirv_instructions: Add missing header guard | Lioncash | 1 | -0/+2 | |
2021-07-26 | shader_recompiler: Remove unnecessary [[nodiscard]] instances | Lioncash | 2 | -4/+4 | |
[[nodiscard]] doesn't do anything on functions with a void return type and causes superfluous warnings. | |||||
2021-07-26 | control_flow: Fix duplicate switch case in OpcodeToken | Lioncash | 1 | -1/+1 | |
This previously duplicated the case of the PBK case above it. | |||||
2021-07-26 | object_pool: Add missing return in Chunk move assignment operator | Lioncash | 1 | -0/+1 | |
Prevents undefined behavior from occurring. | |||||
2021-07-26 | shader: Fold integer FMA from Nvidia's pattern | ReinUsesLisp | 1 | -0/+175 | |
Fold shaders doing "a * b + c" on integers from the pattern generated by Nvidia's GL compiler. On a somewhat complex compute shader it reduces the code size by 16 instructions from 2 matches on Turing GPUs. On Intel as extracted from KHR_pipeline_executable_properties: Before the optimization: ``` Instruction Count: 2057 Basic Block Count: 45 Scratch Memory Size: 14752 Spill Count: 232 Fill Count: 261 SEND Count: 610 Cycle Count: 11325 ``` After the optimization: ``` Instruction Count: 2046 Basic Block Count: 44 Scratch Memory Size: 13728 Spill Count: 219 Fill Count: 268 SEND Count: 604 Cycle Count: 11367 ``` | |||||
2021-07-26 | shader: Use TryInstRecursive on XMAD multiply folding | ReinUsesLisp | 1 | -14/+12 | |
Simplify a bit the logic. | |||||
2021-07-26 | shader: Add TryInstRecursive utility to values | ReinUsesLisp | 1 | -0/+8 | |
2021-07-23 | shader: Support out of bound local memory reads and immediate writes | ReinUsesLisp | 1 | -4/+21 | |
Support ignoring immediate out of bound writes. Writing dynamically out of bounds is not yet supported (e.g. R0+0x4). Reading out of bounds yields zero. This is supported checking for the size from the IR; if the input is immediate, the optimization passes will drop it. | |||||
2021-07-23 | shader: Fix disabled attribute default values | ameerj | 1 | -1/+1 | |
2021-07-23 | glsl: Simplify FCMP emission | ameerj | 1 | -6/+4 | |
2021-07-23 | glsl: Update TessellationControl gl_in | ameerj | 1 | -0/+28 | |
Adheres to GL_ARB_separate_shader_objects requirements | |||||
2021-07-23 | shader: Implement ISETP.X | ameerj | 4 | -44/+57 | |
2021-07-23 | shader: Avoid usage of C++20 ranges to build in clang | ReinUsesLisp | 11 | -39/+47 | |
2021-07-23 | glsl: Clamp shared mem size to GL_MAX_COMPUTE_SHARED_MEMORY_SIZE | ameerj | 2 | -2/+11 | |
2021-07-23 | shader_recompiler, video_core: Resolve clang errors | lat9nq | 13 | -41/+39 | |
Silences the following warnings-turned-errors: -Wsign-conversion -Wunused-private-field -Wbraced-scalar-init -Wunused-variable And some other errors | |||||
2021-07-23 | shader: Manually convert from array<u32> to bitset instead of using bit_cast | ReinUsesLisp | 1 | -2/+3 | |
2021-07-23 | glsl: Fix tracking of info.uses_shadow_lod | ameerj | 1 | -4/+4 | |
2021-07-23 | shader: Ignore global memory ops on devices lacking int64 support | ameerj | 6 | -30/+77 | |
2021-07-23 | dual_vertex_pass: Clang format | ameerj | 1 | -14/+14 | |
2021-07-23 | emit_spirv: Workaround VK_KHR_shader_float_controls on fp16 Nvidia | ReinUsesLisp | 2 | -5/+10 | |
Fix regression on Fire Emblem: Three Houses when using native fp16. | |||||
2021-07-23 | shader: GCC fmt 8.0.0 fixes | lat9nq | 7 | -16/+19 | |
2021-07-23 | shader: Account for 33-bit IADD3 scenario | ameerj | 1 | -2/+10 | |
2021-07-23 | shader: Only apply shift on register mode for IADD3 | ReinUsesLisp | 1 | -10/+14 | |
2021-07-23 | shader: Fix disabled and unwritten attributes and varyings | ReinUsesLisp | 2 | -3/+11 | |
2021-07-23 | glsl: Fix shared and local memory declarations | ameerj | 1 | -3/+3 | |
account for the fact that program.*memory_size is in units of bytes. | |||||
2021-07-23 | opengl: Implement LOP.CC | ameerj | 2 | -6/+38 | |
Used by MH:Rise | |||||
2021-07-23 | spirv: Fix code emission when descriptor aliasing is unsupported | ReinUsesLisp | 1 | -1/+2 | |
Fixes OpenGL. | |||||
2021-07-23 | glsl: Declare local memory in main | ameerj | 1 | -3/+3 | |
2021-07-23 | glsl: Add passthrough geometry shader support | ameerj | 3 | -7/+27 | |
2021-07-23 | shader: Use std::bit_cast instead of Common::BitCast for passthrough | ReinUsesLisp | 1 | -2/+3 | |
2021-07-23 | glasm: Add passthrough geometry shader support | ReinUsesLisp | 2 | -7/+26 | |
2021-07-23 | shader: Rework varyings and implement passthrough geometry shaders | ReinUsesLisp | 22 | -316/+302 | |
Put all varyings into a single std::bitset with helpers to access it. Implement passthrough geometry shaders using host's. | |||||
2021-07-23 | shader: Only verify shader when graphics debugging is enabled | ReinUsesLisp | 1 | -2/+7 | |
2021-07-23 | shader: Unify shader stage types | ReinUsesLisp | 1 | -2/+9 | |
2021-07-23 | lower_int64_to_int32: Add missing include | lat9nq | 1 | -0/+1 | |
2021-07-23 | shader: Emulate 64-bit integers when not supported | ReinUsesLisp | 1 | -0/+3 | |
Useful for mobile and Intel Xe devices. | |||||
2021-07-23 | shader: Add int64 to int32 lowering pass | ReinUsesLisp | 3 | -0/+218 | |
2021-07-23 | shader: Teach global memory base tracker to follow vectors | ReinUsesLisp | 1 | -15/+14 | |
2021-07-23 | shader: Add constant propagation to integer vectors | ReinUsesLisp | 1 | -0/+9 | |
2021-07-23 | glsl: Better IAdd Overflow CC fix | ameerj | 2 | -11/+13 | |
This ensures the original operand values are not overwritten when being used in the overflow detection. | |||||
2021-07-23 | shader: Remove IAbs64 | ReinUsesLisp | 9 | -26/+3 | |
2021-07-23 | glsl: Fix IADD CC | ameerj | 2 | -5/+7 | |
2021-07-23 | shader_recompiler: Fix IADD3 input partitioning | ameerj | 1 | -14/+13 | |
2021-07-23 | shader: Move loop safety tests to code emission | ReinUsesLisp | 16 | -108/+54 | |
2021-07-23 | glsl: Remove frag color initialization | ameerj | 1 | -9/+0 | |
2021-07-23 | glasm: Implement SetAttribute ViewportMask | ameerj | 2 | -1/+10 | |
2021-07-23 | emit_glsl_special: Skip initialization of frag_color0 | ameerj | 1 | -1/+1 | |
Fixes rendering in Devil May Cry without regressing Ori and the Blind Forest. | |||||
2021-07-23 | shader: Calibrate loop safety threshold | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glsl: Add missing ; in EmitSetSampleMask | Morph | 1 | -1/+1 | |
Fixes shader compilation in Okami HD | |||||
2021-07-23 | glsl: Fix output varying initialization when transform feedback is used | ameerj | 1 | -3/+37 | |
2021-07-23 | texture_pass: Fix is_read image qualification | ameerj | 1 | -1/+1 | |
Atomic operations are considered to have both read and write access. This was not being accounted for. | |||||
2021-07-23 | shader: Align constant buffer sizes to 16 bytes | ReinUsesLisp | 1 | -1/+2 | |
WAR for AMD reading zeroes on uniform buffers of size 2. | |||||
2021-07-23 | spirv: Properly handle devices without int8 and int16 | ReinUsesLisp | 2 | -39/+67 | |
2021-07-23 | spirv: Handle small storage buffer loads on devices with no support | ReinUsesLisp | 2 | -6/+6 | |
2021-07-23 | glsl: Fix cbuf component indexing bug falback | ameerj | 1 | -7/+6 | |
2021-07-23 | shader: Simplify MergeDualVertexPrograms | ReinUsesLisp | 1 | -6/+4 | |
2021-07-23 | shader: Properly manage attributes not written from previous stages | ReinUsesLisp | 10 | -36/+40 | |
2021-07-23 | glsl: Only declare fragment outputs on fragment shaders | ReinUsesLisp | 1 | -4/+6 | |
2021-07-23 | shader: Split profile and runtime info headers | ReinUsesLisp | 11 | -76/+91 | |
2021-07-23 | shader: Add support for native 16-bit floats | ReinUsesLisp | 4 | -4/+26 | |
2021-07-23 | shader: Rename maxwell/program.h to translate_program.h | ReinUsesLisp | 3 | -9/+4 | |
2021-07-23 | glsl: Obey need_declared_frag_colors to declare and initialize all frag_color | ameerj | 2 | -1/+10 | |
Fixes Ori and the blind forest title screen | |||||
2021-07-23 | glsl: Address rest of feedback | ameerj | 7 | -21/+64 | |
2021-07-23 | glsl: Move gl_Position/generic attribute initialization to EmitProlgue | ameerj | 2 | -14/+12 | |
2021-07-23 | glsl: Conditionally use fine/coarse derivatives based on device support | ameerj | 3 | -4/+28 | |
2021-07-23 | glsl: Cleanup/Address feedback | ameerj | 9 | -28/+22 | |
2021-07-23 | glsl: Add Shader_GLSL logging | ameerj | 3 | -28/+32 | |
2021-07-23 | glsl: Add LoopSafety instructions | ameerj | 2 | -0/+10 | |
2021-07-23 | glsl: Conditionally add EXT_texture_shadow_lod | ameerj | 3 | -4/+15 | |
2021-07-23 | glsl: Add stubs for sparse queries and variable aoffi when not supported | ameerj | 4 | -13/+39 | |
2021-07-23 | glsl: Implement legacy varyings | ameerj | 6 | -8/+81 | |
2021-07-23 | glsl: Minor cleanup | ameerj | 2 | -19/+15 | |
2021-07-23 | glsl: Fix Cbuf getters for F32 type | ameerj | 1 | -12/+15 | |
2021-07-23 | glsl: Add immediate index oob checking for Cbuf getters | ameerj | 1 | -0/+16 | |
2021-07-23 | glsl: Refactor GetCbuf functions to reduce code duplication | ameerj | 1 | -104/+66 | |
2021-07-23 | glsl: Address more feedback. Implement indexed texture reads | ameerj | 5 | -111/+109 | |
2021-07-23 | glsl: Remove Signed Integer variables | ameerj | 8 | -43/+13 | |
2021-07-23 | glsl: Address Rodrigo's feedback | ameerj | 13 | -75/+87 | |
2021-07-23 | glsl: Reorganize backend code, remove unneeded [[maybe_unused]] | ameerj | 12 | -315/+251 | |
2021-07-23 | glsl: Implement SampleId and SetSampleMask | ameerj | 3 | -30/+35 | |
plus some minor refactoring of implementations | |||||
2021-07-23 | glsl: Add gl_PerVertex in for GS | ameerj | 1 | -1/+2 | |
2021-07-23 | glsl: Use existing tracking for enabling EXT_shader_image_load_formatted | ameerj | 1 | -15/+1 | |
2021-07-23 | glsl: Enable early fragment tests | ameerj | 2 | -4/+7 | |
2021-07-23 | glsl: Implement more attribute getters and setters | ameerj | 2 | -12/+60 | |
2021-07-23 | glsl: Implement fswzadd | ameerj | 4 | -5/+44 | |
and wip nv thread shuffle impl | |||||
2021-07-23 | glsl: Implement indexed attribute loads | ameerj | 5 | -29/+64 | |
2021-07-23 | glsl: Conditionally add GL_ARB_sparse_texture2 | ameerj | 1 | -2/+3 | |
2021-07-23 | glsl: Conditionally use GL_EXT_shader_image_load_formatted | ameerj | 1 | -2/+18 | |
Fix for SULD.D | |||||
2021-07-23 | glsl: Remove output generic indexing for geometry stage | ameerj | 1 | -5/+3 | |
2021-07-23 | glsl: Allow dynamic tracking of variable allocation | ameerj | 3 | -21/+35 | |
2021-07-23 | glsl: Implement barriers | ameerj | 3 | -13/+21 | |
2021-07-23 | glsl: Implement image atomics and set layer | ameerj | 5 | -153/+202 | |
along with some more cleanup/oversight fixes | |||||
2021-07-23 | glsl: Fix image gather logic | ameerj | 1 | -0/+4 | |
2021-07-23 | glsl: Add cbuf access workaround for devices with component indexing bug | ameerj | 2 | -51/+112 | |
2021-07-23 | glsl: Use textureGrad fallback when EXT_texture_shadow_lod is unsupported | ameerj | 3 | -8/+41 | |
2021-07-23 | emit_glsl_image: Use immediate offsets when possible | ameerj | 1 | -12/+33 | |
2021-07-23 | glsl: Fix <32-bit SSBO writes | ameerj | 4 | -50/+43 | |
and more cleanup | |||||
2021-07-23 | glsl: Cleanup and address feedback | ameerj | 10 | -86/+69 | |
2021-07-23 | glsl: Refactor Global memory functions | ameerj | 2 | -71/+73 | |
2021-07-23 | glsl: Increase NUM_VARS that can be allocated | ameerj | 1 | -1/+1 | |
needed for HW:AoC. | |||||
2021-07-23 | glsl: Implement Load/WriteGlobal | ameerj | 9 | -98/+185 | |
along with some other misc changes and fixes | |||||
2021-07-23 | glsl: Implement Images | ameerj | 2 | -9/+74 | |
2021-07-23 | glsl: skip gl_ViewportIndex write if device does not support it | ameerj | 4 | -8/+17 | |
2021-07-23 | glsl: Implement transform feedback | ameerj | 3 | -13/+63 | |
2021-07-23 | glsl: Yet another gl_ViewportIndex fix attempt | ameerj | 1 | -3/+19 | |
2021-07-23 | glsl: Add gl_ViewportIndex out attribute | ameerj | 1 | -1/+3 | |
2021-07-23 | emit_glsl_context_get_set: Remove unused function | lat9nq | 1 | -4/+0 | |
2021-07-23 | glsl: Fix precise variable declaration | ameerj | 3 | -24/+25 | |
and add some more separation in the shader for better debugability when dumped | |||||
2021-07-23 | glsl: Implement tessellation shaders | ameerj | 5 | -27/+146 | |
2021-07-23 | glsl: Implement ImageGradient and other texture function variants | ameerj | 2 | -32/+73 | |
2021-07-23 | glsl: Fix atomic SSBO offsets | ameerj | 4 | -67/+74 | |
and implement misc getters | |||||
2021-07-23 | glsl: Implement geometry shaders | ameerj | 4 | -9/+62 | |
2021-07-23 | glsl: Use NotImplemented macro with function name output | ameerj | 10 | -104/+103 | |
2021-07-23 | glsl: Implement gl_ViewportIndex | ameerj | 3 | -5/+14 | |
SSBU now working | |||||
2021-07-23 | glsl: SHFL fix and prefer shift operations over divide in glsl shader | ameerj | 5 | -63/+64 | |
2021-07-23 | glsl: Implement precise fp variable allocation | ameerj | 4 | -8/+67 | |
2021-07-23 | HACK glsl: Write defaults to unused generic attributes | ameerj | 2 | -2/+11 | |
2021-07-23 | glsl: Fix ssbo indexing and name shadowing between shader stages | ameerj | 3 | -77/+101 | |
2021-07-23 | glsl: implement set clip distance | ameerj | 2 | -0/+15 | |
and missed a diff in emit_glsl relating to var alloc ref counting | |||||
2021-07-23 | glsl: Rework var alloc to not assign unused results | ameerj | 9 | -49/+91 | |
2021-07-23 | glsl: Rework variable allocator to allow for variable reuse | ameerj | 14 | -353/+482 | |
2021-07-23 | glsl: Fix ATOM and implement ATOMS | ameerj | 5 | -114/+136 | |
2021-07-23 | glsl: Use gl_SubGroupInvocationARB | ameerj | 2 | -8/+7 | |
2021-07-23 | glsl: Implement VOTE for subgroup size potentially larger | ameerj | 2 | -19/+36 | |
2021-07-23 | glsl: Implement VOTE | ameerj | 4 | -50/+64 | |
2021-07-23 | glsl: Implement ST{LS} | ameerj | 6 | -69/+106 | |
2021-07-23 | glsl: Implement more instructions used by SMO | ameerj | 1 | -3/+3 | |
2021-07-23 | glsl: Implement more instructions used by SMO | ameerj | 5 | -10/+16 | |
2021-07-23 | glsl: Fix GetAttribute return values | ameerj | 2 | -7/+9 | |
fixes font rendering issues as these were used to index into the ssbos | |||||
2021-07-23 | glsl: minor cleanup | ameerj | 4 | -20/+19 | |
2021-07-23 | glsl: Fix and implement rest of cbuf access | ameerj | 1 | -7/+43 | |
2021-07-23 | glsl: Implement TXQ and other misc changes | ameerj | 5 | -6/+36 | |
2021-07-23 | glsl: TLD4 implementation | ameerj | 1 | -2/+89 | |
2021-07-23 | glsl: Implement TLD instruction | ameerj | 1 | -1/+55 | |
2021-07-23 | glsl: Implement TEXS | ameerj | 1 | -1/+29 | |
2021-07-23 | glsl: Cleanup texture functions | ameerj | 1 | -13/+11 | |
2021-07-23 | shader_recompiler: GCC fixes | lat9nq | 14 | -3/+13 | |
2021-07-23 | glsl: Implement TEX depth functions | ameerj | 2 | -4/+46 | |
2021-07-23 | glsl: Implement TEX ImageSample functions | ameerj | 3 | -11/+71 | |
2021-07-23 | glsl: Rework Shuffle emit instructions to align with SPIR-V | ameerj | 1 | -19/+40 | |
2021-07-23 | glsl: Better Storage access and wip warps | ameerj | 8 | -62/+133 | |
2021-07-23 | glsl: Fix integer conversions, implement clamp CC | ameerj | 2 | -27/+36 | |
2021-07-23 | glsl: Implement IADD CC | ameerj | 2 | -2/+17 | |
2021-07-23 | glsl: SSBO access fixes and wip SampleExplicitLod implementation. | ameerj | 2 | -4/+19 | |
2021-07-23 | glsl: WIP var forward declaration | ameerj | 6 | -49/+60 | |
to fix Loop control flow. | |||||
2021-07-23 | glsl: Fix bindings, add some CC ops | ameerj | 8 | -57/+91 | |
2021-07-23 | glsl: remove unused headers | ameerj | 14 | -34/+10 | |
2021-07-23 | glsl: Implement derivatives and YDirection | ameerj | 8 | -81/+87 | |
plus some other misc additions/changed | |||||
2021-07-23 | glsl: Fix non-immediate buffer access | ameerj | 12 | -72/+133 | |
and many other misc implementations | |||||
2021-07-23 | glsl: textures wip | ameerj | 9 | -75/+139 | |
2021-07-23 | glsl: Implement some attribute getters and setters | ameerj | 9 | -191/+337 | |
2021-07-23 | glsl: Track S32 atomics | ameerj | 3 | -6/+16 | |
2021-07-23 | glsl: Update phi node management | ameerj | 4 | -21/+53 | |
2021-07-23 | glsl: Fix floating point compare ops | ameerj | 1 | -28/+28 | |
Logic for ordered/unordered ops was wrong. | |||||
2021-07-23 | glsl: Query GL Device for FP16 extension support | ameerj | 2 | -2/+9 | |
2021-07-23 | glsl: Simply FP storage atomics | ameerj | 2 | -48/+28 | |
2021-07-23 | glsl: F16x2 storage atomics | ameerj | 7 | -58/+64 | |
2021-07-23 | glsl: Revert ssbo aliasing. Storage Atomics impl | ameerj | 5 | -75/+134 | |
2021-07-23 | glsl: implement phi nodes | ameerj | 4 | -20/+54 | |
2021-07-23 | glsl: Wip storage atomic ops | ameerj | 10 | -327/+414 | |
2021-07-23 | glsl: Implement FCMP | ameerj | 3 | -242/+185 | |
2021-07-23 | glsl: Add a more robust fp formatter | ameerj | 4 | -9/+14 | |
2021-07-23 | glsl: More FP fixes | ameerj | 2 | -9/+16 | |
2021-07-23 | glsl: FP function fixes | ameerj | 7 | -17/+25 | |
2021-07-23 | glsl: More FP instructions/fixes | ameerj | 5 | -28/+41 | |
2021-07-23 | glsl: Add many FP32/64 instructions | ameerj | 12 | -765/+1011 | |
2021-07-23 | glsl: Implement more Integer ops | ameerj | 3 | -119/+72 | |
2021-07-23 | glsl: Implement BF* | ameerj | 3 | -9/+10 | |
2021-07-23 | glsl: Implement a few Integer instructions | ameerj | 10 | -260/+398 | |
2021-07-23 | glsl: Use std::string_view for Emit function args. | ameerj | 6 | -760/+838 | |
2021-07-23 | glsl: Pass IR::Inst& to Emit functions | ameerj | 6 | -171/+169 | |
2021-07-23 | glsl: INeg and IAdd negate tests | ameerj | 3 | -94/+106 | |
2021-07-23 | glsl: Reusable typed variables. IADD32 | ameerj | 6 | -203/+311 | |
2021-07-23 | glsl: Fix program linking and cbuf | ameerj | 2 | -3/+5 | |
2021-07-23 | glsl: Fix "reg" allocing | ameerj | 10 | -898/+938 | |
based on glasm with some tweaks | |||||
2021-07-23 | glsl: Initial backend | ameerj | 27 | -0/+3292 | |
2021-07-23 | spirv: Reduce log severity of mismatching denorm rules | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader: Fix loop safety to SSA pass | ReinUsesLisp | 2 | -2/+4 | |
2021-07-23 | shader: Add logging | ReinUsesLisp | 13 | -28/+30 | |
2021-07-23 | shader: Add shader loop safety check settings | lat9nq | 9 | -33/+130 | |
Also add a setting for enable Nsight Aftermath. | |||||
2021-07-23 | shader: Comment why the array component is not read in TMML | ReinUsesLisp | 1 | -0/+2 | |
2021-07-23 | tmml: Remove index component from coords vec | ameerj | 1 | -4/+3 | |
The lod query functions exposed by the rendering API's do not make use of the texturearray layer indexing. | |||||
2021-07-23 | spirv/convert: Catch more signed operations oversights | ameerj | 1 | -5/+5 | |
The sign bit on integers of size < 32 was not properly preserved in casts | |||||
2021-07-23 | spirv/convert: Catch more broken signed operations on Nvidia OpenGL | ReinUsesLisp | 1 | -0/+6 | |
BitCast U32 to S32 before converting to float on drivers with broken signed operations. | |||||
2021-07-23 | shader_environment: Add shader_local_memory_crs_size to local memory size | ameerj | 1 | -2/+2 | |
Fixes DOOM 2016 missing local memory | |||||
2021-07-23 | shader: Fix VertexA Shaders. | FernandoS27 | 3 | -14/+30 | |
2021-07-23 | shader: Add 2D and 3D variants to SUATOM and SURED | ReinUsesLisp | 1 | -0/+4 | |
Used by Claybook. | |||||
2021-07-23 | shader: Avoid CPU side undefined behavior on I2F | ReinUsesLisp | 1 | -0/+2 | |
2021-07-23 | glasm: Use ARB_derivative_control conditionally | ReinUsesLisp | 3 | -7/+30 | |
2021-07-23 | buffer_cache: Reduce uniform buffer size from shader usage | ReinUsesLisp | 2 | -3/+17 | |
Increases performance significantly on certain titles. | |||||
2021-07-23 | emit_glasm_context_get_set: Remove unused variable | lat9nq | 1 | -1/+0 | |
2021-07-23 | shader,glasm: Implement legacy texcoord loads | ReinUsesLisp | 3 | -54/+29 | |
2021-07-23 | glasm: Implement legacy varyings | ReinUsesLisp | 1 | -17/+56 | |
2021-07-23 | shader: Track legacy varyings | ReinUsesLisp | 2 | -17/+105 | |
2021-07-23 | shader: Add support for "negative" and unaligned offsets | ReinUsesLisp | 3 | -8/+13 | |
"Negative" offsets don't exist. They are shown as such due to a bug in nvdisasm. Unaligned offsets have been proved to read the aligned offset. For example, when reading an U32, if the offset is 6, the offset read will be 4. | |||||
2021-07-23 | shader: Implement ISCADD32I | ReinUsesLisp | 1 | -17/+31 | |
2021-07-23 | spirv: Fix output generics with components | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | opengl: Declare fragment outputs even if they are not used | ReinUsesLisp | 4 | -10/+9 | |
Fixes Ori and the Blind Forest's menu on GLASM. For some reason (probably high level optimizations) it is not sanitized on SPIR-V for OpenGL. Vulkan is unaffected by this change. | |||||
2021-07-23 | shader: Always initialize up reference in structure control flow | ReinUsesLisp | 1 | -31/+36 | |
Fixes ubsan issue. | |||||
2021-07-23 | shader: Fix ImageWrite indexing | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | spirv: Fix image and image buffer descriptor index usage | ReinUsesLisp | 1 | -5/+7 | |
2021-07-23 | glasm: Fix immediate texture coordinate | ReinUsesLisp | 1 | -0/+1 | |
2021-07-23 | shader: Clang-format secondary textures | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader: Fix secondary textures | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader: Fix TMML queries | ReinUsesLisp | 1 | -5/+9 | |
2021-07-23 | shader: Fix FSwizzleAdd folding when going through phi nodes | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader/exception: Fix compilation errors on gcc | ReinUsesLisp | 1 | -6/+6 | |
2021-07-23 | glasm: Reduce reg allocation leaks from an exception to a log | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Handle host exceptions | ReinUsesLisp | 4 | -13/+43 | |
2021-07-23 | glasm: Use integer lod for TXQ | ReinUsesLisp | 2 | -2/+2 | |
2021-07-23 | glasm: Fix global memory fallbacks | ReinUsesLisp | 1 | -9/+10 | |
2021-07-23 | Revert "glasm: Skip phi moves on undefined instructions" | ReinUsesLisp | 2 | -16/+1 | |
Causes regressions on Bowser's Fury. | |||||
2021-07-23 | glasm: Remove unintentional '\n' on Undef32 | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Use storage buffers instead of global memory when possible | ReinUsesLisp | 6 | -370/+383 | |
2021-07-23 | glasm: Implement Y direction | ReinUsesLisp | 4 | -3/+9 | |
2021-07-23 | glasm: Skip phi moves on undefined instructions | ReinUsesLisp | 2 | -1/+16 | |
2021-07-23 | glasm: Implement undef instructions | ReinUsesLisp | 2 | -15/+15 | |
2021-07-23 | glasm: Fix global memory callbacks | ReinUsesLisp | 1 | -5/+6 | |
2021-07-23 | video_core,shader: Clang-format fixes | ReinUsesLisp | 2 | -2/+2 | |
2021-07-23 | glasm: Release phi node registers after they are no longer needed | ReinUsesLisp | 2 | -38/+54 | |
2021-07-23 | glasm: Remove unintentionally committed fmt::prints | ReinUsesLisp | 1 | -2/+0 | |
2021-07-23 | glasm: Fix INeg32 on negative immediates | ReinUsesLisp | 1 | -1/+5 | |
2021-07-23 | glasm: Remove unnecessary value types | ReinUsesLisp | 3 | -47/+6 | |
2021-07-23 | glasm: Throw when there are register leaks | ReinUsesLisp | 2 | -0/+7 | |
2021-07-23 | glasm: Catch more register leaks | ReinUsesLisp | 8 | -41/+114 | |
Add support for null registers. These are used when an instruction has no usages. This comes handy when an instruction is only used for its CC value, with the caveat of having to invalidate all pseudo-instructions before defining the instruction itself in the register allocator. This commits changes this. Workaround a bug on Nvidia's condition codes conditional execution using branches. | |||||
2021-07-23 | glasm: Fix usage counting on phi nodes | ReinUsesLisp | 3 | -8/+22 | |
2021-07-23 | glasm: Implement global memory fallbacks | ReinUsesLisp | 2 | -50/+89 | |
2021-07-23 | glasm: Implement int64 add and subtract | ReinUsesLisp | 2 | -8/+6 | |
2021-07-23 | emit_glasm_context_get_set: Remove unused variable | lat9nq | 1 | -1/+0 | |
2021-07-23 | glasm: Implement indirect attribute loads | ReinUsesLisp | 4 | -6/+65 | |
2021-07-23 | glasm: Implement image atomics | ReinUsesLisp | 3 | -166/+153 | |
2021-07-23 | glasm: Reorder unreachable image atomic insts | ReinUsesLisp | 1 | -66/+66 | |
Reorder them to the bottom of the file for readability. | |||||
2021-07-23 | glasm: Implement gl_Layer stores | ReinUsesLisp | 1 | -0/+7 | |
2021-07-23 | glasm: Implement SampleId | ReinUsesLisp | 2 | -3/+3 | |
2021-07-23 | glasm: Implement IsHelperInvocation | ReinUsesLisp | 2 | -3/+3 | |
2021-07-23 | glasm: Fix EmitVertex's optimization | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | gl_shader_cache,glasm: Conditionally use typeless image reads extension | ReinUsesLisp | 1 | -2/+4 | |
2021-07-23 | glasm: Implement forced early Z | ReinUsesLisp | 1 | -2/+6 | |
2021-07-23 | glasm: Simplify patch reads | ReinUsesLisp | 1 | -5/+2 | |
2021-07-23 | glasm: Fix output patch reads | ReinUsesLisp | 2 | -13/+22 | |
With this, Luigi's Mansion's sand renders properly. | |||||
2021-07-23 | shader: Split profile and runtime information in separate structs | ReinUsesLisp | 11 | -71/+88 | |
2021-07-23 | emit_glasm_context_get_and_set.cpp: Add missing semicolons | ameerj | 1 | -2/+2 | |
2021-07-23 | glasm: Fix patch attribute declarations | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Implement FSWZADD | ameerj | 3 | -4/+28 | |
2021-07-23 | glasm: Implement PrimitiveId attribute read | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | glasm: Implement clip distance stores | ReinUsesLisp | 2 | -0/+15 | |
2021-07-23 | glasm: Fix tessellation input attributes | ReinUsesLisp | 1 | -2/+5 | |
2021-07-23 | glasm: Add missing semicolon on tesscoord reading | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Fix tessellation headers | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | glasm: Add tessellation shader declarations | ReinUsesLisp | 1 | -0/+35 | |
2021-07-23 | glasm: Implement TessellationEvaluationPoint | ReinUsesLisp | 1 | -0/+4 | |
2021-07-23 | glasm: Implement patch memory | ReinUsesLisp | 3 | -6/+51 | |
2021-07-23 | glasm: Fix InvocationId declaration | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Implement InvocationId | ReinUsesLisp | 2 | -2/+5 | |
2021-07-23 | glasm: Optimize EmitVertex into EMIT | ReinUsesLisp | 1 | -1/+5 | |
2021-07-23 | glasm: Implement geometry shader attribute reads | ReinUsesLisp | 2 | -4/+18 | |
2021-07-23 | glasm: Properly declare attributes on geometry programs | ReinUsesLisp | 3 | -6/+14 | |
2021-07-23 | glasm: Declare geometry program headers | ReinUsesLisp | 1 | -0/+35 | |
2021-07-23 | glasm: Fix potential aliasing bug on cube array samples | ReinUsesLisp | 2 | -35/+44 | |
2021-07-23 | glasm: Implement ImageWrite | ReinUsesLisp | 1 | -4/+7 | |
2021-07-23 | glasm: Implement ImageRead | ReinUsesLisp | 4 | -4/+56 | |
2021-07-23 | glasm: Implement EmitVertex and EndPrimitive | ReinUsesLisp | 2 | -4/+8 | |
2021-07-23 | glasm: Implement ImageGradient | ReinUsesLisp | 2 | -7/+65 | |
2021-07-23 | glasm: Implement 64-bit shifts | ReinUsesLisp | 2 | -12/+14 | |
2021-07-23 | glasm: Implement barriers | ReinUsesLisp | 1 | -3/+3 | |
2021-07-23 | glasm: Fix compute stage name | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Fix phi instruction types | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Implement PREC on relevant instructions | ReinUsesLisp | 1 | -6/+12 | |
2021-07-23 | glasm: Implement stores to gl_ViewportIndex | ReinUsesLisp | 4 | -7/+29 | |
2021-07-23 | glasm: Implement gl_PointSize stores | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | glasm: Implement gl_PointCoord | ReinUsesLisp | 1 | -0/+4 | |
2021-07-23 | glasm: Implement ImageQueryLod | ReinUsesLisp | 1 | -3/+5 | |
2021-07-23 | glasm: Implement ImageFetch | ReinUsesLisp | 4 | -13/+38 | |
2021-07-23 | glasm: Implement IADD.CC | ameerj | 1 | -1/+26 | |
2021-07-23 | glasm: Implement BFE.CC | ReinUsesLisp | 1 | -0/+8 | |
2021-07-23 | glasm: Implement SelectU1 | ReinUsesLisp | 2 | -4/+5 | |
2021-07-23 | glasm: Implement gl_WorkGroupID | ReinUsesLisp | 2 | -3/+3 | |
2021-07-23 | glasm: Implement TXQ and improve texture info reads | ReinUsesLisp | 2 | -50/+51 | |
2021-07-23 | glasm: Implement gl_FrongFacing attribute | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | glasm: Support textures used in more than one stage | ReinUsesLisp | 3 | -4/+24 | |
2021-07-23 | glasm: Implement textureGather instructions | ReinUsesLisp | 2 | -15/+97 | |
2021-07-23 | glasm: Implement gl_FragDepth and gl_SampleMask stores | ReinUsesLisp | 2 | -5/+5 | |
2021-07-23 | glasm: Do not alias ConditionRef for now | ReinUsesLisp | 2 | -3/+2 | |
Immediate condition refs where not handled correctly. Just move the value for now. | |||||
2021-07-23 | shader: Read branch conditions from an instruction | ReinUsesLisp | 12 | -16/+36 | |
Fixes the identity removal pass. | |||||
2021-07-23 | glasm: Implement InstanceId and VertexId | ReinUsesLisp | 1 | -0/+6 | |
2021-07-23 | glasm: Add missing return value on move assignment | ReinUsesLisp | 1 | -0/+1 | |
2021-07-23 | glasm: Fix aliased bitcasts ref counting | ReinUsesLisp | 3 | -13/+42 | |
2021-07-23 | glasm: Remove unintentional comma on vector insert | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Implement TEX and TEXS instructions | ReinUsesLisp | 10 | -69/+275 | |
Remove lod clamp from texture instructions with lod, as this is not needed (nor supported). | |||||
2021-07-23 | glasm: Add support for non-2D texture samples | ReinUsesLisp | 1 | -4/+26 | |
2021-07-23 | glasm: Reorder unreachable image instructions to the bottom | ReinUsesLisp | 1 | -97/+97 | |
2021-07-23 | glasm: Add support for texture offsets | ReinUsesLisp | 1 | -11/+15 | |
2021-07-23 | glasm: Improve texture sampling instructions | ReinUsesLisp | 2 | -50/+70 | |
2021-07-23 | emit_glasm: Enable ARB_draw_buffers when needed | ReinUsesLisp | 2 | -1/+5 | |
2021-07-23 | emit_glasm: Add support for reading position attributes | ReinUsesLisp | 1 | -3/+13 | |
2021-07-23 | shader_recompiler: GCC fixes | lat9nq | 7 | -58/+55 | |
Fixes members of unnamed union not being accessible, and one function without a declaration. | |||||
2021-07-23 | glasm: Implement rest of shared mem | ameerj | 2 | -35/+29 | |
2021-07-23 | shader: Use a non-trivial dummy to construct ASL node union | ReinUsesLisp | 1 | -1/+6 | |
2021-07-23 | emit_spirv: Jump to loop body with local variable | ReinUsesLisp | 1 | -1/+1 | |
Silence unused variable warning | |||||
2021-07-23 | glasm: Implement derivative instructions on GLASM | ReinUsesLisp | 2 | -12/+12 | |
2021-07-23 | glasm: Initial (broken) implementation of TEX on GLASM | ReinUsesLisp | 3 | -299/+386 | |
2021-07-23 | glasm: Implement some graphics instructions on GLASM | ReinUsesLisp | 2 | -6/+5 | |
2021-07-23 | glasm: Add Void type to GLASM values | ReinUsesLisp | 3 | -0/+15 | |
2021-07-23 | glasm: Add graphics specific shader declarations to GLASM | ReinUsesLisp | 2 | -6/+63 | |
2021-07-23 | glasm: Implement local memory for glasm | ameerj | 4 | -9/+12 | |
2021-07-23 | emit_spirv: Add missing block in case | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | glasm: Initial implementation of phi nodes on GLASM | ReinUsesLisp | 12 | -25/+117 | |
2021-07-23 | glasm: Write result to scalar on integer comparison instructions | ReinUsesLisp | 1 | -10/+10 | |
2021-07-23 | glasm: Declare NV_shader_thread_group when needed | ReinUsesLisp | 1 | -3/+4 | |
2021-07-23 | glasm: Rework control flow introducing a syntax list | ReinUsesLisp | 33 | -505/+437 | |
This commit regresses VertexA shaders, their transformation pass has to be adapted to the new control flow. | |||||
2021-07-23 | glasm: Implement Storage atomics | ameerj | 5 | -109/+156 | |
StorageAtomicExchangeU64 is failing test seemingly due to failure storing 64-bit result into the register | |||||
2021-07-23 | glasm: Ensure reg alloc order across compilers on GLASM | ReinUsesLisp | 1 | -11/+14 | |
Use a struct constructor to serialize register allocation arguments to ensure registers are allocated in the same order regardless of the compiler used. The A and B functions can be called in any order when passed as arguments to "foo": foo(A(), B()) But the order is guaranteed for curly-braced constructor calls in classes: Foo{A(), B()} Use this to get consistent behavior. | |||||
2021-07-23 | glasm: Enable unintentionally disabled register aliasing on GLASM | ReinUsesLisp | 1 | -16/+11 | |
2021-07-23 | glasm: Review all GLASM insts to be aware of register aliasing | ReinUsesLisp | 4 | -20/+51 | |
2021-07-23 | glasm: Implement shuffle and vote instructions on GLASM | ReinUsesLisp | 10 | -100/+166 | |
2021-07-23 | glasm: Add MUFU instructions to GLASM | ReinUsesLisp | 2 | -21/+22 | |
2021-07-23 | glasm: Implement IAbs64 and INeg64 on GLASM | ReinUsesLisp | 2 | -6/+6 | |
2021-07-23 | shader: Add floating-point rounding to I2F | ReinUsesLisp | 3 | -35/+42 | |
2021-07-23 | glasm: Properly clamp Fp64 on GLASM | ReinUsesLisp | 1 | -6/+6 | |
2021-07-23 | glasm: Fix register allocation when moving immediate on GLASM | ReinUsesLisp | 3 | -42/+89 | |
2021-07-23 | glasm: Implement SelectU64 on GLASM | ReinUsesLisp | 2 | -4/+20 | |
2021-07-23 | glasm: Fix clamps so the min value has priority on NAN on GLASM | ReinUsesLisp | 1 | -12/+15 | |
2021-07-23 | glasm: Fix moving U64 immediates to registers in GLASM | ReinUsesLisp | 2 | -3/+4 | |
2021-07-23 | glasm: Implement storage atomic ops | ameerj | 4 | -305/+358 | |
2021-07-23 | glasm: Add conversion instructions to GLASM | ReinUsesLisp | 9 | -282/+351 | |
2021-07-23 | glasm: Add fp min/max insts and fix store for fp64 on GLASM | ReinUsesLisp | 2 | -10/+8 | |
2021-07-23 | glasm: Add logical instructions on GLASM | ReinUsesLisp | 2 | -12/+12 | |
2021-07-23 | glasm: Remove duplicated Fp64 pack instructions on GLASM | ReinUsesLisp | 1 | -8/+0 | |
2021-07-23 | glasm: Remove unnecesary new white space on Clamp GLASM | ReinUsesLisp | 1 | -4/+4 | |
2021-07-23 | glasm: Add floating-point comparisons on GLASM | ReinUsesLisp | 3 | -120/+116 | |
2021-07-23 | emit_glasm: Implement more integer alu ops | ameerj | 2 | -47/+41 | |
2021-07-23 | glasm: Reimplement bitwise ops and BFI/BFE | ameerj | 4 | -88/+108 | |
2021-07-23 | glasm: Initial GLASM fp64 support | ReinUsesLisp | 9 | -55/+152 | |
2021-07-23 | glasm: Implement GLASM fp16 packing and move bitwise insns | ReinUsesLisp | 4 | -66/+77 | |
2021-07-23 | glasm: Remove unused functions left from rebase | ReinUsesLisp | 1 | -12/+0 | |
2021-07-23 | glasm: Specify namespace when using FormatTo | ReinUsesLisp | 1 | -6/+6 | |
2021-07-23 | glasm: Implement more GLASM composite instructions | ReinUsesLisp | 2 | -54/+63 | |
2021-07-23 | glasm: Make GLASM aware of types | ReinUsesLisp | 12 | -1244/+1380 | |
2021-07-23 | glasm: Use CMP.S for Select32 | ameerj | 3 | -12/+8 | |
also fixes ADD and SUB to use U modifier | |||||
2021-07-23 | glasm: Implement more logical ops | ameerj | 2 | -5/+5 | |
2021-07-23 | glasm: Implement BFI, BFE | ameerj | 4 | -138/+164 | |
Along with implementations of common instructions along the way | |||||
2021-07-23 | glasm: Use BitField instead of C bitfields | ReinUsesLisp | 2 | -8/+12 | |
2021-07-23 | glasm: Remove unused argument in identity instructions on GLASM | ReinUsesLisp | 1 | -7/+7 | |
2021-07-23 | glasm: Implement basic GLASM instructions | ReinUsesLisp | 10 | -840/+1173 | |
2021-07-23 | glasm: Changes to GLASM register allocator and emit context | ReinUsesLisp | 4 | -26/+64 | |
2021-07-23 | glasm: Add GLASM backend infrastructure | ReinUsesLisp | 28 | -4/+3115 | |
2021-07-23 | shader: ISET.X implementation | ameerj | 1 | -8/+58 | |
2021-07-23 | shader: Fixup SPIR-V emit header namespaces | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | Move SPIR-V emission functions to their own header | ReinUsesLisp | 24 | -572/+631 | |
2021-07-23 | shader: Optimize NVN Fallthrough | FernandoS27 | 4 | -9/+83 | |
2021-07-23 | shader: Stub SR_AFFINITY | FernandoS27 | 1 | -0/+3 | |
2021-07-23 | shader: Implement Int32 SUATOM/SURED | ameerj | 17 | -6/+733 | |
2021-07-23 | shader: Initial OpenGL implementation | ReinUsesLisp | 3 | -0/+12 | |
2021-07-23 | spirv: Be aware of NAN unaware drivers | ReinUsesLisp | 1 | -18/+40 | |
2021-07-23 | spirv: Add SSBO read fallbacks when no aliasing is available | ReinUsesLisp | 1 | -37/+99 | |
2021-07-23 | spirv: Add OpKill fallback to demote | ReinUsesLisp | 1 | -2/+6 | |
2021-07-23 | spirv: Do not enable ShaderLayer | ReinUsesLisp | 1 | -3/+0 | |
This is enabled by an extension instead of the capability. | |||||
2021-07-23 | spirv: Enable DemoteToHelperInvocationEXT only when supported | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | spirv: Use OriginLowerLeft when requested | ReinUsesLisp | 1 | -1/+5 | |
2021-07-23 | spirv: Only add image operands mask when needed | ReinUsesLisp | 1 | -5/+9 | |
2021-07-23 | spirv: Workaround image unsigned offset bug | ReinUsesLisp | 2 | -9/+26 | |
Workaround bug on Nvidia's OpenGL SPIR-V compiler when using unsigned texture offsets. | |||||
2021-07-23 | spirv: Add int8 and int16 capabilities only when supported | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | spirv: Add integer clamping workarounds | ReinUsesLisp | 1 | -4/+34 | |
Workaround more bugs on Nvidia's OpenGL SPIR-V compiler. | |||||
2021-07-23 | spirv: Implement int8 and int16 conversion fallbacks | ReinUsesLisp | 1 | -19/+80 | |
2021-07-23 | spirv: Support OpenGL uniform buffers and change bindings | ReinUsesLisp | 5 | -56/+163 | |
2021-07-23 | spirv: Desambiguate descriptor names | ReinUsesLisp | 1 | -9/+37 | |
Worksaround a bug on Nvidia's OpenGL SPIR-V compiler where names are used for name matching. | |||||
2021-07-23 | shader: Add OpenGL shader profile options | ReinUsesLisp | 1 | -0/+11 | |
2021-07-23 | shader: Remove shader util | ReinUsesLisp | 4 | -176/+0 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 4 | -35/+33 | |
2021-07-23 | shader: Implement VertexA stage | FernandoS27 | 11 | -0/+166 | |
2021-07-23 | shader: Implement delegation of Exit to dispatcher on CFG | FernandoS27 | 2 | -3/+47 | |
2021-07-23 | shader: Fix IADD3.CC | ameerj | 1 | -12/+5 | |
2021-07-23 | shader: Fix BFE s32 undefined check | ameerj | 1 | -1/+1 | |
Our unit tests were hitting this exception. | |||||
2021-07-23 | shader: Fix error checking in bitfieldExtract and implement bitfieldInsert folding | ReinUsesLisp | 1 | -5/+14 | |
2021-07-23 | shader: Fix storage type when reading patches on tess control | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Fix VMNMX selector B | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Increase the maximum number of storage buffers | ReinUsesLisp | 1 | -1/+1 | |
Compute shaders spill uniform buffers on storage buffers, increasing the expected number. | |||||
2021-07-23 | shader: Remove identity removal pass for better build times | ReinUsesLisp | 1 | -1/+0 | |
2021-07-23 | shader: Add more strict validation the pass | ReinUsesLisp | 1 | -0/+42 | |
2021-07-23 | shader: Fix forward referencing identity instructions when inserting phi | ReinUsesLisp | 1 | -11/+13 | |
2021-07-23 | shader: Remove invalidated blocks in dead code elimination pass | ReinUsesLisp | 1 | -3/+6 | |
2021-07-23 | shader: Add missing UndoUse case for GetSparseFromOp | ReinUsesLisp | 1 | -0/+4 | |
2021-07-23 | shader: Simplify code in opcodes.h to fix Intellisense | ReinUsesLisp | 1 | -8/+6 | |
Avoid using std::array to fix Intellisense not properly compiling this code and disabling itself on all files that include it. While we are at it, change the code to use u8 instead of size_t for the number of instructions in an opcode. | |||||
2021-07-23 | shader: Implement indexed textures | ReinUsesLisp | 7 | -93/+189 | |
2021-07-23 | shader: Refactor atomic_operations_global_memory | ameerj | 1 | -44/+36 | |
2021-07-23 | shader: add missing include guard in half_floating_point_helper.h | ameerj | 1 | -0/+2 | |
2021-07-23 | shader: Fix gcc warnings | ReinUsesLisp | 2 | -2/+2 | |
2021-07-23 | shader: Inline common Value getters | ReinUsesLisp | 2 | -109/+102 | |
2021-07-23 | shader: Intrusively store in a block if it's sealed or not | ReinUsesLisp | 2 | -3/+11 | |
2021-07-23 | cmake: Link to common in shader_recompiler | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Improve goto removal algorithm complexity | ReinUsesLisp | 1 | -49/+28 | |
Find sibling node containing a nephew searching from the nephew itself instead of the uncle. | |||||
2021-07-23 | shader: Use memset to reset instruction arguments | ReinUsesLisp | 2 | -4/+7 | |
2021-07-23 | shader: Inline common Value functions into the header | ReinUsesLisp | 2 | -19/+23 | |
2021-07-23 | shader: Move microinstruction header to the value header | ReinUsesLisp | 19 | -180/+161 | |
2021-07-23 | shader: Move siblings check to a separate function and comment them out | ReinUsesLisp | 1 | -16/+21 | |
2021-07-23 | shader: Intrusively store register values in block for SSA pass | ReinUsesLisp | 2 | -21/+53 | |
2021-07-23 | shader: Inline common Opcode and Inst functions | ReinUsesLisp | 4 | -112/+83 | |
2021-07-23 | shader: Inline common IR::Block methods | ReinUsesLisp | 2 | -17/+12 | |
2021-07-23 | shader: Use a small_vector for phi blocks | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Calculate number of arguments in an opcode at compile time | ReinUsesLisp | 1 | -3/+12 | |
2021-07-23 | shader: Implement D3D samplers | ReinUsesLisp | 3 | -12/+76 | |
2021-07-23 | shader: Add constant propagation for arithmetic right shifts | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | shader: Simplify code for local memory | ReinUsesLisp | 1 | -6/+11 | |
2021-07-23 | shader: Add NVN storage buffer fallbacks | ReinUsesLisp | 9 | -62/+214 | |
When we can't track the SSBO origin of a global memory instruction, leave it as a global memory operation and assume these pointers are in the NVN storage buffer slots, then apply a linear search in the shader's runtime. | |||||
2021-07-23 | spirv: Fix ViewportMask | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | spirv: Replace Constant/ConstantComposite with Const helper | ameerj | 12 | -112/+101 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 2 | -7/+10 | |
2021-07-23 | shader: Implement F2F (Imm) | FernandoS27 | 1 | -2/+28 | |
2021-07-23 | shader: Implement IADD3.CC/.X | FernandoS27 | 1 | -7/+22 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 4 | -7/+4 | |
2021-07-23 | shader: Add coarse derivatives | FernandoS27 | 7 | -8/+28 | |
2021-07-23 | shader: Implement fine derivates constant propagation | FernandoS27 | 9 | -0/+101 | |
2021-07-23 | shader: Implement SR_Y_DIRECTION | FernandoS27 | 7 | -0/+18 | |
2021-07-23 | shader: Fix Phi node types | ReinUsesLisp | 2 | -4/+4 | |
2021-07-23 | shader: Fix memory barriers | ReinUsesLisp | 8 | -62/+30 | |
2021-07-23 | spirv: Fix implicit lod type | ReinUsesLisp | 2 | -1/+5 | |
2021-07-23 | spirv: Use explicit lods outside of fragment shaders | ReinUsesLisp | 1 | -5/+16 | |
2021-07-23 | spirv: Use ConstOffset instead of Offset when possible | ReinUsesLisp | 3 | -21/+67 | |
2021-07-23 | shader: Implement BFE and BFI CC | ameerj | 3 | -14/+17 | |
Fix two bugs in BFI. | |||||
2021-07-23 | shader: Implement SampleMask | ReinUsesLisp | 11 | -2/+22 | |
2021-07-23 | shader: Implement PIXLD.MY_INDEX | ReinUsesLisp | 13 | -4/+69 | |
2021-07-23 | spirv: Bitcast non-F32 output attributes to their type before store | ReinUsesLisp | 1 | -13/+28 | |
2021-07-23 | spirv: Implement ViewportMask with NV_viewport_array2 | ReinUsesLisp | 7 | -0/+20 | |
2021-07-23 | spirv: Bitcast non-F32 attributes to F32 | ReinUsesLisp | 1 | -7/+9 | |
2021-07-23 | shader: Implement PrimitiveId | ReinUsesLisp | 5 | -0/+10 | |
2021-07-23 | shader: Implement tessellation shaders, polygon mode and invocation id | ReinUsesLisp | 22 | -88/+555 | |
2021-07-23 | shader: Mark atomic instructions as writes | ReinUsesLisp | 1 | -0/+27 | |
2021-07-23 | spirv: Implement image buffers | ReinUsesLisp | 5 | -23/+86 | |
2021-07-23 | spirv: Implement Layer stores | ReinUsesLisp | 6 | -9/+30 | |
2021-07-23 | spirv: Fix alpha test | FernandoS27 | 1 | -0/+5 | |
2021-07-23 | spirv: Fix non-atomic 64-bit store | ameerj | 1 | -1/+1 | |
2021-07-23 | spirv: Implement alpha test | ameerj | 2 | -1/+59 | |
2021-07-23 | shader: Implement transform feedbacks and define file format | ReinUsesLisp | 8 | -16/+116 | |
2021-07-23 | shader: Implement early Z tests | ReinUsesLisp | 2 | -0/+4 | |
2021-07-23 | shader: Document and relax cache control on surface instructions | ReinUsesLisp | 1 | -10/+11 | |
2021-07-23 | spirv: Rework storage buffers and shader memory | ReinUsesLisp | 8 | -499/+553 | |
2021-07-23 | shader: Fix fixed pipeline point size on geometry shaders | ReinUsesLisp | 1 | -10/+18 | |
2021-07-23 | shader: Add constant propagation for *&^| binary operations | ReinUsesLisp | 1 | -0/+12 | |
2021-07-23 | shader: Implement geometry shaders | ReinUsesLisp | 12 | -84/+221 | |
2021-07-23 | shader: Implement OUT | ReinUsesLisp | 10 | -17/+73 | |
2021-07-23 | internal_stage_buffer_entry_read: Remove pragma optimize off | lat9nq | 1 | -2/+0 | |
2021-07-23 | shader: Stub SR_INVOCATION_INFO | ReinUsesLisp | 1 | -2/+5 | |
2021-07-23 | shader: Stub ISBERD | ReinUsesLisp | 3 | -4/+56 | |
2021-07-23 | shader: Fix CC in I2I | ReinUsesLisp | 1 | -0/+2 | |
2021-07-23 | spirv: Define StorageImageWriteWithoutFormat capability when used | ReinUsesLisp | 3 | -0/+9 | |
2021-07-23 | shader: Simplify FLO and throw on CC | ReinUsesLisp | 1 | -12/+13 | |
2021-07-23 | shader: Mark blocks with no end branch as unreachable | ReinUsesLisp | 1 | -2/+7 | |
2021-07-23 | shader: Implement LOP CC | ReinUsesLisp | 3 | -12/+29 | |
2021-07-23 | shader: Implement SR_THREAD_KILL | ReinUsesLisp | 10 | -0/+22 | |
2021-07-23 | shader: Apply sign bit in FCMP (imm) | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Implement ATOM/S and RED | ameerj | 18 | -19/+1724 | |
2021-07-23 | spirv: Move phi node patching to a separate function | ReinUsesLisp | 1 | -13/+16 | |
2021-07-23 | spirv: Guard against typeless image reads on unsupported devices | ReinUsesLisp | 5 | -1/+16 | |
2021-07-23 | shader: Move LaneId to the warp emission file and fix AMD | ReinUsesLisp | 5 | -7/+11 | |
2021-07-23 | spirv: Fix forward declarations on phi nodes | ReinUsesLisp | 1 | -47/+25 | |
2021-07-23 | shader: Mark ImageWrite with side effects | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | shader: Implement CC for ISET, FSET, PSET, CSET, and DSET | FernandoS27 | 18 | -13/+136 | |
Throw when other instructions are missing CC. | |||||
2021-07-23 | shader: Remove outdated comment in F2I | ReinUsesLisp | 1 | -4/+0 | |
2021-07-23 | shader: Implement SULD and SUST | ReinUsesLisp | 23 | -137/+597 | |
2021-07-23 | shader: Fix Windows build issues | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Address feedback + clang format | lat9nq | 11 | -22/+20 | |
2021-07-23 | shader_recompiler,video_core: Cleanup some GCC and Clang errors | lat9nq | 59 | -297/+289 | |
Mostly fixing unused *, implicit conversion, braced scalar init, fpermissive, and some others. Some Clang errors likely remain in video_core, and std::ranges is still a pertinent issue in shader_recompiler shader_recompiler: cmake: Force bracket depth to 1024 on Clang Increases the maximum fold expression depth thread_worker: Include condition_variable Don't use list initializers in control flow Co-authored-by: ReinUsesLisp <reinuseslisp@airmail.cc> | |||||
2021-07-23 | shader: Fix FCMP immediate variant | ReinUsesLisp | 1 | -1/+9 | |
2021-07-23 | shader: Fix dangling labels | ReinUsesLisp | 1 | -0/+5 | |
2021-07-23 | shader: Interact texture buffers with buffer cache | ReinUsesLisp | 3 | -29/+29 | |
2021-07-23 | shader: Fix F2I | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Fix TextureGrad | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Implement texture buffers | ReinUsesLisp | 6 | -23/+125 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 5 | -53/+54 | |
2021-07-23 | shader: Implement indexed Position and ClipDistances | FernandoS27 | 3 | -11/+100 | |
2021-07-23 | shader: Implement indexed attributes | FernandoS27 | 12 | -35/+279 | |
2021-07-23 | shader: Implement AL2P | FernandoS27 | 3 | -4/+36 | |
2021-07-23 | shader: Fix BRX tracking | FernandoS27 | 2 | -3/+4 | |
2021-07-23 | shader: Move recursive SSA rewrite to the heap | ReinUsesLisp | 1 | -29/+89 | |
2021-07-23 | shader: Fix ShadowCube declaration type, set number of pipeline threads based on hardware | FernandoS27 | 1 | -1/+1 | |
2021-07-23 | shader: Fix splits on blocks using indirect branches | ReinUsesLisp | 3 | -17/+38 | |
2021-07-23 | shader: Eliminate orphan blocks more efficiently | ReinUsesLisp | 1 | -7/+8 | |
2021-07-23 | shader: Add subgroup masks | ReinUsesLisp | 10 | -45/+169 | |
2021-07-23 | shader: Implement BAR and fix memory barriers | ReinUsesLisp | 7 | -5/+79 | |
2021-07-23 | shader: Abstract breadth searches and use the abstraction | ReinUsesLisp | 4 | -104/+106 | |
2021-07-23 | shader: Reimplement GetCbufU64 as GetCbufU32x2 | ReinUsesLisp | 9 | -22/+21 | |
It may generate better code on some compilers and it's easier to handle. | |||||
2021-07-23 | shader: Remove unused header in VOTE | ReinUsesLisp | 1 | -2/+0 | |
2021-07-23 | shader: Rework global memory tracking to use breadth-first search | ReinUsesLisp | 1 | -69/+80 | |
2021-07-23 | shader: Fix fp16 merge when using native fp16 | ReinUsesLisp | 1 | -3/+3 | |
2021-07-23 | shader: Fix FADD32I | ReinUsesLisp | 1 | -6/+4 | |
2021-07-23 | shader: Fix undetected bug from review | FernandoS27 | 1 | -0/+3 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 3 | -13/+16 | |
2021-07-23 | shader: "Implement" NOP | FernandoS27 | 1 | -1/+1 | |
2021-07-23 | shader: Address Feedback | FernandoS27 | 16 | -211/+60 | |
2021-07-23 | shader: Implement SR_LaneId | FernandoS27 | 7 | -0/+15 | |
2021-07-23 | shader: Fix shared memory on cool drivers | FernandoS27 | 1 | -0/+1 | |
2021-07-23 | shader: Implement MEMBAR | FernandoS27 | 9 | -11/+121 | |
2021-07-23 | shader: Improve VOTE.VTG stub | FernandoS27 | 7 | -4/+147 | |
2021-07-23 | shader: Mark SSBOs as written when they are | FernandoS27 | 2 | -2/+30 | |
2021-07-23 | shader: Implement ViewportIndex | FernandoS27 | 7 | -2/+32 | |
2021-07-23 | shader: Stub TLD4's PTP when it isn't constant | FernandoS27 | 1 | -1/+2 | |
2021-07-23 | shader: Stub VOTE.VTG | FernandoS27 | 4 | -4/+15 | |
2021-07-23 | shader: Fold composite extract | FernandoS27 | 1 | -0/+62 | |
2021-07-23 | shader: Fold comparisons and Pack/Unpack16 | FernandoS27 | 1 | -1/+41 | |
2021-07-23 | shader: Fix branches to visited virtual blocks | ReinUsesLisp | 2 | -0/+12 | |
2021-07-23 | shader: Fix dependency on identity removal pass | ReinUsesLisp | 2 | -3/+8 | |
2021-07-23 | shader: Fix constant propagation to use reverse post order | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Implement LDG .U.128 as .128 | ReinUsesLisp | 1 | -3/+2 | |
2021-07-23 | shader: Unroll "using enum" for opcode declarations | ReinUsesLisp | 1 | -1/+27 | |
2021-07-23 | spirv: Remove unnecesary variable for clip distances | ReinUsesLisp | 2 | -6/+2 | |
2021-07-23 | shader: Implement ClipDistance | FernandoS27 | 5 | -0/+36 | |
2021-07-23 | shader: Fix TXD | FernandoS27 | 2 | -2/+2 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 4 | -52/+48 | |
2021-07-23 | shader: Always pass a lod for TexelFetch | ReinUsesLisp | 3 | -25/+17 | |
2021-07-23 | shader: Implement TXD | FernandoS27 | 4 | -10/+183 | |
2021-07-23 | shader: Implement ImageGradient | FernandoS27 | 8 | -2/+84 | |
2021-07-23 | shader: Implement TMML partially | FernandoS27 | 6 | -13/+137 | |
2021-07-23 | shader,spirv: Implement ImageQueryLod. | FernandoS27 | 9 | -1/+38 | |
2021-07-23 | shader: Implement TLDS | FernandoS27 | 3 | -4/+253 | |
2021-07-23 | shader: Implement TLD | FernandoS27 | 7 | -14/+173 | |
2021-07-23 | spirv: Add fixed pipeline point size | ReinUsesLisp | 3 | -1/+8 | |
2021-07-23 | shader: Add PointCoord attribute | FernandoS27 | 5 | -0/+16 | |
2021-07-23 | shader: Add PointSize attribute | ameerj | 5 | -0/+13 | |
2021-07-23 | shader: Store type of phi nodes in flags | ReinUsesLisp | 3 | -2/+11 | |
This is needed because pseudo-instructions where invalidated. | |||||
2021-07-23 | shader: Fix indirect branches to scheduler instructions | ReinUsesLisp | 3 | -7/+17 | |
2021-07-23 | spirv: Fix default output attribute initialization | ReinUsesLisp | 1 | -3/+3 | |
2021-07-23 | shader: Add missing new lines | ReinUsesLisp | 1 | -0/+2 | |
2021-07-23 | shader: Implement FSWZADD | ameerj | 14 | -4/+87 | |
2021-07-23 | shader: Implement BRX | FernandoS27 | 20 | -47/+388 | |
2021-07-23 | shader: Fix alignment checks on RZ | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Implement I2I CC | ameerj | 3 | -24/+45 | |
2021-07-23 | shader: Implement I2I SAT | ameerj | 6 | -10/+52 | |
2021-07-23 | shader: Fix ISCADD logic for PO/CC | ameerj | 1 | -7/+8 | |
2021-07-23 | shader: Implement LDS, STS, LDL, and STS and use SPIR-V 1.4 when available | ReinUsesLisp | 17 | -17/+626 | |
2021-07-23 | shader: Implement ISCADD CC | ameerj | 1 | -1/+4 | |
2021-07-23 | shader: Implement VMAD, VMNMX, VSETP | ameerj | 9 | -23/+319 | |
2021-07-23 | shader: Add missing I2I exception when CC is used | ReinUsesLisp | 1 | -0/+4 | |
2021-07-23 | shader: Better interpolation and disabled attributes support | ReinUsesLisp | 7 | -23/+96 | |
2021-07-23 | spirv: Remove dependencies on Environment when generating SPIR-V | ReinUsesLisp | 4 | -9/+12 | |
2021-07-23 | shader: Implement front face | ReinUsesLisp | 5 | -0/+12 | |
2021-07-23 | shader: Fix structured control flow on KIL instructions | ReinUsesLisp | 2 | -3/+7 | |
This could potentially leave unvisited blocks, leading to illegal phi nodes. | |||||
2021-07-23 | shader: Fix TXQ | FernandoS27 | 1 | -1/+1 | |
2021-07-23 | shader: Implement TXQ and fix FragDepth | ReinUsesLisp | 14 | -21/+172 | |
2021-07-23 | shader: Refactor PTP and other minor changes | ReinUsesLisp | 14 | -123/+67 | |
2021-07-23 | shader: Add IR opcode for ImageFetch | FernandoS27 | 7 | -5/+55 | |
2021-07-23 | shader: Implement TLD4.PTP | FernandoS27 | 15 | -28/+111 | |
2021-07-23 | shader: Fix Array Indices in TEX/TLD4 | FernandoS27 | 2 | -6/+6 | |
2021-07-23 | shader: Implement FragDepth | FernandoS27 | 2 | -1/+7 | |
2021-07-23 | shader: Implement TLD4S. | FernandoS27 | 3 | -4/+134 | |
2021-07-23 | shader: Implement TLD4 and TLD4_B | FernandoS27 | 13 | -11/+315 | |
2021-07-23 | shader: Implement SHFL | ameerj | 16 | -69/+284 | |
2021-07-23 | shader: Track first bindless argument instead of the instruction itself | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Properly insert Prologue instruction | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Minor style nits | ReinUsesLisp | 1 | -2/+4 | |
2021-07-23 | shader: Fix F2I | FernandoS27 | 10 | -9/+147 | |
2021-07-23 | shader: Implement NDC [-1, 1], attribute types and default varying initialization | ReinUsesLisp | 12 | -40/+149 | |
2021-07-23 | shader: Fix use-after-free bug in object_pool | ReinUsesLisp | 1 | -3/+3 | |
2021-07-23 | shader: Implement VOTE | ameerj | 14 | -5/+167 | |
2021-07-23 | shader: Fix TEX mask | ReinUsesLisp | 1 | -1/+3 | |
2021-07-23 | vk_pipeline_cache: Add pipeline cache | ReinUsesLisp | 4 | -8/+15 | |
2021-07-23 | shader: Fold interpolation multiplications | ReinUsesLisp | 1 | -0/+34 | |
2021-07-23 | shader: Better but still partial interpolation support | ReinUsesLisp | 1 | -5/+7 | |
2021-07-23 | shader: Implement DMNMX, DSET, DSETP | ameerj | 15 | -59/+208 | |
2021-07-23 | shader: Implement FADD32I | FernandoS27 | 1 | -2/+15 | |
2021-07-23 | shader: Implement F2F | FernandoS27 | 6 | -20/+192 | |
2021-07-23 | shader: Add missing fp64 usage flags | ReinUsesLisp | 1 | -0/+34 | |
2021-07-23 | shader: Implement DMUL and DFMA | ameerj | 8 | -30/+111 | |
Also add a missing const on DADD | |||||
2021-07-23 | shader: Add FP64 register load/store helpers | ameerj | 3 | -21/+24 | |
2021-07-23 | shader: Add support for fp16 comparisons and misc fixes | ReinUsesLisp | 11 | -14/+56 | |
2021-07-23 | shader: Fix floating point comparison for FP16 | FernandoS27 | 5 | -32/+56 | |
2021-07-23 | shader: Implement HSETP2 | FernandoS27 | 3 | -12/+117 | |
2021-07-23 | shader: Implement HSET2 | FernandoS27 | 5 | -14/+119 | |
2021-07-23 | shader: Implement HMUL2 | FernandoS27 | 3 | -16/+144 | |
2021-07-23 | shader: Implement HFMA2 | FernandoS27 | 5 | -20/+192 | |
2021-07-23 | spirv: Implement VertexId and InstanceId, refactor code | ReinUsesLisp | 9 | -144/+243 | |
2021-07-23 | shader: Refactor half floating instructions | FernandoS27 | 4 | -58/+84 | |
2021-07-23 | shader: Implement I2F | ReinUsesLisp | 16 | -69/+427 | |
2021-07-23 | shader: Implement ISCADD (imm) | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader: Implement LOP32I | ReinUsesLisp | 2 | -18/+45 | |
2021-07-23 | shader: Add partial rasterizer integration | ReinUsesLisp | 34 | -156/+629 | |
2021-07-23 | shader: Implement DADD | ameerj | 8 | -14/+132 | |
2021-07-23 | shader: Implement CSET and CSETP | ameerj | 6 | -15/+114 | |
2021-07-23 | shader: Reorder phi nodes when redefined as undefined opcodes | ReinUsesLisp | 1 | -1/+9 | |
2021-07-23 | shader: Fix instruction transitions in and out of Phi | ReinUsesLisp | 1 | -9/+11 | |
2021-07-23 | shader: Implement FSET and FSETP | ameerj | 9 | -94/+204 | |
Also fix oversight with adding SignedZeroInfNanPreserve execution mode. | |||||
2021-07-23 | shader: Implement TEXS | ReinUsesLisp | 8 | -7/+287 | |
2021-07-23 | shader: Implement CAL inlining function calls | ReinUsesLisp | 24 | -330/+286 | |
2021-07-23 | spirv: Add SignedZeroInfNanPreserve logic | ameerj | 2 | -0/+8 | |
2021-07-23 | shader: Implement FMNMX | ameerj | 8 | -25/+101 | |
And add a const in FCMP | |||||
2021-07-23 | shader: Fix rebase issue | ReinUsesLisp | 1 | -1/+0 | |
2021-07-23 | shader: Implement FCMP | ameerj | 9 | -50/+203 | |
still need to configure some settings for NV denorm flush and intel NaN | |||||
2021-07-23 | shader: Partial implementation of LDC | ReinUsesLisp | 16 | -50/+405 | |
2021-07-23 | shader: Initial support for textures and TEX | ReinUsesLisp | 29 | -341/+1378 | |
2021-07-23 | shader: Implement R2P | ameerj | 8 | -15/+88 | |
2021-07-23 | shader: Implement SHF | ameerj | 8 | -31/+119 | |
2021-07-23 | shader: Implement LEA | ameerj | 9 | -29/+136 | |
2021-07-23 | shader: Deduplicate HADD2 code | ReinUsesLisp | 1 | -19/+16 | |
2021-07-23 | shader: Implement I2I | ameerj | 3 | -12/+100 | |
2021-07-23 | shader: Implement HADD2 | ReinUsesLisp | 12 | -42/+400 | |
2021-07-23 | shader: Implement LOP and LOP3 | ameerj | 8 | -31/+227 | |
2021-07-23 | shader: Implement IADD3 | ameerj | 3 | -12/+104 | |
2021-07-23 | shader: Implement PSETP | ameerj | 4 | -5/+40 | |
2021-07-23 | Implement PSET, refactor common comparison funcs | ameerj | 9 | -101/+88 | |
2021-07-23 | shader: Implement FLO | ameerj | 8 | -18/+75 | |
2021-07-23 | shader: Implement ISET, add common_funcs | ameerj | 8 | -50/+150 | |
2021-07-23 | shader: Make IMNMX, SHR, SEL stylistically more consistent | ameerj | 3 | -5/+5 | |
2021-07-23 | shader: Implement ICMP | ameerj | 3 | -16/+84 | |
2021-07-23 | shader: Implement IMNMX | ameerj | 8 | -12/+105 | |
2021-07-23 | shader: Implement BFI | ameerj | 3 | -16/+57 | |
2021-07-23 | shader: Implement BFE | ameerj | 3 | -12/+67 | |
2021-07-23 | shader: Implement POPC | ameerj | 8 | -12/+59 | |
2021-07-23 | shader: Implement SHR | ameerj | 8 | -18/+80 | |
2021-07-23 | shader: Implement SEL | ameerj | 4 | -16/+53 | |
2021-07-23 | spirv: Move phi arguments emit to a separate function | ReinUsesLisp | 1 | -27/+27 | |
2021-07-23 | shader: Avoid infinite recursion when tracking global memory | ReinUsesLisp | 1 | -5/+26 | |
2021-07-23 | shader: Fix conditional execution of exit instructions | ReinUsesLisp | 2 | -5/+6 | |
2021-07-23 | spirv: Add support for self-referencing phi nodes | ReinUsesLisp | 1 | -3/+10 | |
2021-07-23 | shader: Fix control flow | ReinUsesLisp | 8 | -20/+39 | |
2021-07-23 | shader: Implement more of XMAD and FFMA32I and fix XMAD.CBCC | ReinUsesLisp | 5 | -28/+76 | |
2021-07-23 | shader: FMUL, select, RRO, and MUFU fixes | ReinUsesLisp | 18 | -119/+507 | |
2021-07-23 | shader: Fix MOV(reg), add SHL variants and emit neg and abs instructions | ReinUsesLisp | 4 | -11/+11 | |
2021-07-23 | spirv: Fixes and Intel specific workarounds | ReinUsesLisp | 10 | -32/+43 | |
2021-07-23 | shader: Rename, implement FADD.SAT and P2R (imm) | ReinUsesLisp | 17 | -125/+211 | |
2021-07-23 | shader: Add denorm flush support | ReinUsesLisp | 15 | -60/+210 | |
2021-07-23 | spirv: Add lower fp16 to fp32 pass | ReinUsesLisp | 28 | -276/+465 | |
2021-07-23 | shader: Primitive Vulkan integration | ReinUsesLisp | 28 | -498/+573 | |
2021-07-23 | shader: Add XMAD multiplication folding optimization | ReinUsesLisp | 1 | -5/+77 | |
2021-07-23 | shader: Simplify ISCADD | ReinUsesLisp | 1 | -6/+1 | |
2021-07-23 | shader: Add utility to resolve identities on a value | ReinUsesLisp | 2 | -0/+8 | |
2021-07-23 | spirv: Implement EmitIdentity | ReinUsesLisp | 2 | -3/+3 | |
2021-07-23 | spirv: Initial bindings support | ReinUsesLisp | 22 | -292/+671 | |
2021-07-23 | shader: Improve object pool | ReinUsesLisp | 3 | -50/+66 | |
2021-07-23 | shader: Fix tracking | ReinUsesLisp | 1 | -50/+72 | |
2021-07-23 | shader: Add support for forward declarations | ReinUsesLisp | 10 | -68/+79 | |
2021-07-23 | shader: Support SSA loops on IR | ReinUsesLisp | 12 | -46/+150 | |
2021-07-23 | shader: Misc fixes | ReinUsesLisp | 10 | -89/+104 | |
2021-07-23 | shader: Initial implementation of an AST | ReinUsesLisp | 32 | -589/+1345 | |
2021-07-23 | spirv: Initial SPIR-V support | ReinUsesLisp | 18 | -34/+1400 | |
2021-07-23 | shader: Better constant folding | ReinUsesLisp | 2 | -13/+48 | |
2021-07-23 | shader: Properly store phi on Inst | ReinUsesLisp | 6 | -75/+132 | |
2021-07-23 | shader: Add pools and rename files | ReinUsesLisp | 30 | -108/+255 | |
2021-07-23 | shader: Make typed IR | ReinUsesLisp | 19 | -269/+495 | |
2021-07-23 | shader: Remove illegal character in SSA pass | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Constant propagation and global memory to storage buffer | ReinUsesLisp | 17 | -63/+652 | |
2021-07-23 | shader: Initial instruction support | ReinUsesLisp | 28 | -334/+1450 | |
2021-07-23 | shader: SSA and dominance | ReinUsesLisp | 24 | -77/+570 | |
2021-07-23 | shader: Initial recompiler work | ReinUsesLisp | 56 | -0/+7060 | |