summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2018-10-20Renderer: Pull dimensions from GLInterface/SwapchainStenzek
2018-10-20Drop Host_GetRenderSurface and pass display to backendStenzek
2018-10-20GLInterface: Drop Haiku supportStenzek
2018-10-20Update to Visual Studio's default Windows SDKTillmann Karras
2018-10-14VideoCommon: Clean up class-memaccess warningsTechjar
2018-10-14Merge pull request #7496 from stenzek/null-shader-cacheTilka
ShaderCache: Don't create or load shader cache with Null backend
2018-10-14Merge pull request #7412 from AdmiralCurtiss/xfb-stitch-in-orderTilka
Stitch together overlapping XFB regions in order of XFB copy creation.
2018-10-14ShaderCache: Don't create or load shader cache with Null backendStenzek
2018-10-12Merge pull request #7437 from stenzek/graphics-options-raceMat M
Fix race condition caused by opening graphics options while running
2018-10-09Merge pull request #7470 from Tilka/fifoplayerTilka
FifoPlayer: reduce XF_REGS_SIZE to what we know
2018-10-09VideoCommon: remove unnecessary floor()Tillmann Karras
floatindex is clamped to the range [0, 9]. For non-negative numbers floor() is equivalent to trunc(). Truncation happens implicitly when converting to uint, so the floor() is unnecessary.
2018-10-08FifoPlayer: reduce XF_REGS_SIZE to what we knowTillmann Karras
This avoids out-of-bounds warnings when replaying FIFO captures. The value of XF_REGS_SIZE is written into the DFF header and we only read the min of XF_REGS_SIZE and the header value, so this change is backward compatible and doesn't break forward compatibility for old Dolphin versions either.
2018-10-07BPStructs: don't warn about busclock/perf regsTillmann Karras
2018-10-01Merge pull request #7408 from AdmiralCurtiss/twin-snakes-cutscene-flicker-fixPierre Bourdon
Do not consider XFB copies for invalidating textures when loading a new texture.
2018-09-28Core: Call InitBackendInfo before loading configStenzek
2018-09-28Don't fill backend info when core is runningStenzek
The current approach results in the UI thread creating a graphics device whilst the core is running, leading to races on function pointers, and potentially crashing.
2018-09-28Remove unused Host_ShowVideoConfigStenzek
2018-09-16Merge pull request #7398 from Techjar/emu-speed-skip-vsyncLéo Lam
VideoCommon: Skip vsync if configured emulation speed is not 100%
2018-09-15Do not consider XFB copies for invalidating textures when loading a new texture.Admiral H. Curtiss
This fixes severe image flickering in some cutscenes of Twin Snakes. The game appears to sometimes load a previously made XFB copy as a texture before it is actually rendered to the screen, which we took as an invitation to invalidate the XFB copy.
2018-09-14Stitch together overlapping XFB regions in order of XFB copy creation.Admiral H. Curtiss
2018-09-13Correctly adjust the rendered XFB region at non-native internal resolutions ↵Admiral H. Curtiss
when XFB was loaded from console RAM. If, for whatever reason, the XFB has to be loaded from console memory, it's possible that the texture is returned at native resolution instead of EFB-scaled resolution. In this case, our xfb_rect.right adjustment must also happen at native resolution instead of scaled resolution.
2018-09-05VideoCommon: Skip vsync if configured emulation speed is not 100%Techjar
It doesn't make much sense to try to vsync at weird framerates, and vsync actually causes the speed setting to not work as expected.
2018-09-01Revert "ShaderGen: Drop broken fragment shader index workaround for Vulkan"Pierre Bourdon
2018-08-28ShaderGen: Drop broken fragment shader index workaround for VulkanStenzek
AMD appears to have since fixed this in their driver, and it makes shadergen ever so slightly less messy.
2018-08-27Merge pull request #7253 from booto/fifo_regPierre Bourdon
CP: some bits in some of the HI registers cannot be set
2018-08-24PixelShaderGen: Ensure all components of ocol1 are initializedStenzek
This was causing a warning in the shader compiler, as the rgb components were not initialized. Which shouldn't be an issue, as the rgb is not used in the blend equation, only the alpha. However, the lack of initialization causes crashes in Intel's D3D shader compiler, so we'll play nice and initialize all the channels.
2018-08-21VideoCommon/HiresTextures: Change wildcard to a Windows-compatible characterTechjar
2018-07-19FramebufferManager: Use D24S8 on Adreno when using VulkanStenzek
D32F clears are broken on Adreno, which resulted in smeared geometry across the screen.
2018-07-19FramebufferManager: Dynamic selection of EFB depth formatStenzek
2018-07-19VideoBackends: Support D24S8 abstract texture formatStenzek
2018-07-19Merge pull request #7276 from stenzek/disable-shared-context-nouveauMarkus Wick
DriverDetails: Disable shared context shader compilation on nouveau
2018-07-17DriverDetails: Disable shared context shader compilation on nouveauStenzek
Our usage of glFinish() can cause driver crashes and/or lockups. Please note that this disables the background shader compilation (i.e. all shaders will be compiled on boot). There is no way around this.
2018-07-14AVIDump: use dump_path rather than deprecated AVFormatContext::filenameMichael M
AVFormatContext::filename was deprecated in lavf 58.7.100 in favor of AVFormatContext::url. Instead of adding version-checking logic, just use the passed-in dump path instead.
2018-07-14AVIDump: av_register_all is deprecated/unneeded since 58.9.100Michael M
2018-07-12CP: some bits in some of the HI registers cannot be setbooto
The mask is slightly different for Wii and GCN so we need to work it out at runtime.
2018-07-07RenderBase: don't clamp draw size to windowMichael M
It distorts the aspect ratio when cropping, rather than actually cropping.
2018-07-06VideoCommon/TextureCacheBase: Resolve a -Wmissing-braces warning in ↵Lioncash
GetRAMCopyFilterCoefficients()
2018-07-03Make arbitrary mipmap detection toggle invalidate the texture cacheTechjar
We want this setting to invalidate the cache because it may affect the appearance of textures in the rendered scene, therefore one would expect changing it while the game is running to have the expected effect immediately.
2018-07-02Remove unused sRGB conversion functionsJonathan Hamilton
Now the arbitrary mipmap reference downsampling is just done in linear space, these are no longer used.
2018-07-02Do all arbitrary mipmap detection in integer spaceJonathan Hamilton
This no longer converts from sRGB to linear for the reference mip downsample - even if the original mipmap creation tool used an sRGB colorspace (which isn't really guaranteed, and may even change per game), this is a "fast" heuristic that's only an estimate anyway. The average diff is also now stored in a u64, avoiding floating point calculations in the per-pixel hot loop. This should speed up the detection significantly, hopefully fixing jank when loading in new textures.
2018-06-25VideoCommon: Fix auto IR being very overzealousTechjar
2018-06-21Merge pull request #6875 from JonnyH/WIP/mipmap-heuristic-tweaksMarkus Wick
Make arbitrary mipmap detection a config option
2018-06-21Merge pull request #6539 from degasus/asyncMarkus Wick
VideoCommon: Flush the GPU pipeline on async requests.
2018-06-15ConfigManager: Convert GPUDeterminismMode into an enum classLioncash
Makes the values strongly-typed and gets more identifiers out of the global namespace. We are forced to use anything that is not "None" to mean none, because X11 is garbage in that it has: \#define None 0L Because clearly no one else will ever want to use that identifier for anything in their own code (and is why you should prefix literally any and all preprocessor macros you expose to library users in public headers).
2018-06-09Compiler: Rename __forceinline define to DOLPHIN_FORCE_INLINELioncash
This is much better as prefixed double underscores are reserved for the implementation when it comes to identifiers. Another reason its better, is that, on Windows, where __forceinline is a compiler built-in, with the previous define, header inclusion software that detects unnecessary includes will erroneously flag usages of Compiler.h as unnecessary (despite being necessary on other platforms). So we define a macro that's used by Windows and other platforms to ensure this doesn't happen.
2018-06-09Common: Add header for compiler-specificsLioncash
Instead of globbing things under an ambiguous Common.h header, move compiler-specifics over to Compiler.h. This gives us a dedicated home for anything related to compilers that we want to make functional across all compilers that we support. This moves us a little closer to eliminating Common.h entirely.
2018-06-06Add OSD message for Volume Hotkeysmaster0fdisaster
This pr adds an OnScreenDisplay message when you use the Volume hotkeys. Just to have visual feedback.
2018-06-06VideoCommon: Flush the GPU pipeline on async requests.Markus Wick
2018-06-05Merge pull request #6954 from degasus/coherentAnthony
OGL/Streambuffer: Use coherent mapping by default.
2018-05-28BPMemory: Silence a -Wmissing-braces warningLioncash
Fairly trivial to resolve, we just initialize the std::array with two sets of braces (one set to create the array, the other to start and end the aggregate data that we'll end up returning)