summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2021-05-13Remove Atomic.hJosJuice
The STL has everything we need nowadays. I have tried to not alter any behavior or semantics with this change wherever possible. In particular, WriteLow and WriteHigh in CommandProcessor retain the ability to accidentally undo another thread's write to the upper half or lower half respectively. If that should be fixed, it should be done in a separate commit for clarity. One thing did change: The places where we were using += on a volatile variable (not an atomic operation) are now using fetch_add (actually an atomic operation). Tested with single core and dual core on x86-64 and AArch64.
2021-05-07Software: Fix OOB tex coord indicesPokechu22
Previously we set the texture coordinate to zero, now we set the texture coordinate *index* to zero. This fixes the ripple effect of the Mario painting in Luigi's Mansion.
2021-05-07Split TevStageIndirect::mid into matrix_index and matrix_idPokechu22
2021-04-24Merge pull request #9646 from PatrickFerry/sw-textureencoder-alignedwidthLéo Lam
SW: Fix alignedWidth in TextureEncoder
2021-04-23Merge pull request #9660 from ezio1900/masterJMC47
VideoCommon: Fix scissorOffset, handle negative value correctly
2021-04-24VideoCommon: Fix scissorOffset, handle negative value correctlyezio1900
VideoCommon: Change the type of BPMemory.scissorOffset to 10bit signed: S32X10Y10 VideoBackends: Fix Software Clipper.PerspectiveDivide function, use BPMemory.scissorOffset instead of hard code 342
2021-04-23Merge pull request #9321 from Pokechu22/sw-copyregionJMC47
Software: Fix out of bounds accesses in CopyRegion
2021-04-23Merge pull request #9350 from Pokechu22/sw-viewportJMC47
Software: Invert backface test when viewport is positive
2021-04-19SW: Fix alignedWidth in TextureEncoderPatrick A. Ferry
This was causing issues in Software Renderer. Look at bug 11487
2021-04-12Vulkan: Work around AMD exclusive fullscreen bug (21.3+)Connor McLaughlin
2021-03-06Software: Invert backface test when viewport is positivePokechu22
Fixes Jimmie Johnson's Anything with an Engine.
2021-03-06Software: Fix out of bounds accesses in CopyRegionPokechu22
Fixes issue 11393. The problem is that left and top make no sense for a width by height array; they only make sense in a larger array where from which a smaller part is extracted. Thus, the overall size of the array is provided to CopyRegion in addition to the sub-region. EncodeXFB already handles the extraction, so CopyRegion's only use there is to resize the image (and thus no sub-region is provided).
2021-03-06Convert BPMemory to BitField and enum classPokechu22
Additional changes: - For TevStageCombiner's ColorCombiner and AlphaCombiner, op/comparison and scale/compare_mode have been split as there are different meanings and enums if bias is set to compare. (Shift has also been renamed to scale) - In TexMode0, min_filter has been split into min_mip and min_filter. - In TexImage1, image_type is now cache_manually_managed. - The unused bit in GenMode is now exposed. - LPSize's lineaspect is now named adjust_for_aspect_ratio.
2021-03-06Convert XFMemory to BitField and enum classPokechu22
Additionally a new ClipDisable union has been added (though it is not currently used by Dolphin).
2021-03-06Convert CPMemory to BitField and enum classPokechu22
Additionally, VCacheEnhance has been added to UVAT_group1. According to YAGCD, this field is always 1. TVtxDesc also now has separate low and high fields whose hex values correspond with the proper registers, instead of having one 33-bit value. This change was made in a way that should be backwards-compatible.
2021-02-13Software: Implement pointsPokechu22
2021-02-13Software: Fix line-width effectsPokechu22
2021-02-12Software: Always divide the texture coordinates by q.Pokechu22
Equivalent to da43f9a15 for the software renderer.
2021-02-11Merge pull request #9424 from Pokechu22/sw-no-special-caseLéo Lam
Software: Remove normalization special case
2021-01-27msbuild: bundle all dolphin "core" code into single libraryShawn Hoffman
2021-01-27rename D3DCommon/Common to D3DCommon/D3DCommonShawn Hoffman
2021-01-27normalize common filenames in VideoBackends/D3D12Shawn Hoffman
2021-01-27normalize common filenames in VideoBackends/D3DShawn Hoffman
2021-01-27normalize common filenames in VideoBackends/VulkanShawn Hoffman
2021-01-27normalize common filenames in VideoBackends/NullShawn Hoffman
2021-01-27normalize common filenames in VideoBackends/OGLShawn Hoffman
2021-01-03Software: Remove normalization special casePokechu22
The special case doesn't appear to make a significant difference in any games, and the current implementation has a (minor, fixable) issue that breaks Super Mario Sunshine (both with a failed assertion (https://bugs.dolphin-emu.org/issues/11742) and a rendering issue (https://bugs.dolphin-emu.org/issues/7476)). Hardware testing wasn't able to reproduce the special case, either, so it may just not exist. PR #9315 contains a fixed implementation of the special case on all video backends, and can serve as a basis for it being reintroduced if it is found to exist under more specific circumstances. For now, I don't see a reason to keep it present.
2020-12-16Core: Remove ImageWrite and get rid of -Wmissing-declarations warningsLéo Lam
2020-12-16Fix -Wclass-memaccess warningsLéo Lam
We want to clear/memset the padding bytes, not just each member, so using assignment or {} initialization is not an option. To silence the warnings, cast the object pointer to u8* (which is not undefined behavior) to make it explicit to the compiler that we want to fill the object representation.
2020-12-02General: Convert PanicAlerts over to fmt equivalentLioncash
Converts lingering panic alert calls over to the fmt-capable ones.
2020-11-24Fix bounding box incorrectly disabled on OpenGL ES 3.1, 3.2blåhaj
2020-11-20Software: Use same logic for colors as hardware backendsStenzek
2020-11-20Vulkan: fix validation error in bSupportsGeometryShaders=false caseJonathan Marek
In CreateDescriptorSetLayouts(), one less dynamic binding is created when bSupportsGeometryShaders=false. Reduce the dynamicOffsetCount argument by one in that case. Avoids this validation error: Attempting to bind 3 descriptorSets with 2 dynamic descriptors, but dynamicOffsetCount is 3. It should exactly match the number of dynamic descriptors. The Vulkan spec states: dynamicOffsetCount must be equal to the total number of dynamic descriptors in pDescriptorSets Signed-off-by: Jonathan Marek <jonathan@marek.ca> [Applied clang-format] Signed-off-by: Léo Lam <leo@leolam.fr>
2020-11-09Vulkan: Migrate logging over to fmtLioncash
Migrates the vulkan backend over to the fmt-capable logger.
2020-11-09Software: Migrate logging over to fmtLioncash
Migrates the software backend over to the fmt-capable logger.
2020-11-09OpenGL: Migrate logging over to fmtLioncash
Migrates over to the fmt-capable logger.
2020-11-09D3DCommon: Migrate logging over to fmtLioncash
Migrates the logging over to the fmt-capable logger.
2020-11-09D3D: Migrate logging over to fmtLioncash
Migrates the logging over to the fmt-capable logger.
2020-11-09D3D12: Migrate logging over to fmtLioncash
Migrates the logging over to the fmt-capable logger.
2020-11-05Common/LinearDiskCache: Replace std::fstream with File::IOFileJosJuice
File::IOFile is better suited to this type of task. Split out from a future PR.
2020-11-03Merge pull request #9138 from martymac/VK_NULL_HANDLE-fixJordan Woyak
Fix build on FreeBSD i386 - nullptr vs VK_NULL_HANDLE
2020-11-03Resolve VkDeviceMemory/nullptr type mismatch to fix build on FreeBSD i386Ganael Laplanche
2020-10-29Merge pull request #9141 from Techjar/but-for-how-longJMC47
Re-enable GPU Texture Decoding under MoltenVK
2020-10-23CMake: Add option to enable/disable Vulkan video backendmazes-80
2020-10-08DriverDetails: Remove bug for broken GPU Texture DecodingTechjar
2020-10-01Vulkan: Use VK_LAYER_KHRONOS_validation for validationStenzek
VK_LAYER_LUNARG_standard_validation is deprecated.
2020-09-07VideoBackends: Disable GPU Texture Decoding under MoltenVKTechjar
It's broken and causes spectacular artifacts and crashes.
2020-09-06Make default graphics backend not show up as emptyJosJuice
Fixes https://bugs.dolphin-emu.org/issues/12245. I considered making a change to DolphinQt instead of the core, but then additional effort would've been required to add the same fix to the Android GUI once we start using the new config system there.
2020-08-27msvc: enable /Zc:preprocessor and make build compile cleanlyShawn Hoffman
2020-08-27ogl: init ProgramShaderCache::s_ubo_align to 1.Shawn Hoffman
silences a warning that it may cause div-by-zero.