Commit Graph

159 Commits (71313509f75aeafe425e531824d1faa9e7c0a40b)

Author SHA1 Message Date
ReinUsesLisp e66d5b88a6 shader: Properly scale image reads and add GL SPIR-V support
Thanks for everything!
4 years ago
ReinUsesLisp cfeb161c7e glsl/glasm: Pass and use scaling parameters in shaders 4 years ago
ameerj f086c82e1f gl_graphics_pipeline: Add downscale factor to shader uniforms 4 years ago
ReinUsesLisp c15332c44f shader: Add IsTextureScaled opcode 4 years ago
ReinUsesLisp 95761cc6a7 shader: Add integer division opcodes 4 years ago
ReinUsesLisp fb924ea85c shader: Add resolution down factor opcode 4 years ago
Fernando Sahmkow 2d4bbd83e6 Shader Cahe: Fix Phi Nodes on GLASM. 4 years ago
Lioncash 3e7813e49d emit_glasm: Fix LINESS_ADJACENCY typo in InputPrimitive()
This should be LINES_ADJACENCY
4 years ago
ReinUsesLisp bf2956d77a shader: Avoid usage of C++20 ranges to build in clang 4 years ago
lat9nq 49946cf780 shader_recompiler, video_core: Resolve clang errors
Silences the following warnings-turned-errors:
-Wsign-conversion
-Wunused-private-field
-Wbraced-scalar-init
-Wunused-variable

And some other errors
4 years ago
lat9nq 2e5af95541 shader: GCC fmt 8.0.0 fixes 4 years ago
ameerj 8289eb108f opengl: Implement LOP.CC
Used by MH:Rise
4 years ago
ReinUsesLisp 8a3427a4c8 glasm: Add passthrough geometry shader support 4 years ago
ReinUsesLisp 7dafa96ab5 shader: Rework varyings and implement passthrough geometry shaders
Put all varyings into a single std::bitset with helpers to access it.

Implement passthrough geometry shaders using host's.
4 years ago
ReinUsesLisp 4397053d5c shader: Remove IAbs64 4 years ago
ReinUsesLisp 808ef97a08 shader: Move loop safety tests to code emission 4 years ago
ameerj 3a2dd1b483 glasm: Implement SetAttribute ViewportMask 4 years ago
ReinUsesLisp 0ffea97e2e shader: Split profile and runtime info headers 4 years ago
ReinUsesLisp 61cd7dd301 shader: Add logging 4 years ago
lat9nq 373f75d944 shader: Add shader loop safety check settings
Also add a setting for enable Nsight Aftermath.
4 years ago
ReinUsesLisp 79f2fe1a39 glasm: Use ARB_derivative_control conditionally 4 years ago
lat9nq 22f0c4f002 emit_glasm_context_get_set: Remove unused variable 4 years ago
ReinUsesLisp 5539b13c5a shader,glasm: Implement legacy texcoord loads 4 years ago
ReinUsesLisp cf9f88e5a7 glasm: Implement legacy varyings 4 years ago
ReinUsesLisp 05d41fa9b7 shader: Add support for "negative" and unaligned offsets
"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.
4 years ago
ReinUsesLisp 916ca74324 opengl: Declare fragment outputs even if they are not used
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.
4 years ago
ReinUsesLisp eb8464cb3d glasm: Fix immediate texture coordinate 4 years ago
ReinUsesLisp b6c087496b glasm: Reduce reg allocation leaks from an exception to a log 4 years ago
ReinUsesLisp 83db7abae6 glasm: Use integer lod for TXQ 4 years ago
ReinUsesLisp e240a62017 glasm: Fix global memory fallbacks 4 years ago
ReinUsesLisp 8f3043c3cf Revert "glasm: Skip phi moves on undefined instructions"
Causes regressions on Bowser's Fury.
4 years ago
ReinUsesLisp 2aa30353b7 glasm: Remove unintentional '\n' on Undef32 4 years ago
ReinUsesLisp adb591a757 glasm: Use storage buffers instead of global memory when possible 4 years ago
ReinUsesLisp f58f79c85d glasm: Implement Y direction 4 years ago
ReinUsesLisp 586c785366 glasm: Skip phi moves on undefined instructions 4 years ago
ReinUsesLisp b9c8814ea9 glasm: Implement undef instructions 4 years ago
ReinUsesLisp 8763cc1ff7 glasm: Fix global memory callbacks 4 years ago
ReinUsesLisp 48aafe0961 glasm: Release phi node registers after they are no longer needed 4 years ago
ReinUsesLisp 70c9281fbf glasm: Fix INeg32 on negative immediates 4 years ago
ReinUsesLisp 75fd0079db glasm: Remove unnecessary value types 4 years ago
ReinUsesLisp 379b305b4b glasm: Throw when there are register leaks 4 years ago
ReinUsesLisp ca05a13c62 glasm: Catch more register leaks
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.
4 years ago
ReinUsesLisp 9fbfe7d676 glasm: Fix usage counting on phi nodes 4 years ago
ReinUsesLisp c721767bcc glasm: Implement global memory fallbacks 4 years ago
ReinUsesLisp 0794273870 glasm: Implement int64 add and subtract 4 years ago
lat9nq 7fdf0d7d33 emit_glasm_context_get_set: Remove unused variable 4 years ago
ReinUsesLisp e30d4fa976 glasm: Implement indirect attribute loads 4 years ago
ReinUsesLisp c8414e686f glasm: Implement image atomics 4 years ago
ReinUsesLisp 3a7ca6a7db glasm: Reorder unreachable image atomic insts
Reorder them to the bottom of the file for readability.
4 years ago
ReinUsesLisp e565eb361a glasm: Implement gl_Layer stores 4 years ago