Fernando Sahmkow
ba677ccb5a
texture_cache: Implement guest flushing
7 years ago
Fernando Sahmkow
de0b1cb2b2
Fixes to mipmap's process and reconstruct process
7 years ago
ReinUsesLisp
e0002599ac
surface_base: Add parenthesis to EmplaceOverview's predicate
7 years ago
Fernando Sahmkow
324e470879
Texture Cache: Implement Blitting and Fermi Copies
7 years ago
ReinUsesLisp
549fd18ac4
surface_view: Add constructor for ViewParams
7 years ago
ReinUsesLisp
16e8625a30
surface_base: Split BreakDown into layered and non-layered variants
7 years ago
ReinUsesLisp
2b30000a1e
surface_base: Silence truncation warnings and minor renames and reordering
7 years ago
ReinUsesLisp
03d10ea3b4
copy_params: Use constructor instead of C-like initialization
7 years ago
Fernando Sahmkow
1af4414861
Correct Mipmaps View method in Texture Cache
7 years ago
Fernando Sahmkow
d86f9cd709
Change texture_cache chaching from GPUAddr to CacheAddr
This also reverses the changes to make invalidation and flushing through
the GPU address.
7 years ago
Fernando Sahmkow
b711cdce78
Corrections to Structural Matching
The texture will now be reconstructed if the width only matches on GoB
alignment.
7 years ago
Fernando Sahmkow
bc930754cc
Implement Texture Cache V2
7 years ago
Fernando Sahmkow
3d471e732d
Correct Surface Base and Views for new Texture Cache
7 years ago
Fernando Sahmkow
3b26206dbd
Add OGLTextureView
7 years ago
Fernando Sahmkow
6b0695b3cd
Deglobalize Memory Manager on texture cahe and Implement Invalidation and Flushing using GPUVAddr
7 years ago
ReinUsesLisp
6c410104f4
texture_cache: Remove execution context copies from the texture cache
This is done to simplify the OpenGL implementation, it is needed for
Vulkan.
7 years ago
ReinUsesLisp
fa59a7b4d8
gl_texture_cache: Implement fermi copies
7 years ago
ReinUsesLisp
1b4503c571
texture_cache: Split texture cache into different files
7 years ago
ReinUsesLisp
5f3aacdc37
texture_cache: Move staging buffer into a generic implementation
7 years ago
ReinUsesLisp
2787a0c287
texture_cache: Flush 3D textures in the order they are drawn
7 years ago
ReinUsesLisp
4b396f375c
gl_texture_cache: Minor changes
7 years ago
ReinUsesLisp
0cefb7bcb4
gl_texture_cache: Add copy from multiple overlaps into a single surface
7 years ago
ReinUsesLisp
84139586c9
gl_texture_cache: Attach surface textures instead of views
7 years ago
ReinUsesLisp
fb94871791
gl_texture_cache: Add fast copy path
7 years ago
ReinUsesLisp
bab21e8cb3
gl_texture_cache: Initial implementation
7 years ago
Lioncash
61d2498f00
core: Remove unused CiTrace source files
These source files have been unused for the entire lifecycle of the
project. They're a hold-over from Citra and only add to the build time
of the project, so they can be removed.
There's also likely no way this would ever work in yuzu in its current
form without revamping quite a bit of it, given how different the GPU on
the Switch is compared to the 3DS.
7 years ago
ReinUsesLisp
ee81fb94cd
gl_device: Fix TestVariableAoffi test
This test is intended to be invalid GLSL, but it was being invalid in
two points instead of one. The intention is to use a non-immediate
parameter in a textureOffset like function.
The problem is that this shader was being compiled as a separable
shader object and the text was writting to gl_Position without a
redeclaration, being invalid GLSL.
Address that issue by using a user-defined output attribute.
7 years ago
Fernando Sahmkow
f79823fda7
GPUVM: Correct GPU VM virtual address space
7 years ago
ReinUsesLisp
528c15051c
kepler_compute: Use std::array for cbuf info
7 years ago
ReinUsesLisp
17d5fb6d06
kepler_compute: Fix block_dim_x encoding
7 years ago
ReinUsesLisp
4ec8a3df08
gl_shader_cache: Use static constructors for CachedShader initialization
7 years ago
ReinUsesLisp
5669ff3cbd
gl_rasterizer: Remove unused parameters in descriptor uploads
7 years ago
ReinUsesLisp
2f2a61887a
video_core/engines: Move ConstBufferInfo out of Maxwell3D
7 years ago
ReinUsesLisp
fe8e6618f2
shader: Split SSY and PBK stack
Hardware testing revealed that SSY and PBK push to a different stack,
allowing code like this:
SSY label1;
PBK label2;
SYNC;
label1: PBK;
label2: EXIT;
7 years ago
ReinUsesLisp
769a50661a
shader/node: Minor changes
Reflect std::shared_ptr nature of Node on initializers and remove
constant members in nodes.
Add some commentaries.
7 years ago
ReinUsesLisp
e1b3be7ced
shader: Move Node declarations out of the shader IR header
Analysis passes do not have a good reason to depend on shader_ir.h to
work on top of nodes. This splits node-related declarations to their own
file and leaves the IR in shader_ir.h
7 years ago
ReinUsesLisp
bf4dfb3ad4
shader: Use shared_ptr to store nodes and move initialization to file
Instead of having a vector of unique_ptr stored in a vector and
returning star pointers to this, use shared_ptr. While changing
initialization code, move it to a separate file when possible.
This is a first step to allow code analysis and node generation beyond
the ShaderIR class.
7 years ago
Lioncash
42f5fd0ab3
core/core_timing_util: Use std::chrono types for specifying time units
Makes the interface more type-safe and consistent in terms of return
values.
7 years ago
Fernando Sahmkow
a32c52b1d8
shader_bytecode: Mark EXIT as flow instruction
7 years ago
ReinUsesLisp
0935c2d97b
gl_shader_decompiler: Remove guest "position" varying
"position" was being written but not read anywhere besides geometry
shaders, where it had the same value as gl_Position.
This commit replaces "position" with gl_Position, reducing the
complexity of our code and the emitted GLSL code.
7 years ago
ReinUsesLisp
e72b9044a0
gl_shader_cache: Store a system class and drop global accessors
7 years ago
ReinUsesLisp
ad321564ed
gl_shader_cache: Add commentaries explaining the intention in shaders creation
7 years ago
ReinUsesLisp
838b6d2ff8
gl_shader_cache: Flip if condition in GetStageProgram to reduce indentation
7 years ago
ReinUsesLisp
6ac4490751
gl_buffer_cache: Remove unused ReserveMemory method
7 years ago
ReinUsesLisp
a89cc0bafc
maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap mode
7 years ago
ReinUsesLisp
b76df62c00
gl_rasterizer: Move alpha testing to the OpenGL pipeline
Removes the alpha testing code from each fragment shader invocation.
7 years ago
ReinUsesLisp
df509486c4
gl_rasterizer: Use GL_QUADS to emulate quads rendering
7 years ago
ReinUsesLisp
21c0b4dec8
gl_device: Add commentary to AOFFI unit test source code
The intention behind this commit is to hint someone inspecting an
apitrace dump to ignore this ill-formed GLSL code.
7 years ago
ReinUsesLisp
84928e6d67
gl_shader_gen: Always declare extensions after the version declaration
This addresses a bug on geometry shaders where code was being written
before all #extension declarations were done. Ref to #2523
7 years ago
ReinUsesLisp
f424b46036
vk_device: Let formats array type be deduced
7 years ago