summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2017-11-17FifoPlayer: Generate fake VideoInterface updatesiwubcode
2017-11-17Add an additional flag fo 'XFB Copy'iwubcode
2017-11-17Add new GUI option to skip XFBToRam and remove old XFB optionsiwubcode
2017-11-17Add ability to dump xfb copies to texture for debugging purposesiwubcode
2017-11-17Support frame and video dumping from VideoCommoniwubcode
2017-11-17Add support for hybrid XFBiwubcode
2017-11-13Call Do for every member of SCPFifoStruct individuallyJosJuice
We need this because VS currently doesn't consider std::is_trivially_copyable<typename std::remove_volatile<SCPFifoStruct>::type>::value to be true and because no compiler should consider it to be true if we replace the volatiles with atomics.
2017-11-10VideoConfig: Add const specifier to IsVSync() member functionLioncash
This member function doesn't alter VideoConfig's state.
2017-11-09Merge pull request #6158 from Tomcc/masterAnthony
Improved arbitrary mipmap detection (Mario Sunshine water fix)
2017-11-06Improved detection: it doesn't desaturate the input anymore (woops) also it ↵Tommaso Checchi
makes its own whole chain! This way it "notices" much better gradual divergences. Fixes Mario Sunshine, moss on the window in Zelda TP
2017-11-03Fix incorrect handling of auto IRJosJuice
Some lines of code in Dolphin just plainly grabbed the value of g_ActiveConfig.iEFBScale, which resulted in Auto being treated as 0x rather than the actual automatically selected scale.
2017-10-27Fixed fog, lava, water in Mario Galaxy (and possibly other games) in higher ↵Tommaso Checchi
IRs by detecting & fixing the mipmaps that aren't just used for downscaling, but are handmade to create a gradient.
2017-10-26Merge pull request #6093 from endrift/fix-efb-overflowMarkus Wick
VideoCommon: Fix overflow trying to access outside of EFB bounds
2017-10-11Merge pull request #6110 from lioncash/texture-config-hashLeo Lam
TextureConfig: Specialize std::hash for TextureConfig
2017-10-10VideoConfig: Prevent race condition on g_Config when refreshingStenzek
There was a race condition between the video thread and the host thread, if corrections need to be made by VerifyValidity(). Briefly, the config will contain invalid values. Instead, pause emulation first, which will flush the video thread, update the config and correct it, then resume emulation, after which the video thread will detect the config has changed and act accordingly.
2017-10-08TextureConfig: Specialize std::hash for TextureConfigLioncash
This allows the hashing for TextureConfig instances to automatically be resolved instead of needing to directly specify it all the time.
2017-10-01VideoCommon: Fix overflow trying to access outside of EFB boundsVicki Pfau
2017-09-11VideoBackends: Move SamplerState to commonStenzek
2017-09-11VideoCommon: Add helpers for generating common render statesStenzek
2017-09-11Renderer: Move cull mode to a rasterization state objectStenzek
Also moves logic for primitive handling to VideoCommon.
2017-09-11Renderer: Move depth state to VideoCommon and seperate from bpmemStenzek
2017-09-07Vulkan: Extend the NVIDIA MSAA bug to render-pass based clearsStenzek
Calling vkCmdClearAttachments with a partial rect, or specifying a render area in a render pass with the load op set to clear can cause the GPU to lock up, or raise a bounds violation. This only occurs on MSAA framebuffers, and it seems when there are multiple clears in a single command buffer. Worked around by back to the slow path (drawing quads) when MSAA is enabled.
2017-09-07D3D: Fix shader compile error with logicop and alpha test enabledStenzek
2017-09-05VideoBackends: Clear uid bits that are unused for the current backendStenzek
Currently, this is only the logic op bit, but this will be extended to the framebuffer fetch/blend modes. In the future, when/if we move to VideoCommon pipelines, this state will be part of the pipeline UID anyway, and we can mask it out in the backend by using a two-level map, so the shaders/programs are shared.
2017-09-05ShaderGen: Output uint when logic op is enabled for D3D ubershadersStenzek
2017-09-03Merge pull request #6013 from stenzek/d3d-logic-opAnthony
D3D: Implement logic op support
2017-09-03Merge pull request #5337 from stenzek/d3d-common-blending-stateAnthony
D3D: Use blending state from VideoCommon
2017-09-03Merge pull request #5989 from lioncash/constantmgrMat M
ConstantManager: Use std::array where applicable
2017-09-03Merge pull request #5946 from stenzek/ubershader-stereo-texture-samplesJules Blok
UberShaderPixel: Fix sampling of EFB copies in stereo modes
2017-09-03ShaderGen: Support writing integer colors when logic op is enabledStenzek
This is required for D3D to support logic op.
2017-09-03Renderer: Change SetBlendState to accept a BlendingStateStenzek
This decouples the state generation (from the emulated GPU) from the management of internal backend state.
2017-09-03RenderBase: Drop SetColorMask and SetLogicOpModeStenzek
These are now incorporated into the blend state for all backends.
2017-09-03Merge pull request #5649 from JonnyH/WIP/disable-vk-clear-renderpassStenzek
Add DriverDetails::BUG to Disable "LoadOp" clear renderpass in vulkan
2017-09-03Merge pull request #5718 from mimimi085181/partial-updates-updatePierre Bourdon
Update to partial texture updates
2017-09-02Merge pull request #6006 from JonnyH/WIP/parse-imgtec-gl_version-stringMat M
Parse IMGTEC's GL_VERSION string format
2017-09-02Merge pull request #6002 from lioncash/includeMarkus Wick
CommandProcessor: Remove unnecessary include
2017-09-02Mark an ImgTec driver bug as fixed in 1.8@4693462Jonathan Hamilton
Now we correctly parse ImgTec's GL_VERSION string we can actually use the BugInfo's version stuff correctly here
2017-09-02AsyncShaderCompiler: use std::make_unique in CreateWorkItem()Lioncash
Same behavior, simpler code.
2017-09-02AsyncShaderCompiler: Forward arguments to the specified type's constructor ↵Lioncash
in CreateWorkItem() As this just hands off the arguments to another type's constructor, perfect forwarding should be used here to preserve any potential move semantics.
2017-09-02CommandProcessor: Remove unnecessary includeLioncash
Gets rid of some indirect inclusion.
2017-08-28Add Bug to Disable "LoadOp" clear renderpass in vulkanJonathan Hamilton
This optimisation doesn't work on PowerVR's Vulkan implementation. We (incorrectly) disallow Framebuffer objects to be used with a different load or store op than that which they were created with, despite the spec allowing such. This fixes the windwaker intro "smearing"
2017-08-28Add VideoLogic (ImgTec) PCI IDJonathan Hamilton
2017-08-27ConstantManager: Use std::array where applicableLioncash
Modernizes the arrays and makes future simplifications possible (e.g. usages within the software renderer). It also makes cases where we use array->pointer decay explicit.
2017-08-24Remove FFMPEG check for Renderer::IsFrameDumping()Chris Burgener
2017-08-22Remove NonCopyableJosJuice
The class NonCopyable is, like the name says, supposed to disallow copying. But should it allow moving? For a long time, NonCopyable used to not allow moving. (It declared a deleted copy constructor and assigment operator without declaring a move constructor and assignment operator, making the compiler implicitly delete the move constructor and assignment operator.) That's fine if the classes that inherit from NonCopyable don't need to be movable or if writing the move constructor and assignment operator by hand is fine, but that's not the case for all classes, as I discovered when I was working on the DirectoryBlob PR. Because of that, I decided to make NonCopyable movable in c7602cc, allowing me to use NonCopyable in DirectoryBlob.h. That was however an unfortunate decision, because some of the classes that inherit from NonCopyable have incorrect behavior when moved by default- generated move constructors and assignment operators, and do not explicitly delete the move constructors and assignment operators, relying on NonCopyable being non-movable. So what can we do about this? There are four solutions that I can think of: 1. Make NonCopyable non-movable and tell DirectoryBlob to suck it. 2. Keep allowing moving NonCopyable, and expect that classes that don't support moving will delete the move constructor and assignment operator manually. Not only is this inconsistent (having classes disallow copying one way and disallow moving another way), but deleting the move constructor and assignment operator manually is too easy to forget compared to how tricky the resulting problems are. 3. Have one "MovableNonCopyable" and one "NonMovableNonCopyable". It works, but it feels rather silly... 4. Don't have a NonCopyable class at all. Considering that deleting the copy constructor and assignment operator only takes two lines of code, I don't see much of a reason to keep NonCopyable. I suppose that there was more of a point in having NonCopyable back in the pre-C++11 days, when it wasn't possible to use "= delete". I decided to go with the fourth one (like the commit title says). The implementation of the commit is fairly straight-forward, though I would like to point out that I skipped adding "= delete" lines for classes whose only reason for being uncopyable is that they contain uncopyable classes like File::IOFile and std::unique_ptr, because the compiler makes such classes uncopyable automatically.
2017-08-21VideoCommon: Fix bug #10464 (RA4 format not handled in TextureDecoder)N.E.C
2017-08-21RenderState: Fix incorrect blending factors when removing the color usage.Jules Blok
2017-08-20UberShaderPixel: Fix sampling of EFB copies in stereo modesStenzek
2017-08-14Merge pull request #5478 from stenzek/vulkan-nvidiaAnthony
Vulkan: Don't use vkCmdClearAttachments on NVIDIA with MSAA
2017-08-12UberShaderPixel: Use an if trees instead of switch statements on GLStenzek
The switch statements in these functions appear to get transformed into an if..else chain on NVIDIA's OpenGL/Vulkan drivers, resulting in lower performance than the D3D counterparts. Transforming the switch into a binary tree of ifs can increase performance by up to 20%.