summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2018-04-12Reformat all the things!spycrab
2018-04-04Merge pull request #6578 from JosJuice/remove-projection-hacksMarkus Wick
Remove support for projection hacks
2018-04-02Vulkan/CMakeLists: Migrate off add_dolphin_libraryLioncash
Finishes the migration work started in 3a4c3bbe01e7a44ec997f4fbf0b678fba6f2d46c
2018-04-02Software/CMakeLists: Migrate off add_dolphin_libraryLioncash
Continues the migration work started in 3a4c3bbe01e7a44ec997f4fbf0b678fba6f2d46c
2018-04-02OGL/CMakeLists: Migrate off add_dolphin_libraryLioncash
Continues the migration work started in 3a4c3bbe01e7a44ec997f4fbf0b678fba6f2d46c
2018-04-02Null/CMakeLists: Migrate off add_dolphin_libraryLioncash
Continues the migration work started in 3a4c3bbe01e7a44ec997f4fbf0b678fba6f2d46c
2018-04-02D3D/CMakeLists: Migrate off add_dolphin_libraryLioncash
Continues the migration work started in 3a4c3bbe01e7a44ec997f4fbf0b678fba6f2d46c
2018-04-01Remove support for projection hacksJosJuice
This isn't really useful for anything anymore as far as I know.
2018-03-28VideoCommon/Vulkan: Explicitly link in xxhashLioncash
Lessens the dependency on the LIBS variable (and also makes the required libraries explicit).
2018-03-26Implement "Skip" ubershader modeStenzek
Skip ubershader mode works the same as hybrid ubershaders in that the shaders are compiled asynchronously. However, instead of using the ubershader to draw the object, it skips it entirely until the specialized shader is made available. This mode will likely result in broken effects where a game creates an EFB copy, and does not redraw it every frame. Therefore, it is not a recommended option, however, it may result in better performance on low-end systems.
2018-03-21[UI] Remove experimental tag from VulkanHelios747
2018-03-19Merge pull request #6444 from stenzek/d3d-bboxMarkus Wick
D3D: Fix broken bounding box
2018-03-16OGLShader: Ensure m_id and m_compute_program_id are always initializedLioncash
Depending on which constructor is invoked, m_id or m_compute_program_id can end up in an uninitialized state. We should ensure that the object is completely initialized to something deterministic regardless of the constructor taken.
2018-03-16OGLShader: Fix mismatched assignment in compute shader constructorLioncash
This shouldn't be assigning to the regular ID.
2018-03-16Use __func__ instead of __FUNCTION__ where applicableLioncash
This replaces usages of the non-standard __FUNCTION__ macro with the standard mandated __func__ identifier. __FUNCTION__ is a preprocessor definition that is provided as an extension by compilers. This was the only convenient option to rely on pre-C++11. However, C++11 and greater mandate the predefined identifier __func__, which lets us accomplish the same thing. The difference between the two, however, is that __func__ isn't a preprocessor macro, it's an actual identifier that exists at function scope. The C++17 draft standard (N4659) at section [dcl.fct.def.general] paragraph 8 states: " The function-local predefined variable __func__ is defined as if a definition of the form static const char __func__[] = "function-name "; had been provided, where function-name is an implementation-defined string. It is unspecified whether such a variable has an address distinct from that of any other object in the program. " Thankfully, we don't do any macro or string concatenation with __FUNCTION__ that can't be modified to use __func__.
2018-03-16Assert: Remove unused parameter from DEBUG_ASSERTLioncash
This brings the macro in line with the regular ASSERT macro, which only has one macro parameter.
2018-03-17D3D: Fix broken bounding boxStenzek
2018-03-14Assert: Uppercase assertion macrosLioncash
Macros should be all upper-cased. This is also kind of a wart that's been sticking out for quite a while now (we avoid prefixing underscores).
2018-03-15OGL: Ensure VAO is active before unmapping buffersStenzek
Fixes a crash which could occur in platforms which do not support buffer_storage, and EFB2RAM is enabled (which indirectly uses the attributeless buffer).
2018-03-14Vulkan: Provide a more accurate method of detecting drivers/vendorsStenzek
This is needed to differentiate between the open-source Mesa drivers and their binary counterparts for Intel and AMD.
2018-03-12OGL: Scale OSD text on big screens.degasus
2018-03-12OGL: Warn if buffer_storage isn't available.degasus
Yes, this commit is only to blame OSX and Mali. Through the former supports unsynchronized mappings, the latter supports *no* way to stream dynamic data at all. Let's try to make bad news, as they ignore friendly feature requests. Maybe we just need to make more noise...
2018-03-10OGL: Move primitive restart enable logic to GLUtilStenzek
2018-03-10GLUtil: Encapsulate functions in a namespaceStenzek
2018-03-10OGL: Add some basic state trackingStenzek
We would want to improve the granularity here in the future, but for now, this should avoid any performance loss from switching to the VideoCommon shader cache.
2018-03-10OGL: Re-implement async shader compilingStenzek
2018-03-10Move shader caches to VideoCommonStenzek
2018-03-10VKShader: Fix incorrect loading of binary shadersStenzek
2018-03-10D3D: Make NativeVertexFormat thread safeStenzek
2018-03-10D3D: Make StateCache thread safeStenzek
2018-03-10AbstractPipeline: Allow setting pipeline to nullStenzek
2018-03-10VKPipeline: Fix render pass and add pipeline layout fieldsStenzek
2018-03-10OGL: Fix abstract pipelines on drivers without binding layout supportStenzek
2018-03-10OGL: Make ProgramShaderCache thread safeStenzek
2018-03-02VideoCommon: Add support for Abstract FramebuffersStenzek
2018-03-01AbstractTexture: Add support for depth textures/formatsStenzek
2018-03-01AbstractTexture: Support multisampled abstract textureStenzek
2018-03-01VideoBackends: Restore the framebuffer as part of the API stateStenzek
It's not often we switch out to draw to the EFB anyway.
2018-03-01Vulkan: Fix broken post-processingStenzek
2018-02-25OGL: Use glBufferData on Mali.Markus Wick
tl;dr: This PR speedups dolphin on mobiles with the Mali GPU and ES 3.2 drivers by a factor of 10 by using the method with the biggest overhead. Please keep care not to buy this shit! The ARM driver team seems to care very well about their customers. But bad luck, users and open source developers are *not* their customers. So even device-independent feature requests are just ignored for *years*: https://community.arm.com/graphics/f/discussions/4645/gl_ext_buffer_storage-support The bad point, they neither implement any of the other common ways to stream dynamic content in unextented GL: - They just ignore the GL_MAP_UNSYNCHRONIZED_BIT flag - They don't support on-device buffer updates and just stall with glBufferSubData It seems like no benchmark is using any dynamic content - and like no customer cares about anything but benchmarks, or users... We have a flag to disable the glBufferSubData way, this PR adds the flag to also disable the unsychronized mapping way. The second one is available since their ES 3.2 update, but slow as hell. So how to continue? The last remaining technical way to stream dynamic content at all is to alloc a new buffer per draw call with glBufferData. This is very gross, but still a factor 10 speedup compared to stalling the GPU. Small tests shows that you can expect another 3-5 times speedup with EXT_buffer_data, so Mali would be on pair with Adreno here. So if you have bought such a device unfortunately, please try to make noise on your vendor forums/support and ask for this extension. If you are going to buy a new mobile, I'd recormend to avoid *any* mobile with a Mali GPU in it.
2018-02-25OGL: Only create bad shader files in Dump when compile failedStenzek
Warnings are still logged.
2018-02-23Merge pull request #6042 from stenzek/videocommon-pipelinesAnthony
VideoCommon pipelines ("Abstract Pipeline")
2018-02-23OGL: Call GLInterface->Update() on window resizeStenzek
macOS in particular requires the context be updated manually when the window is resized.
2018-02-22VideoBackends: Add AbstractShader and AbstractPipeline classesStenzek
2018-02-22D3D: Remove state stack from tracker, set explicitly insteadStenzek
2018-02-22D3D: Support state tracking of compute shadersStenzek
2018-02-22D3D: Support compiling compute shadersStenzek
2018-02-22GLUtil: Drop now-unused attributeless VAO helpersStenzek
2018-02-22OGL: Log warnings from shader compiles, even if it compiled successfullyStenzek
2018-02-22OGL: Track state of last bound vertex array objectStenzek
This reduces the overhead of calling glBindVertexArray() every time RestoreAPIState() is called, even when it is redundant.