Commit Graph

443 Commits (addef06081c368928f1e76d929a8f176a6209eb2)

Author SHA1 Message Date
Martin Lindhe bafb7afba2 fix some xcode 7.0 warnings 10 years ago
Lioncash 751fbfdcc3 general: Silence some warnings when using clang 10 years ago
Lioncash aec28ed91e video_core: Reorganize headers 10 years ago
Lioncash 1fa772393b video_core: Remove unnecessary includes from headers 10 years ago
bunnei a008b28659 Merge pull request #1133 from lioncash/emplace-back
gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle
10 years ago
bunnei 0d5604fdcb Merge pull request #1136 from lioncash/proto
renderer_opengl: Remove unimplemented function declaration
10 years ago
Lioncash 8a3428f16c renderer_opengl: Remove unimplemented function declaration 10 years ago
Lioncash 526eb33d1e video_core: Remove unused variables 10 years ago
Lioncash 7b72b71605 gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle 10 years ago
aroulin 1484a23530 Shader JIT: Use SCALE constant from emitter 10 years ago
aroulin 87e3b9ffc0 Shader: Fix size_t to int casts of register offsets 10 years ago
Yuri Kunde Schlesner b044c047c4 OpenGL: Use Sampler Objects to decouple sampler config from textures
Fixes #978
10 years ago
Yuri Kunde Schlesner 466e608c19 OpenGL: Remove ugly and endian-unsafe color pointer casts 10 years ago
Yuri Kunde Schlesner ec28f037e6 OpenGL: Add support for Sampler Objects to state tracker 10 years ago
Yuri Kunde Schlesner cc19a76656 Merge pull request #1087 from yuriks/opengl-glad
Replace the previous OpenGL loader with a glad-generated 3.3 one
10 years ago
bunnei 918ca40c68 Merge pull request #1088 from aroulin/x64-emitter-abi-call
x64: Proper stack alignment in shader JIT function calls
10 years ago
aroulin ba998b85a1 video_core: Fix format specifiers warnings 10 years ago
aroulin 179ad35c2e x64: Proper stack alignment in shader JIT function calls
Import Dolphin stack handling and register saving routines
Also removes the x86 parts from abi files
10 years ago
Tony Wasserka 071510b367 Merge pull request #1092 from Subv/vertex_offset
Pica: Add the vertex_offset register to the Pica registers map.
10 years ago
Subv 58a04c0776 Pica: Added the primitive_restart register (0x25f) to the registers map. 10 years ago
Subv 149ea561a6 Pica: Add the vertex_offset register to the Pica registers map. 10 years ago
aroulin 84959be150 Shader JIT: Fix SGE/SGEI NaN behavior
SGE was incorrectly emulated w.r.t. NaN behavior as the CMPSS SSE
instruction was used with NLT
10 years ago
bunnei e77dc4e9d2 Merge pull request #1059 from Subv/vertex_offset
GPU: Implemented register 0x22A PICA_REG_DRAW_VERTEX_OFFSET
10 years ago
Subv 12a11472f1 GPU: Implemented register 0x22A.
This is the equivalent of the "first" parameter in glDrawArrays, it tells the GPU the vertex index at which to start rendering.

Register 0x22A doesn't affect indexed rendering.
10 years ago
Yuri Kunde Schlesner a1a5570e97 Replace the previous OpenGL loader with a glad-generated 3.3 one
The main advantage of switching to glad from glLoadGen is that, apart
from being actively maintained, it supports a customizable entrypoint
loader function, which makes it possible to also support OpenGL ES.
10 years ago
bunnei 58e9f78844 Merge pull request #1049 from Subv/stencil
Rasterizer: Corrected the stencil implementation.
10 years ago
Yuri Kunde Schlesner c5a4025b65 Merge pull request #1065 from yuriks/shader-fp
Shader FP compliance fixes
10 years ago
bunnei f3cef178e3 gl_rasterizer_cache: Detect and ignore unnecessary texture flushes. 10 years ago
aroulin f52d8c1a9b Shader JIT: Fix float to integer rounding in MOVA
MOVA converts new address register values from floats to integers using truncation
10 years ago
archshift dd0e1061ef Shader JIT: ifdef out reference to ifdef'd out shader_map
shader_map was only defined on x86 architectures, but was cleared on shutdown
with no ifdef protection. Ifdef this out so non-x86 architectures can be built.
10 years ago
Yuri Kunde Schlesner 0fcabd2b11 Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and
multi-threaded timeline view.
10 years ago
bunnei afd45d1d7f Merge pull request #1063 from Subv/hw_renderer_debug_fb
HWRenderer: Only reload the framebuffer from gpu memory if the hw renderer is in use during a breakpoint
10 years ago
Subv 583d777b1a HWRenderer: Added a workaround for the Intel Windows driver bug that causes glTexSubImage2D to not change the stencil buffer.
Reported here https://communities.intel.com/message/324464
10 years ago
Yuri Kunde Schlesner eff10959de fixup! Shaders: Fix multiplications between 0.0 and inf 10 years ago
Yuri Kunde Schlesner d8ef20c856 Shader JIT: Tiny micro-optimization in DPH 10 years ago
Yuri Kunde Schlesner 630a850d4d Shaders: Fix multiplications between 0.0 and inf
The PICA200 semantics for multiplication are so that when multiplying
inf by exactly 0.0, the result is 0.0, instead of NaN, as defined by
IEEE. This is relied upon by games.

Fixes #1024 (missing OoT interface items)
10 years ago
Yuri Kunde Schlesner 082b74fa24 Shaders: Explicitly conform to PICA semantics in MAX/MIN 10 years ago
Yuri Kunde Schlesner 76247170df Shader JIT: Add name to second scratch register (XMM4) 10 years ago
Lioncash fa5076eb9b shader_jit: Replace two MDisp usages with MatR 10 years ago
Yuri Kunde Schlesner 455147ee95 Shader JIT: Fix CMP NaN behavior to match hardware 10 years ago
bunnei 83c214f6d8 Merge pull request #1062 from aroulin/shader-rcp-rsq
Shader: RCP and RSQ computes only the 1st component
10 years ago
Subv d1b9383d86 HWRenderer: Only reload the framebuffer from gpu memory if the hw renderer is in use during a breakpoint. 10 years ago
aroulin 03c5cfead4 Shader: Use std::sqrt for float instead of sqrt 10 years ago
aroulin fa552f11ef Shader: RCP and RSQ computes only the 1st component 10 years ago
aroulin 2f1514b904 Shader: implement DPH/DPHI in JIT 10 years ago
aroulin 2e7cf2f6cf Shader: implement DPH/DPHI in interpreter
Tests revealed that the component with w=1 is
SRC1 and not SRC2, it is now fixed on 3dbrew.
10 years ago
Subv 0c7da9b815 HWRasterizer: Implemented stencil ops 6 and 7. 10 years ago
Subv 7c1f84a92b SWRasterizer: Implemented stencil ops 6 and 7.
IncrementWrap and DecrementWrap, verified with hwtests.
10 years ago
Subv e43eb130d4 HWRasterizer: Implemented stencil op 1 (GL_ZERO) 10 years ago
Subv fef1462371 SWRasterizer: Implemented stencil action 1 (GL_ZERO).
Verified with hwtests.
10 years ago