Ameer J
db1d32485e
GLSL: Prefer known used cbuf sizes
2 years ago
Ameer J
75c5be55af
shader_recompiler: Align SSBO offsets in GlobalMemory functions
2 years ago
Kelebek1
5da70f7197
Remove memory allocations in some hot paths
3 years ago
ameerj
04139cb3ed
glsl_emit_context: Remove redeclarations of gl_SampleID and gl_SampleMask
These built-ins seem to be available without needing to be declared for fragment shaders, similar i.e. to gl_FragDepth
3 years ago
ameerj
5710e90150
glsl: Add MS sampler types
3 years ago
FengChen
9a95c7fa14
video_core: Generate mipmap texture by drawing
3 years ago
FengChen
b2a6dde438
video_code: support rectangle texture
3 years ago
Morph
99ceb03a1c
general: Convert source file copyright comments over to SPDX
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.
4 years ago
Liam
7d5a38ea6c
shader_compiler: support const buffer indirect addressing in GLSL
4 years ago
v1993
a943600019
shader_recompiler: fix potential OOB access
Found by static analysis with PVS-Studio. Original check wasn't actually checking for OOB and would segfault in case of it.
4 years ago
ameerj
b84d429c2e
glsl_context_get_set: Add alternative cbuf type for broken drivers
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.
4 years ago
vonchenplus
94652e122d
Remove glsl handle legacy related code
4 years ago
ameerj
f32b2bcd20
shader_recompiler: Adjust emit_context includes
4 years ago
ameerj
5286a7bc4c
shader_recompiler: Rename backend emit_context files
4 years ago
ReinUsesLisp
cfeb161c7e
glsl/glasm: Pass and use scaling parameters in shaders
5 years ago
ameerj
f086c82e1f
gl_graphics_pipeline: Add downscale factor to shader uniforms
5 years ago
ameerj
79d2684261
glsl: Update TessellationControl gl_in
Adheres to GL_ARB_separate_shader_objects requirements
5 years ago
ameerj
11f04f1022
shader: Ignore global memory ops on devices lacking int64 support
5 years ago
lat9nq
2e5af95541
shader: GCC fmt 8.0.0 fixes
5 years ago
ameerj
f7352411f0
glsl: Add passthrough geometry shader support
5 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.
5 years ago
ReinUsesLisp
374eeda1a3
shader: Properly manage attributes not written from previous stages
5 years ago
ReinUsesLisp
892b8aa2ad
glsl: Only declare fragment outputs on fragment shaders
5 years ago
ReinUsesLisp
0ffea97e2e
shader: Split profile and runtime info headers
5 years ago
ameerj
12ef06ba8b
glsl: Obey need_declared_frag_colors to declare and initialize all frag_color
Fixes Ori and the blind forest title screen
5 years ago
ameerj
d36f667bc0
glsl: Address rest of feedback
5 years ago
ameerj
3b339fbbf6
glsl: Conditionally use fine/coarse derivatives based on device support
5 years ago
ameerj
a0d0704aff
glsl: Conditionally add EXT_texture_shadow_lod
5 years ago
ameerj
5e7b2b9661
glsl: Add stubs for sparse queries and variable aoffi when not supported
5 years ago
ameerj
6aa1bf7b6f
glsl: Implement legacy varyings
5 years ago
ameerj
e81c73a874
glsl: Address more feedback. Implement indexed texture reads
5 years ago
ameerj
4759db28d0
glsl: Address Rodrigo's feedback
5 years ago
ameerj
e7c8f8911f
glsl: Implement SampleId and SetSampleMask
plus some minor refactoring of implementations
5 years ago
ameerj
d1a68f7997
glsl: Add gl_PerVertex in for GS
5 years ago
ameerj
a926695234
glsl: Use existing tracking for enabling EXT_shader_image_load_formatted
5 years ago
ameerj
14bd73db36
glsl: Enable early fragment tests
5 years ago
ameerj
3f31a547e0
glsl: Implement more attribute getters and setters
5 years ago
ameerj
8bb8bbf4ae
glsl: Implement fswzadd
and wip nv thread shuffle impl
5 years ago
ameerj
c542204113
glsl: Implement indexed attribute loads
5 years ago
ameerj
2a504b4765
glsl: Conditionally add GL_ARB_sparse_texture2
5 years ago
ameerj
fc0db612ab
glsl: Conditionally use GL_EXT_shader_image_load_formatted
Fix for SULD.D
5 years ago
ameerj
421847cf1e
glsl: Implement image atomics and set layer
along with some more cleanup/oversight fixes
5 years ago
ameerj
747b8556a4
glsl: Use textureGrad fallback when EXT_texture_shadow_lod is unsupported
5 years ago
ameerj
0a0b0a73d8
glsl: Fix <32-bit SSBO writes
and more cleanup
5 years ago
ameerj
34fdb6471d
glsl: Cleanup and address feedback
5 years ago
ameerj
5355568a2d
glsl: Refactor Global memory functions
5 years ago
ameerj
8d8ce24f20
glsl: Implement Load/WriteGlobal
along with some other misc changes and fixes
5 years ago
ameerj
af9696059c
glsl: Implement Images
5 years ago
ameerj
6577a63d36
glsl: skip gl_ViewportIndex write if device does not support it
5 years ago
ameerj
f4799e8fa1
glsl: Implement transform feedback
5 years ago