summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2017-08-11Merge pull request #5867 from leoetlino/widescreenLeo Lam
GameINI: Replace Wii.Widescreen with AspectRatio
2017-08-11Config: Include SYSCONF in base layerLéo Lam
Settings that come from the SYSCONF are now included in Dolphin's config system as part of the base layer. They are handled in a special way compared to other settings to make sure they are only loaded from and saved to the SYSCONF (to avoid different, possibly contradicting sources of truth).
2017-08-10Merge pull request #5744 from JosJuice/remove-non-integer-irsLeo Lam
Remove non-integer IRs
2017-08-09VideoCommon: Fix typo in comments introduced by #5849N.E.C
2017-08-08Remove non-integer IRsJosJuice
2017-08-07VideoCommon: Round values in swizzlers.Emmanuel Gil Peyrot
This was breaking Metroid Prime 2: Echoes’s scanner in some rooms, such as the one in https://fifoci.dolphin-emu.org/dff/mp2-scanner/ It was found on Ivy Bridge on Mesa, the alpha value read back from the EFB was off-by-4 in multiple objects, which was a conversion error because int4() is equivalent to floor() and the value wasn’t always higher.
2017-08-06Keep textures that are overwritten by efb copies, if the stride matchesmimimi085181
This is supposed to get efb2tex to the same texture as efb2ram, by applying the related efb copies as updates after each other, in the order of their creation.
2017-08-06Do not load overwritten textures by hashmimimi085181
In this case, comparing the hash is not enough to check, if two textures are identical.
2017-08-06fix stored memory stride for normal texturesmimimi085181
2017-08-05Don't force the aspect ratio in GameINIsLéo Lam
Instead, add a SuggestedAspectRatio option which tells Dolphin which aspect ratio to use when the aspect ratio option is set to Auto.
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-02Merge pull request #5858 from stenzek/ubershader-6-bit-colorStenzek
Ubershaders: Fix 6-bit color truncation not being applied
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-08-01Ubershaders: Fix 6-bit color truncation not being appliedStenzek
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-30VideoCommon: Move WM_USER_CREATE message to after backend initializationStenzek
Fixes the mouse cursor being left visible after ubershader precompilation when the hide option is checked.
2017-07-30PixelShaderGen: Don't include host early z support in UIDStenzek
Disable it at shader generation time instead. This way the UIDs are sharable.
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: Uber shader supportStenzek
2017-07-30OGL: Uber shader supportStenzek
2017-07-30VideoConfig: Add config options for ubershadersStenzek
2017-07-30ShaderGen: Implement vertex ubershadersStenzek
2017-07-30ShaderGen: Implement pixel ubershadersStenzek
2017-07-30PixelShaderGen: Move header generation to seperate functionStenzek
2017-07-30GeometryShaderGen: Add UID enumeration functionsStenzek
2017-07-30VertexLoaderManager: Add methods to generate "uber" vertex formatsStenzek
These vertex formats enable all attributes. Inactive attributes are set to offset=0, and the smallest type possible. This "optimization" stops the NV compiler from generating variants of vertex shaders.
2017-07-30XFMemory: Convert several registers to bitfieldsStenzek
2017-07-30BPMemory: Convert a number of unions to BitFieldsScott Mansell
2017-07-30VideoCommon: Add AsyncShaderCompiler class implementationStenzek
2017-07-30VideoCommon: Improve precision of FPS counterStenzek
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-20VideoConfig: Add host config unionStenzek
Contains all host state that can affect shadergen.
2017-07-20ShaderGen: Remove host state from shader uidsStenzek
2017-07-11Merge pull request #5726 from mimimi085181/minimal-tmem-cache-emulationAnthony
Implement minimal emulation of TMEM caching
2017-07-11Merge pull request #5720 from JosJuice/file-metadataLeo Lam
FileUtil: Redesign Exists/IsDirectory/GetSize
2017-07-10Implement minimal emulation of TMEM cachingmimimi085181
This is a remake of https://github.com/dolphin-emu/dolphin/pull/3749 Full credit goes to phire. Old message: "If none of the texture registers have changed and TMEM hasn't been invalidated or changed in other ways, we can blindly reuse the old texture cache entries without rehashing. Not only does this fix the bloom effect in Spyro: A Hero's Tail (The game abused texture cache) but it will also provide speedups for other games which use the same texture over multiple draw calls, especially when safe texture cache is in use." Changed the pr per phire's instructions to only return the current texture(s) if none of the texture registers were changed. If any texture register was changed, fall back to the default hashing and rebuilding textures from memory.
2017-07-05PixelShaderGen: Add missing inputs.Jules Blok
This fixes a linkage warning in D3D because of mismatched inputs.
2017-07-05D3D: Add quad-buffer stereoscopy support.Jules Blok
2017-06-29FileUtil: Add a class for Exists/IsDirectory/GetSizeJosJuice
Some code was calling more than one of these functions in a row (in particular, FileUtil.cpp itself did it a lot...), which is a waste since it's possible to call stat a single time and then read all three values from the stat struct. This commit adds a File::FileInfo class that calls stat once on construction and then lets Exists/IsDirectory/GetSize be executed very quickly. The performance improvement mostly matters for functions that can be handling a lot of files, such as File::ScanDirectoryTree. I've also done some cleanup in code that uses these functions. For instance, some code had checks like !Exists() || !IsDirectory(), which is functionally equivalent to !IsDirectory(), and some code was using File::GetSize even though there was an IOFile object that the code could call GetSize on.
2017-06-25Change "blocking" BlockingLoop::Stop to give up and die after a timeout.Shawn Hoffman
This fixes the global-static fifo object causing infinite hangs in some cases. Notably, failure to initialize a graphics backend would result in BlockingLoop::Prepare being called but never executing Run(), leaving the object in a bad state.
2017-06-23replace DoFileSearch with optimized versionShawn Hoffman
2017-06-18AbstractTexture: Return config by const referenceLioncash
Returning by const value isn't really necessary (and usually an indicator const reference was intended).
2017-06-18AbstractTexture: Add missing includes (and remove unnecessary ones)Lioncash
2017-06-18VideoCommon: Fix VS filter for AbstractTexture.cppLioncash
This would cause failures when building with VS.