summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderState.cpp
AgeCommit message (Collapse)Author
2019-08-04RenderState: Approximate logic op with blending if unsupportedStenzek
This is a giant hack which was previously removed because it causes broken rendering. However, it seems that some devices still do not support logical operations (looking at you, Adreno/Mali). Therefore, for a handful of cases where the hack actually makes things slightly better, we can use it. ... but not without spamming the log with warnings. With my warning message PR, we can inform the users before emulation starts anyway.
2019-02-19Move most backend functionality to VideoCommonStenzek
2019-01-25OGL: Invalidate tracked state when calling ResetAPIState()Stenzek
Due to the current design, any of the GL state can be mutated after calling this function, so we can't assume that the tracked state will match if we call SetPipeline() after ResetAPIState().
2017-10-27Fixed fog, lava, water in Mario Galaxy (and possibly other games) in higher ↵Tommaso Checchi
IRs by detecting & fixing the mipmaps that aren't just used for downscaling, but are handmade to create a gradient.
2017-09-11VideoBackends: Move SamplerState to commonStenzek
2017-09-11VideoCommon: Add helpers for generating common render statesStenzek
2017-09-11Renderer: Move cull mode to a rasterization state objectStenzek
Also moves logic for primitive handling to VideoCommon.
2017-09-11Renderer: Move depth state to VideoCommon and seperate from bpmemStenzek
2017-08-21RenderState: Fix incorrect blending factors when removing the color usage.Jules Blok
2017-04-18OGL: Drop BlendingState.ditherStenzek
How GL_DITHER works is implementation-defined, and we handle the non-blended case in the pixel shader.
2017-04-18VideoCommon: Add usedualsrc field to BlendingStateStenzek
This is because we re-use BlendingState for our internal drawing (e.g. RasterFont) and for these shaders, we can't assume the presence of a second color output.
2017-01-06BlendState: Use masking as a fastpath for the logic op NO_OP.degasus
2017-01-06VideoCommon: Assembly blending state in a shared state object.degasus