summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2018-05-28Merge pull request #6965 from stenzek/d3d-feature-level-10Markus Wick
D3D: Don't emit uint outputs when logic op is unsupported
2018-05-27VertexLoaderArm: Fix 565 color format.degasus
Copy & paste error for enforcing A=255. It was copied from the 888X format, which stores the output data in another register.
2018-05-26ShaderGen: Don't emit integer outputs when logic op is unsupportedStenzek
This may have been causing issues for D3D10 hardware, where logic op was not supported.
2018-05-26ShaderCache: Remove unused UID bits before inserting into shader mapStenzek
2018-05-26VideoConfig: Add a field for indicating logic op support in the backendStenzek
2018-05-24OGL/Streambuffer: Use coherent mapping by default.degasus
Coherent mappings have a lower overhead and less GL codes. So enables coherent mapping by default for all drivers. Both Qualcomm and ARM performs very bad with explicit flushing, so this change helps them as well. AFAIK there was one GPU generation which was slower on coherent mapping: nvidia tesla So Geforce 200 and 300 series should be tested with this PR before merging. As this was last tested many years ago, this issue might have been fixed as well. Those GPUs are close to 10 years old and not supported any more by nvidia.
2018-05-22HiresTextures: Do not load compressed textures with unaligned dimensionsStenzek
D3D11 cannot handle block compressed textures where the first mip level is not a multiple of the block size. The simple fix for texture pack authors: leave these textures uncompressed. You can still use a .dds container.
2018-05-22EFB2RAM: Apply copy filter as a float coefficient after samplingStenzek
Using 8-bit integer math here lead to precision loss for depth copies, which broke various effects in games, e.g. lens flare in MK:DD. It's unlikely the console implements this as a floating-point multiply (fixed-point perhaps), but since we have the float round trip in our EFB2RAM shaders anyway, it's not going to make things any worse. If we do rewrite our shaders to use integer math completely, then it might be worth switching this conversion back to integers. However, the range of the values (format) should be known, or we should expand all values out to 24-bits first.
2018-05-21PostProcessing: Make GetShader() return by constant referenceLioncash
We don't need to create copies of the shader string when they can be avoided.
2018-05-21PostProcessing: Make member functions const qualified where applicableLioncash
These functions don't modify internal class state
2018-05-21PostProcessing: Replace typedef with a using aliasLioncash
2018-05-21PostProcessing: Default constructor and destructor of ↵Lioncash
PostProcessingShaderConfiguration Also ensure that all members of the class are initialized on construction as well. Previously the bool indicating if options are dirty wouldn't be initialized, which could be read uninitialized if an instance was constructed and then IsDirty() is called.
2018-05-20VideoBackendBase: Include parameter names in member function declarationsLioncash
Given this is a base class, we should clearly state what the parameters to the functions in its exposed interface actually mean or represent. This avoids needing to hunt for the definition of the functions in cpp files. While we're at it, normalize said parameter names so they follow our naming guidelines.
2018-05-20Remove SOIL altogether from the project.Emmanuel Gil Peyrot
2018-05-20VideoCommon: Remove a workaround mutex used for SOILEmmanuel Gil Peyrot
2018-05-20VideoCommon: Replace SOIL with libpng for hires texturesEmmanuel Gil Peyrot
2018-05-18BPMemory: Use Common::BitCast where applicableLioncash
Gets rid of memcpy boilerplating for reinterpreting bits properly.
2018-05-17Texture AverageDiff: Do more in int space and avoid excessive float conversionJonathan Hamilton
Multiplying 2x 8bit values is guaranteed to fit in 16bits, 4 channels then in 18bits, which means an 'int' shouild be sufficient to avoid overflows
2018-05-17Merge pull request #6743 from stenzek/faster-disabled-copy-filterMarkus Wick
TextureConversionShader: Don't sample from adjacent rows when not needed
2018-05-16Change the arbitrary mipmap detection to use the square of the errorJonathan Hamilton
Hopefully this better matches the user's view of a texture - as large changes in colour should be weighted higher than lots of very small changes Note: This likely invalidates the current heuristic threshold default
2018-05-16Make the arbitrary mipmap detection threshold configureableJonathan Hamilton
This is likely a "superuser" option at best, but I want to be able to play with it without rebuilding if I want to tweak the heuristics
2018-05-16Make arbitrary mipmap detection a config optionJonathan Hamilton
Under GFX::Enhancements::ArbitraryMipmapDetection - default enabled
2018-05-16Common/Hash: Namespace code under the Common namespaceLioncash
Brings more common code under the Common namespace.
2018-05-13Merge pull request #6786 from stenzek/crop-negative-yMarkus Wick
RenderBase: Ensure the draw size does not exceed the window size
2018-05-12Config: Add support for enumsLéo Lam
This makes it possible to use enums as the config type. Default values are now clearer and there's no need for casts when calling Config::Get/Set anymore. In order to add support for enums, the common code was updated to handle enums by using the underlying type when loading/saving settings. A copy constructor is also provided for conversions from `ConfigInfo<Enum>` to `ConfigInfo<underlying_type<Enum>>` so that enum settings can still easily work with code that doesn't care about the actual enum values (like Graphics{Choice,Radio} in DolphinQt2 which only treat the setting as an integer).
2018-05-11VideoCommon/RenderBase: Refactor OSD messagesspycrab
2018-05-10CommonFuncs: Convert ROUND_UP_POW2 macro to a functionLioncash
Also move it to MathUtils where it belongs with the rest of the power-of-two functions. This gets rid of pollution of the current scope of any translation unit with b<value> macros that aren't intended to be used directly.
2018-05-09RenderBase: Remove unused PixelPerfQuery enumLioncash
Neither the values or the identifier name of the enum is used anywhere in the codebase.
2018-05-08RenderBase: Ensure the draw size does not exceed the window sizeStenzek
This was happening when crop was enabled, causing blank outputs for some Vulkan drivers (namely radv), as the draw rectangle is used as the viewport.
2018-05-04Merge pull request #6744 from stenzek/ui-disable-vram-copiesStenzek
UI: Add Disable EFB Copies to VRAM to Advanced Options
2018-05-03TextureCacheBase: Make "disable vram copies" part of the active configStenzek
2018-05-03TextureConversionShader: Don't sample from adjacent rows when not neededStenzek
2018-05-03TextureConversionShader: Fix more implicit conversion errorsStenzek
2018-05-02TextureConversionShader: Fix compile errors in OpenGL ESStenzek
2018-04-29Implement EFB copy filter and gamma in hardware backendsStenzek
Also makes y_scale a dynamic parameter for EFB copies, as it doesn't make sense to keep it as part of the uid, otherwise we're generating redundant shaders.
2018-04-29VideoSoftware: Implement xfb copy filter (Deflickering/Brightness)Scott Mansell
2018-04-13Remove leftovers of projection hack supportJosJuice
2018-04-12Reformat all the things!spycrab
2018-04-06[AVIDump] fix compilation issues on LinuxAnthony
2018-04-04Merge pull request #6578 from JosJuice/remove-projection-hacksMarkus Wick
Remove support for projection hacks
2018-04-03HiresTexture: Correct texture hashesLioncash
Fixes a regression introduced in 2da8d98b2f94a33e337d37dc7153e5ba445961f3
2018-04-03Merge pull request #6573 from stenzek/bad-shader-uid-cacheStenzek
ShaderCache: Improve shader UID cache file reliability
2018-04-01AsyncRequests: In-class initialize class membersLioncash
Prior to this change, it's possible for m_wake_me_up_again to be used while it's in an uninitialized state from the exposed API. e.g. - Using SetEnable after construction would perform an uninitialized read. - Using PushEvent would perform an uninitialized read by way of operator |=. internally, an uninitialized read can happen if PullEventsInternal() is executed before other functions. Just to avoid the whole possibility of performing uninitialized reads, we just give the class member a default value of false.
2018-04-01Remove support for projection hacksJosJuice
This isn't really useful for anything anymore as far as I know.
2018-04-02Renderer: Only recreate frame dump texture if dimensions differStenzek
This was a typo, been around for a while. == should be !=. May improve frame dumping performnace slightly, but I doubt much if any.
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-29Put a "last changed in PR" comment next to UID cache versionJosJuice
This will create a merge conflict if two PRs try to increment the cache version at the same time, which makes it noticeable that the PR that gets merged last needs to increment the cache version again. We already use this for savestates and the game list cache.
2018-03-28VideoCommon/Vulkan: Explicitly link in xxhashLioncash
Lessens the dependency on the LIBS variable (and also makes the required libraries explicit).
2018-03-28VideoCommon/CMakeLists: Migrate off add_dolphin_libraryLioncash
Continues the migration work started in 3a4c3bbe01e7a44ec997f4fbf0b678fba6f2d46c