Lioncash
d923d8f50c
gpu: Rename Get3DEngine() to Maxwell3D()
This makes it match its const qualified equivalent.
8 years ago
Lioncash
bdfd46e192
video_core: Use nested namespaces where applicable
Compresses a few namespace specifiers to be more compact.
8 years ago
Lioncash
f53a9138bb
gl_state: Make references const where applicable in Apply()
8 years ago
Lioncash
80a916dc0a
gl_state: Get rid of mismatched sign conversions
While we're at it, amend the loop variable type to be the same width as
that returned by the .size() call.
8 years ago
Lioncash
10a91d9b9a
maxwell_3d: Remove unused variable within GetStageTextures()
8 years ago
Lioncash
41a8990ba7
gl_shader_decompiler: Eliminate variable and declaration shadowing
Ensures that no identifiers are being hidden, which also reduces
compiler warnings.
8 years ago
Lioncash
5b433431aa
gl_shader_decompiler: Remove unnecessary const from return values
This adds nothing from a behavioral point of view, and can inhibit the
move constructor/RVO
8 years ago
bunnei
9a4fa973c8
gl_state: Temporarily disable culling and depth test.
8 years ago
bunnei
47a305ed54
decoders: Fix calc of swizzle image_width_in_gobs.
8 years ago
Lioncash
e72928762f
core: Don't construct instance of Core::System, just to access its live instance
This would result in a lot of allocations and related object
construction, just to toss it all away immediately after the call.
These are definitely not intentional, and it was intended that all of
these should have been accessing the static function GetInstance()
through the name itself, not constructed instances.
8 years ago
Lioncash
e0c31daa57
astc: Initialize vector size directly in Decompress
There's no need to perform a separate resize.
8 years ago
Lioncash
fa13cedc7a
astc: Mark functions as internally linked where applicable
8 years ago
Lioncash
03f1f17552
astc: const-correctness changes where applicable
A few member functions didn't actually modify class state, so these can
be amended as necessary.
8 years ago
Lioncash
62eb3b3ede
astc: Delete Bits' copy contstructor and assignment operator
This also potentially avoids warnings, considering the copy assignment
operator is supposed to have a return value.
8 years ago
Lioncash
6b32ef1d9e
astc: In-class initialize member variables where appropriate
8 years ago
bunnei
42b866afc5
vi: Partially implement buffer crop parameters.
8 years ago
Subv
8335e656bb
GPU: Added register definitions for the stencil parameters.
8 years ago
bunnei
efc5bbb9ab
gl_rasterizer_cache: Implement texture format G8R8.
8 years ago
bunnei
50037e0c4f
gl_rasterizer_cache: Fix incorrect offset in ConvertS8Z24ToZ24S8.
8 years ago
bunnei
f5feb89c86
gl_rasterizer_cache: Implement depth format Z16_UNORM.
8 years ago
bunnei
91e048cce7
OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering.
8 years ago
Subv
021731e42a
GPU: Always enable the depth write when clearing the depth buffer.
The GPU ignores that register when clearing, but OpenGL obeys the glDepthMask parameter, so we set the depth mask to GL_TRUE when clearing the depth buffer. It will be restored to the correct value automatically on the next draw call.
8 years ago
bunnei
e904e1f785
gl_rasterizer: Fix check for if a shader stage is enabled.
8 years ago
bunnei
6e04dd24fe
gl_shader_gen: Implement dual vertex shader mode.
- When VertexA shader stage is enabled, we combine with VertexB program to make a single Vertex Shader stage.
8 years ago
bunnei
50e6ef98e2
gl_shader_decompiler: Implement PredCondition::LessThanWithNan.
8 years ago
bunnei
fef7eb92de
gl_shader_decompiler: Use FlowCondition field in EXIT instruction.
8 years ago
Subv
555dd2f793
GPU: Implement the FADD32I shader instruction.
8 years ago
Subv
d87962405b
GPU: Corrected the decoding of FFMA for immediate operands.
8 years ago
bunnei
9d9375e109
gl_rasterizer: Flip triangles when regs.viewport_transform[0].scale_y is negative.
- Fixes a regression with Binding of Isaac.
8 years ago
Subv
3c86a705ba
GPU: Implemented the BC7U texture format.
Note: Our version of glad exports GL_COMPRESSED_RGBA_BPTC_UNORM as GL_COMPRESSED_RGBA_BPTC_UNORM_ARB, maybe it's time we update it.
8 years ago
Subv
c44c0078cc
GPU: Allow using the old NV04 values for the depth test function.
These seem to be just a valid as the GL token values. Thanks @ReinUsesLisp
This restores graphical output to Disgaea 5
8 years ago
Subv
cc56ecc097
GPU: Implemented the IMNMX shader instruction.
It's similar to the FMNMX instruction but it works on integers.
8 years ago
Subv
c4268c13c6
GPU: Implemented the F2F 'round' rounding mode.
It's implemented via the GLSL 'roundEven()' function.
8 years ago
Subv
56a5e7ba50
GPU: Stub the shader SYNC and DEPBAR instructions.
It is unknown at this moment if we actually need to do something with these instructions or if the GLSL compiler takes care of that for us.
8 years ago
Subv
25e08cf116
GPU: Implement the Size_16_16 and Size_10_10_10_2 vertex attribute types.
Both signed and unsigned variants.
8 years ago
Subv
36822431cc
GPU: Ignore textures that the GLSL compiler deemed unused when binding textures to the shaders.
8 years ago
Subv
673600656c
GPU: Corrected the decoding for the TEX shader instruction.
8 years ago
Subv
9ba997d4f0
GPU: Implemented the PSETP shader instruction.
It's similar to the isetp and fsetp instructions but it works on predicates instead.
8 years ago
Subv
910af4676c
GPU: Implemented the 32 bit float depth buffer format.
8 years ago
Subv
70f55cf738
GPU: Flip the triangle front face winding if the GPU is configured to not flip the triangles.
OpenGL's default behavior is already correct when the GPU is configured to flip the triangles.
This fixes 1-2 Switch's splash screen.
8 years ago
Subv
53e622f91d
GPU: Only configure the used framebuffers during clear.
Don't try to configure the color buffer if it is not being cleared, it may not be completely valid at this point.
8 years ago
Subv
bb62c6dde3
GPU: Factor out the framebuffer configuration code for both Clear and Draw commands.
8 years ago
Subv
20afd1187d
GPU: Support clears that don't clear the color buffer.
8 years ago
Subv
fd4699c84f
GPU: Bind and clear the render target when the CLEAR_BUFFERS register is written to.
8 years ago
Subv
be5f1dde73
GPU: Added registers for the CLEAR_BUFFERS and CLEAR_COLOR methods.
8 years ago
bunnei
8a717606e4
gl_rasterizer_cache: Implement PixelFormat S8Z24.
8 years ago
bunnei
e702550809
gl_rasterizer: Only set cull mode and front face if enabled.
8 years ago
Subv
40fd6504e2
GPU: Use only the least significant 3 bits when reading the depth test func.
Some games set the full GL define value here (including nouveau), but others just seem to set those last 3 bits.
8 years ago
Subv
f6e05eac41
GPU: Don't try to parse the depth test function if the depth test is disabled.
8 years ago
James Rowe
d74d2a77cb
Update clang format
8 years ago