summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2017-09-03Merge pull request #6009 from lioncash/asyncStenzek
AsyncShaderCompiler: Make WorkItem-derived class constructors explicit
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-02OGL/VertexManager: Make vertex and index buffer handles privateLioncash
These are only ever read, but not written to outside of the VertexManager class.
2017-09-02VideoBackends: Add the explicit keyword to WorkItem-derived class constructorsLioncash
Prevents implicit conversions
2017-09-02OGL/ProgramShaderCache: Remove unnecessary virtual keywordLioncash
This is superfluous, considering the override keyword is present.
2017-09-02Parse IMGTEC's GL_VERSION string formatJonathan Hamilton
ImgTec's driver uses a major.minor@changeID versioning system This is packed into a double so "1.9@4850625" becomes "109.4850625" The next release brnach is expected to be 1.10, hence the need for 2 digits for the branch minor. The changeID should be unique for each build, but is shared over all branches, so only makes sense to compare withing a branch. It's likely branch 'major' versions will be used for major hardware revisions, and the drivers for both maintained in parallel. Thus it may not make sense to compare versions between different major verisons - if/when this happens we can hook up a DriverDetails::Family as needed.
2017-09-02D3D: Eliminate redundant ID3D11DeviceChild* castsLioncash
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-27OGL: Fix EFB pokes using incorrect color/depthStenzek
2017-08-23Fix vulkan crash on drivers without atomic load/store supportJonathan Hamilton
This would not allocate a SSBO buffer, but still try to update the descriptor said with a NULL buffer. Which naturally crashed.
2017-08-22Clipper: Copy both color sequences in CopyVertex as opposed to oneLioncash
This is likely an oversight.
2017-08-22SW NativeVertexFormat: Utilize std::array where applicableLioncash
Gets rid of some hardcoded looping bounds, and also simplifies code in some places, sometimes allowing for removal of a loop altogether.
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-20D3DBase: Only use a stereo swapchain if quad-buffering is enabled.Jules Blok
2017-08-14Merge pull request #5478 from stenzek/vulkan-nvidiaAnthony
Vulkan: Don't use vkCmdClearAttachments on NVIDIA with MSAA
2017-08-14Merge pull request #5868 from stenzek/d3d-require-new-compilerAnthony
D3DBase: Raise error if d3dcompiler_47.dll cannot be loaded
2017-08-08Remove non-integer IRsJosJuice
2017-08-06TransformUnit: Get rid of pointer casting in TransformColor() where applicableLioncash
The casts to u32* are technically undefined behavior. The u8* cast is left, as char/unsigned char is exempted from this rule to allow for bvtewise inspection of objects (and this is what s8/u8 are typedefs of on platforms we support).
2017-08-06TransformUnit: Make LightColor()'s chan parameter constLioncash
Also marks references/pointers const where applicable
2017-08-05VideoSW: Drop log level of missing anti aliasing support.degasus
We don't want to emit such a high priority warning here, else fifoci will die.
2017-08-05ProgramShaderCache: Call glTexImage3D after glTexParameterStenzek
Was missed before merge.
2017-08-05Merge pull request #5856 from stenzek/optimus-crashAnthony
Fix ubershader crashes with primus/bumblebee
2017-08-03Video: Clearly separate Texture and EFB Copy formatsN.E.C
Improve bookkeeping around formats. Hopefully make code less confusing. - Rename TlutFormat -> TLUTFormat to follow conventions. - Use enum classes to prevent using a Texture format where an EFB Copy format is expected or vice-versa. - Use common EFBCopyFormat names regardless of depth and YUV configurations.
2017-08-03Vulkan: Add a driver bug for NV when MSAA is enabledStenzek
This causes the card to lock up when vkCmdClearAttachments is called, when multisampling is enabled. Seems to be restricted to Maxwell and newer?
2017-08-02Vulkan: Use optimal tiling for dummy textureStenzek
Fixes a crash on some NVIDIA drivers. Apparently calling vkCmdClearColorImage on an image with linear tiling causes the GPU/driver to lock up.
2017-08-02ProgramShaderCache: Create a FBO for shared contexts to draw intoStenzek
This way it allows us to use surfaceless contexts in EGL/GLX. It also ensures that the shared context shares a similar setup to the main context's framebuffer, potentially reducing the number of variants a driver needs to generate.
2017-08-02D3DBase: Raise error if d3dcompiler_47.dll cannot be loadedStenzek
Previously we were falling back to an earlier version of the compiler. The older version cannot compile our ubershaders without various graphical issues.
2017-08-01Merge pull request #5834 from stenzek/bc7Stenzek
Support loading BC7 (BPTC) textures from DDS files
2017-08-01HiresTextures: Support loading BC7 (BPTC) from DDS filesStenzek
2017-07-31VideoConfig: Drop force vertex/pixel ubershader settingsStenzek
This was mainly included for debugging, but could end up being confusing for users, as well as polluting the GL program cache with a mix of uber and specialized shaders if the option was changed.
2017-07-30General: Remove unnecessary semicolonsLioncash
2017-07-30Ubershaders: Support per-pixel lightingStenzek
2017-07-30VideoBackends: Support a different number of threads for precompilingStenzek
At runtime, we only really want a single shader compiler thread. However, for initial boots, we can use a higher number to speed things up.
2017-07-30ShaderGen: Use consistent variable names for texture coordinatesStenzek
2017-07-30NativeVertexFormat: Drop unused virtual method SetupVertexPointersStenzek
2017-07-30Vulkan: Multithreaded creation of UID pipeline cachesStenzek
Should give a decent speedup to boot time.
2017-07-30Vulkan: Uber shader supportStenzek
2017-07-30D3D: Uber shader supportStenzek
2017-07-30OGL: Uber shader supportStenzek
2017-07-30ShaderGen: Implement pixel ubershadersStenzek
2017-07-30XFMemory: Convert several registers to bitfieldsStenzek
2017-07-30BPMemory: Convert a number of unions to BitFieldsScott Mansell
2017-07-30Vulkan: Clear decoding texture before usageStenzek
Fixes a validation layer warning.
2017-07-30Vulkan: Move shader/pipeline-related methods to ShaderCacheStenzek
2017-07-30Vulkan: Use VK_NV_glsl extension where available, and skip glslangStenzek
Seems to produce faster ubershaders, at least.
2017-07-20ShaderGen: Pass host config to shader generation functionsStenzek
Also moves the host config checks to common.
2017-07-20VideoCommon: Move shader cache filename generation to commonStenzek
2017-07-20Vulkan: Don't save/load pipeline UID cache when shader cache is disabledStenzek
2017-07-20Vulkan: Reload pipeline cache when relevant host config changesStenzek
2017-07-20Vulkan: Don't save pipeline cache if shader cache is disabledStenzek
We still create a pipeline cache object, since that speeds up driver's creation of pipelines at runtime. However, we should not save it.