Subv
31de416fc0
ShaderGen: Implemented the fsetp instruction.
Predicate variables are now added to the generated shader code in the form of 'pX' where X is the predicate id.
These predicate variables are initialized to false on shader startup and are set via the fsetp instructions.
TODO:
* Not all the comparison types are implemented.
* Only the single-predicate version is implemented.
8 years ago
Subv
601c5d9d93
ShaderGen: Register id 255 is special and is hardcoded to return 0 (SR_ZERO).
8 years ago
Subv
4ca65f10b1
ShaderGen: Implemented the fmul32i shader instruction.
8 years ago
bunnei
e8cc5900a6
gl_shader_gen: Support vertical/horizontal viewport flipping. ( #347 )
* gl_shader_gen: Support vertical/horizontal viewport flipping.
* fixup! gl_shader_gen: Support vertical/horizontal viewport flipping.
8 years ago
Subv
19a0e7e141
GPU: Pitch textures are now supported, don't assert when encountering them.
8 years ago
bunnei
de84b74dd4
maxwell3d: Allow Texture2DNoMipmap as Texture2D.
8 years ago
bunnei
797267eb58
shader_bytecode: Make ctor's constexpr and explicit.
8 years ago
bunnei
4d9c441bef
renderer_opengl: Implement BlendEquation and BlendFunc.
8 years ago
bunnei
c1408040a6
gl_shader_decompiler: Implement FMUL/FADD/FFMA immediate instructions.
8 years ago
bunnei
05305422e1
gl_shader_decompiler: Add support for TEXS instruction.
8 years ago
bunnei
65092bf8d8
gl_rasterizer: Implement indexed vertex mode.
8 years ago
Subv
e14e38fe0e
GPU: Added a function to determine whether a shader stage is enabled or not.
8 years ago
bunnei
538322ec1f
shaders: Add NumTextureSamplers const, remove unused #pragma.
8 years ago
bunnei
f48c229f0e
shaders: Address PR review feedback.
8 years ago
bunnei
47bf0b0094
shaders: Fix GCC and clang build issues.
8 years ago
bunnei
d166a50ded
gl_shader_decompiler: Implement negate, abs, etc. and lots of cleanup.
8 years ago
bunnei
a859a70da1
shader_bytecode: Add FSETP and KIL to GetInfo.
8 years ago
bunnei
6fe96737a1
shader_bytecode: Add SubOp decoding.
8 years ago
bunnei
7e7f053ea7
maxwell_3d: Make memory_manager public.
8 years ago
bunnei
4e961244a8
maxwell_3d: Fix shader_config decodings.
8 years ago
bunnei
0b49a74e19
shader_bytecode: Add initial module for shader decoding.
8 years ago
Subv
cb3ca1d4cf
GPU: Assert when finding a texture with a format type other than UNORM.
8 years ago
Subv
84c9824895
GPU: Use the MacroInterpreter class to execute the GPU macros instead of HLEing them.
8 years ago
Subv
7fe4f9491e
GPU: Implemented a gpu macro interpreter.
The Ryujinx macro interpreter and envydis were used as reference.
Macros are programs that are uploaded by the games during boot and can later be called by writing to their method id in a GPU command buffer.
8 years ago
bunnei
b9eae6e652
gl_rasterizer: Add a SyncViewport method.
8 years ago
bunnei
95d56cac29
gl_rasterizer: Normalize vertex array data as appropriate.
8 years ago
bunnei
ded4139447
maxwell_3d: Use names that match envytools for VertexType.
8 years ago
bunnei
d37f03d0fe
maxwell_3d: Add VertexAttribute struct and cleanup.
8 years ago
bunnei
e04a5dec60
Maxwell3D: Call AccelerateDrawBatch on DrawArrays.
8 years ago
bunnei
5ae2fe6c69
gl_rasterizer: Implement AnalyzeVertexArray.
8 years ago
bunnei
bf282aa01f
maxwell: Add RenderTargetFormat enum.
8 years ago
Subv
3707231f5d
GPU: Load the sampler info (TSC) when retrieving active textures.
8 years ago
Subv
18a9536efa
GPU: Make the debug_context variable a member of the frontend instead of a global.
8 years ago
Subv
f73fb9de9d
GPU: Added a function to retrieve the active textures for a shader stage.
TODO: A shader may not use all of these textures at the same time, shader analysis should be performed to determine which textures are actually sampled.
8 years ago
Subv
b9b5b1e740
GPU: Implement the Incoming/FinishedPrimitiveBatch debug breakpoints.
8 years ago
Subv
10b10a14af
GPU: Implement the MaxwellCommandLoaded/Processed debug breakpoints.
8 years ago
Subv
bc03dc4793
GPU: Added a method to unswizzle a texture without decoding it.
Allow unswizzling of DXT1 textures.
8 years ago
Subv
d09097276f
GPU: Preliminary work for texture decoding.
8 years ago
Subv
6234ec112b
GPU: Added viewport registers to Maxwell3D's reg structure.
8 years ago
bunnei
fcddbe6027
maxwell_3d: Add some format decodings and string helper functions.
8 years ago
Subv
f3a5328f09
GPU: Added vertex attribute format registers.
8 years ago
Subv
a569ee8a58
GPU: Added registers for the number of vertices to render.
8 years ago
Subv
3e645f5595
GPU: Added Z buffer registers to Maxwell3D's reg structure.
8 years ago
Subv
b942bfbb13
GPU: Added the render target (RT) registers to Maxwell3D's reg structure.
8 years ago
N00byKing
d3bdad2aaa
Clang Fixes
8 years ago
N00byKing
1212e9e231
Clean Warnings (?)
8 years ago
Subv
c0f954906c
GPU: Added the TSC registers to the Maxwell3D register structure.
8 years ago
Subv
f6e3d3aa1a
GPU: Added the TIC registers to the Maxwell3D register structure.
8 years ago
Subv
36c527131f
GPU: Implement macro 0xE1A BindTextureInfoBuffer in HLE.
This macro simply sets the current CB_ADDRESS to the texture buffer address for the input shader stage.
8 years ago
Subv
80b0f4d681
GPU: Implement the BindStorageBuffer macro method in HLE.
This macro binds the SSBO Info Buffer as the current ConstBuffer.
This buffer is usually bound to c0 during shader execution.
Games seem to use this macro instead of directly writing the address for some reason.
8 years ago