Fernando Sahmkow
e543320129
Implement linear textures ( #2089 )
7 years ago
ReinUsesLisp
e36e7ae74e
gl_rasterizer_cache: Fixup texture view parameters
These parameters were declared as constants and passed to glTextureView
but then they were removed on a rabase. This addresses that mistake.
7 years ago
ReinUsesLisp
889c646ac0
shader_ir: Remove F4 prefix to texture operations
This was originally included because texture operations returned a vec4.
These operations now return a single float and the F4 prefix doesn't
mean anything.
7 years ago
ReinUsesLisp
d62b0a9e29
shader_ir: Clean texture management code
Previous code relied on GLSL parameter order (something that's always
ill-formed on an IR design). This approach passes spatial coordiantes
through operation nodes and array and depth compare values in the the
texture metadata. It still contains an "extra" vector containing generic
nodes for bias and component index (for example) which is still a bit
ill-formed but it should be better than the previous approach.
7 years ago
bunnei
35e1118766
gl_rasterizer_cache: Mark surface copy destinations as modified.
7 years ago
bunnei
dd1aab5446
gl_rasterizer: Implement a more accurate fermi 2D copy.
- This is a blit, use the blit registers.
7 years ago
Frederic L
d0ac624403
gl_shader_disk_cache: Check LZ4 size limit
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
7 years ago
Frederic L
9f0b247cf6
gl_shader_disk_cache: Consider compressed size zero as an error
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
7 years ago
ReinUsesLisp
e6a2245304
gl_shader_disk_cache: Use unordered containers
7 years ago
ReinUsesLisp
e147ed4fc0
gl_shader_cache: Fixup GLSL unique identifiers
7 years ago
ReinUsesLisp
eb73247433
gl_shader_cache: Link loading screen with disk shader cache load
7 years ago
ReinUsesLisp
df0f31f44e
gl_shader_cache: Set GL_PROGRAM_SEPARABLE to dumped shaders
i965 (and probably all mesa drivers) require GL_PROGRAM_SEPARABLE when using
glProgramBinary. This is probably required by the standard but it's ignored by
permisive proprietary drivers.
7 years ago
ReinUsesLisp
7fefec585c
gl_shader_disk_cache: Pass core system as argument and guard against games without title ids
7 years ago
ReinUsesLisp
2bc6a699dc
gl_shader_disk_cache: Guard reads and writes against failure
7 years ago
ReinUsesLisp
750abcc23d
gl_shader_disk_cache: Address miscellaneous feedback
7 years ago
ReinUsesLisp
8ee3666a3c
gl_shader_disk_cache: Pass return values returning instead of by parameters
7 years ago
ReinUsesLisp
ed956569a4
gl_shader_disk_cache: Compress program binaries using LZ4
7 years ago
ReinUsesLisp
f087639e4a
gl_shader_disk_cache: Compress GLSL code using LZ4
7 years ago
ReinUsesLisp
cfb20c4c9d
gl_shader_disk_cache: Save GLSL and entries into the precompiled file
7 years ago
ReinUsesLisp
e78da8dc1f
settings: Hide shader cache behind a setting
7 years ago
ReinUsesLisp
be4641c43f
gl_shader_disk_cache: Invalidate shader cache changes with CMake hash
7 years ago
ReinUsesLisp
a3703f5767
gl_shader_cache: Refactor to support disk shader cache
7 years ago
ReinUsesLisp
4039086226
gl_shader_disk_cache: Add transferable cache invalidation
7 years ago
ReinUsesLisp
a1faed9950
gl_shader_disk_cache: Add precompiled load
7 years ago
ReinUsesLisp
57fb15d2a3
gl_shader_disk_cache: Add precompiled save
7 years ago
ReinUsesLisp
3435cd8d5e
gl_shader_disk_cache: Add transferable load
7 years ago
ReinUsesLisp
b1efceec89
gl_shader_disk_cache: Add transferable stores
7 years ago
ReinUsesLisp
98be5a4928
gl_shader_disk_cache: Add ShaderDiskCacheOpenGL class and helpers
7 years ago
ReinUsesLisp
145c3ac89e
gl_shader_disk_cache: Add file and move BaseBindings declaration
7 years ago
ReinUsesLisp
c2c5260fd7
gl_shader_decompiler: Remove name entries
7 years ago
ReinUsesLisp
8b11368671
gl_shader_util: Add parameter to handle retrievable programs
7 years ago
ReinUsesLisp
0ed5d728ca
rasterizer_interface: Add disk cache entry for the rasterizer
7 years ago
ReinUsesLisp
049050856f
shader_decode: Implement LDG and basic cbuf tracking
7 years ago
ReinUsesLisp
b5e685b297
video_core/texture: Fix BitField size for depth_minus_one
7 years ago
Mat M
a568cd805b
Update src/video_core/engines/shader_bytecode.h
Co-Authored-By: FernandoS27 <fsahmkow27@gmail.com>
7 years ago
Fernando Sahmkow
0306c50339
Fix TXQ not using the component mask.
7 years ago
ReinUsesLisp
dfa7be5ddf
shader_ir/memory: Add ST_L 64 and 128 bits stores
7 years ago
ReinUsesLisp
0d1d755086
shader/track: Search inside of conditional nodes
Some games search conditionally use global memory instructions. This
allows the heuristic to search inside conditional nodes for the source
constant buffer.
7 years ago
ReinUsesLisp
42b75e8be8
shader_ir: Rename BasicBlock to NodeBlock
It's not always used as a basic block. Rename it for consistency.
7 years ago
ReinUsesLisp
6a6fabea58
shader_ir: Pass decoded nodes as a whole instead of per basic blocks
Some games call LDG at the top of a basic block, making the tracking
heuristic to fail. This commit lets the heuristic the decoded nodes as a
whole instead of per basic blocks.
This may lead to some false positives but allows it the heuristic to
track cases it previously couldn't.
7 years ago
ReinUsesLisp
2bdbb90af7
video_core: Assert on invalid GPU to CPU address queries
7 years ago
ReinUsesLisp
04e68e9738
maxwell_3d: Allow sampler handles with TSC id zero
7 years ago
ReinUsesLisp
390721a561
maxwell_3d: Allow texture handles with TIC id zero
Also remove "enabled" field from Tegra::Texture::FullTextureInfo because
it would become unused.
7 years ago
ReinUsesLisp
e01a9de35f
memory_manager: Check for reserved page status
7 years ago
ReinUsesLisp
f61c1ed246
shader_ir/memory: Add LD_L 128 bits loads
7 years ago
ReinUsesLisp
9feb68085d
shader_bytecode: Rename BytesN enums to BitsN
7 years ago
ReinUsesLisp
0be835132c
shader_ir/memory: Add LD_L 64 bits loads
7 years ago
ReinUsesLisp
26f8a700a7
rasterizer_interface: Remove unused AccelerateFill operation
7 years ago
ReinUsesLisp
13222f94c0
video_core: Remove unused Fill surface type
7 years ago
ReinUsesLisp
3e80b08944
gl_rasterizer_cache: Fixup test clause
7 years ago