summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/maxwell_to_gl.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-11-24GPU: Implement additional render target formats.Fernando Sahmkow1-0/+1
2022-10-07Update 3D regsKelebek11-139/+148
2022-10-06VideoCore: Implement formats needed for N64 emulation.Fernando Sahmkow1-1/+1
2022-10-06Texture Cache: Add ASTC 10x5 Format.Fernando Sahmkow1-0/+2
2022-07-06renderer_(gl/vk): Implement ASTC_10x6_UNORMMorph1-0/+1
- Used by Monster Hunter Rise Update 10.0.2
2022-06-14common: Change semantics of UNREACHABLE to unconditionally crashLiam1-6/+6
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-14video_core: implement formats for N64 emulationFernando Sahmkow1-0/+2
2022-02-25maxwell_to_(gl/vk): Add 11_11_10 float vertex formatMorph1-0/+2
- Used by パワプロクンポケットR
2021-11-17renderer_opengl: Implement S8_UINT stencil formatMorph1-0/+1
2021-09-16util_shaders: Unify BGRA copy passesameerj1-2/+2
2021-07-23shader: Initial OpenGL implementationReinUsesLisp1-0/+108
2021-02-13maxwell_to_gl: Remove unused codeameerj1-36/+2
Removes unused declarations in maxwell_to_gl.h
2020-12-30video_core: Rewrite the texture cacheReinUsesLisp1-0/+13
The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues.
2020-12-07video_core: Remove unnecessary enum class casting in logging messagesLioncash1-15/+15
fmt now automatically prints the numeric value of an enum class member by default, so we don't need to use casts any more. Reduces the line noise a bit.
2020-09-16video_core: Enforce -Werror=switchReinUsesLisp1-0/+6
This forces us to fix all -Wswitch warnings in video_core.
2020-06-30maxwell_to_gl: Implement MirrorOnceClampOGL using GL_MIRROR_CLAMP_EXTMorph1-0/+6
Like MirrorOnceBorder, this requires the GL_EXT_texture_mirror_clamp extension. This extension is unfortunately not available on Intel's drivers (both Windows proprietary and Linux Mesa). Use GL_MIRROR_CLAMP_TO_EDGE as a fallback if the extension is unavailable.
2020-06-29maxwell_to_gl: Rename VertexType() to VertexFormat()Morph1-2/+2
2020-06-28maxwell_to_gl: Add 32 bit component sizes to (un)signed scaled formatsMorph1-30/+4
Add 32 bit component sizes to (un)signed scaled formats and group (un)signed normalized, scaled, and integer formats together.
2020-06-18maxwell_to_gl: Miscellaneous changesMorph1-48/+34
maxwell_to_gl: Log unimplemented features under UNIMPLEMENTED_MSG instead of LOG_ERROR to bring into parity with maxwell_to_vk maxwell_to_gl: Deduplicate logging in VertexType(), merging them into one. maxwell_to_gl: Return GL_NEAREST instead of GL_LINEAR if an unknown texture filter mode is encountered. maxwell_to_gl: Log the mipmap filter mode if an unknown value is passed in. maxwell_to_gl: Reorder filtering modes to start with None, then Nearest, then Linear.
2020-05-04gl_rasterizer: Implement viewport swizzles with NV_viewport_swizzleReinUsesLisp1-0/+5
2020-04-17video_code: Fix implicit switch fallthrough.Markus Wick1-0/+2
Since yesterday, this breaks the build on linux. So let's fix it.
2020-03-10gl_rasterizer: Implement polygon modes and fill rectanglesReinUsesLisp1-0/+13
2020-02-28maxwell_3d: Flatten cull and front face registersReinUsesLisp1-7/+7
2020-02-24video_core: Implement more scaler attribute formatsReinUsesLisp1-0/+24
While changing this, fix assert in vk_shader_decompiler. We now know scaled formats are expected to be float in shaders attributes.
2020-02-05maxwell_to_gl: Implement R8G8_USCALEDReinUsesLisp1-0/+8
2020-02-05maxwell_to_gl: Reduce unimplemented formats to LOG_ERRORReinUsesLisp1-8/+4
2019-12-23maxwell_to_gl: Implement missing primitive topologiesReinUsesLisp1-4/+18
Many of these topologies are exclusively available in OpenGL.
2019-09-17maxwell_to_gl: Fix mipmap filteringReinUsesLisp1-2/+2
OpenGL texture filters follow GL_<texture_filter>_MIPMAP_<mipmap_filter> but we were using them in the opposite way.
2019-05-30maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap modeReinUsesLisp1-5/+2
2019-05-30gl_rasterizer: Use GL_QUADS to emulate quads renderingReinUsesLisp1-0/+2
2019-05-18maxwell_to_gl: Add TriangleFan primitive topologyReinUsesLisp1-0/+2
2019-04-18video_core: Silent -Wswitch warningsReinUsesLisp1-27/+26
2018-11-22maxwell_3d: Implement alternate blend equations.bunnei1-0/+5
- Used by Undertale.
2018-11-17add missing MirrorOnceBorder support where supportedRodolfo Bogado1-0/+6
2018-11-11Improve state management by splitting some of the states id separated function to avoid a full apply overheadRodolfo Bogado1-3/+2
2018-11-11Try to fix problems with stencil test in some games, relax translation to opengl enums to avoid crashing and only generate logs of the errors.Rodolfo Bogado1-33/+30
2018-10-29Fixed Block Resizing algorithm and Clang FormatFernandoS271-1/+0
2018-10-29Implement Mip FilterFernandoS271-5/+23
2018-10-22Fixed VAOs Float types only returning GL_FLOAT in cases that they had to return GL_HALF_FLOATFernandoS271-2/+14
2018-10-06Implemented Depth Compare and Shadow SamplersFernandoS271-0/+25
2018-08-23gl_rasterizer: Implement stencil test.bunnei1-0/+24
- Used by Splatoon 2.
2018-08-22renderer_opengl: Namespace OpenGL codeLioncash1-0/+3
Namespaces all OpenGL code under the OpenGL namespace. Prevents polluting the global namespace and allows clear distinction between other renderers' code in the future.
2018-08-22maxwell_to_gl: Implement PrimitiveTopology::LinesOatmealDome1-0/+2
Used by Splatoon 2's debug menu.
2018-08-21GPU: Implemented the logic op functionality of the GPU.Subv1-0/+40
This will ASSERT if blending is enabled at the same time as logic ops.
2018-08-18Added WrapMode MirrorOnceClampToEdgeDavid Marcec1-0/+2
Used by splatoon 2
2018-08-15maxwell_to_gl: Properly handle UnsignedInt/SignedInt sizes.bunnei1-5/+20
2018-08-13maxwell_to_gl: Implement VertexAttribute::Size::Size_8.bunnei1-0/+1
- Used by Breath of the Wild.
2018-08-13maxwell_to_gl: Implement PrimitiveTopology::LineStrip.bunnei1-0/+2
- Used by Breath of the Wild.
2018-08-12GPU/Maxwell3D: Implemented an alternative set of blend factors.Subv1-0/+19
These are used by nouveau and some games like SMO.
2018-08-10maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8.bunnei1-0/+1
- Used by Super Mario Odyssey.
2018-08-10maxwell_to_gl: Implement VertexAttribute::Size::Size_32_32_32.bunnei1-0/+2
- Used by Super Mario Odyssey.
2018-08-09maxwell_to_gl: Implement VertexAttribute::Size::Size_16_16_16_16.bunnei1-0/+1
- Used by Super Mario Odyssey (in game).
2018-08-09maxwell_to_gl: Implement PrimitiveTopology::Points.bunnei1-0/+2
- Used by Super Mario Odyssey (in game).
2018-08-08maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8.bunnei1-0/+1
2018-07-24maxwell_to_gl: Implement Texture::WrapMode::Border.bunnei1-0/+2
2018-07-24maxwell_to_gl: Implement VertexAttribute::Type::UnsignedInt.bunnei1-0/+3
2018-07-05GPU: Allow using the old NV04 values for the depth test function.Subv1-0/+8
These seem to be just a valid as the GL token values. Thanks @ReinUsesLisp This restores graphical output to Disgaea 5
2018-07-04GPU: Implement the Size_16_16 and Size_10_10_10_2 vertex attribute types.Subv1-0/+8
Both signed and unsigned variants.
2018-07-03Update clang formatJames Rowe1-3/+2
2018-07-03Rename logging macro back to LOG_*James Rowe1-13/+13
2018-07-02MaxwellToGL: Added conversion functions for depth test and cull mode.Subv1-0/+50
2018-06-07GPU: Support changing the texture swizzles for Maxwell textures.Subv1-0/+21
2018-06-06maxwell_to_gl: Implement WrapMode Mirror.bunnei1-0/+2
2018-04-29maxwell_to_gl: Implement type SignedNorm, Size_8_8_8_8.bunnei1-0/+12
2018-04-18renderer_opengl: Implement BlendEquation and BlendFunc.bunnei1-0/+64
2018-04-17MaxwellToGL: Implemented tex wrap mode 1 (Wrap, GL_REPEAT).Subv1-0/+2
2018-04-17MaxwellToGL: Added a TODO and partial implementation of maxwell wrap mode 4 (Clamp, GL_CLAMP).Subv1-0/+5
This clamp mode was removed from OpenGL as of 3.1, we can emulate it by using GL_CLAMP_TO_BORDER to get the border color of the texture, and then manually sampling the edge to mix them in the fragment shader.
2018-04-17gl_rendering: Use NGLOG* for changed code.bunnei1-7/+8
2018-04-17gl_rasterizer: Implement indexed vertex mode.bunnei1-1/+15
2018-04-14maxwell_to_gl: Add a few types, etc.bunnei1-0/+10
2018-04-07GL: Added functions to convert Maxwell tex filters and wrap modes to OpenGL.Subv1-0/+23
2018-03-27gl_rasterizer: Move PrimitiveTopology check to MaxwellToGL.bunnei1-0/+10
2018-03-27maxwel_to_gl: Fix string formatting in log statements.bunnei1-2/+2
2018-03-27maxwell_to_gl: Add module and function for decoding VertexType.bunnei1-0/+40