summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2019-07-30Merge pull request #8258 from CookiePLMonster/dx11.1-detection-fixesConnor McLaughlin
D3D11 resources refactor and DX11.1 feature detection fixes
2019-07-29D3D11: Add extra logging to StateCache::GetSilent
2019-07-29D3D11: Show a warning message about unsupported features when switching to ↵Silent
D3D11 backend on Windows 7
2019-07-29D3D11: Query for output merger logic op support and use logic op code only ↵Silent
if supported Previously code assumed that if DX11.1 runtime is supported, logic ops will, but Windows 7 SP1 with a Platform Update supports DX11.1 runtime without logic ops. This created pretty jarring visual artifacts, which now should be gone OR replaced with much less jarring errors.
2019-07-29D3D11: Ownership fixes for objects in DXTextureSilent
2019-07-29D3D11: Ownership fixes for objects in D3DStateSilent
2019-07-29D3D11: Correctly poll ALL possible AA levels.Silent
2019-07-28Merge pull request #8266 from lioncash/shadowingConnor McLaughlin
D3DCommon/Shader: Use std::optional where applicable
2019-07-28Merge pull request #8265 from lioncash/viewConnor McLaughlin
OGL/ProgramShaderCache: Use std::string_view where applicable
2019-07-27VideoBackends/Null: Add missing override specifiersLioncash
Applies a missing override specifier to VertexManager's destructor.
2019-07-27VideoBackends/Null: Apply final to classes where applicableLioncash
These aren't intended to be further specialized, so we can make this obvious with final.
2019-07-27VideoBackends/Null: Remove unnecessary constructors and destructorsLioncash
Removes constructors and destructors that don't actually provide any behavior (i.e. doesn't constain generated code related to non-trivial members in a cpp file, etc). Lessens the amount of code present.
2019-07-27VideoBackends/Null: Remove unnecessary includesLioncash
2019-07-26D3DCommon/Shader: Use std::optional with CompileShader()Lioncash
Allows removing the use of an out parameter, making it nicer to use.
2019-07-26D3DCommon/Shader: Create vector via iterators in CreateByteCode()Lioncash
Same behavior, but without unnecessary zeroing of data contents. Instead, we supply the dataset to use directly.
2019-07-26D3D/DXShader: Remove duplicate GetByteCode functionLioncash
This is already provided in the base class, which performs the same exact behavior. Given the function in the base class isn't virtual, this also essentially resolves an instance of shadowing.
2019-07-26OGL/ProgramShaderCache: Convert typedef over to a using aliasLioncash
Same thing, but nicer to read from left to right.
2019-07-26OGL/ProgramShaderCache: Use std::lock_guard deduction guides where applicableLioncash
Same thing, less reading.
2019-07-26OGL/ProgramShaderCache: Remove unused headersLioncash
Removes a few inclusions that aren't necessary, reducing the number of header dependencies.
2019-07-26OGL/ProgramShaderCache: Use std::string_view where applicableLioncash
2019-07-26Factorize software renderer backend switching warning to be fetched from a ↵Silent
new GetWarningMessage in video backend - will be needed for DX11.1 feature set warnings
2019-07-26Fixes for WRL usage - QueryInterface is explicitly mentioned as not to be ↵Silent
used with WRL ComPtr
2019-07-19Merge pull request #8249 from lioncash/rectConnor McLaughlin
VideoCommon: Remove unused MathUtil.h include from VideoCommon.h
2019-07-18Vulkan: Use reversed depth range in viewportStenzek
Also adds a DriverDetails bug to disable on drivers where this is still broken.
2019-07-16VideoCommon: Remove unused MathUtil.h include from VideoCommon.hLioncash
This header doesn't actually make use of MathUtil.h within itself, so this can be removed. Many other source files used VideoCommon.h as an indirect include to include MathUtil.h, so these includes can also be adjusted. While we're at it, we can also migrate valid inclusions of VideoCommon.h into cpp files where it can feasibly be done to minimize propagating it via other headers.
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-20VideoCommon/Statistics: Use std::array for projection valuesLioncash
Makes the members within the interface much nicer to look at, and also makes copying them over much nicer too.
2019-06-17VideoBackends/Vulkan: Use nested namespace specifiers where applicableLioncash
2019-06-08Merge pull request #8049 from stenzek/cropConnor McLaughlin
Renderer: Adjust source rectangle when crop would draw off screen
2019-06-08Merge pull request #7734 from stenzek/mojave-warningConnor McLaughlin
Vulkan: Display a warning when using MoltenVK on HS and earlier
2019-06-08Vulkan: Display a warning when using MoltenVK on HS and earlierStenzek
2019-06-08D3D12: Remove unnecessary includes in DXContext.hStenzek
2019-06-08D3DCommon: Fallback to base CreateSwapChain on failureStenzek
It appears that some older drivers do not support CreateSwapChainForHwnd, resulting in DXGI_ERROR_INVALID_CALL. For these cases, fall back to the base CreateSwapChain() from DXGI 1.0. In theory this should also let us run on Win7 without the platform update, but in reality we require the newer shader compiler so this probably won't work regardless. Also any hardware of this vintage is unlikely to run Dolphin well.
2019-06-01Common/CommonFuncs: Remove now-unneccessary ArraySize functionLioncash
Since C++17, non-member std::size() is present in the standard library which also operates on regular C arrays. Given that, we can just replace usages of ArraySize with that where applicable. In many cases, we can just change the actual C array ArraySize() was called on into a std::array and just use its .size() member function instead. In some other cases, we can collapse the loops they were used in, into a ranged-for loop, eliminating the need for en explicit bounds query.
2019-05-31VideoVulkan/CMakeLists: Specify headers in target sourcesLioncash
2019-05-31VideoSoftware/CMakeLists: Specify headers in target sourcesLioncash
2019-05-31VideoOGL/CMakeLists: Specify headers in target sourcesLioncash
2019-05-31VideoNull/CMakeLists: Specify headers in target sourcesLioncash
2019-05-30VideoVulkan/ShaderCompiler: Use non-member std::size instead of ArraySize()Lioncash
Now that we're on C++17, we can use its non-member std::size function instead of ours. This provides no functional change.
2019-05-30VideoVulkan/ShaderCompiler: Use a std::optional instead of bool+out variableLioncash
Now that we utilize C++17, we can simply return an optional containing the code instead of using an out variable and a boolean result, essentially combining them into one. This provides a much more straightforward interface.
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-05-26Also free when initialization fails, and move to endPokechu22
2019-05-26DX11: Fix access violation on closing dolphinPokechu22
2019-05-14Merge pull request #8087 from spycrab/cmake_win2019spycrab
Support CMake on Windows
2019-05-12VideoBackends/D3D: Fix CMakeLists.txtspycrab
2019-05-09bbox minor fxweihuoya
2019-05-08VideoBackends/D3DCommon: Fix linking against selfspycrab
2019-05-06Reformat repo to clang-format 7.0 rulesTechjar
2019-05-04Replace MathUtil::Clamp with std::clampLéo Lam