summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/ShaderCache.cpp
AgeCommit message (Collapse)Author
2020-01-23VideoCommon/TextureConversionShader: Convert over to using ShaderCodeLioncash
Migrates the shader generator off the use of a global array, eliminating the use of some global state. This also allows us to move the shader generation over to using fmt in a subsequent change.
2019-10-01ShaderCache: EFB2RAM pipelines should not use a geometry shaderStenzek
Only the left eye is used when creating the RAM copy.
2019-10-01ShaderCache: Recompile shared pipelines on shader cache reloadStenzek
Fixes broken stereoscopy when switching on/off at runtime.
2019-08-04RenderState: Approximate logic op with blending if unsupportedStenzek
This is a giant hack which was previously removed because it causes broken rendering. However, it seems that some devices still do not support logical operations (looking at you, Adreno/Mali). Therefore, for a handful of cases where the hack actually makes things slightly better, we can use it. ... but not without spamming the log with warnings. With my warning message PR, we can inform the users before emulation starts anyway.
2019-07-14TextureCache: Support reinterpreting formats for VRAM texturesStenzek
2019-07-10VideoCommon/Statistics: Rename stats global to g_statsLioncash
Makes the global variable follow our convention of prefixing g_ on global variables to make it obvious in surrounding code that it's not a local variable.
2019-07-10VideoCommon/Statistics: Normalize statistic variable namesLioncash
Normalizes all variables related to statistics so that they follow our coding style. These are relatively low traffic areas, so this modification isn't too noisy.
2019-06-19Common/MsgHandler: Namespace code within the Common namespaceLioncash
Closes another gap in the Common library where code isn't being namespaced under it.
2019-05-30VideoCommon/RenderBase: Use a std::string_view with CreateShaderFromSource()Lioncash
Greatly simplifies the overall interface when it comes to compiling shaders. Also allows getting rid of a std::string overload of the same name. Now std::string and const char* both go through the same function.
2019-04-21ShaderCache: Fix crash at shutdown on shared shader compilation failStenzek
2019-04-20ShaderCache: Fix crash if pipeline from uid cache fails creationStenzek
2019-04-16ShaderCache: Utilize pipeline cache data where possibleStenzek
2019-04-16AbstractPipeline: Support returning "cache data"Stenzek
"Cache data" can be used to assist a driver with creating pipelines by using previously-compiled shader ISA.
2019-03-28ShaderCache: Don't create invalid logic op pipelinesStenzek
uint_output will never be set unless logic ops are enabled. Also clears the bits so we're not compiling unused pixel shaders on the other backends.
2019-03-28ShaderCache: Set correct primitive in dummy ubershader pipelinesStenzek
2019-02-19Move most backend functionality to VideoCommonStenzek
2019-01-25ShaderCache: Use imgui for shader compilation dialogStenzek
2018-10-14ShaderCache: Don't create or load shader cache with Null backendStenzek
2018-07-19FramebufferManager: Dynamic selection of EFB depth formatStenzek
2018-05-26ShaderCache: Remove unused UID bits before inserting into shader mapStenzek
2018-04-12Reformat all the things!spycrab
2018-04-02ShaderCache: Write currently-known UIDs to cache when re-creating fileStenzek
This way, if we load a UID cache where the data was incomplete (e.g. Dolphin crashed), we don't lose the existing UIDs which were previously at the beginning.
2018-04-02ShaderCache: Fix issue where shader cache wasn't recreated when invalidStenzek
2018-03-17ShaderCache: Implement compile priorityStenzek
Currently, when immediately compile shaders is not enabled, the ubershaders will be placed before any specialized shaders in the compile queue in hybrid ubershaders mode. This means that Dolphin could potentially use the ubershaders for a longer time than it would have if we blocked startup until all shaders were compiled, leading to a drop in performance.
2018-03-15ShaderCache: Fix several issues in background shader compilingStenzek
- In D3D, shaders could be compiled on the main thread, blocking startup. - Reduced the latency between a pipeline being requested and used in all backends in hybrid ubershader mode, when no shader stages were present. - Fixed a case where async compilation could cause the same UID to be appended multiple times to the UID cache. - Fix incorrect number of threads being used when immediately compile shaders was enabled.
2018-03-11ShaderCache: Use a version number for pipeline UID cachesStenzek
2018-03-10ShaderCache: Implement background shader compilationStenzek
This enables shaders to be compiled while the game is starting, instead of blocking startup. If a shader is needed before it is compiled, emulation will block.
2018-03-10VideoConfig: Collapse ubershader configuration fields to a single valueStenzek
2018-03-10OGL: Re-implement async shader compilingStenzek
2018-03-10Move shader caches to VideoCommonStenzek