aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/renderer_opengl
AgeCommit message (Collapse)Author
2019-06-20Texture Cache: Implement Blitting and Fermi CopiesFernando Sahmkow
2019-06-20surface_view: Add constructor for ViewParamsReinUsesLisp
2019-06-20Correct Mipmaps View method in Texture CacheFernando Sahmkow
2019-06-20Change texture_cache chaching from GPUAddr to CacheAddrFernando Sahmkow
This also reverses the changes to make invalidation and flushing through the GPU address.
2019-06-20Implement Texture Cache V2Fernando Sahmkow
2019-06-20Add OGLTextureViewFernando Sahmkow
2019-06-20Deglobalize Memory Manager on texture cahe and Implement Invalidation and ↵Fernando Sahmkow
Flushing using GPUVAddr
2019-06-20texture_cache: Remove execution context copies from the texture cacheReinUsesLisp
This is done to simplify the OpenGL implementation, it is needed for Vulkan.
2019-06-20gl_texture_cache: Implement fermi copiesReinUsesLisp
2019-06-20texture_cache: Split texture cache into different filesReinUsesLisp
2019-06-20texture_cache: Move staging buffer into a generic implementationReinUsesLisp
2019-06-20texture_cache: Flush 3D textures in the order they are drawnReinUsesLisp
2019-06-20gl_texture_cache: Minor changesReinUsesLisp
2019-06-20gl_texture_cache: Add copy from multiple overlaps into a single surfaceReinUsesLisp
2019-06-20gl_texture_cache: Attach surface textures instead of viewsReinUsesLisp
2019-06-20gl_texture_cache: Add fast copy pathReinUsesLisp
2019-06-20gl_texture_cache: Initial implementationReinUsesLisp
2019-06-19Merge pull request #2591 from lioncash/recordbunnei
core: Remove unused CiTrace source files
2019-06-18core: Remove unused CiTrace source filesLioncash
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.
2019-06-17Merge pull request #2562 from ReinUsesLisp/split-cbuf-uploadbunnei
video_core/engines: Move ConstBufferInfo out of Maxwell3D
2019-06-15Merge pull request #2538 from ReinUsesLisp/ssy-pbkZach Hilman
shader: Split SSY and PBK stack
2019-06-07gl_rasterizer: Remove unused parameters in descriptor uploadsReinUsesLisp
2019-06-07video_core/engines: Move ConstBufferInfo out of Maxwell3DReinUsesLisp
2019-06-07Merge pull request #2514 from ReinUsesLisp/opengl-compatZach Hilman
video_core: Drop OpenGL core in favor of OpenGL compatibility
2019-06-07shader: Split SSY and PBK stackReinUsesLisp
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;
2019-06-05shader: Use shared_ptr to store nodes and move initialization to fileReinUsesLisp
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.
2019-06-05Merge pull request #2540 from ReinUsesLisp/remove-guest-positionbunnei
gl_shader_decompiler: Remove guest "position" varying
2019-06-05Merge pull request #2512 from ReinUsesLisp/comp-indexingbunnei
gl_shader_decompiler: Pessimize uniform buffer access on AMD's prorpietary driver
2019-06-03gl_shader_decompiler: Remove guest "position" varyingReinUsesLisp
"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.
2019-05-30gl_shader_cache: Store a system class and drop global accessorsReinUsesLisp
2019-05-30gl_shader_cache: Add commentaries explaining the intention in shaders creationReinUsesLisp
2019-05-30gl_shader_cache: Flip if condition in GetStageProgram to reduce indentationReinUsesLisp
2019-05-30gl_buffer_cache: Remove unused ReserveMemory methodReinUsesLisp
2019-05-30maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap modeReinUsesLisp
2019-05-30gl_rasterizer: Move alpha testing to the OpenGL pipelineReinUsesLisp
Removes the alpha testing code from each fragment shader invocation.
2019-05-30gl_rasterizer: Use GL_QUADS to emulate quads renderingReinUsesLisp
2019-05-29Merge pull request #2446 from ReinUsesLisp/tidbunnei
shader: Implement S2R Tid{XYZ} and CtaId{XYZ}
2019-05-27gl_device: Add commentary to AOFFI unit test source codeReinUsesLisp
The intention behind this commit is to hint someone inspecting an apitrace dump to ignore this ill-formed GLSL code.
2019-05-27gl_shader_gen: Always declare extensions after the version declarationReinUsesLisp
This addresses a bug on geometry shaders where code was being written before all #extension declarations were done. Ref to #2523
2019-05-24renderer_opengl/utils: Use a std::string_view with LabelGLObject()Lioncash
Uses a std::string_view instead of a std::string, given the pointed to string isn't modified and is only used in a formatting operation. This is nice because a few usages directly supply a string literal to the function, allowing these usages to otherwise not heap allocate, unlike the std::string overloads. While we're at it, we can combine the address formatting into a single formatting call.
2019-05-24Merge pull request #2358 from ReinUsesLisp/parallel-shaderbunnei
gl_shader_cache: Use shared contexts to build shaders in parallel at boot
2019-05-24gl_shader_decompiler: Use an if based cbuf indexing for broken driversReinUsesLisp
The following code is broken on AMD's proprietary GLSL compiler: ```glsl uint idx = ...; vec4 values = ...; float some_value = values[idx & 3]; ``` It index the wrong components, to fix this the following pessimized code is emitted when that bug is present: ```glsl uint idx = ...; vec4 values = ...; float some_value; if ((idx & 3) == 0) some_value = values.x; if ((idx & 3) == 1) some_value = values.y; if ((idx & 3) == 2) some_value = values.z; if ((idx & 3) == 3) some_value = values.w; ```
2019-05-24gl_device: Add test to detect broken component indexingReinUsesLisp
Component indexing on AMD's proprietary driver is broken. This commit adds a test to detect when we are on a driver that can't successfully manage component indexing. It dispatches a dummy draw with just one vertex shader that writes to an indexed SSBO from the GPU with data sent through uniforms, it then reads that data from the CPU and compares the expected output.
2019-05-21renderer_opengl/gl_shader_decompiler: Remove redundant name specification in ↵Lioncash
format string This accidentally slipped through a rebase.
2019-05-20gl_shader_cache: Fix clang strict standard build issuesReinUsesLisp
2019-05-20gl_shader_cache: Use shared contexts to build shaders in parallelReinUsesLisp
2019-05-20shader: Implement S2R Tid{XYZ} and CtaId{XYZ}ReinUsesLisp
2019-05-20gl_shader_decompiler: Make GetSwizzle constexprReinUsesLisp
2019-05-20gl_shader_decompiler: Tidy up minor remaining cases of unnecessary ↵Lioncash
std::string concatenation
2019-05-20gl_shader_decompiler: Replace individual overloads with the fmt-based oneLioncash
Gets rid of the need to special-case brace handling depending on the overload used, and makes it consistent across the board with how fmt handles them. Strings with compile-time deducible strings are directly forwarded to std::string's constructor, so we don't need to worry about the performance difference here, as it'll be identical.