summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2018-01-29Merge pull request #6303 from TraceBullet/auto-adjust-window-sizeStenzek
Fix Auto-Adjust Window Size option making the window too large
2018-01-27VideoBackend: Remove PeekMessages methodStenzek
The video thread and backend no longer create any windows, therefore there will never be any messages dispatched to their thread.
2018-01-27VideoBackends: Combine Initialize/Prepare and Cleanup/Shutdown methodsStenzek
Also allows the work previously done in Prepare to return a failure status.
2018-01-26Fix Auto-Adjust Window Size option making the window too largeTraceBullet
2018-01-26Renderer: Fix crash on shutdown when frame dumping or taking screenshotsStenzek
2018-01-26AbstractTexture: Fix crash in Vulkan backend when freeing textureStenzek
2018-01-22AbstractTexture: Move Bind() method to RendererStenzek
This makes state tracking simpler, and enables easier porting to command lists later on.
2018-01-20CustomTexture: Drop old texture format.degasus
2018-01-20CustomTextures: Drop format convertion.degasus
2018-01-17AVIDump: Remove incorrect usage of s_ prefixJosJuice
2018-01-17Merge pull request #6307 from rukai/fix-frame-dump-pathMarkus Wick
Handle framedump path not existing
2018-01-18Handle framedump path not existingLucas Kent
2018-01-17VideoCommon: Apply custom texture scale for arbitrary mipmaps.Markus Wick
We want to get the same mipmap level. And if the IR and the custom texture upscaling fits, we don't need to modify the LOD bias.
2018-01-15Merge pull request #6297 from JosJuice/custom-texture-arb-filenameMarkus Wick
Treat custom textures with "_arb" suffix as having arbitrary mipmaps
2018-01-11Merge pull request #6300 from ↵Markus Wick
JonnyH/WIP/glsl-es-implicit-int-float-conversions-in-gpu-texture-decode GLSL-ES doesn't allow implicit int/uint conversions
2018-01-11Some more implicit uint/float conversions in the texture decode shadersJonathan Hamilton
2018-01-11GLSL-ES doesn't allow implicit int/uint conversionsJonathan Hamilton
2018-01-10Clean up variable naming in HiresTextures::UpdateJosJuice
2018-01-10Treat custom textures with "_arb" suffix as having arbitrary mipmapsJosJuice
This is adapted from Bighead's code that was posted at https://forums.dolphin-emu.org/Thread-dolphin-custom-texture-mipmaps?pid=460867#pid460867 In master, custom textures are never treated as having arbitrary mipmaps, so we need either a change like this or a change that makes us apply the arbitrary mipmap heuristic even when a custom texture is used.
2018-01-08Merge pull request #6290 from JosJuice/invalid-aspect-ratioMarkus Wick
Treat invalid aspect ratio setting values as Auto
2018-01-08Specify underlying types for enums that get casted from integersJosJuice
Otherwise we might get UB if the value we cast is larger than the max value of the underlying type that the compiled picked for the enum. I haven't done any extensive check through Dolphin to find cases of this, I'm just fixing the cases I already know of.
2018-01-06Treat invalid aspect ratio setting values as AutoJosJuice
2018-01-06VideoCommon: Apply the yscale as upscaling of the XFB.Markus Wick
2018-01-05Enable shader_framebuffer_fetch blend path on ubershadersJonathan Hamilton
Tested on a linux Intel Skylake integrated graphics with blend_func_extended force-disabled, as it's the only platform I have that doesn't crash with ubershaders and supports fb_fetch
2018-01-05Workaround qualcomm driver bugJonathan Hamilton
It seems it doesn't like modifying inout variables in place - so instead use a temporary for ocol0/ocol1 and only write them once at the end of the shader
2018-01-05Implement dual-source blending in shaderJonathan Hamilton
For some GLES drivers that don't support dual-source blending, but do support GL_EXT_shader_framebuffer_fetch, this might be useful.
2018-01-03Allow users to specify the encoder used for framedumping.Vlad Firoiu
2017-12-30MAX_XFB_HEIGHT: PAL value off by two fixedSepalani
2017-12-21BPStructs: Use static cast for XFB/EFB copiesiwubcode
2017-12-21Texture Cache Base: Move PAL vertical scaling to be baked into the texture ↵iwubcode
size. This saves on a number of multiplications and fixes an issue where we were multiplying the y-scaling factor by the srcRectangle's height + 1 which was causing a crash in some GC titles
2017-12-19Only use the "Scaled EFB Copy" setting for EFB, not XFBJosJuice
The hybrid XFB PR made it apply to both EFB copies and XFB copies.
2017-12-19Reimplement EFB copy for intensity formatsEmmanuel Gil Peyrot
This is the direct continuation of #5887, and removes the last usage of the colmat matrix in EFB copy conversion shaders.
2017-12-19Merge pull request #6190 from JosJuice/is-trivially-copyable-vsMarkus Wick
Remove IsTriviallyCopyable hack for VS
2017-12-19Merge pull request #6254 from iwubcode/frame_counter_and_advance_fixMarkus Wick
Video Common: frame logic fix
2017-12-18Rename GFX_HACK_COPY_EFB_ENABLED to GFX_HACK_COPY_EFB_SCALEDJosJuice
Not sure why it was named like this... It doesn't affect whether the copy happens or not, only what resolution it uses.
2017-12-15Video Common: move frame advance and counter logic to only happen when we ↵iwubcode
actually render a frame.
2017-12-12Fix GLES GPU texture conversion shaderJonathan Hamilton
GLES doesn't support C-style array initialisers, so stuff like: Type var[2] = { VALUE_A, VALUE_B }; isn't supported in GLES (it was added in GL_ARB_shading_language_420pack). The texture conversion shader used this, so would fail to compile on GLES.
2017-12-11Merge pull request #6249 from stenzek/texture-dumpMarkus Wick
Texture dumping regression fixes
2017-12-10Fix an invalid (uint < int) comparison in GLES with ubershadersJonathan Hamilton
2017-12-10TextureCache: Don't dump custom texturesStenzek
They don't have a basename, therefore were being saved to empty files, and potentially can be compressed.
2017-12-07Merge pull request #6240 from JosJuice/stream-path-encodingLeo Lam
Don't use wrong encoding for paths when opening streams on Windows
2017-12-06VideoCommon: Drop now unused efb2tex matrix generation.degasus
2017-12-05Don't use wrong encoding for paths when opening streams on WindowsJosJuice
2017-12-06TextureConversionShader: Use round() instead of roundEven() in HLSLStenzek
HLSL does not define roundEven(), only round(). This means that the output may differ slightly for OpenGL vs Direct3D. However, it ensures consistency across OpenGL drivers, as round() in GLSL can go either way.
2017-12-06TextureConverterShaderGen: Make generated shaders HLSL-compatibleStenzek
2017-12-03Merge pull request #5887 from linkmauve/alpha-fixMarkus Wick
Simplify EFB copy shaders
2017-12-02VideoCommon: Fix -Wformat warningsLéo Lam
2017-12-02VideoCommon: Reimplement texture format conversionEmmanuel Gil Peyrot
This fixes the rendering of the scan visor in Metroid Prime 2: Echoes, as seen in https://fifoci.dolphin-emu.org/dff/mp2-scanner/ The alpha channel was off-by-one on Ivy Bridge due to the rounding after multiplication with colmat. This commit removes this matrix altogether in most cases, making them simple GLSL swizzles.
2017-12-02Merge pull request #5903 from linkmauve/fix-mp2eMarkus Wick
Round values in swizzlers
2017-12-02VideoCommon: Rename TextureConversionShader namespace.degasus