summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2021-12-10Treewide: Adjust order of includesPokechu22
2021-12-06ProgramShaderCache: Don't define FB_FETCH_VALUE for ↵OatmealDome
GL_EXT_shader_framebuffer_fetch We will automatically choose between real_ocol0 and ocol0 in the fragment shader.
2021-12-06ShaderCompiler: Add helpers for Metal framebuffer fetchOatmealDome
2021-12-06ShaderCompiler: Add new helper define for input attachment bindingOatmealDome
2021-11-24VulkanContext: Set Apple GPUs as supporting framebuffer fetchOatmealDome
2021-11-18Merge pull request #10222 from phire/fix-copy-filter-clampingJMC47
Fix copy filter clamping
2021-11-17VideoCommon: Skip textureQueryLevels if it doesn't existPokechu22
2021-11-17Software: Adjust diagonal LOD implementationPokechu22
This produces behavior matching the behavior on hardware (see Wario's Gold Mine in Mario Kart Wii).
2021-11-17VideoCommon: Use coarse derivatives for Manual Texture Sampling if possiblePokechu22
2021-11-17VideoCommon: Expose SamplerState to shadersPokechu22
The benefit to exposing this over the raw BP state is that adjustments Dolphin makes, such as LOD biases from arbitrary mipmap detection, will work properly.
2021-11-17Eliminate SamplerCommonPokechu22
2021-11-17Eliminate SamplerCommon::AreBpTexMode0MipmapsEnabledPokechu22
This was added in 0b9a72a62d38481ff08f742b2318d07f29ff5dff but became irrelevant in 70f9fc4e7526fc9cfc008a43cd33229f62be99b6 as the check is now self-explanatory due to a rejiggering of the bitfields.
2021-11-17VideoSoftware: Fix copy filter clampingScott Mansell
2021-11-13MoltenVK: Use an external project instead of a pre-compiled dylibOatmealDome
Also, update MoltenVK to match Vulkan SDK 1.2.189.
2021-10-24Convert LOG_TYPE and LOG_LEVELS to enum classPokechu22
2021-10-13Silence the -Wswitch warnings in TevFletcher Porter
The compiler was loudly announcing each and every branch Tev was not checking in a switch statement, but Tev has learned it's lesson and will produce that warning no more.
2021-10-13Fix all uninitialized variable warnings (C26495)Pokechu22
2021-10-10BPMemory: Refactor/consolidate TexUnit AddressingScott Mansell
Currently the logic for addressing the individual TexUnits is splattered all across dolphin's codebase, this commit attempts to consolidate it all into a single place and formalise it using our new TexUnitAddress struct.
2021-10-08Merge pull request #9803 from Techjar/bbox-videocommonLéo Lam
VideoCommon: Abstract bounding box
2021-10-04VideoCommon: Abstract bounding boxTechjar
This moves much of the duplicated bounding box code into VideoCommon, leaving only the specific buffer implementations in each backend.
2021-09-20DriverDetails: Add broken dual source blending bug to MoltenVK on Intel GPUsOatmealDome
2021-09-20VulkanContext: Don't assume anv for Intel GPUs on macOSOatmealDome
2021-09-16VulkanContext: Disable subgroup reduction on macOS with AMD GPUsOatmealDome
2021-08-30VideoBackends / VideoCommon: allow the ability to set debug names for ↵iwubcode
shaders / textures. These names are visible in applications like RenderDoc
2021-08-30Update clang-format to version 12Léo Lam
12 is the latest release and various editors (VS, VSCode and CLion) ship with clang-format 12 by default.
2021-08-11D3D12: Transition compute textures to UAV stateRobin Kertels
2021-08-05ShaderCompiler: Attach source text to SPIR-V for debuggers like RenderDocOatmealDome
2021-07-24Convert NaN to 1 when generating texture coordinatesPokechu22
This fixes eyelids in Shadow the Hedgehog during cutscenes (https://bugs.dolphin-emu.org/issues/11458)
2021-07-20Software: Handle texture wrapping more accuratelyPokechu22
This fixes various texture offsetting issues with negative texture coordinates (bringing the software renderer in line with the hardware renderers). It also handles the invalid wrap mode accurately (as was done for the hardware renderers in the previous commit). Lastly, it handles wrapping with non-power-of-2 texture sizes in a hardware-accurate way (which is somewhat broken looking, as games aren't supposed to use wrapping with non-power-of-2 sizes); this has not been done for the hardware renderers.
2021-07-08Fix indirect textures when format is not ITF_8Pokechu22
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-06-23Merge pull request #9742 from Pokechu22/sw-resolutionJMC47
Software: Fix bad backbuffer size
2021-06-20Software: Remove texinfo.sourcerow == SourceRow::Colors assertPokechu22
These asserts were removed for the hardware renderer in #3684.
2021-06-13Merge pull request #9784 from PEmu2/masterLéo Lam
Update buffer_storage warning message
2021-06-09Hack to hide debug cubes in Super Mario SunshinePokechu22
... while not breaking other games.
2021-06-08Merge pull request #9782 from Techjar/bbox-ogl-upsidedown-fixConnor McLaughlin
VideoCommon: Perform OpenGL bounding box inversion in pixel shader
2021-06-07Vulkan: Fix subgroup reductionTechjar
It seems that we were writing values from helper invocations, which produces wrong results.
2021-06-06VideoCommon: Perform OpenGL bounding box inversion in pixel shaderTechjar
Running the min/max operation on the upside down, quad-rounded pixel coordinates before inverting them to the standard upper-left origin produces wrong results. Therefore, we need to do the inversion before rounding to pixel quads.
2021-06-05Update buffer_storage warning messagePEmu2
2021-05-31VideoCommon: Restore BBox* forwarding functionsTechjar
2021-05-29Merge pull request #9766 from stenzek/ogl-bbox-memory-barrierConnor McLaughlin
OGL: Force memory barrier when reading back bounding box values
2021-05-29OGL: Force memory barrier when reading back bounding box valuesConnor McLaughlin
We also need to ensure the the CPU does not receive stale values which have been updated by the GPU. Apparently the buffer here is not coherent on NVIDIA drivers. Not sure if this is a driver bug/spec violation or not, one would think that glGetBufferSubData() would invalidate any caches as needed, but this path is only used on NVIDIA anyway, so it's fine. A point to note is that according to ARB_debug_report, it's moved from video to host memory, which would explain why it needs the cache invalidate.
2021-05-29VideoCommon: Remove BBox* forwarding functionsTechjar
2021-05-28VideoCommon: Move bounding box pixel quads rounding to shaderTechjar
This avoids rounding values that the game writes to the bounding box registers, especially the default values.
2021-05-28VideoBackends/OGL: Cache bounding box values between readsConnor McLaughlin
2021-05-28VideoBackends/D3D: Cache bounding box values between readsConnor McLaughlin
2021-05-24Software: Fix bad backbuffer sizePokechu22
MAX_XFB_WIDTH/HEIGHT are the largest XFB sizes seen in practice, but do not make sense to use for the backbuffer size, which should be the size of the window. The old code created screenshots with a size of 720x540 on NTSC games when "Dump Frames at Internal Resolution" is unchecked; now, the window size is used.
2021-05-22VideoCommon: Split BBox* functions into common and backend implementation ↵Techjar
variants This will allow for some aspects of bounding box to be handled in VideoCommon instead of individual backends.
2021-05-21Fix perf query regressionJosJuice
When trying to do a small optimization in 8a0f5ea, I failed to take into account that WeakFlush and FlushOne update m_query_count. Only D3D11 and OGL had this problem, not D3D12 and Vulkan.
2021-05-15Remove all remaining volatile qualifiersJosJuice