Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #1660 from Tinob/master | bunnei | 2018-11-12 | 9 | -88/+138 |
|\ | | | | | Map more missing opengl states | ||||
| * | Use core extensions when available to set max anisotropic filtering level | Rodolfo Bogado | 2018-11-11 | 1 | -2/+7 |
| | | |||||
| * | Improve state management by splitting some of the states id separated function to avoid a full apply overhead | Rodolfo Bogado | 2018-11-11 | 6 | -39/+40 |
| | | |||||
| * | Try 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 Bogado | 2018-11-11 | 4 | -37/+61 |
| | | |||||
| * | set sampler max lod, min lod, lod bias and max anisotropy | Rodolfo Bogado | 2018-11-11 | 3 | -13/+33 |
| | | |||||
* | | Merge pull request #1664 from FreddyFunk/cast2 | bunnei | 2018-11-11 | 1 | -2/+2 |
|\ \ | |/ |/| | gl_rasterizer: Fix compiler warnings | ||||
| * | gl_rasterizer: Fix compiler warnings | Frederic Laing | 2018-11-08 | 1 | -2/+2 |
| | | |||||
* | | Merge pull request #1669 from ReinUsesLisp/fixup-gs | bunnei | 2018-11-11 | 4 | -15/+24 |
|\ \ | | | | | | | gl_shader_decompiler: Guard out of bound geometry shader input reads | ||||
| * | | gl_shader_decompiler: Guard out of bound geometry shader input reads | ReinUsesLisp | 2018-11-10 | 4 | -15/+24 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Geometry shaders follow a pattern that results in out of bound reads. This pattern is: - VSETP to predicate - Use that predicate to conditionally set a register a big number - Use the register to access geometry shaders At the time of writing this commit I don't know what's the intent of this number. Some drivers argue about these out of bound reads. To avoid this issue, input reads are guarded limiting reads to the highest posible vertex input of the current topology (e.g. points to 1 and triangles to 3). | ||||
* | | | Merge pull request #1663 from lioncash/raster | bunnei | 2018-11-11 | 9 | -10/+25 |
|\ \ \ | | | | | | | | | rasterizer_cache: Remove reliance on the System singleton | ||||
| * | | | rasterizer_cache: Remove reliance on the System singleton | Lioncash | 2018-11-08 | 9 | -10/+25 |
| |/ / | | | | | | | | | | | | | | | | Rather than have a transparent dependency, we can make it explicit in the interface. This also gets rid of the need to put the core include in a header. | ||||
* | | | Merge pull request #1648 from FernandoS27/texs-3-array | bunnei | 2018-11-11 | 1 | -7/+11 |
|\ \ \ | | | | | | | | | Implement 3 coordinate array in TEXS instruction | ||||
| * | | | Correct issue where texturelod could not be applied to 2darrayshadow | FernandoS27 | 2018-11-08 | 1 | -1/+5 |
| | | | | |||||
| * | | | Implement 3 coordinate array in TEXS instruction | FernandoS27 | 2018-11-07 | 1 | -6/+6 |
| | |/ | |/| | |||||
* | | | Merge pull request #1654 from degasus/dirty_flags | bunnei | 2018-11-11 | 4 | -7/+37 |
|\ \ \ | | | | | | | | | gl_rasterizer: Skip VAO binding if the state is clean. | ||||
| * | | | gl_rasterizer: Skip VAO binding if the state is clean. | Markus Wick | 2018-11-06 | 3 | -2/+21 |
| | | | | |||||
| * | | | gl_rasterizer: Split VAO and VB setup functions. | Markus Wick | 2018-11-06 | 2 | -5/+16 |
| | | | | |||||
* | | | | rasterizer_cache: Add missing virtual destructor to RasterizerCacheObject | Lioncash | 2018-11-08 | 3 | -0/+10 |
| |_|/ |/| | | | | | | | | Ensures that destruction will always do the right thing in any context. | ||||
* | | | gl_resource_manager: Amend clang-format discrepancies | Lioncash | 2018-11-08 | 1 | -4/+2 |
| |/ |/| | | | | | Fixes the buildbot. | ||||
* | | Merge pull request #1630 from bunnei/fix-mapbufferex | bunnei | 2018-11-07 | 2 | -31/+52 |
|\ \ | | | | | | | memory_manager: Do not MapBufferEx over already in use memory. | ||||
| * | | memory_manager: Do not MapBufferEx over already in use memory. | bunnei | 2018-11-01 | 2 | -31/+52 |
| | | | | | | | | | | | | - This fixes rendering when changing areas in Super Mario Odyssey. | ||||
* | | | Merge pull request #1635 from Tinob/master | bunnei | 2018-11-07 | 6 | -153/+338 |
|\ \ \ | | | | | | | | | Implement multi-target viewports and blending | ||||
| * | | | Add support to color mask to avoid issues in blending caused by wrong values in the alpha channel in some render targets. | Rodolfo Bogado | 2018-11-05 | 5 | -25/+79 |
| | | | | |||||
| * | | | Implement multi-target viewports and blending | Rodolfo Bogado | 2018-11-05 | 6 | -128/+259 |
| | | | | |||||
* | | | | gl_rasterizer_cache: Add profiles for Copy and Blit. | Markus Wick | 2018-11-06 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | They were missed, and Copy is very high in profile here. It doesn't block the GPU, but it stalls the driver thread. So with our bad GL instructions, this might block quite a while. | ||||
* | | | | gl_resource_manager: Profile creation and deletion. | Markus Wick | 2018-11-06 | 1 | -0/+42 |
| | | | | |||||
* | | | | gl_stream_buffer: Profile orphaning of stream buffer. | Markus Wick | 2018-11-06 | 1 | -0/+5 |
| |_|/ |/| | | | | | | | | | | | This serialize to the driver thread and so it may block for a while. So if it is in the benchmark, we get noticed if it happens too often. | ||||
* | | | gl_resource_manager: Split implementations in .cpp file. | Markus Wick | 2018-11-06 | 5 | -114/+167 |
| | | | | | | | | | | | | | | | Those implementations are quite costly, so there is no need to inline them to the caller. Ressource deletion is often a performance bug, so in this way, we support to add breakpoints to them. | ||||
* | | | Merge pull request #1616 from FernandoS27/cube-array | bunnei | 2018-11-05 | 4 | -0/+20 |
|\ \ \ | |/ / |/| | | Implement Cube Arrays | ||||
| * | | Implement Cube Arrays | FernandoS27 | 2018-11-01 | 4 | -0/+20 |
| | | | |||||
* | | | Merge pull request #1625 from FernandoS27/astc | bunnei | 2018-11-05 | 8 | -72/+151 |
|\ \ \ | |_|/ |/| | | Implement ASTC Textures 5x5 and fix a bunch of ASTC texture problems | ||||
| * | | Fix ASTC Decompressor to support depth parameter | FernandoS27 | 2018-11-02 | 6 | -62/+128 |
| | | | |||||
| * | | Fix ASTC formats | FernandoS27 | 2018-11-01 | 3 | -11/+20 |
| | | | |||||
| * | | Implemented ASTC 5x5 | FernandoS27 | 2018-11-01 | 1 | -1/+5 |
| | | | |||||
* | | | Merge pull request #1623 from Tinob/master | bunnei | 2018-11-01 | 3 | -105/+158 |
|\ \ \ | |/ / |/| | | Improve OpenGL state handling | ||||
| * | | Improve OpenGL state handling | Rodolfo Bogado | 2018-10-31 | 3 | -105/+158 |
| | | | |||||
* | | | Merge pull request #1527 from FernandoS27/assert-flow | bunnei | 2018-11-01 | 2 | -2/+27 |
|\ \ \ | | | | | | | | | Assert Control Flow Instructions using Control Codes | ||||
| * | | | Assert Control Flow Instructions using Control Codes | FernandoS27 | 2018-10-29 | 2 | -3/+28 |
| | | | | |||||
* | | | | maxwell_3d: Restructure macro upload to use a single macro code memory. | bunnei | 2018-11-01 | 4 | -27/+55 |
| | | | | | | | | | | | | | | | | | | | | - Fixes an issue where macros could be skipped. - Fixes rendering of distant objects in Super Mario Odyssey. | ||||
* | | | | Merge pull request #1528 from FernandoS27/assert-control-codes | bunnei | 2018-11-01 | 2 | -1/+103 |
|\ \ \ \ | |_|_|/ |/| | | | Assert Control Codes Generation on Shader Instructions | ||||
| * | | | Assert Control Codes Generation | FernandoS27 | 2018-10-30 | 2 | -1/+103 |
| | | | | |||||
* | | | | video_core: Move surface declarations out of gl_rasterizer_cache | ReinUsesLisp | 2018-10-30 | 6 | -898/+954 |
| |_|/ |/| | | |||||
* | | | global: Use std::optional instead of boost::optional (#1578) | Frederic L | 2018-10-30 | 17 | -97/+107 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build | ||||
* | | Merge pull request #1580 from FernandoS27/mm-impl | bunnei | 2018-10-30 | 6 | -109/+254 |
|\ \ | | | | | | | Implemented Mipmaps | ||||
| * | | Fixed black textures, pixelation and we no longer require to auto-generate mipmaps | FernandoS27 | 2018-10-29 | 1 | -14/+2 |
| | | | |||||
| * | | Fixed mipmap block autosizing algorithm | FernandoS27 | 2018-10-29 | 3 | -13/+25 |
| | | | |||||
| * | | Fixed Invalid Image size and Mipmap calculation | FernandoS27 | 2018-10-29 | 1 | -4/+7 |
| | | | |||||
| * | | Fixed Block Resizing algorithm and Clang Format | FernandoS27 | 2018-10-29 | 3 | -12/+19 |
| | | | |||||
| * | | Implement Mip Filter | FernandoS27 | 2018-10-29 | 4 | -10/+33 |
| | | | |||||
| * | | Zero out memory region of recreated surface before flushing | FernandoS27 | 2018-10-29 | 1 | -0/+2 |
| | | | |||||
| * | | Implement Mipmaps | FernandoS27 | 2018-10-28 | 2 | -101/+211 |
| |/ | |||||
* | | Merge pull request #1613 from ReinUsesLisp/gl-utils | bunnei | 2018-10-29 | 6 | -30/+61 |
|\ \ | | | | | | | video_core: Move OpenGL specific utils to its renderer | ||||
| * | | video_core: Move OpenGL specific utils to its renderer | ReinUsesLisp | 2018-10-29 | 6 | -30/+61 |
| |/ | |||||
* | | Merge pull request #1610 from slashiee/dxt1-alpha | bunnei | 2018-10-29 | 1 | -2/+2 |
|\ \ | | | | | | | renderer_opengl: Enable alpha channel for DXT1 texture format | ||||
| * | | Enable alpha channel for DXT1 texture format | Michael | 2018-10-28 | 1 | -2/+2 |
| |/ | |||||
* / | renderer_opengl: Correct bpp value for ASTC_2D_8X5_SRGB | Rodolfo Bogado | 2018-10-29 | 1 | -1/+1 |
|/ | |||||
* | Correct bpp value for ASTC_2D_8X5 | Tobias | 2018-10-28 | 1 | -1/+1 |
| | |||||
* | Merge pull request #1601 from FernandoS27/shader-precision | bunnei | 2018-10-28 | 1 | -20/+35 |
|\ | | | | | Improved Shader accuracy on Vertex and Geometry Shaders. | ||||
| * | Refactor precise usage and add FMNMX, MUFU, FMUL32 and FADD332 | FernandoS27 | 2018-10-28 | 2 | -74/+37 |
| | | |||||
| * | Improved Shader accuracy on Vertex and Geometry Shaders with FFMA, FMUL and FADD | FernandoS27 | 2018-10-28 | 2 | -6/+58 |
| | | |||||
* | | Implement sRGB Support, including workarounds for nvidia driver issues and QT sRGB support | Rodolfo Bogado | 2018-10-28 | 8 | -40/+197 |
| | | |||||
* | | Merge pull request #1594 from FreddyFunk/static-cast | bunnei | 2018-10-28 | 1 | -2/+2 |
|\ \ | |/ |/| | gl_rasterizer_cache: Fix compiler warning | ||||
| * | gl_rasterizer_cache: Fix compiler warning | Frederic Laing | 2018-10-27 | 1 | -2/+2 |
| | | |||||
* | | Merge pull request #1592 from bunnei/prim-restart | bunnei | 2018-10-27 | 5 | -1/+40 |
|\ \ | | | | | | | gl_rasterizer: Implement primitive restart. | ||||
| * | | gl_rasterizer: Implement primitive restart. | bunnei | 2018-10-26 | 5 | -1/+40 |
| |/ | |||||
* / | Implement Default Block Height for each format | FernandoS27 | 2018-10-27 | 1 | -0/+62 |
|/ | |||||
* | Merge pull request #1533 from FernandoS27/lmem | bunnei | 2018-10-26 | 3 | -1/+138 |
|\ | | | | | Implemented Shader Local Memory | ||||
| * | Implemented LD_L and ST_L | FernandoS27 | 2018-10-24 | 3 | -12/+112 |
| | | |||||
| * | Implement Shader Local Memory | FernandoS27 | 2018-10-24 | 1 | -0/+37 |
| | | |||||
* | | maxwell_3d: Add code for initializing register defaults. | bunnei | 2018-10-26 | 2 | -1/+21 |
| | | |||||
* | | gl_rasterizer: Implement depth range. | bunnei | 2018-10-26 | 4 | -13/+20 |
| | | |||||
* | | Merge pull request #1524 from FernandoS27/layers-fix | bunnei | 2018-10-25 | 3 | -72/+109 |
|\ \ | |/ |/| | rasterizer: Fix Layered Textures Loading and Cubemaps | ||||
| * | Fixed Layered Textures Loading and Cubemaps | FernandoS27 | 2018-10-23 | 3 | -72/+109 |
| | | |||||
* | | Merge pull request #1554 from FernandoS27/pointsize | bunnei | 2018-10-24 | 3 | -5/+28 |
|\ \ | | | | | | | Implement PointSize Output Attribute. | ||||
| * | | Implement PointSize | FernandoS27 | 2018-10-23 | 3 | -5/+28 |
| | | | |||||
* | | | decoders: Remove unused variable within SwizzledData() | Lioncash | 2018-10-24 | 1 | -1/+0 |
| | | | |||||
* | | | maxwell_3d: Remove unused variable within ProcessQueryGet() | Lioncash | 2018-10-24 | 1 | -1/+0 |
|/ / | |||||
* | | Merge pull request #1519 from ReinUsesLisp/vsetp | bunnei | 2018-10-23 | 2 | -75/+108 |
|\ \ | | | | | | | gl_shader_decompiler: Implement VSETP | ||||
| * | | gl_shader_decompiler: Implement VSETP | ReinUsesLisp | 2018-10-23 | 2 | -0/+26 |
| | | | |||||
| * | | gl_shader_decompiler: Abstract VMAD into a video subset | ReinUsesLisp | 2018-10-23 | 2 | -75/+82 |
| | | | |||||
* | | | Merge pull request #1539 from lioncash/dma | bunnei | 2018-10-23 | 3 | -19/+10 |
|\ \ \ | | | | | | | | | maxwell_dma: Silence compilation warnings | ||||
| * | | | engines/maxwell_*: Use nested namespace specifiers where applicable | Lioncash | 2018-10-20 | 3 | -12/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | These three source files are the only ones within the engines directory that don't use nested namespaces. We may as well change these over to keep things consistent. | ||||
| * | | | maxwell_dma: Make variables const where applicable within HandleCopy() | Lioncash | 2018-10-20 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | These are never modified, so we can make that assumption explicit. | ||||
| * | | | maxwell_dma: Make FlushAndInvalidate's size parameter a u64 | Lioncash | 2018-10-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | This prevents truncation warnings at the lambda's usage sites. | ||||
| * | | | maxwell_dma: Remove unused variables in HandleCopy() | Lioncash | 2018-10-20 | 1 | -3/+0 |
| | |/ | |/| | | | | | | | These pointer variables are never used, so we can get rid of them. | ||||
* | | | Merge pull request #1470 from FernandoS27/alpha_testing | bunnei | 2018-10-23 | 7 | -20/+87 |
|\ \ \ | | | | | | | | | Implemented Alpha Test using Shader Emulation | ||||
| * | | | Assert that multiple render targets are not set while alpha testing | FernandoS27 | 2018-10-22 | 3 | -3/+17 |
| | | | | |||||
| * | | | Use standard UBO and fix/stylize the code | FernandoS27 | 2018-10-22 | 8 | -91/+51 |
| | | | | |||||
| * | | | Cache uniform locations and restructure the implementation | FernandoS27 | 2018-10-22 | 3 | -33/+29 |
| | | | | |||||
| * | | | Remove SyncAlphaTest and clang format | FernandoS27 | 2018-10-22 | 4 | -8/+9 |
| | | | | |||||
| * | | | Added Alpha Func | FernandoS27 | 2018-10-22 | 2 | -3/+43 |
| | | | | |||||
| * | | | Implemented Alpha Testing | FernandoS27 | 2018-10-22 | 6 | -3/+59 |
| | | | | |||||
* | | | | Merge pull request #1512 from ReinUsesLisp/brk | bunnei | 2018-10-23 | 2 | -22/+43 |
|\ \ \ \ | |_|_|/ |/| | | | gl_shader_decompiler: Implement PBK and BRK | ||||
| * | | | gl_shader_decompiler: Implement PBK and BRK | ReinUsesLisp | 2018-10-18 | 2 | -22/+43 |
| | | | | |||||
* | | | | Merge pull request #1550 from FernandoS27/fmul32 | bunnei | 2018-10-23 | 2 | -3/+8 |
|\ \ \ \ | | | | | | | | | | | Added Saturation to FMUL32I | ||||
| * | | | | Added Saturation to FMUL32I | FernandoS27 | 2018-10-23 | 2 | -3/+8 |
| | |/ / | |/| | | |||||
* | | | | Merge pull request #1537 from lioncash/shader | bunnei | 2018-10-23 | 1 | -6/+7 |
|\ \ \ \ | |/ / / |/| | | | gl_shader_decompiler: Minor changes | ||||
| * | | | gl_shader_decompiler: Allow std::move to function in SetPredicate | Lioncash | 2018-10-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | If the variable being moved is const, then std::move will always perform a copy (since it can't actually move the data). | ||||
| * | | | gl_shader_decompiler: Get rid of variable shadowing warnings | Lioncash | 2018-10-20 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | A variable with the same name was previously declared in an outer scope. | ||||
| * | | | gl_shader_decompiler: Fix a few comment typos | Lioncash | 2018-10-20 | 1 | -3/+4 |
| | |/ | |/| | |||||
* | | | Merge pull request #1547 from FernandoS27/fix-fset | bunnei | 2018-10-22 | 2 | -30/+12 |
|\ \ \ | | | | | | | | | Fixed FSETP and FSET | ||||
| * | | | Fixed FSETP and FSET | FernandoS27 | 2018-10-22 | 2 | -30/+12 |
| |/ / | |||||
* / / | Fixed VAOs Float types only returning GL_FLOAT in cases that they had to return GL_HALF_FLOAT | FernandoS27 | 2018-10-22 | 1 | -2/+14 |
|/ / | |||||
* | | gl_shader_decompiler: Move position varying declaration back to gl_shader_gen | ReinUsesLisp | 2018-10-20 | 3 | -13/+9 |
| | | | | | | | | | | | | | | The intention of declaring them in gl_shader_decompiler was to be able to use blocks to implement geometry shaders. But that wasn't needed in the end and it caused issues when both vertex stages were being used, resulting in a redeclaration of "position". | ||||
* | | Merge pull request #1501 from ReinUsesLisp/half-float | bunnei | 2018-10-20 | 2 | -0/+458 |
|\ \ | | | | | | | gl_shader_decompiler: Implement H* instructions | ||||
| * | | gl_shader_decompiler: Implement HSET2_R | ReinUsesLisp | 2018-10-15 | 2 | -0/+62 |
| | | | |||||
| * | | gl_shader_decompiler: Implement HSETP2_R | ReinUsesLisp | 2018-10-15 | 2 | -0/+65 |
| | | | |||||
| * | | gl_shader_decompiler: Implement HFMA2 instructions | ReinUsesLisp | 2018-10-15 | 2 | -0/+85 |
| | | | |||||
| * | | gl_shader_decompiler: Implement HADD2_IMM and HMUL2_IMM | ReinUsesLisp | 2018-10-15 | 2 | -0/+73 |
| | | | |||||
| * | | gl_shader_decompiler: Implement non-immediate HADD2 and HMUL2 instructions | ReinUsesLisp | 2018-10-15 | 2 | -0/+75 |
| | | | |||||
| * | | gl_shader_decompiler: Setup base for half float unpacking and setting | ReinUsesLisp | 2018-10-15 | 2 | -0/+98 |
| | | | |||||
* | | | GPU: Improved implementation of maxwell DMA (Subv). | bunnei | 2018-10-19 | 3 | -17/+66 |
| | | | |||||
* | | | decoders: Introduce functions for un/swizzling subrects. | bunnei | 2018-10-19 | 2 | -0/+49 |
| | | | |||||
* | | | GPU: Invalidate destination address of kepler_memory writes. | bunnei | 2018-10-19 | 3 | -3/+17 |
| | | | |||||
* | | | fermi_2d: Add support for more accurate surface copies. | bunnei | 2018-10-19 | 2 | -3/+12 |
| | | | |||||
* | | | Merge pull request #1505 from FernandoS27/tex-3d | bunnei | 2018-10-18 | 4 | -2/+13 |
|\ \ \ | | | | | | | | | Implemented 3D Textures | ||||
| * | | | Clang format and other fixes | FernandoS27 | 2018-10-18 | 1 | -16/+0 |
| | | | | |||||
| * | | | Implement Reinterpret Surface, to accurately blit 3D textures | FernandoS27 | 2018-10-18 | 1 | -2/+4 |
| | | | | |||||
| * | | | Implement GetInRange in the Rasterizer Cache | FernandoS27 | 2018-10-18 | 1 | -0/+16 |
| | | | | |||||
| * | | | Implement 3D Textures | FernandoS27 | 2018-10-18 | 4 | -1/+10 |
| | | | | |||||
* | | | | Merge pull request #1489 from FernandoS27/fix-tlds | bunnei | 2018-10-18 | 1 | -1/+5 |
|\ \ \ \ | |/ / / |/| | | | shader_decompiler: Fix TLDS | ||||
| * | | | Fix TLDS | FernandoS27 | 2018-10-14 | 1 | -1/+5 |
| |/ / | |||||
* | | | Merge pull request #1497 from bunnei/flush-framebuffers | bunnei | 2018-10-18 | 8 | -174/+415 |
|\ \ \ | | | | | | | | | Implement flushing in the rasterizer cache | ||||
| * | | | gl_rasterizer_cache: Remove unnecessary block_depth=1 on Flush. | bunnei | 2018-10-18 | 1 | -1/+0 |
| | | | | |||||
| * | | | gl_rasterizer_cache: Remove unnecessary temporary buffer with unswizzle. | bunnei | 2018-10-18 | 1 | -5/+2 |
| | | | | |||||
| * | | | gl_rasterizer_cache: Use AccurateCopySurface for use_accurate_gpu_emulation. | bunnei | 2018-10-16 | 2 | -2/+18 |
| | | | | |||||
| * | | | config: Rename use_accurate_framebuffers -> use_accurate_gpu_emulation. | bunnei | 2018-10-16 | 3 | -6/+6 |
| | | | | | | | | | | | | | | | | - This will be used as a catch-all for slow-but-accurate GPU emulation paths. | ||||
| * | | | rasterizer_cache: Refactor to support in-order flushing. | bunnei | 2018-10-16 | 6 | -63/+116 |
| | | | | |||||
| * | | | gl_rasterizer_cache: Refactor to only call GetRegionEnd on surface creation. | bunnei | 2018-10-16 | 2 | -16/+23 |
| | | | | |||||
| * | | | gl_rasterizer_cache: Only flush when use_accurate_framebuffers is enabled. | bunnei | 2018-10-16 | 2 | -2/+13 |
| | | | | |||||
| * | | | gl_rasterizer_cache: Separate guest and host surface size managment. | bunnei | 2018-10-16 | 2 | -92/+94 |
| | | | | |||||
| * | | | gl_rasterizer_cache: Rename GetGLBytesPerPixel to GetBytesPerPixel. | bunnei | 2018-10-16 | 2 | -17/+18 |
| | | | | | | | | | | | | | | | | - This does not really have anything to do with OpenGL. | ||||
| * | | | gl_rasterizer_cache: Remove unused FlushSurface method. | bunnei | 2018-10-16 | 2 | -7/+0 |
| | | | | |||||
| * | | | gl_rasterizer: Implement flushing. | bunnei | 2018-10-16 | 1 | -1/+25 |
| | | | | |||||
| * | | | gl_rasterizer_cache: Remove usage of Memory::Read/Write functions. | bunnei | 2018-10-16 | 1 | -13/+8 |
| | | | | | | | | | | | | | | | | - These cannot be used within the cache, as they change cache state. | ||||
| * | | | gl_rasterizer_cache: Clamp cached surface size to mapped GPU region size. | bunnei | 2018-10-16 | 2 | -19/+37 |
| | | | | |||||
| * | | | memory_manager: Add a method for querying the end of a mapped GPU region. | bunnei | 2018-10-16 | 2 | -0/+11 |
| | | | | |||||
| * | | | rasterizer_cache: Reintroduce method for flushing. | bunnei | 2018-10-16 | 3 | -0/+23 |
| | | | | |||||
| * | | | gl_rasterizer_cache: Reintroduce code for handling swizzle and flush to guest RAM. | bunnei | 2018-10-16 | 2 | -28/+119 |
| | |/ | |/| | |||||
* | | | Merge pull request #1496 from FernandoS27/tex-array | bunnei | 2018-10-18 | 1 | -14/+55 |
|\ \ \ | |/ / |/| | | Implement Arrays on Tex Instruction | ||||
| * | | Implement Arrays on Tex Instruction | FernandoS27 | 2018-10-14 | 1 | -14/+55 |
| |/ | |||||
* | | shader_bytecode: Add Control Code enum 0xf | ReinUsesLisp | 2018-10-15 | 1 | -1/+1 |
| | | | | | | | | | | | | Control Code 0xf means to unconditionally execute the instruction. This value is passed to most BRA, EXIT and SYNC instructions (among others) but this may not always be the case. | ||||
* | | gl_shader_decompiler: Fixup style inconsistencies | ReinUsesLisp | 2018-10-15 | 1 | -5/+3 |
| | | |||||
* | | gl_rasterizer: Silence implicit cast warning in glBindBufferRange | ReinUsesLisp | 2018-10-15 | 1 | -1/+2 |
| | | |||||
* | | Merge pull request #1488 from Hexagon12/astc-types | bunnei | 2018-10-14 | 3 | -6/+32 |
|\ \ | | | | | | | video_core: Added ASTC 5x4; 8x5 types | ||||
| * | | Added ASTC 5x4; 8x5 | Hexagon12 | 2018-10-13 | 3 | -6/+32 |
| | | | |||||
* | | | Shorten the implementation of 3D swizzle to only 3 functions | FernandoS27 | 2018-10-14 | 1 | -70/+27 |
| | | | |||||
* | | | Fix a Crash on Zelda BotW and Splatoon 2, and simplified LoadGLBuffer | FernandoS27 | 2018-10-13 | 2 | -19/+2 |
| | | | |||||
* | | | Propagate depth and depth_block on modules using decoders | FernandoS27 | 2018-10-13 | 7 | -52/+64 |
| | | | |||||
* | | | Remove old Swizzle algorithms and use 3d Swizzle | FernandoS27 | 2018-10-13 | 1 | -93/+69 |
| | | | |||||
* | | | Implement Precise 3D Swizzle | FernandoS27 | 2018-10-13 | 1 | -3/+71 |
| | | | |||||
* | | | Implement Fast 3D Swizzle | FernandoS27 | 2018-10-13 | 1 | -2/+74 |
| |/ |/| | |||||
* | | Implemented helper function to correctly calculate a texture's size | FernandoS27 | 2018-10-12 | 2 | -0/+22 |
| | | |||||
* | | gl_shader_decompiler: Implement VMAD | ReinUsesLisp | 2018-10-11 | 2 | -0/+118 |
|/ | |||||
* | Merge pull request #1458 from FernandoS27/fix-render-target-block-settings | bunnei | 2018-10-11 | 5 | -18/+81 |
|\ | | | | | Fixed block height settings for RenderTargets and Depth Buffers | ||||
| * | Add memory Layout to Render Targets and Depth Buffers | FernandoS27 | 2018-10-10 | 3 | -21/+33 |
| | | |||||
| * | Fixed block height settings for RenderTargets and Depth Buffers, and added block width and block depth | FernandoS27 | 2018-10-10 | 5 | -12/+63 |
| | | |||||
* | | Merge pull request #1460 from FernandoS27/scissor_test | bunnei | 2018-10-10 | 3 | -1/+36 |
|\ \ | | | | | | | Implemented Scissor Testing | ||||
| * | | Implement Scissor Test | FernandoS27 | 2018-10-09 | 1 | -4/+9 |
| | | | |||||
| * | | Assert Scissor tests | FernandoS27 | 2018-10-09 | 3 | -1/+31 |
| |/ | |||||
* | | Merge pull request #1425 from ReinUsesLisp/geometry-shaders | bunnei | 2018-10-10 | 11 | -120/+543 |
|\ \ | | | | | | | gl_shader_decompiler: Implement geometry shaders | ||||
| * | | gl_shader_decompiler: Move position varying location from 15 to 0 and apply an offset | ReinUsesLisp | 2018-10-07 | 1 | -6/+10 |
| | | | |||||
| * | | gl_shader_decompiler: Implement geometry shaders | ReinUsesLisp | 2018-10-07 | 10 | -107/+522 |
| | | | |||||
| * | | video_core: Allow LabelGLObject to use extra info on any object | ReinUsesLisp | 2018-10-07 | 1 | -10/+14 |
| |/ | |||||
* / | gl_shader_decompiler: Remove unused variables in TMML's implementation | Lioncash | 2018-10-09 | 1 | -7/+3 |
|/ | | | | | Given "y" isn't always used, but "x" is, we can rearrange this to avoid unused variable warnings by changing the names of op_a and op_b | ||||
* | Merge pull request #1446 from bunnei/fast_fermi_copy | bunnei | 2018-10-07 | 8 | -40/+117 |
|\ | | | | | gl_rasterizer: Implement accelerated Fermi2D copies. | ||||
| * | fermi_2d: Implement simple copies with AccelerateSurfaceCopy. | bunnei | 2018-10-06 | 3 | -24/+36 |
| | | |||||
| * | gl_rasterizer: Add rasterizer cache code to handle accerated fermi copies. | bunnei | 2018-10-06 | 5 | -16/+60 |
| | | |||||
| * | gl_rasterizer_cache: Implement a simpler surface copy using glCopyImageSubData. | bunnei | 2018-10-06 | 1 | -0/+21 |
| | | |||||
* | | Merge pull request #1437 from FernandoS27/tex-mode2 | bunnei | 2018-10-07 | 6 | -69/+265 |
|\ \ | | | | | | | Implemented Depth Compare, Shadow Samplers and Texture Processing Modes for TEXS and TLDS | ||||
| * | | Implemented Depth Compare and Shadow Samplers | FernandoS27 | 2018-10-06 | 6 | -65/+224 |
| | | | |||||
| * | | Implemented Texture Processing Modes in TEXS and TLDS | FernandoS27 | 2018-10-03 | 1 | -5/+42 |
| | | | |||||
* | | | gl_rasterizer: Fixup undefined behaviour in SetupDraw | ReinUsesLisp | 2018-10-07 | 1 | -0/+1 |
| |/ |/| | |||||
* | | gl_rasterizer: Implement quads topology | ReinUsesLisp | 2018-10-04 | 8 | -46/+236 |
|/ | |||||
* | gl_rasterizer: Fixup unassigned point sizes | ReinUsesLisp | 2018-10-01 | 1 | -1/+4 |
| | |||||
* | Merge pull request #1330 from raven02/tlds | bunnei | 2018-10-01 | 1 | -7/+15 |
|\ | | | | | TLDS: Add 1D sampler | ||||
| * | Fix trailing whitespace | raven02 | 2018-09-30 | 1 | -1/+4 |
| | | |||||
| * | Merge branch 'master' into tlds | raven02 | 2018-09-19 | 24 | -195/+651 |
| |\ | |||||
| * | | Add 1D sampler for TLDS - TexelFetch (Mario Rabbids) | raven02 | 2018-09-17 | 1 | -7/+12 |
| | | | |||||
* | | | gl_rasterizer_cache: Fixes to how we do render to cubemap. | bunnei | 2018-09-30 | 2 | -32/+5 |
| | | | | | | | | | | | | - Fixes issues with Splatoon 2. | ||||
* | | | gl_rasterizer_cache: Add check for array rendering to cubemap texture. | bunnei | 2018-09-30 | 1 | -0/+8 |
| | | | |||||
* | | | gl_rasterizer_cache: Implement render to cubemap. | bunnei | 2018-09-30 | 3 | -119/+218 |
| | | | |||||
* | | | gl_shader_decompiler: TEXS: Implement TextureType::TextureCube. | bunnei | 2018-09-30 | 1 | -0/+8 |
| | | | |||||
* | | | gl_rasterizer_cache: Add support for SurfaceTarget::TextureCubemap. | bunnei | 2018-09-30 | 2 | -1/+36 |
| | | | |||||
* | | | gl_rasterizer_cache: Implement LoadGLBuffer for Texture2DArray. | bunnei | 2018-09-30 | 1 | -0/+8 |
| | | | |||||
* | | | gl_rasterizer_cache: Update BlitTextures to support non-Texture2D ColorTexture surfaces. | bunnei | 2018-09-30 | 1 | -23/+88 |
| | | | |||||
* | | | gl_rasterizer_cache: Track texture target and depth in the cache. | bunnei | 2018-09-30 | 1 | -2/+3 |
| | | | |||||
* | | | gl_rasterizer_cache: Workaround for Texture2D -> Texture2DArray scenario. | bunnei | 2018-09-30 | 3 | -6/+21 |
| | | | |||||
* | | | gl_rasterizer_cache: Keep track of surface 2D size separately from total size. | bunnei | 2018-09-30 | 2 | -32/+46 |
| | | | |||||
* | | | Merge pull request #1411 from ReinUsesLisp/point-size | bunnei | 2018-09-29 | 5 | -1/+27 |
|\ \ \ | | | | | | | | | video_core: Implement point_size and add point state sync | ||||
| * | | | video_core: Implement point_size and add point state sync | ReinUsesLisp | 2018-09-28 | 5 | -1/+27 |
| | | | | |||||
* | | | | Merge pull request #1406 from ReinUsesLisp/multibind-samplers | bunnei | 2018-09-29 | 5 | -8/+25 |
|\ \ \ \ | |/ / / |/| | | | gl_state: Pack sampler bindings into a single ARB_multi_bind | ||||
| * | | | gl_state: Pack sampler bindings into a single ARB_multi_bind | ReinUsesLisp | 2018-09-28 | 5 | -8/+25 |
| | | | | |||||
* | | | | Merge pull request #1377 from FernandoS27/faster-swizzle | bunnei | 2018-09-27 | 1 | -51/+66 |
|\ \ \ \ | |/ / / |/| | | | Improved Fast Swizzle and Legacy Swizzle | ||||
| * | | | Reverse stride align restriction on FastSwizzle due to lost performance | FernandoS27 | 2018-09-21 | 1 | -3/+2 |
| | | | | |||||
| * | | | Join both Swizzle methods within one interface function | FernandoS27 | 2018-09-21 | 1 | -11/+19 |
| | | | | |||||
| * | | | Standarized Legacy Swizzle to look alike FastSwizzle and use a Swizzling Table instead | FernandoS27 | 2018-09-21 | 1 | -42/+38 |
| | | | | |||||
| * | | | Remove same output bpp restriction on FastSwizzle | FernandoS27 | 2018-09-21 | 1 | -4/+5 |
| | | | | |||||
| * | | | Improved Legacy Swizzler to be better documented and work better | FernandoS27 | 2018-09-21 | 1 | -15/+21 |
| | | | | |||||
| * | | | Improved fast swizzle and removed restrictions to it | FernandoS27 | 2018-09-21 | 1 | -7/+12 |
| | | | | |||||
* | | | | video_core: Add asserts for CS, TFB and alpha testing | ReinUsesLisp | 2018-09-26 | 5 | -3/+92 |
| | | | | | | | | | | | | | | | | | | | | | | | | Add asserts for compute shader dispatching, transform feedback being enabled and alpha testing. These have in common that they'll probably break rendering without logging. | ||||
* | | | | Added glObjectLabels for renderdoc for textures and shader programs (#1384) | David | 2018-09-23 | 4 | -0/+48 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added glObjectLabels for renderdoc for textures and shader programs * Changed hardcoded "Texture" name to reflect the texture type instead * Removed string initialize | ||||
* | | | | correct BC6H | greggameplayer | 2018-09-23 | 1 | -2/+2 |
| | | | | |||||
* | | | | Merge pull request #1380 from lioncash/const | bunnei | 2018-09-22 | 1 | -8/+19 |
|\ \ \ \ | | | | | | | | | | | shader_bytecode: Make operator== and operator!= of IpaMode const qualified | ||||
| * | | | | shader_bytecode: Lay out the Ipa-related enums better | Lioncash | 2018-09-21 | 1 | -2/+12 |
| | | | | | | | | | | | | | | | | | | | | This is more consistent with the surrounding enums. | ||||
| * | | | | shader_bytecode: Make operator== and operator!= of IpaMode const qualified | Lioncash | 2018-09-21 | 1 | -6/+7 |
| |/ / / | | | | | | | | | | | | | | | | | These don't affect the state of the struct and can be const member functions. | ||||
* | | | | Merge pull request #1382 from lioncash/inc | bunnei | 2018-09-22 | 2 | -4/+1 |
|\ \ \ \ | | | | | | | | | | | gl_state: Remove unused type alias | ||||
| * | | | | gl_state: Remove unused type alias | Lioncash | 2018-09-22 | 2 | -4/+1 |
| |/ / / | | | | | | | | | | | | | | | | | | | | | This isn't used anywhere within the header, so we can remove it, along with the include that was previously necessary. This also uncovers an indirect include in the cpp file for the assertion macros. | ||||
* | | | | Merge pull request #1379 from lioncash/bitwise | bunnei | 2018-09-21 | 1 | -1/+1 |
|\ \ \ \ | | | | | | | | | | | gl_stream_buffer: Fix use of bitwise OR instead of logical OR in Map() | ||||
| * | | | | gl_stream_buffer: Fix use of bitwise OR instead of logical OR in Map() | Lioncash | 2018-09-21 | 1 | -1/+1 |
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was very likely intended to be a logical OR based off the conditioning and testing of inversion in one case. Even if this was intentional, this is the kind of non-obvious thing one should be clarifying with a comment. | ||||
* / / / | RasterizerGL: Use the correct framebuffer when clearing via the CLEAR_BUFFERS register. | Subv | 2018-09-21 | 1 | -1/+1 |
|/ / / | | | | | | | | | | | | | | | | Previously we were clearing the default backbuffer framebuffer. Found thanks to a Piglit test :) | ||||
* | / | gl_rasterizer: Fix StartAddress handling with indexed draw calls. | Markus Wick | 2018-09-19 | 1 | -6/+7 |
| |/ |/| | | | | | | | We uploaded the wrong data before. So the offset on the host GPU pointer may work for the first vertices, the last ones run out bounds. Let's just offset the upload instead. | ||||
* | | Merge pull request #1342 from lioncash/trunc | bunnei | 2018-09-19 | 1 | -4/+4 |
|\ \ | | | | | | | gl_shader_decompiler: Avoid truncation warnings within LD_A and ST_A code | ||||
| * | | gl_shader_decompiler: Avoid truncation warnings within LD_A and ST_A code | Lioncash | 2018-09-18 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | These are internally stored as u64 values, so using u32 here causes truncation warnings. Instead, we can just use u64 and preserve the bit width. | ||||
* | | | Merge pull request #1279 from FernandoS27/csetp | bunnei | 2018-09-19 | 2 | -21/+133 |
|\ \ \ | | | | | | | | | shader_decompiler: Implemented (Partialy) Control Codes and CSETP | ||||
| * | | | Implemented Internal Flags | FernandoS27 | 2018-09-18 | 1 | -13/+35 |
| | | | | |||||
| * | | | Implemented I2I.CC on the NEU control code, used by SMO | FernandoS27 | 2018-09-17 | 2 | -14/+18 |
| | | | | |||||
| * | | | Implemented CSETP | FernandoS27 | 2018-09-17 | 2 | -14/+49 |
| | | | | |||||
| * | | | Implemented Control Codes | FernandoS27 | 2018-09-17 | 2 | -0/+51 |
| |/ / | |||||
* | | | Merge pull request #1299 from FernandoS27/texture-sanatize | bunnei | 2018-09-19 | 2 | -3/+192 |
|\ \ \ | | | | | | | | | shader_decompiler: Asserts for Texture Instructions | ||||
| * | | | Added asserts for texture misc modes to texture instructions | FernandoS27 | 2018-09-17 | 1 | -2/+45 |
| | | | | |||||
| * | | | Added texture misc modes to texture instructions | FernandoS27 | 2018-09-17 | 1 | -1/+147 |
| |/ / | |||||
* | | | Merge pull request #1290 from FernandoS27/shader-header | bunnei | 2018-09-18 | 3 | -24/+111 |
|\ \ \ | |/ / |/| | | Implemented (Partialy) Shader Header | ||||
| * | | Replace old FragmentHeader for the new Header | FernandoS27 | 2018-09-11 | 2 | -31/+18 |
| | | | |||||
| * | | Implemented (Partialy) Shader Header | FernandoS27 | 2018-09-11 | 3 | -2/+102 |
| | | | |||||
* | | | Merge pull request #1311 from FernandoS27/fast-swizzle | bunnei | 2018-09-17 | 1 | -2/+49 |
|\ \ \ | | | | | | | | | Optimized Texture Swizzling | ||||
| * | | | Optimized Texture Swizzling | FernandoS27 | 2018-09-14 | 1 | -2/+49 |
| | | | | |||||
* | | | | Merge pull request #1316 from lioncash/shadow | bunnei | 2018-09-17 | 1 | -2/+0 |
|\ \ \ \ | | | | | | | | | | | gl_shader_decompiler: Get rid of variable shadowing within LEA instructions | ||||
| * | | | | gl_shader_decompiler: Get rid of variable shadowing within LEA instructions | Lioncash | 2018-09-14 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | These variables are already defined within an outer scope. | ||||
* | | | | | Merge pull request #1326 from FearlessTobi/port-4182 | bunnei | 2018-09-17 | 20 | -133/+138 |
|\ \ \ \ \ | | | | | | | | | | | | | Port #4182 from Citra: "Prefix all size_t with std::" | ||||
| * | | | | | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 2018-09-15 | 20 | -133/+138 |
| |/ / / / | |||||
* | | | | | Merge pull request #1329 from raven02/bgr5a1u | bunnei | 2018-09-17 | 2 | -0/+4 |
|\ \ \ \ \ | | | | | | | | | | | | | Implement RenderTargetFormat::BGR5A1_UNORM | ||||
| * | | | | | Implement RenderTargetFormat::BGR5A1_UNORM (Pokken Tournament DX) | raven02 | 2018-09-15 | 2 | -0/+4 |
| |/ / / / | |||||
* | | | / | Implement ASTC_2D_8X8 (Bayonetta 2) | raven02 | 2018-09-16 | 3 | -6/+20 |
| |_|_|/ |/| | | | |||||
* | | | | Merge pull request #1273 from Subv/ld_sizes | bunnei | 2018-09-15 | 2 | -7/+58 |
|\ \ \ \ | | | | | | | | | | | Shaders: Implemented multiple-word loads and stores to and from attribute memory. | ||||
| * | | | | Shaders: Implemented multiple-word loads and stores to and from attribute memory. | Subv | 2018-09-15 | 2 | -7/+58 |
| |/ / / | | | | | | | | | | | | | This seems to be an optimization performed by nouveau. | ||||
* | | | | Merge pull request #1271 from Subv/kepler_engine | bunnei | 2018-09-15 | 6 | -0/+146 |
|\ \ \ \ | |/ / / |/| | | | GPU: Basic implementation of the Kepler Inline Memory engine (p2mf). | ||||
| * | | | GPU: Basic implementation of the Kepler Inline Memory engine (p2mf). | Subv | 2018-09-12 | 6 | -0/+146 |
| | | | | | | | | | | | | | | | | This engine writes data from a FIFO register into the configured address. | ||||
* | | | | Use ARB_multi_bind for uniform buffers (#1287) | ReinUsesLisp | 2018-09-13 | 2 | -3/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | * gl_rasterizer: use ARB_multi_bind for uniform buffers * address feedback | ||||
* | | | | gl_rasterizer_cache: B5G6R5U should use GL_RGB8 as an internal format. | bunnei | 2018-09-13 | 1 | -1/+1 |
| |/ / |/| | | | | | | | | - Fixes a regression with Sonic Mania with ARB_texture_storage. | ||||
* | | | Merge pull request #1263 from FernandoS27/tex-mode | bunnei | 2018-09-12 | 2 | -1/+43 |
|\ \ \ | |/ / |/| | | shader_decompiler: Implemented (Partially) Texture Processing Modes | ||||
| * | | Implemented Texture Processing Modes | FernandoS27 | 2018-09-12 | 2 | -1/+43 |
| |/ | |||||
* | | Merge pull request #1278 from tech4me/bg-color-fix | bunnei | 2018-09-12 | 3 | -0/+8 |
|\ \ | | | | | | | Port Citra #4047 & #4052: add change background color support | ||||
| * | | Port Citra #4047 & #4052: add change background color support | tech4me | 2018-09-09 | 3 | -0/+8 |
| | | | |||||
* | | | Merge pull request #1295 from bunnei/accurate-copies | bunnei | 2018-09-12 | 2 | -18/+12 |
|\ \ \ | | | | | | | | | gl_rasterizer_cache: Improve accuracy of caching and copies. | ||||
| * | | | gl_rasterizer_cache: Always blit on recreate, regardless of format. | bunnei | 2018-09-12 | 1 | -6/+10 |
| | | | | | | | | | | | | | | | | - Fixes several rendering issues with Super Mario Odyssey. | ||||
| * | | | gl_shader_cache: Remove cache_width/cache_height. | bunnei | 2018-09-12 | 2 | -12/+2 |
| | |/ | |/| | | | | | | | | | | - This was once an optimization, but we no longer need it with the cache reserve. - This is also inaccurate. | ||||
* | | | Merge pull request #1294 from degasus/optimizations | bunnei | 2018-09-12 | 1 | -11/+8 |
|\ \ \ | | | | | | | | | gl_rasterizer: Use ARB_texture_storage. | ||||
| * | | | gl_rasterizer: Use ARB_texture_storage. | Markus Wick | 2018-09-11 | 1 | -11/+8 |
| |/ / | | | | | | | | | | | | | | | | | | | | | | It allows us to use texture views and it reduces the overhead within the GPU driver. But it disallows us to reallocate the texture, but we don't do so anyways. In the end, it is the new way to allocate textures, so there is no need to use the old way. | ||||
* | | | Implemented LEA and PSET | FernandoS27 | 2018-09-11 | 1 | -0/+91 |
| | | | |||||
* | | | Implemented encodings for LEA and PSET | FernandoS27 | 2018-09-11 | 1 | -0/+64 |
|/ / | |||||
* | | Fixed renderdoc input/output textures not working due to render targets | David Marcec | 2018-09-11 | 2 | -2/+9 |
| | | |||||
* | | Merge pull request #1286 from bunnei/multi-clear | bunnei | 2018-09-11 | 2 | -50/+66 |
|\ \ | | | | | | | gl_rasterizer: Implement clear for non-zero render targets. | ||||
| * | | gl_rasterizer: Implement clear for non-zero render targets. | bunnei | 2018-09-10 | 2 | -50/+66 |
| | | | | | | | | | | | | - Several misc. changes to ConfigureFramebuffers in support of this. | ||||
* | | | Merge pull request #1285 from bunnei/depth-fix | bunnei | 2018-09-11 | 1 | -6/+22 |
|\ \ \ | | | | | | | | | gl_rasterizer_cache: Only use depth for applicable texture formats. | ||||
| * | | | gl_rasterizer_cache: Only use depth for applicable texture formats. | bunnei | 2018-09-10 | 1 | -6/+22 |
| |/ / | | | | | | | | | | - Fixes an issue with Octopath Traveler leaving stale data here. | ||||
* | | | Merge pull request #1284 from bunnei/bgra8_srgb | bunnei | 2018-09-11 | 3 | -0/+4 |
|\ \ \ | | | | | | | | | gl_rasterizer_cache: Implement RenderTargetFormat::BGRA8_SRGB. | ||||
| * | | | gl_rasterizer_cache: Implement RenderTargetFormat::BGRA8_SRGB. | bunnei | 2018-09-10 | 3 | -0/+4 |
| |/ / | | | | | | | | | | - Used by Octopath Traveler (with multiple render targets). | ||||
* | | | video_core: Refactor command_processor. | Markus Wick | 2018-09-10 | 2 | -44/+42 |
| | | | | | | | | | | | | Inline the WriteReg helper as it is called ~20k times per frame. | ||||
* | | | video_core: Move command buffer loop. | Markus Wick | 2018-09-10 | 3 | -46/+72 |
| | | | | | | | | | | | | This moves the hot loop into video_core. This refactoring shall reduce the CPU overhead of calling ProcessCommandList. | ||||
* | | | rasterizer: Drop unused handler. | Markus Wick | 2018-09-10 | 4 | -8/+0 |
|/ / | | | | | | | | | | | | | | | This virtual function is called in a very hot spot, and it does nothing. If this kind of feature is required, please be more specific and add callbacks in the switch statement within Maxwell3D::WriteReg. There is no point in having another switch statement within the rasterizer. | ||||
* | | gl_rasterizer: Implement multiple color attachments. | bunnei | 2018-09-10 | 5 | -132/+95 |
| | | |||||
* | | Merge pull request #1268 from FernandoS27/tmml | bunnei | 2018-09-10 | 2 | -5/+67 |
|\ \ | | | | | | | shader_decompiler: Implemented TMML | ||||
| * | | Implemented TMML | FernandoS27 | 2018-09-10 | 2 | -5/+67 |
| | | | |||||
* | | | Merge pull request #1272 from Subv/dma_2d | bunnei | 2018-09-10 | 1 | -2/+10 |
|\ \ \ | | | | | | | | | GPU/DMA: Partially implemented the 'enable_2d' bit in the DMA engine. | ||||
| * | | | GPU/DMA: Partially implemented the 'enable_2d' bit in the DMA engine. | Subv | 2018-09-08 | 1 | -2/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | When not set, this tells the GPU to only use the X size when performing a DMA copy. This is only implemented for linear->linear and tiled->tiled copies. Conversion copies still retain the assert. This bit is unset by some games for various purposes, and by nouveau when copying the vertex buffers. | ||||
* | | | | Merge pull request #1280 from zero334/improvements | bunnei | 2018-09-10 | 5 | -89/+101 |
|\ \ \ \ | |_|/ / |/| | | | video_core: fixed arithmetic overflow warnings & improved code style | ||||
| * | | | video_core: fixed arithmetic overflow warnings & improved code style | Patrick Elsässer | 2018-09-09 | 5 | -89/+101 |
| | |/ | |/| | | | | | | | | | | | | | | | | | | | - Fixed all warnings, for renderer_opengl items, which were indicating a possible incorrect behavior from integral promotion rules and types larger than those in which arithmetic is typically performed. - Added const for variables where possible and meaningful. - Added constexpr where possible. | ||||
* | | | Implemented TXQ dimension query type, used by SMO. | FernandoS27 | 2018-09-09 | 2 | -1/+36 |
| | | | |||||
* | | | Change name of TEXQ to TXQ, in order to match NVIDIA's naming | FernandoS27 | 2018-09-09 | 1 | -2/+2 |
|/ / | |||||
* | | Merge pull request #1256 from bunnei/tex-target-support | bunnei | 2018-09-08 | 11 | -229/+422 |
|\ \ | |/ |/| | Initial support for non-2D textures | ||||
| * | gl_rasterizer_cache: Improve accuracy of RecreateSurface for non-2D textures. | bunnei | 2018-09-08 | 2 | -27/+45 |
| | | |||||
| * | maxwell_3d: Remove assert that no longer applies. | bunnei | 2018-09-08 | 1 | -4/+0 |
| | | |||||
| * | gl_rasterizer_cache: Partially implement several non-2D texture types. | bunnei | 2018-09-08 | 1 | -30/+111 |
| | | |||||
| * | gl_shader_decompiler: Partially implement several non-2D texture types (Subv). | bunnei | 2018-09-08 | 2 | -32/+143 |
| | | |||||
| * | gl_rasterizer: Implement texture wrap mode p. | bunnei | 2018-09-08 | 2 | -2/+8 |
| | | |||||
| * | gl_rasterizer_cache: Track texture depth. | bunnei | 2018-09-08 | 3 | -4/+15 |
| | | |||||
| * | gl_rasterizer_cache: Remove impl. of FlushGLBuffer. | bunnei | 2018-09-08 | 1 | -34/+1 |
| | | | | | | | | - Will not work for non-2d textures, and was not used anyways. | ||||
| * | gl_rasterizer_cache: Keep track of texture type per surface. | bunnei | 2018-09-08 | 3 | -32/+84 |
| | | |||||
| * | gl_rasterizer_cache: Remove unused DownloadGLTexture. | bunnei | 2018-09-08 | 2 | -51/+0 |
| | | |||||
| * | gl_state: Keep track of texture target. | bunnei | 2018-09-08 | 5 | -26/+28 |
| | | |||||
* | | gl_rasterizer: Use baseInstance instead of moving the buffer points. | bunnei | 2018-09-08 | 1 | -21/+25 |
| | | | | | | | | | | | | | | This hopefully helps our cache not to redundant upload the vertex buffer. # Conflicts: # src/video_core/renderer_opengl/gl_rasterizer.cpp | ||||
* | | video_core: Arithmetic overflow warning fix for gl_rasterizer (#1262) | Patrick Elsässer | 2018-09-08 | 1 | -12/+14 |
|/ | | | | | | | | | | | | | | | * video_core: Arithmetic overflow fix for gl_rasterizer - Fixed warnings, which were indicating incorrect behavior from integral promotion rules and types larger than those in which arithmetic is typically performed. - Added const for variables where possible and meaningful. * Changed the casts from C to C++ style Changed the C-style casts to C++ casts as proposed. Took also care about signed / unsigned behaviour. | ||||
* | Merge pull request #1252 from lioncash/header | bunnei | 2018-09-07 | 1 | -0/+1 |
|\ | | | | | video_core/CMakeLists: Add missing gl_buffer_cache.h | ||||
| * | video_core/CMakeLists: Add missing gl_buffer_cache.h | Lioncash | 2018-09-06 | 1 | -0/+1 |
| | | | | | | | | | | Without this, the header file won't show up by default within IDEs such as Visual Studio. | ||||
* | | Merge pull request #1253 from lioncash/explicit | bunnei | 2018-09-07 | 2 | -8/+10 |
|\ \ | | | | | | | video_core/gl_buffer_cache: Minor tidying changes | ||||
| * | | gl_buffer_cache: Default initialize member variables | Lioncash | 2018-09-06 | 1 | -3/+3 |
| | | | | | | | | | | | | Ensures that the cache always has a deterministic initial state. | ||||
| * | | gl_buffer_cache: Make GetHandle() a const member function | Lioncash | 2018-09-06 | 2 | -2/+2 |
| | | | | | | | | | | | | | | | GetHandle() internally calls GetHandle() on the stream_buffer instance, which is a const member function, so this can be made const as well. | ||||
| * | | gl_buffer_cache: Remove unnecessary includes | Lioncash | 2018-09-06 | 2 | -2/+4 |
| | | | |||||
| * | | gl_buffer_cache: Make constructor explicit | Lioncash | 2018-09-06 | 1 | -1/+1 |
| |/ | | | | | | | Implicit conversions during construction isn't desirable here. | ||||
* | | Merge pull request #1255 from bunnei/minor-opt | bunnei | 2018-09-07 | 1 | -4/+2 |
|\ \ | | | | | | | gl_rasterizer: Call state.Apply only once on SetupShaders. | ||||
| * | | gl_rasterizer: Call state.Apply only once on SetupShaders. | bunnei | 2018-09-06 | 1 | -4/+2 |
| |/ | |||||
* / | gl_shader_decompiler: Implement saturate mode for IPA. | bunnei | 2018-09-06 | 1 | -1/+5 |
|/ | |||||
* | gl_shader_gen: Initialize position. | Markus Wick | 2018-09-06 | 1 | -0/+1 |
| | | | | | IMO the old code is fine, but nvidia raises shader compiler warnings. Trivial fix through... | ||||
* | Merge pull request #1243 from degasus/VAO_cache | bunnei | 2018-09-06 | 3 | -53/+60 |
|\ | | | | | gl_rasterizer: Implement a VAO cache. | ||||
| * | gl_rasterizer: Implement a VAO cache. | Markus Wick | 2018-09-05 | 3 | -53/+60 |
| | | | | | | | | | | | | This patch caches VAO objects instead of re-emiting all pointers per draw call. Configuring this pointers is known as a fast task, but it yields too many GL calls. So for better performance, just bind the VAO instead of 16 pointers. | ||||
* | | Merge pull request #1244 from FernandoS27/ipa | bunnei | 2018-09-06 | 2 | -47/+98 |
|\ \ | | | | | | | shader_decompiler: Implemented IPA Properly (Stage 1) | ||||
| * | | Implemented IPA Properly | FernandoS27 | 2018-09-06 | 2 | -47/+98 |
| | | | |||||
* | | | gl_rasterizer: Skip TODO log. | Markus Wick | 2018-09-05 | 1 | -1/+1 |
| |/ |/| | | | | | | | | | | | This is called ~3k times per frame in SMO ingame. My laptop spends ~3ms per frame on allocating and freeing this string. Let's just stop printing this kind of redundant information. | ||||
* | | renderer_opengl: Implement a buffer cache. | Markus Wick | 2018-09-05 | 5 | -86/+182 |
|/ | | | | | | | | | The idea of this cache is to avoid redundant uploads. So we are going to cache the uploaded buffers within the stream_buffer and just reuse the old pointers. The next step is to implement a VBO cache on GPU memory, but for now, I want to check the overhead of the cache management. Fetching the buffer over PCI-E should be quite fast. | ||||
* | gl_shader_cache: Use an u32 for the binding point cache. | Markus Wick | 2018-09-04 | 4 | -15/+23 |
| | | | | | | | The std::string generation with its malloc and free requirement was a noticeable overhead. Also switch to an ordered_map to avoid the std::hash call. As those maps usually have a size of two elements, the lookup time shall not matter. | ||||
* | Merge pull request #1237 from degasus/optimizations | bunnei | 2018-09-04 | 2 | -4/+4 |
|\ | | | | | Optimizations | ||||
| * | command_processor: Use std::array for bound_engines. | Markus Wick | 2018-09-04 | 2 | -4/+4 |
| | | | | | | | | | | subchannel is a 3 bit field. So there must not be more than 8 bound engines. And using a hashmap for up to 8 values is a bit overpowered. | ||||
* | | Merge pull request #1232 from lioncash/copy | bunnei | 2018-09-04 | 1 | -1/+1 |
|\ \ | | | | | | | gl_shader_decompiler: Use used_shaders member variable directly within GenerateDeclarations() | ||||
| * | | gl_shader_decompiler: Use used_shaders member variable directly within GenerateDeclarations() | Lioncash | 2018-09-02 | 1 | -1/+1 |
| |/ | | | | | | | | | Using the getter function intended for external code here makes an unnecessary copy of the already-accessible used_shaders vector. | ||||
* / | Update microprofile scopes. | Markus Wick | 2018-09-04 | 1 | -3/+11 |
|/ | | | | | | Blame the subsystems which deserve the blame :) The updated list is not complete, just the ones I've spotted on random sampling the stack trace. | ||||
* | Merge pull request #1213 from DarkLordZach/octopath-fs | bunnei | 2018-09-02 | 1 | -2/+3 |
|\ | | | | | filesystem/maxwell_3d: Various changes to boot Project Octopath Traveller | ||||
| * | maxwell_3d: Use CoreTiming for query timestamp | Zach Hilman | 2018-09-01 | 1 | -2/+3 |
| | | |||||
* | | Merge pull request #1215 from ogniK5377/texs-nodep-assert | bunnei | 2018-09-02 | 2 | -0/+3 |
|\ \ | | | | | | | Added assert for TEXS nodep | ||||
| * | | Added assert for TEXS nodep | David Marcec | 2018-09-01 | 2 | -0/+3 |
| |/ | |||||
* | | Merge pull request #1214 from ogniK5377/ipa-assert | bunnei | 2018-09-02 | 2 | -6/+13 |
|\ \ | | | | | | | Added better asserts to IPA, Renamed IPA modes to match mesa | ||||
| * | | Added better asserts to IPA, Renamed IPA modes to match mesa | David Marcec | 2018-09-01 | 2 | -6/+13 |
| |/ | | | | | | | | | | | | | | | | | | | IpaMode is changed to IpaInterpMode IpaMode is suppose to be 2 bits not 3 Added IpaSampleMode Added Saturate Renamed modes based on https://github.com/mesa3d/mesa/blob/d27c7918916cdc8092959124955f887592e37d72/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp#L2530 | ||||
* | | Merge pull request #1216 from ogniK5377/ffma-assert | bunnei | 2018-09-02 | 2 | -0/+9 |
|\ \ | | | | | | | Added FFMA asserts and missing fields | ||||
| * | | Removed saturate assert | David Marcec | 2018-09-01 | 2 | -2/+0 |
| | | | | | | | | | | | | Saturate already implemented | ||||
| * | | Changed tab5980_0 default from 0 -> 1 | David Marcec | 2018-09-01 | 1 | -2/+2 |
| | | | |||||
| * | | Added FFMA asserts | David Marcec | 2018-09-01 | 2 | -0/+11 |
| |/ | |||||
* | | Removed saturate assert | David Marcec | 2018-09-01 | 2 | -2/+0 |
| | | | | | | | | Unneeded as we already implement it | ||||
* | | Added FMUL asserts | David Marcec | 2018-09-01 | 2 | -0/+15 |
|/ | |||||
* | core/core: Replace includes with forward declarations where applicable | Lioncash | 2018-08-31 | 3 | -4/+4 |
| | | | | | | | | | | | The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers. | ||||
* | gl_rasterizer_cache: Use accurate framebuffer setting for accurate copies. | bunnei | 2018-08-31 | 2 | -73/+54 |
| | |||||
* | gl_rasterizer_cache: Also use reserve cache for RecreateSurface. | bunnei | 2018-08-31 | 2 | -24/+18 |
| | |||||
* | rasterizer_cache: Use boost::interval_map for a more accurate cache. | bunnei | 2018-08-31 | 1 | -33/+45 |
| | |||||
* | gl_renderer: Cache textures, framebuffers, and shaders based on CPU address. | bunnei | 2018-08-31 | 8 | -100/+53 |
| | |||||
* | gl_rasterizer: Fix issues with the rasterizer cache. | bunnei | 2018-08-31 | 4 | -46/+57 |
| | | | | | - Use a single cached page map. - Fix calculation of ending page. | ||||
* | Implement BC6H_UF16 & BC6H_SF16 (#1092) | greggameplayer | 2018-08-31 | 3 | -31/+55 |
| | | | | | | | | | * Implement BC6H_UF16 & BC6H_SF16 Require by ARMS * correct coding style * correct coding style part 2 | ||||
* | Merge pull request #1204 from lioncash/pimpl | bunnei | 2018-08-31 | 1 | -3/+4 |
|\ | | | | | core: Make the main System class use the PImpl idiom | ||||
| * | core: Make the main System class use the PImpl idiom | Lioncash | 2018-08-31 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | core.h is kind of a massive header in terms what it includes within itself. It includes VFS utilities, kernel headers, file_sys header, ARM-related headers, etc. This means that changing anything in the headers included by core.h essentially requires you to rebuild almost all of core. Instead, we can modify the System class to use the PImpl idiom, which allows us to move all of those headers to the cpp file and forward declare the bulk of the types that would otherwise be included, reducing compile times. This change specifically only performs the PImpl portion. | ||||
* | | Merge pull request #1207 from degasus/hotfix | bunnei | 2018-08-31 | 1 | -1/+1 |
|\ \ | | | | | | | Report correct shader size. | ||||
| * | | Report correct shader size. | Markus Wick | 2018-08-31 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | Seems like this was an oversee in regards to 1fd979f50a9f4c21fa8cafba7268d959e3076924 It changed GLShader::ProgramCode to a std::vector, so sizeof is wrong. | ||||
* | | | Added predicate comparison GreaterEqualWithNan | Hexagon12 | 2018-08-31 | 2 | -3/+4 |
|/ / | |||||
* | | gl_shader_decompiler: Implement POPC (#1203) | Laku | 2018-08-31 | 2 | -0/+19 |
| | | | | | | | | | | | | * Implement POPC * implement invert | ||||
* | | Merge pull request #1200 from bunnei/improve-ipa | bunnei | 2018-08-30 | 2 | -1/+39 |
|\ \ | |/ |/| | gl_shader_decompiler: Improve IPA for Pass mode with Position attribute. | ||||
| * | gl_shader_decompiler: Improve IPA for Pass mode with Position attribute. | bunnei | 2018-08-29 | 2 | -1/+39 |
| | | |||||
* | | Shaders: Implemented IADD3 | tech4me | 2018-08-29 | 2 | -1/+84 |
|/ | |||||
* | Merge pull request #1193 from lioncash/priv | bunnei | 2018-08-28 | 4 | -16/+30 |
|\ | | | | | gpu: Make memory_manager private | ||||
| * | gpu: Make memory_manager private | Lioncash | 2018-08-28 | 4 | -16/+30 |
| | | | | | | | | | | | | | | | | | | | | Makes the class interface consistent and provides accessors for obtaining a reference to the memory manager instance. Given we also return references, this makes our more flimsy uses of const apparent, given const doesn't propagate through pointers in the way one would typically expect. This makes our mutable state more apparent in some places. | ||||
* | | Merge pull request #1192 from lioncash/unused | bunnei | 2018-08-28 | 1 | -2/+0 |
|\ \ | | | | | | | gl_rasterizer: Remove unused variables | ||||
| * | | gl_rasterizer: Remove unused variables | Lioncash | 2018-08-28 | 1 | -2/+0 |
| |/ | |||||
* / | gl_shader_cache: Remove unused program_code vector in GetShaderAddress() | Lioncash | 2018-08-28 | 1 | -2/+1 |
|/ | | | | | | | | Given std::vector is a type with a non-trivial destructor, this variable cannot be optimized away by the compiler, even if unused. Because of that, something that was intended to be fairly lightweight, was actually allocating 32KB and deallocating it at the end of the function. | ||||
* | renderer_opengl: Implement a new shader cache. | bunnei | 2018-08-28 | 9 | -285/+250 |
| | |||||
* | gl_rasterizer_cache: Update to use RasterizerCache base class. | bunnei | 2018-08-28 | 3 | -132/+20 |
| | |||||
* | video_core: Add RasterizerCache class for common cache management code. | bunnei | 2018-08-28 | 2 | -0/+117 |
| | |||||
* | Merge pull request #1169 from Lakumakkara/sel | bunnei | 2018-08-28 | 1 | -1/+1 |
|\ | | | | | shader_bytecode: fix SEL_IMM bitstring | ||||
| * | fix SEL_IMM bitstring | Laku | 2018-08-24 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #1174 from lioncash/debug | bunnei | 2018-08-27 | 2 | -26/+3 |
|\ \ | | | | | | | debug_utils: Minor individual interface changes | ||||
| * | | debug_utils: Remove unused includes | Lioncash | 2018-08-25 | 2 | -23/+0 |
| | | | | | | | | | | | | | | | Quite a bit of these aren't necessary directly within the debug_utils header and can be removed or included where actually necessary. | ||||
| * | | debug_utils: Make BreakpointObserver class' constructor explicit | Lioncash | 2018-08-25 | 1 | -1/+1 |
| | | | | | | | | | | | | Avoids implicit conversions. | ||||
| * | | debug_utils: Initialize active_breakpoint member of DebugContext | Lioncash | 2018-08-25 | 1 | -2/+2 |
| | | | | | | | | | | | | Ensures that all class members are initialized. | ||||
* | | | Merge pull request #1173 from lioncash/batch | bunnei | 2018-08-25 | 1 | -4/+4 |
|\ \ \ | | | | | | | | | maxwell3d: Move FinishedPrimitiveBatch event after AcceleratedDrawBatch() | ||||
| * | | | maxwell3d: Move FinishedPrimitiveBatch event after AcceleratedDrawBatch() | Lioncash | 2018-08-25 | 1 | -4/+4 |
| |/ / | | | | | | | | | | | | | The start and finish events should likely not be right after one another like this, otherwise the batch will appear to complete immediately | ||||
* | | | Merge pull request #1167 from lioncash/assert | bunnei | 2018-08-25 | 1 | -1/+2 |
|\ \ \ | |_|/ |/| | | gl_rasterizer: Correct assertion condition in SyncLogicOpState() | ||||
| * | | gl_rasterizer: Correct assertion condition in SyncLogicOpState() | Lioncash | 2018-08-24 | 1 | -1/+2 |
| |/ | | | | | | | | | Previously the assert would always be hit, since it was the equivalent of: array == nullptr, which is never true. | ||||
* / | Shaders: Added decodings for IADD3 instructions | tech4me | 2018-08-23 | 1 | -0/+6 |
|/ | |||||
* | Merge pull request #1160 from bunnei/surface-reserve | bunnei | 2018-08-23 | 2 | -17/+91 |
|\ | | | | | gl_rasterizer_cache: Several improvements | ||||
| * | gl_rasterizer_cache: Blit when possible on RecreateSurface. | bunnei | 2018-08-23 | 1 | -5/+12 |
| | | |||||
| * | gl_rasterizer_cache: Reserve surfaces that have already been created for later use. | bunnei | 2018-08-23 | 2 | -3/+61 |
| | | |||||
| * | gl_rasterizer_cache: Remove assert for RecreateSurface type. | bunnei | 2018-08-23 | 1 | -1/+0 |
| | | |||||
| * | gl_rasterizer_cache: Implement compressed texture copies. | bunnei | 2018-08-23 | 1 | -8/+18 |
| | | |||||
* | | gl_rasterizer: Implement stencil test. | bunnei | 2018-08-23 | 3 | -4/+58 |
| | | | | | | | | - Used by Splatoon 2. | ||||
* | | gl_rasterizer: Implement partial color clear and stencil clear. | bunnei | 2018-08-23 | 1 | -12/+42 |
| | | |||||
* | | maxwell_3d: Update to include additional stencil registers. | bunnei | 2018-08-23 | 1 | -20/+50 |
| | | |||||
* | | gl_state: Update to handle stencil front/back face separately. | bunnei | 2018-08-23 | 2 | -33/+38 |
|/ | |||||
* | Merge pull request #1157 from lioncash/vec | bunnei | 2018-08-23 | 2 | -11/+16 |
|\ | | | | | gl_shader_gen: Use a std::vector to represent program code instead of std::array | ||||
| * | gl_shader_gen: Make ShaderSetup's constructor explicit | Lioncash | 2018-08-22 | 1 | -1/+1 |
| | | | | | | | | Prevents implicit conversions. | ||||
| * | gl_shader_gen: Use a std::vector to represent program code instead of std::array | Lioncash | 2018-08-22 | 2 | -11/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | While convenient as a std::array, it's also quite a large set of data as well (32KB). It being an array also means data cannot be std::moved. Any situation where the code is being set or relocated means that a full copy of that 32KB data must be done. If we use a std::vector we do need to allocate on the heap, however, it does allow us to std::move the data we have within the std::vector into another std::vector instance, eliminating the need to always copy the program data (as std::move in this case would just transfer the pointers and bare necessities over to the new vector instance). | ||||
* | | Merge pull request #1156 from Lakumakkara/lop3 | bunnei | 2018-08-23 | 2 | -0/+60 |
|\ \ | | | | | | | gl_shader_decompiler: Implement LOP3 | ||||
| * | | more fixes | Laku | 2018-08-22 | 1 | -6/+7 |
| | | | |||||
| * | | fixes | Laku | 2018-08-22 | 1 | -6/+12 |
| | | | |||||
| * | | remove debug logging | Laku | 2018-08-22 | 1 | -2/+0 |
| | | | |||||
| * | | implement lop3 | Laku | 2018-08-22 | 2 | -0/+55 |
| |/ | |||||
* / | renderer_opengl: Namespace OpenGL code | Lioncash | 2018-08-22 | 21 | -23/+70 |
|/ | | | | | | | Namespaces all OpenGL code under the OpenGL namespace. Prevents polluting the global namespace and allows clear distinction between other renderers' code in the future. | ||||
* | Merge pull request #840 from FearlessTobi/port-3353 | bunnei | 2018-08-22 | 1 | -1/+1 |
|\ | | | | | Port #3353 from Citra: "citra-qt: Add customizable speed limit target " | ||||
| * | Port #3353 from Citra | fearlessTobi | 2018-08-21 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #1154 from OatmealDome/topology-lines | bunnei | 2018-08-22 | 1 | -0/+2 |
|\ \ | | | | | | | maxwell_to_gl: Implement PrimitiveTopology::Lines | ||||
| * | | maxwell_to_gl: Implement PrimitiveTopology::Lines | OatmealDome | 2018-08-22 | 1 | -0/+2 |
| | | | | | | | | | Used by Splatoon 2's debug menu. | ||||
* | | | Merge pull request #1124 from Subv/logic_ops | bunnei | 2018-08-22 | 6 | -7/+108 |
|\ \ \ | |/ / |/| | | GPU: Implemented logic ops. | ||||
| * | | GPU: Implemented the logic op functionality of the GPU. | Subv | 2018-08-21 | 3 | -0/+61 |
| | | | | | | | | | | | | This will ASSERT if blending is enabled at the same time as logic ops. | ||||
| * | | GLState: Allow enabling/disabling GL_COLOR_LOGIC_OP independently from blending. | Subv | 2018-08-21 | 2 | -6/+19 |
| | | | |||||
| * | | GPU: Added registers for the logicop functionality. | Subv | 2018-08-21 | 1 | -1/+28 |
| |/ | |||||
* | | Revert "Shader: Use the right sampler type in the TEX, TEXS and TLDS instructions." | bunnei | 2018-08-22 | 2 | -153/+31 |
| | | | | | | | | | | - This reverts commit 3ef4b3d4b445960576f10d1ba6521580d03e3da8. - This commit had broken a lot of games. We really should do a full implementation of this in one change. | ||||
* | | shader_bytecode: Parenthesize conditional expression within GetTextureType() | Lioncash | 2018-08-21 | 1 | -1/+1 |
| | | | | | | | | Resolves a -Wlogical-op-parentheses warning. | ||||
* | | Merge pull request #1123 from lioncash/screen | bunnei | 2018-08-21 | 7 | -30/+25 |
|\ \ | | | | | | | rasterizer_interface: Remove renderer-specific ScreenInfo type from AccelerateDraw() in RasterizerInterface | ||||
| * | | rasterizer_interface: Remove ScreenInfo from AccelerateDraw()'s signature | Lioncash | 2018-08-21 | 5 | -17/+14 |
| | | | | | | | | | | | | | | | | | | This is an OpenGL renderer-specific data type. Given that, this type shouldn't be used within the base interface for the rasterizer. Instead, we can pass this information to the rasterizer via reference. | ||||
| * | | renderer_base: Make creation of the rasterizer, the responsibility of the renderers themselves | Lioncash | 2018-08-21 | 4 | -14/+12 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given we use a base-class type within the renderer for the rasterizer (RasterizerInterface), we want to allow renderers to perform more complex initialization if they need to do such a thing. This makes it important to reserve type information. Given the OpenGL renderer is quite simple settings-wise, this is just a simple shuffling of the initialization code. For something like Vulkan however this might involve doing something like: // Initialize and call rasterizer-specific function that requires // the full type of the instance created. auto raster = std::make_unique<VulkanRasterizer>(some, params); raster->CallSomeVulkanRasterizerSpecificFunction(); // Assign to base class variable rasterizer = std::move(raster) | ||||
* | | Merge pull request #1132 from Subv/gl_FragDepth | bunnei | 2018-08-21 | 1 | -1/+6 |
|\ \ | | | | | | | Shaders: Implement depth writing in fragment shaders. | ||||
| * | | Shaders: Implement depth writing in fragment shaders. | Subv | 2018-08-21 | 1 | -1/+6 |
| | | | | | | | | | | | | We'll write <last color output reg + 2> to gl_FragDepth. | ||||
* | | | Merge pull request #1134 from lioncash/log | bunnei | 2018-08-21 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | renderer_opengl: Use LOG_DEBUG for GL_DEBUG_SEVERITY_NOTIFICATION and GL_DEBUG_SEVERITY_LOW logs | ||||
| * | | | renderer_opengl: Use LOG_DEBUG for GL_DEBUG_SEVERITY_NOTIFICATION and GL_DEBUG_SEVERITY_LOW logs | Lioncash | 2018-08-21 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | LOG_TRACE is only enabled on debug builds which can be quite slow when trying to debug graphics issues. Instead we can log the messages to the debug log, which is available on both release and debug builds. | ||||
* | | | | Merge pull request #1121 from Subv/tex_reinterpret | bunnei | 2018-08-21 | 4 | -16/+70 |
|\ \ \ \ | |/ / / |/| | | | Rasterizer: Use PBOs to reinterpret texture formats when games re-use the same memory. | ||||
| * | | | Rasterizer: Reinterpret the raw texture bytes instead of blitting (and thus doing format conversion) to a new texture when a game requests an old texture address with a different format. | Subv | 2018-08-20 | 1 | -3/+49 |
| | | | | |||||
| * | | | Rasterizer: Don't attempt to copy over the old texture's data when doing a format reinterpretation if we're only going to clear the framebuffer. | Subv | 2018-08-20 | 4 | -13/+21 |
| | |/ | |/| | |||||
* | | | Merge pull request #1133 from lioncash/guard | bunnei | 2018-08-21 | 1 | -0/+2 |
|\ \ \ | |_|/ |/| | | gl_stream_buffer: Add missing header guard | ||||
| * | | gl_stream_buffer: Add missing header guard | Lioncash | 2018-08-21 | 1 | -0/+2 |
| |/ | | | | | | | | | Prevents potential compilation errors from occuring due to multiple inclusions | ||||
* | | Merge pull request #1131 from bunnei/impl-tex3d-texcube | bunnei | 2018-08-21 | 2 | -2/+21 |
|\ \ | | | | | | | gl_shader_decompiler: Implement TextureCube/Texture3D for TEX/TEXS. | ||||
| * | | shader_bytecode: Replace some UNIMPLEMENTED logs. | bunnei | 2018-08-21 | 1 | -2/+6 |
| | | | |||||
| * | | gl_shader_decompiler: Implement Texture3D for TEXS. | bunnei | 2018-08-21 | 1 | -0/+7 |
| | | | |||||
| * | | gl_shader_decompiler: Implement TextureCube for TEX. | bunnei | 2018-08-21 | 1 | -0/+8 |
| | | | |||||
* | | | Merge pull request #1106 from Subv/multiple_rendertargets | bunnei | 2018-08-21 | 2 | -6/+45 |
|\ \ \ | |/ / |/| | | Shaders: Write all the enabled color outputs when a fragment shader exits. | ||||
| * | | Shaders: Write all the enabled color outputs when a fragment shader exits. | Subv | 2018-08-21 | 2 | -6/+45 |
| | | | | | | | | | | | | | | | | | | | | | We were only writing to the first render target before. Note that this is only the GLSL side of the implementation, supporting multiple render targets requires more changes in the OpenGL renderer. Dual Source blending is not implemented and stuff that uses it might not work at all. | ||||
* | | | Shaders: Fixed the coords in TEX with Texture2D. | Subv | 2018-08-21 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | The X and Y coordinates should be in gpr8 and gpr8+1, respectively. This fixes the cutscene rendering in Sonic Mania. | ||||
* | | | Shaders: Log and crash when using an unimplemented texture type in a texture sampling instruction. | Subv | 2018-08-21 | 1 | -5/+14 |
| |/ |/| | |||||
* | | Merge pull request #1104 from Subv/instanced_arrays | bunnei | 2018-08-20 | 2 | -4/+30 |
|\ \ | | | | | | | GLRasterizer: Implemented instanced vertex arrays. | ||||
| * | | GLRasterizer: Implemented instanced vertex arrays. | Subv | 2018-08-18 | 2 | -4/+30 |
| |/ | | | | | | | Before each draw call, for every enabled vertex array configured as instanced, we take the current instance id and divide it by its configured divisor, then we multiply that by the corresponding stride and increment the start address by the resulting amount. This way we can simulate the vertex array being incremented once per instance without actually using OpenGL's instancing functions. | ||||
* | | Merge pull request #1115 from Subv/texs_mask | bunnei | 2018-08-20 | 1 | -18/+18 |
|\ \ | | | | | | | Shaders/TEXS: Write to the correct output register when swizzling. | ||||
| * | | Shaders/TEXS: Fixed the component mask in the TEXS instruction. | Subv | 2018-08-20 | 1 | -18/+18 |
| | | | | | | | | | | | | Previously we could end up with a TEXS that didn't write any outputs, this was wrong. | ||||
* | | | Merge pull request #1112 from Subv/sampler_types | bunnei | 2018-08-20 | 3 | -33/+250 |
|\ \ \ | | | | | | | | | Shaders: Use the correct shader type when sampling textures. | ||||
| * | | | Shader: Implemented the TLD4 and TLD4S opcodes using GLSL's textureGather. | Subv | 2018-08-19 | 1 | -0/+51 |
| | | | | | | | | | | | | | | | | It is unknown how TLD4S determines the sampler type, more research is needed. | ||||
| * | | | Shader: Use the right sampler type in the TEX, TEXS and TLDS instructions. | Subv | 2018-08-19 | 2 | -29/+127 |
| | | | | | | | | | | | | | | | | Different sampler types have their parameters in different registers. | ||||
| * | | | Shader: Added bitfields for the texture type of the various sampling instructions. | Subv | 2018-08-19 | 1 | -1/+65 |
| | | | | |||||
| * | | | Shaders: Added decodings for TLD4 and TLD4S | Subv | 2018-08-19 | 1 | -3/+7 |
| | | | | |||||
* | | | | Implemented RGBA8_UINT | David Marcec | 2018-08-20 | 4 | -45/+58 |
| |/ / |/| | | | | | | | | Needed by kirby | ||||
* | | | Merge pull request #1089 from Subv/neg_bits | bunnei | 2018-08-19 | 2 | -16/+38 |
|\ \ \ | | | | | | | | | Shaders: Corrected the 'abs' and 'neg' bit usage in the float arithmetic instructions. | ||||
| * | | | Shaders: Corrected the 'abs' and 'neg' bit usage in the float arithmetic instructions. | Subv | 2018-08-18 | 2 | -16/+38 |
| | | | | | | | | | | | | | | | | We should definitely audit our shader generator for more errors like this. | ||||
* | | | | Merge pull request #1105 from Subv/convert_neg | bunnei | 2018-08-19 | 1 | -2/+0 |
|\ \ \ \ | | | | | | | | | | | Shader: Remove an unneeded assert, the negate bit is implemented for conversion instructions. | ||||
| * | | | | Shader: Remove an unneeded assert, the negate bit is implemented for conversion instructions. | Subv | 2018-08-18 | 1 | -2/+0 |
| | |_|/ | |/| | | |||||
* | | | | Merge pull request #1113 from Subv/texs_mask | bunnei | 2018-08-19 | 1 | -6/+11 |
|\ \ \ \ | | | | | | | | | | | Shaders/TEXS: Fixed the component mask in the TEXS instruction. | ||||
| * | | | | Shaders/TEXS: Fixed the component mask in the TEXS instruction. | Subv | 2018-08-19 | 1 | -6/+11 |
| | |_|/ | |/| | | | | | | | | | | Previously we could end up with a TEXS that didn't write any outputs, this was wrong. | ||||
* | | | | Merge pull request #1102 from ogniK5377/mirror-clamp-edge | bunnei | 2018-08-19 | 1 | -0/+2 |
|\ \ \ \ | | | | | | | | | | | Added WrapMode MirrorOnceClampToEdge | ||||
| * | | | | Added WrapMode MirrorOnceClampToEdge | David Marcec | 2018-08-18 | 1 | -0/+2 |
| | |/ / | |/| | | | | | | | | | | Used by splatoon 2 | ||||
* | | | | Merge pull request #1101 from Subv/ssy_stack | bunnei | 2018-08-19 | 1 | -3/+36 |
|\ \ \ \ | |_|/ / |/| | | | Shaders: Implemented a stack for the SSY/SYNC instructions. | ||||
| * | | | Shaders: Implemented a stack for the SSY/SYNC instructions. | Subv | 2018-08-18 | 1 | -3/+36 |
| |/ / | | | | | | | | | | The SSY instruction pushes an address into the stack, and the SYNC instruction pops it. The current stack depth is 20, we should figure out if this is enough or not. | ||||
* | | | Merge pull request #1109 from Subv/ldg_decode | bunnei | 2018-08-19 | 1 | -0/+4 |
|\ \ \ | | | | | | | | | Shaders: Added decodings for the LDG and STG instructions. | ||||
| * | | | Shaders: Added decodings for the LDG and STG instructions. | Subv | 2018-08-19 | 1 | -0/+4 |
| |/ / | |||||
* | | | Merge pull request #1108 from Subv/front_facing | bunnei | 2018-08-19 | 2 | -0/+7 |
|\ \ \ | | | | | | | | | Shaders: Implemented the gl_FrontFacing input attribute (attr 63). | ||||
| * | | | Shaders: Implemented the gl_FrontFacing input attribute (attr 63). | Subv | 2018-08-19 | 2 | -0/+7 |
| |/ / | |||||
* / / | Shader: Implemented the predicate and mode arguments of LOP. | Subv | 2018-08-18 | 2 | -11/+39 |
|/ / | | | | | | | | | | | The mode can be used to set the predicate to true depending on the result of the logic operation. In some cases, this means discarding the result (writing it to register 0xFF (Zero)). This is used by Super Mario Odyssey. | ||||
* | | Added predcondition GreaterThanWithNan | David Marcec | 2018-08-18 | 2 | -5/+8 |
| | | |||||
* | | Merge pull request #1096 from bunnei/supported-blits | bunnei | 2018-08-18 | 1 | -2/+0 |
|\ \ | | | | | | | gl_rasterizer_cache: Remove asserts for supported blits. | ||||
| * | | gl_rasterizer_cache: Remove asserts for supported blits. | bunnei | 2018-08-17 | 1 | -2/+0 |
| | | | |||||
* | | | renderer_opengl: Treat OpenGL errors as critical. | bunnei | 2018-08-17 | 1 | -1/+1 |
|/ / | |||||
* | | Merge pull request #1019 from Subv/vertex_divisor | bunnei | 2018-08-17 | 7 | -5/+28 |
|\ \ | | | | | | | Rasterizer: Manually implemented instanced rendering. | ||||
| * | | Rasterizer: Implemented instanced rendering. | Subv | 2018-08-15 | 7 | -5/+28 |
| | | | | | | | | | | | | | | | | | | We keep track of the current instance and update an uniform in the shaders to let them know which instance they are. Instanced vertex arrays are not yet implemented. | ||||
* | | | gl_rasterizer_cache: Treat Depth formats differently from DepthStencil. | bunnei | 2018-08-16 | 2 | -16/+26 |
| |/ |/| | |||||
* | | Shader/Conversion: Implemented the negate bit in F2F and I2I instructions. | Subv | 2018-08-15 | 1 | -4/+12 |
| | | |||||
* | | Shader/I2F: Implemented the negate I2F_C instruction variant. | Subv | 2018-08-15 | 1 | -7/+23 |
| | | |||||
* | | Shader/F2I: Implemented the negate bit in the I2F instruction | Subv | 2018-08-15 | 1 | -0/+4 |
| | | |||||
* | | Shader/F2I: Implemented the F2I_C instruction variant. | Subv | 2018-08-15 | 1 | -2/+10 |
| | | |||||
* | | Shader/F2I: Implemented the negate bit in the F2I instruction. | Subv | 2018-08-15 | 1 | -0/+4 |
| | | |||||
* | | Merge pull request #1077 from bunnei/rgba16u | bunnei | 2018-08-15 | 1 | -1/+9 |
|\ \ | | | | | | | gl_rasterizer_cache: Add RGBA16U to PixelFormatFromTextureFormat. | ||||
| * | | gl_rasterizer_cache: Add RGBA16U to PixelFormatFromTextureFormat. | bunnei | 2018-08-15 | 1 | -1/+9 |
| |/ | | | | | | | - Used by Breath of the Wild. | ||||
* / | gl_rasterizer_cache: Cleanup some PixelFormat names and logging. | bunnei | 2018-08-15 | 2 | -41/+71 |
|/ | |||||
* | Merge pull request #1069 from bunnei/vtx-sz | bunnei | 2018-08-15 | 1 | -5/+20 |
|\ | | | | | maxwell_to_gl: Properly handle UnsignedInt/SignedInt sizes. | ||||
| * | maxwell_to_gl: Properly handle UnsignedInt/SignedInt sizes. | bunnei | 2018-08-15 | 1 | -5/+20 |
| | | |||||
* | | Merge pull request #1070 from bunnei/cbuf-sz | bunnei | 2018-08-15 | 1 | -3/+3 |
|\ \ | | | | | | | gl_rasterizer: Fix upload size for constant buffers. | ||||
| * | | gl_rasterizer: Fix upload size for constant buffers. | bunnei | 2018-08-15 | 1 | -3/+3 |
| |/ | |||||
* | | Merge pull request #1071 from bunnei/fix-ldc | bunnei | 2018-08-15 | 1 | -13/+22 |
|\ \ | | | | | | | gl_shader_decompiler: Several fixes for indirect constant buffer loads. | ||||
| * | | gl_shader_decompiler: Several fixes for indirect constant buffer loads. | bunnei | 2018-08-15 | 1 | -13/+22 |
| |/ | |||||
* | | Merge pull request #1068 from bunnei/g8r8s | bunnei | 2018-08-15 | 2 | -34/+49 |
|\ \ | | | | | | | gl_rasterizer_cache: Implement G8R8S format. | ||||
| * | | gl_rasterizer_cache: Implement G8R8S format. | bunnei | 2018-08-15 | 2 | -34/+49 |
| |/ | | | | | | | - Used by Super Mario Odyssey. | ||||
* / | Implement Z16_UNORM in PixelFormatFromTextureFormat function | greggameplayer | 2018-08-15 | 1 | -0/+2 |
|/ | | | Require by Zelda Breath Of The Wild | ||||
* | Merge pull request #1058 from greggameplayer/BC7U_Fix | bunnei | 2018-08-14 | 1 | -1/+1 |
|\ | | | | | Fix BC7U | ||||
| * | Fix BC7U | greggameplayer | 2018-08-14 | 1 | -1/+1 |
| | | |||||
* | | renderer_opengl: Implement RenderTargetFormat::RGBA16_UNORM. | bunnei | 2018-08-14 | 4 | -37/+48 |
|/ | | | | - Used by Breath of the Wild. | ||||
* | Merge pull request #1052 from ogniK5377/xeno | bunnei | 2018-08-13 | 4 | -7/+45 |
|\ | | | | | Implement RG32UI and R32UI | ||||
| * | Implement RG32UI and R32UI | David Marcec | 2018-08-13 | 4 | -7/+45 |
| | | | | | | | | Needed for xenoblade | ||||
* | | maxwell_to_gl: Implement VertexAttribute::Size::Size_8. | bunnei | 2018-08-13 | 1 | -0/+1 |
|/ | | | | - Used by Breath of the Wild. | ||||
* | renderer_opengl: Implement RenderTargetFormat::RGBA16_UINT. | bunnei | 2018-08-13 | 4 | -34/+45 |
| | | | | - Used by Breath of the Wild. | ||||
* | Merge pull request #1045 from bunnei/rg8-unorm | bunnei | 2018-08-13 | 4 | -26/+61 |
|\ | | | | | renderer_opengl: Implement RenderTargetFormat::RG8_UNORM. | ||||
| * | renderer_opengl: Implement RenderTargetFormat::RG8_UNORM. | bunnei | 2018-08-13 | 4 | -26/+61 |
| | | | | | | | | - Used by Breath of the Wild. | ||||
* | | maxwell_to_gl: Implement PrimitiveTopology::LineStrip. | bunnei | 2018-08-13 | 1 | -0/+2 |
|/ | | | | - Used by Breath of the Wild. | ||||
* | gl_shader_decompiler: Implement XMAD instruction. | bunnei | 2018-08-13 | 2 | -4/+120 |
| | |||||
* | gl_rasterizer: Use a shared helper to upload from CPU memory. | Markus Wick | 2018-08-12 | 2 | -28/+33 |
| | |||||
* | gl_state: Don't track constant buffer mappings. | Markus Wick | 2018-08-12 | 3 | -41/+3 |
| | |||||
* | gl_rasterizer: Use the stream buffer for constant buffers. | Markus Wick | 2018-08-12 | 4 | -29/+32 |
| | |||||
* | gl_rasterizer: Use the streaming buffer itself for the constant buffer. | Markus Wick | 2018-08-12 | 2 | -33/+15 |
| | | | | Don't emut copies, especially not for data, which is used once. They just end in a huge GPU overhead. | ||||
* | gl_rasterizer: Use a helper for aligning the buffer. | Markus Wick | 2018-08-12 | 2 | -15/+22 |
| | |||||
* | Update the stream_buffer helper from Citra. | Markus Wick | 2018-08-12 | 4 | -184/+98 |
| | | | | Please see https://github.com/citra-emu/citra/pull/3666 for more details. | ||||
* | gl_shader_decompiler: Fix SetOutputAttributeToRegister empty check. | bunnei | 2018-08-12 | 1 | -2/+2 |
| | |||||
* | gl_shader_decompiler: Fix GLSL compiler error with KIL instruction. | bunnei | 2018-08-12 | 1 | -0/+8 |
| | |||||
* | Merge pull request #1020 from lioncash/namespace | bunnei | 2018-08-12 | 8 | -15/+26 |
|\ | | | | | core: Namespace EmuWindow | ||||
| * | core: Namespace EmuWindow | Lioncash | 2018-08-12 | 8 | -15/+26 |
| | | | | | | | | Gets the class out of the global namespace. | ||||
* | | Merge pull request #1021 from lioncash/warn | bunnei | 2018-08-12 | 1 | -1/+1 |
|\ \ | | | | | | | gl_rasterizer: Silence implicit truncation warning in SetupShaders() | ||||
| * | | gl_rasterizer: Silence implicit truncation warning in SetupShaders() | Lioncash | 2018-08-12 | 1 | -1/+1 |
| |/ | | | | | | | | | | | Previously this would warn of truncating a std::size_t to a u32. This is safe because we'll obviously never have more than UINT32_MAX amount of uniform buffers. | ||||
* | | Merge pull request #1024 from Subv/blend_gl | bunnei | 2018-08-12 | 2 | -0/+40 |
|\ \ | | | | | | | GPU/Maxwell3D: Implemented an alternative set of blend factors. | ||||
| * | | GPU/Maxwell3D: Implemented an alternative set of blend factors. | Subv | 2018-08-12 | 2 | -0/+40 |
| |/ | | | | | | | These are used by nouveau and some games like SMO. | ||||
* | | Merge pull request #1023 from Subv/invalid_attribs | bunnei | 2018-08-12 | 2 | -1/+11 |
|\ \ | | | | | | | RasterizerGL: Ignore invalid/unset vertex attributes. | ||||
| * | | RasterizerGL: Ignore invalid/unset vertex attributes. | Subv | 2018-08-12 | 2 | -1/+11 |
| |/ | | | | | | | This should make the es2gears example not crash anymore. | ||||
* / | Implement R8_UINT RenderTargetFormat & PixelFormat (#1014) | greggameplayer | 2018-08-12 | 4 | -55/+74 |
|/ | | | | - Used by Go Vacation | ||||
* | Merge pull request #1010 from bunnei/unk-vert-attrib-shader | bunnei | 2018-08-12 | 2 | -10/+11 |
|\ | | | | | gl_shader_decompiler: Improve handling of unknown input/output attributes. | ||||
| * | gl_shader_decompiler: Improve handling of unknown input/output attributes. | bunnei | 2018-08-12 | 2 | -10/+11 |
| | | |||||
* | | Merge pull request #1009 from bunnei/rg8-rgba8-snorm | bunnei | 2018-08-12 | 4 | -64/+93 |
|\ \ | | | | | | | Implement render target formats RGBA8_SNORM and RG8_SNORM. | ||||
| * | | gl_rasterizer: Implement render target format RG8_SNORM. | bunnei | 2018-08-12 | 4 | -8/+18 |
| | | | | | | | | | | | | - Used by Super Mario Odyssey. | ||||
| * | | gl_rasterizer: Implement render target format RGBA8_SNORM. | bunnei | 2018-08-12 | 4 | -64/+83 |
| |/ | | | | | | | - Used by Super Mario Odyssey. | ||||
* | | Merge pull request #1018 from Subv/ssy_sync | bunnei | 2018-08-12 | 2 | -8/+38 |
|\ \ | |/ |/| | GPU/Shader: Implemented SSY and SYNC as a set_target/jump pair. | ||||
| * | GPU/Shader: Don't predicate instructions that don't have a predicate field (SSY). | Subv | 2018-08-11 | 2 | -2/+13 |
| | | |||||
| * | GPU/Shaders: Implemented SSY and SYNC as a way to modify control flow during shader execution. | Subv | 2018-08-11 | 1 | -6/+25 |
| | | | | | | | | SSY sets the target label to jump to when the SYNC instruction is executed. | ||||
* | | Merge pull request #1016 from lioncash/video | bunnei | 2018-08-11 | 6 | -30/+42 |
|\ \ | | | | | | | video_core: Get rid of global variable g_toggle_framelimit_enabled | ||||
| * | | video_core; Get rid of global g_toggle_framelimit_enabled variable | Lioncash | 2018-08-11 | 6 | -25/+42 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead, we make a struct for renderer settings and allow the renderer to update all of these settings, getting rid of the need for global-scoped variables. This also uncovered a few indirect inclusions for certain headers, which this commit also fixes. | ||||
| * | | renderer_base: Remove unused kFramebuffer enumeration | Lioncash | 2018-08-11 | 1 | -3/+0 |
| | | | | | | | | | | | | This is entirely unused and can be removed. | ||||
| * | | video_core: Remove unused Renderer enumeration | Lioncash | 2018-08-11 | 1 | -2/+0 |
| |/ | | | | | | | | | Currently we only have an OpenGL renderer, so this is unused in code (and occupies the Renderer identifier in the VideoCore namespace). | ||||
* | | Merge pull request #1003 from lioncash/var | bunnei | 2018-08-11 | 2 | -4/+2 |
|\ \ | | | | | | | video_core: Use variable template variants of type_traits interfaces where applicable | ||||
| * | | video_core: Use variable template variants of type_traits interfaces where applicable | Lioncash | 2018-08-10 | 2 | -4/+2 |
| | | | |||||
* | | | Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats and more (R16_UNORM needed by Fate Extella) (#848) | greggameplayer | 2018-08-11 | 4 | -19/+92 |
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats Do a separate function in order to get Bytes Per Pixel of DepthFormat Apply the new function in gpu.h delete unneeded white space * correct merging error | ||||
* | | maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8. | bunnei | 2018-08-10 | 1 | -0/+1 |
| | | | | | | | | - Used by Super Mario Odyssey. | ||||
* | | maxwell_to_gl: Implement VertexAttribute::Size::Size_32_32_32. | bunnei | 2018-08-10 | 1 | -0/+2 |
| | | | | | | | | - Used by Super Mario Odyssey. | ||||
* | | Merge pull request #1004 from lioncash/unused | bunnei | 2018-08-10 | 3 | -8/+6 |
|\ \ | | | | | | | gl_rasterizer_cache: Remove unused viewport parameter of GetFramebufferSurfaces() | ||||
| * | | gl_rasterizer_cache: Remove unused viewport parameter of GetFramebufferSurfaces() | Lioncash | 2018-08-10 | 3 | -8/+6 |
| |/ | |||||
* | | Merge pull request #1008 from yuzu-emu/revert-697-disable-depth-cull | bunnei | 2018-08-10 | 1 | -3/+1 |
|\ \ | | | | | | | Revert "gl_state: Temporarily disable culling and depth test." | ||||
| * | | Revert "gl_state: Temporarily disable culling and depth test." | bunnei | 2018-08-10 | 1 | -3/+1 |
| | | | |||||
* | | | textures: Refactor out for Texture/Depth FormatFromPixelFormat. | bunnei | 2018-08-10 | 4 | -179/+27 |
|/ / | |||||
* | | Merge pull request #995 from bunnei/gl-buff-bounds | bunnei | 2018-08-10 | 1 | -10/+12 |
|\ \ | |/ |/| | gl_rasterizer_cache: Add bounds checking for gl_buffer copies. | ||||
| * | gl_rasterizer_cache: Add bounds checking for gl_buffer copies. | bunnei | 2018-08-10 | 1 | -10/+12 |
| | | |||||
* | | Merge pull request #1001 from lioncash/reserve | bunnei | 2018-08-10 | 1 | -0/+2 |
|\ \ | |/ |/| | gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList() | ||||
| * | gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList() | Lioncash | 2018-08-09 | 1 | -0/+2 |
| | | | | | | | | | | Avoids potentially perfoming multiple reallocations when we know the total amount of memory we need beforehand. | ||||
* | | Merge pull request #991 from bunnei/ignore-mac | bunnei | 2018-08-10 | 1 | -4/+9 |
|\ \ | | | | | | | maxwell_3d: Ignore macros that have not been uploaded yet. | ||||
| * | | maxwell_3d: Ignore macros that have not been uploaded yet. | bunnei | 2018-08-09 | 1 | -4/+9 |
| | | | | | | | | | | | | - Used by Super Mario Odyssey (in game). | ||||
* | | | Implement SNORM for BC5/DXN2 (#998) | Khangaroo | 2018-08-10 | 2 | -38/+55 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement BC5/DXN2 (#996) - Used by Kirby Star Allies. * Implement BC5/DXN2 SNORM UNORM for Kirby Star Allies SNORM for Super Mario Odyssey | ||||
* | | | gl_rasterizer_cache: Avoid iterator invalidation issues within InvalidateRegion() | Lioncash | 2018-08-09 | 1 | -2/+4 |
| |/ |/| | | | | | | | A range-based for loop can't be used when the container being iterated is also being erased from. | ||||
* | | Merge pull request #992 from bunnei/declr-pred | bunnei | 2018-08-09 | 1 | -4/+5 |
|\ \ | | | | | | | gl_shader_decompiler: Declare predicates on use. | ||||
| * | | gl_shader_decompiler: Declare predicates on use. | bunnei | 2018-08-09 | 1 | -4/+5 |
| |/ | | | | | | | - Used by Super Mario Odyssey (when going in game). | ||||
* | | Merge pull request #994 from lioncash/const | bunnei | 2018-08-09 | 1 | -7/+9 |
|\ \ | | | | | | | gl_rasterizer_cache: Use std::vector::assign vs resize() then copy for the non-tiled case | ||||
| * | | gl_rasterizer_cache: Invert conditional in LoadGLBuffer() | Lioncash | 2018-08-09 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | It's generally easier to follow code using conditionals that operate in terms of the true case followed by the false case (no chance of overlooking the exclamation mark). | ||||
| * | | gl_rasterizer_cache: Use std::vector::assign in LoadGLBuffer() for the non-tiled case | Lioncash | 2018-08-09 | 1 | -4/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | resize() causes the vector to expand and zero out the added members to the vector, however we can avoid this zeroing by using assign(). Given we have the pointer to the data we want to copy, we can calculate the end pointer and directly copy the range of data without the need to perform the resize() beforehand. | ||||
| * | | gl_rasterizer_cache: Make pointer const in LoadGLBuffer() | Lioncash | 2018-08-09 | 1 | -1/+1 |
| |/ | | | | | | | | | This is only ever read from, so we can make the data it's pointing to const. | ||||
* | | Merge pull request #993 from bunnei/smo-vtx-pts | bunnei | 2018-08-09 | 1 | -0/+3 |
|\ \ | | | | | | | Implement VertexAttribute::Size::Size_16_16_16_16 and PrimitiveTopology::Points. | ||||
| * | | maxwell_to_gl: Implement VertexAttribute::Size::Size_16_16_16_16. | bunnei | 2018-08-09 | 1 | -0/+1 |
| | | | | | | | | | | | | - Used by Super Mario Odyssey (in game). | ||||
| * | | maxwell_to_gl: Implement PrimitiveTopology::Points. | bunnei | 2018-08-09 | 1 | -0/+2 |
| |/ | | | | | | | - Used by Super Mario Odyssey (in game). | ||||
* | | Merge pull request #984 from bunnei/rt-none | bunnei | 2018-08-09 | 1 | -0/+5 |
|\ \ | | | | | | | gl_rasterizer: Do not render when no render target is configured. | ||||
| * | | gl_rasterizer: Do not render when no render target is configured. | bunnei | 2018-08-09 | 1 | -0/+5 |
| | | | | | | | | | | | | - Used by Super Mario Odyssey. | ||||
* | | | Implement BC5/DXN2 (#996) | Khangaroo | 2018-08-09 | 3 | -33/+45 |
| | | | | | | | | | - Used by Kirby Star Allies. | ||||
* | | | Merge pull request #977 from bunnei/bgr565 | bunnei | 2018-08-09 | 2 | -0/+4 |
|\ \ \ | |_|/ |/| | | gl_rasterizer_cached: Implement RenderTargetFormat::B5G6R5_UNORM. | ||||
| * | | gl_rasterizer_cached: Implement RenderTargetFormat::B5G6R5_UNORM. | bunnei | 2018-08-08 | 2 | -0/+4 |
| | | | | | | | | | | | | - Used by Super Mario Odyssey. | ||||
* | | | Merge pull request #982 from bunnei/stub-unk-63 | bunnei | 2018-08-09 | 2 | -0/+9 |
|\ \ \ | | | | | | | | | gl_shader_decompiler: Stub input attribute Unknown_63. | ||||
| * | | | gl_shader_decompiler: Stub input attribute Unknown_63. | bunnei | 2018-08-08 | 2 | -0/+9 |
| |/ / | |||||
* | | | Merge pull request #976 from bunnei/shader-imm | bunnei | 2018-08-09 | 2 | -11/+6 |
|\ \ \ | | | | | | | | | gl_shader_decompiler: Let OpenGL interpret floats. | ||||
| * | | | gl_shader_decompiler: Let OpenGL interpret floats. | bunnei | 2018-08-08 | 2 | -11/+6 |
| |/ / | | | | | | | | | | | | | - Accuracy is lost in translation to string, e.g. with NaN. - Needed for Super Mario Odyssey. | ||||
* | | | Merge pull request #981 from bunnei/cbuf-corrupt | bunnei | 2018-08-09 | 4 | -3/+12 |
|\ \ \ | |_|/ |/| | | maxwell_3d: Use correct const buffer size and check bounds. | ||||
| * | | maxwell_3d: Use correct const buffer size and check bounds. | bunnei | 2018-08-08 | 4 | -3/+12 |
| |/ | | | | | | | - Fixes mem corruption with Super Mario Odyssey and Pokkén Tournament DX. | ||||
* | | Merge pull request #985 from bunnei/rt-r11g11b10 | bunnei | 2018-08-09 | 1 | -0/+1 |
|\ \ | | | | | | | gpu: Add R11G11B10_FLOAT to RenderTargetBytesPerPixel. | ||||
| * | | gpu: Add R11G11B10_FLOAT to RenderTargetBytesPerPixel. | bunnei | 2018-08-08 | 1 | -0/+1 |
| |/ | | | | | | | - Used by Super Mario Odyssey. | ||||
* | | Merge pull request #979 from bunnei/vtx88 | bunnei | 2018-08-09 | 1 | -0/+1 |
|\ \ | | | | | | | maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8. | ||||
| * | | maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8. | bunnei | 2018-08-08 | 1 | -0/+1 |
| |/ | |||||
* / | renderer_opengl: Use trace log in a few places. | bunnei | 2018-08-08 | 2 | -2/+2 |
|/ | |||||
* | Merge pull request #964 from Hexagon12/lower-logs | bunnei | 2018-08-08 | 1 | -4/+4 |
|\ | | | | | Lowered down the logging for command processor methods | ||||
| * | Lowered down the logging for methods | Hexagon12 | 2018-08-07 | 1 | -4/+4 |
| | | |||||
* | | Fixed the sRGB pixel format (#963) | Hexagon12 | 2018-08-08 | 1 | -1/+2 |
| | | | | | | | | | | | | * Changed the sRGB pixel format return * Add a message about SRGBA -> RGBA conversion | ||||
* | | maxwell_3d: Remove outdated assert. | bunnei | 2018-08-06 | 1 | -2/+0 |
| | | |||||
* | | gl_rasterizer_cache: Avoid superfluous surface copies. | bunnei | 2018-08-06 | 2 | -4/+21 |
| | | |||||
* | | Merge pull request #927 from bunnei/fix-texs | bunnei | 2018-08-05 | 1 | -2/+5 |
|\ \ | | | | | | | gl_shader_decompiler: Fix TEXS mask and dest. | ||||
| * | | gl_shader_decompiler: Fix TEXS mask and dest. | bunnei | 2018-08-05 | 1 | -2/+5 |
| | | | |||||
* | | | Merge pull request #912 from lioncash/global-var | bunnei | 2018-08-05 | 10 | -50/+50 |
|\ \ \ | |/ / |/| | | video_core: Eliminate the g_renderer global variable | ||||
| * | | renderer_base: Make Rasterizer() return the rasterizer by reference | Lioncash | 2018-08-04 | 2 | -4/+8 |
| | | | | | | | | | | | | | | | | | | | | | All calling code assumes that the rasterizer will be in a valid state, which is a totally fine assumption. The only way the rasterizer wouldn't be is if initialization is done incorrectly or fails, which is checked against in System::Init(). | ||||
| * | | video_core: Eliminate the g_renderer global variable | Lioncash | 2018-08-04 | 10 | -47/+43 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We move the initialization of the renderer to the core class, while keeping the creation of it and any other specifics in video_core. This way we can ensure that the renderer is initialized and doesn't give unfettered access to the renderer. This also makes dependencies on types more explicit. For example, the GPU class doesn't need to depend on the existence of a renderer, it only needs to care about whether or not it has a rasterizer, but since it was accessing the global variable, it was also making the renderer a part of its dependency chain. By adjusting the interface, we can get rid of this dependency. | ||||
* | | | added braces for conditions | David Marcec | 2018-08-05 | 1 | -2/+3 |
| | | | |||||
* | | | fix the attrib format for ints | David Marcec | 2018-08-05 | 1 | -2/+7 |
| | | | |||||
* | | | Merge pull request #919 from lioncash/sign | bunnei | 2018-08-04 | 1 | -8/+9 |
|\ \ \ | |/ / |/| | | gl_shader_manager: Amend sign differences in an assertion comparison in SetShaderUniformBlockBinding() | ||||
| * | | gl_shader_manager: Invert conditional in SetShaderUniformBlockBinding() | Lioncash | 2018-08-04 | 1 | -7/+9 |
| | | | | | | | | | | | | | | | This lets us indent the majority of the code and places the error case first. | ||||
| * | | gl_shader_manager: Amend sign differences in an assertion comparison in SetShaderUniformBlockBinding() | Lioncash | 2018-08-04 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | Ensures both operands have the same sign in the comparison. While we're at it, we can get rid of the redundant casting of ub_size to an int. This type will always be trivial and alias a built-in type (not doing so would break backwards compatibility at a standard level). | ||||
* | | | Merge pull request #911 from lioncash/prototype | bunnei | 2018-08-04 | 1 | -3/+0 |
|\ \ \ | | | | | | | | | video_core: Remove unimplemented Start() function prototype | ||||
| * | | | video_core: Remove unimplemented Start() function prototype | Lioncash | 2018-08-03 | 1 | -3/+0 |
| | | | | | | | | | | | | | | | | Given this has no definition, we can just remove it entirely. | ||||
* | | | | Merge pull request #910 from lioncash/unused | bunnei | 2018-08-03 | 1 | -2/+0 |
|\ \ \ \ | |_|/ / |/| | | | gl_shader_decompiler: Remove unused variable in GenerateDeclarations() | ||||
| * | | | gl_shader_decompiler: Remove unused variable in GenerateDeclarations() | Lioncash | 2018-08-03 | 1 | -2/+0 |
| |/ / | | | | | | | | | | | | | This variable was being incremented, but we were never actually using it. | ||||
* / / | gl_shader_manager: Make ProgramManager's GetCurrentProgramStage() a const member function | Lioncash | 2018-08-03 | 1 | -1/+1 |
|/ / | | | | | | | This function doesn't modify class state, so it can be made const. | ||||
* | | Merge pull request #892 from lioncash/global | bunnei | 2018-08-03 | 8 | -51/+41 |
|\ \ | | | | | | | video_core: Make global EmuWindow instance part of the base renderer … | ||||
| * | | video_core: Make global EmuWindow instance part of the base renderer class | Lioncash | 2018-08-02 | 8 | -51/+41 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes the global a member of the RendererBase class. We also change this to be a reference. Passing any form of null pointer to these functions is incorrect entirely, especially given the code itself assumes that the pointer would always be in a valid state. This also makes it easier to follow the lifecycle of instances being used, as we explicitly interact the renderer with the rasterizer, rather than it just operating on a global pointer. | ||||
* | | | Merge pull request #901 from lioncash/ref | bunnei | 2018-08-03 | 1 | -2/+2 |
|\ \ \ | | | | | | | | | gl_shader_manager: Take ShaderSetup instances by const reference in UseProgrammableVertexShader() and UseProgrammableFragmentShader() | ||||
| * | | | gl_shader_manager: Take ShaderSetup instances by const reference in UseProgrammableVertexShader() and UseProgrammableFragmentShader() | Lioncash | 2018-08-02 | 1 | -2/+2 |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | Avoids performing unnecessary copies of 65560 byte sized ShaderSetup instances, considering it's only used as part of lookup and not modified. Given the parameters were already const, it's likely taking these parameters by reference was intended but the ampersand was forgotten. | ||||
* | | | Merge pull request #902 from lioncash/array | bunnei | 2018-08-02 | 1 | -2/+3 |
|\ \ \ | | | | | | | | | gl_state: Make texture_units a std::array | ||||
| * | | | gl_state: Make texture_units a std::array | Lioncash | 2018-08-02 | 1 | -2/+3 |
| |/ / | | | | | | | | | | Gets rid of the use of a raw C array. | ||||
* / / | Implement RGB32F PixelFormat (#886) (used by Go Vacation) | greggameplayer | 2018-08-02 | 3 | -9/+23 |
|/ / | |||||
* | | Implement R32_FLOAT RenderTargetFormat | Unknown | 2018-08-01 | 3 | -0/+5 |
| | | |||||
* | | Merge pull request #869 from Subv/ubsan | bunnei | 2018-07-31 | 2 | -2/+6 |
|\ \ | |/ |/| | Corrected a few error cases detected by asan/ubsan | ||||
| * | MacroInterpreter: Avoid left shifting negative values. | Subv | 2018-07-31 | 2 | -2/+6 |
| | | | | | | | | The branch target is signed, so multiply by 4 instead of left shifting by 2 | ||||
* | | Merge pull request #808 from lioncash/mem-dedup | bunnei | 2018-07-26 | 1 | -14/+22 |
|\ \ | | | | | | | video_core/memory_manager: Avoid repeated unnecessary page slot lookups | ||||
| * | | video_core/memory_manager: Replace a loop with std::array's fill() function in PageSlot() | Lioncash | 2018-07-24 | 1 | -3/+1 |
| | | | | | | | | | | | | | | | We already have a function that does what this code was doing, so let's use that instead. | ||||
| * | | video_core/memory_manager: Avoid repeated unnecessary page slot lookups | Lioncash | 2018-07-24 | 1 | -11/+21 |
| | | | | | | | | | | | | | | | | | | | | | We don't need to keep calling the same function over and over again in a loop, especially when the behavior is slightly non-trivial. We can just keep a reference to the looked up location and do all the checking and assignments based off it instead. | ||||
* | | | GPU: Allow using R16F as a render target format. | Subv | 2018-07-26 | 2 | -1/+4 |
| |/ |/| | |||||
* | | Implement R16_G16 | Unknown | 2018-07-26 | 4 | -19/+100 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | correct trailing white spaces Delete tabs correct placement Add RG16F & RG16UI & RG16I & RG16S PixelFormats Return correct data according to changes done previously correct PixelFormat declaration correct coding style error correct coding style error part 2 correct RG16S Declaration error correct alignment | ||||
* | | Merge pull request #819 from Subv/srgb | bunnei | 2018-07-25 | 2 | -9/+17 |
|\ \ | | | | | | | GPU: Use the right texture format for sRGBA framebuffers. | ||||
| * | | GPU: Use the right texture format for sRGBA framebuffers. | Subv | 2018-07-25 | 2 | -9/+17 |
| | | | |||||
* | | | GPU: Allow the use of Z24S8 as a texture format. | Subv | 2018-07-25 | 1 | -0/+4 |
|/ / | |||||
* | | Merge pull request #816 from Subv/z32_s8 | bunnei | 2018-07-25 | 4 | -1/+16 |
|\ \ | | | | | | | GPU: Implemented the Z32_S8_X24 depth buffer format. | ||||
| * | | GPU: Implemented the Z32_S8_X24 depth buffer format. | Subv | 2018-07-25 | 4 | -1/+16 |
| | | | |||||
* | | | Merge pull request #815 from Subv/z32f_tex | bunnei | 2018-07-25 | 1 | -0/+4 |
|\ \ \ | | | | | | | | | GPU: Allow using Z32 as a texture format. | ||||
| * | | | GPU: Allow using Z32 as a texture format. | Subv | 2018-07-25 | 1 | -0/+4 |
| |/ / | |||||
* | | | Merge pull request #814 from Subv/rt_r8 | bunnei | 2018-07-25 | 2 | -0/+4 |
|\ \ \ | | | | | | | | | GPU: Allow the usage of R8 as a render target format. | ||||
| * | | | GPU: Allow the usage of R8 as a render target format. | Subv | 2018-07-25 | 2 | -0/+4 |
| |/ / | |||||
* | | | Merge pull request #809 from lioncash/rasterizer | bunnei | 2018-07-25 | 2 | -16/+13 |
|\ \ \ | | | | | | | | | gl_rasterizer: Minor cleanup | ||||
| * | | | gl_rasterizer: Replace magic number with GL_INVALID_INDEX in SetupConstBuffers() | Lioncash | 2018-07-24 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | | | | | | This is just the named constant that OpenGL provides, so we can use that instead of using a literal -1 | ||||
| * | | | gl_rasterizer: Use std::string_view instead of std::string when checking for extensions | Lioncash | 2018-07-24 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | | We can avoid heap allocations here by just using a std::string_view instead of performing unnecessary copying of the string data. | ||||
| * | | | gl_rasterizer: Use in-class member initializers where applicable | Lioncash | 2018-07-24 | 2 | -12/+5 |
| | |/ | |/| | | | | | | | We can just assign to the members directly in these cases. | ||||
* | | | Merge pull request #811 from Subv/code_address_assert | bunnei | 2018-07-25 | 1 | -8/+0 |
|\ \ \ | |_|/ |/| | | GPU: Remove the assert that required the CODE_ADDRESS to be 0. | ||||
| * | | GPU: Remove the assert that required the CODE_ADDRESS to be 0. | Subv | 2018-07-24 | 1 | -8/+0 |
| |/ | | | | | | | Games usually just leave it at 0 but nouveau sets it to something else. This already works fine, the assert is useless. | ||||
* / | GPU: Implemented the R16 and R16F texture formats. | Subv | 2018-07-24 | 3 | -5/+32 |
|/ | |||||
* | Merge pull request #799 from Subv/tex_r32f | bunnei | 2018-07-24 | 3 | -6/+19 |
|\ | | | | | GPU: Implement texture format R32F. | ||||
| * | GPU: Implement texture format R32F. | Subv | 2018-07-24 | 3 | -6/+19 |
| | | |||||
* | | Merge pull request #796 from bunnei/gl-uint | bunnei | 2018-07-24 | 1 | -0/+3 |
|\ \ | | | | | | | maxwell_to_gl: Implement VertexAttribute::Type::UnsignedInt. | ||||
| * | | maxwell_to_gl: Implement VertexAttribute::Type::UnsignedInt. | bunnei | 2018-07-24 | 1 | -0/+3 |
| | | | |||||
* | | | gl_rasterizer: Implement texture border color. | bunnei | 2018-07-24 | 3 | -11/+11 |
| | | | |||||
* | | | maxwell_to_gl: Implement Texture::WrapMode::Border. | bunnei | 2018-07-24 | 1 | -0/+2 |
| |/ |/| | |||||
* | | Merge pull request #791 from bunnei/rg32f-rgba32f-bgra8 | bunnei | 2018-07-24 | 5 | -12/+70 |
|\ \ | |/ |/| | gl_rasterizer_cache: Implement formats BGRA8_UNORM/RGBA32_FLOAT/RG32_FLOAT | ||||
| * | gl_rasterizer_cache: Implement RenderTargetFormat RG32_FLOAT. | bunnei | 2018-07-24 | 5 | -7/+25 |
| | | |||||
| * | gl_rasterizer_cache: Implement RenderTargetFormat RGBA32_FLOAT. | bunnei | 2018-07-24 | 2 | -10/+34 |
| | | |||||
| * | gl_rasterizer_cache: Implement RenderTargetFormat BGRA8_UNORM. | bunnei | 2018-07-24 | 4 | -8/+22 |
| | | |||||
| * | gl_rasterizer_cache: Add missing log statements. | bunnei | 2018-07-24 | 1 | -0/+2 |
| | | |||||
* | | Merge pull request #792 from lioncash/retval | bunnei | 2018-07-24 | 1 | -2/+2 |
|\ \ | | | | | | | gl_shader_decompiler: Correct return value of WriteTexsInstruction() | ||||
| * | | gl_shader_decompiler: Correct return value of WriteTexsInstruction() | Lioncash | 2018-07-24 | 1 | -2/+2 |
| | | | | | | | | | | | | This should be returning void, not a std::string | ||||
* | | | Merge pull request #790 from bunnei/shader-print-instr | bunnei | 2018-07-24 | 1 | -1/+2 |
|\ \ \ | | | | | | | | | gl_shader_decompiler: Print instruction value in shader comments. | ||||
| * | | | gl_shader_decompiler: Print instruction value in shader comments. | bunnei | 2018-07-24 | 1 | -1/+2 |
| | |/ | |/| | |||||
* | | | Merge pull request #788 from bunnei/shader-check-zero | bunnei | 2018-07-24 | 1 | -0/+6 |
|\ \ \ | |_|/ |/| | | gl_shader_decompiler: Check if SetRegister result is ZeroIndex. | ||||
| * | | gl_shader_decompiler: Check if SetRegister result is ZeroIndex. | bunnei | 2018-07-24 | 1 | -0/+6 |
| |/ | |||||
* | | gl_shader_decompiler: Implement shader instruction TLDS. | bunnei | 2018-07-24 | 1 | -29/+43 |
| | | |||||
* | | gl_shader_decompiler: Simplify GetCommonDeclarations() | Lioncash | 2018-07-23 | 1 | -5/+5 |
|/ | |||||
* | Merge pull request #769 from bunnei/shader-mask-fixes | bunnei | 2018-07-23 | 1 | -5/+9 |
|\ | | | | | shader_bytecode: Implement other TEXS masks. | ||||
| * | shader_bytecode: Implement other TEXS masks. | bunnei | 2018-07-22 | 1 | -5/+9 |
| | | |||||
* | | gl_shader_decompiler: Remove redundant Subroutine construction in AddSubroutine() | Lioncash | 2018-07-22 | 1 | -4/+8 |
|/ | | | | | | We don't need to toss away the Subroutine instance after the find() call and reconstruct another instance with the same data right after it. Particularly give Subroutine contains a std::set. | ||||
* | Merge pull request #767 from bunnei/shader-cleanup | bunnei | 2018-07-22 | 1 | -78/+15 |
|\ | | | | | gl_shader_decompiler: Remove unused state tracking and minor cleanup. | ||||
| * | gl_shader_decompiler: Remove unused state tracking and minor cleanup. | bunnei | 2018-07-22 | 1 | -78/+15 |
| | | |||||
* | | gl_shader_decompiler: Implement SEL instruction. | bunnei | 2018-07-22 | 2 | -0/+20 |
|/ | |||||
* | gl_rasterizer_cache: Blit surfaces on recreation instead of flush and load. | bunnei | 2018-07-22 | 2 | -2/+86 |
| | |||||
* | gl_rasterizer_cache: Use GPUVAddr as cache key, not parameter set. | bunnei | 2018-07-22 | 3 | -57/+46 |
| | |||||
* | gl_rasterizer_cache: Use zeta_width and zeta_height registers for depth buffer. | bunnei | 2018-07-22 | 2 | -11/+11 |
| | |||||
* | gl_rasterizer: Use zeta_enable register to enable depth buffer. | bunnei | 2018-07-22 | 1 | -2/+2 |
| | |||||
* | maxwell_3d: Add depth buffer enable, width, and height registers. | bunnei | 2018-07-22 | 1 | -2/+14 |
| | |||||
* | Merge pull request #748 from lioncash/namespace | bunnei | 2018-07-22 | 11 | -48/+24 |
|\ | | | | | video_core: Use nested namespaces where applicable | ||||
| * | video_core: Use nested namespaces where applicable | Lioncash | 2018-07-21 | 11 | -48/+24 |
| | | | | | | | | Compresses a few namespace specifiers to be more compact. | ||||
* | | Merge pull request #747 from lioncash/unimplemented | bunnei | 2018-07-21 | 2 | -3/+3 |
|\ \ | | | | | | | gl_shader_manager: Remove unimplemented function prototype | ||||
| * | | gl_shader_manager: Replace unimplemented function prototype | Lioncash | 2018-07-21 | 2 | -3/+3 |
| |/ | | | | | | | This was just a linker error waiting to happen. | ||||
* / | gpu: Rename Get3DEngine() to Maxwell3D() | Lioncash | 2018-07-21 | 3 | -11/+14 |
|/ | | | | This makes it match its const qualified equivalent. | ||||
* | Merge pull request #738 from lioncash/sign | bunnei | 2018-07-20 | 1 | -16/+20 |
|\ | | | | | gl_state: Get rid of mismatched sign conversions in Apply() | ||||
| * | gl_state: Make references const where applicable in Apply() | Lioncash | 2018-07-20 | 1 | -2/+3 |
| | | |||||
| * | gl_state: Get rid of mismatched sign conversions | Lioncash | 2018-07-20 | 1 | -14/+17 |
| | | | | | | | | | | While we're at it, amend the loop variable type to be the same width as that returned by the .size() call. | ||||
* | | Merge pull request #735 from lioncash/video-unused | bunnei | 2018-07-20 | 1 | -2/+0 |
|\ \ | | | | | | | maxwell_3d: Remove unused variable within GetStageTextures() | ||||
| * | | maxwell_3d: Remove unused variable within GetStageTextures() | Lioncash | 2018-07-20 | 1 | -2/+0 |
| |/ | |||||
* | | Merge pull request #731 from lioncash/shadow | bunnei | 2018-07-20 | 1 | -6/+4 |
|\ \ | | | | | | | gl_shader_decompiler: Eliminate variable and declaration shadowing | ||||
| * | | gl_shader_decompiler: Eliminate variable and declaration shadowing | Lioncash | 2018-07-20 | 1 | -6/+4 |
| |/ | | | | | | | | | Ensures that no identifiers are being hidden, which also reduces compiler warnings. | ||||
* / | gl_shader_decompiler: Remove unnecessary const from return values | Lioncash | 2018-07-20 | 1 | -2/+2 |
|/ | | | | | This adds nothing from a behavioral point of view, and can inhibit the move constructor/RVO | ||||
* | gl_state: Temporarily disable culling and depth test. | bunnei | 2018-07-19 | 1 | -1/+3 |
| | |||||
* | Merge pull request #687 from lioncash/instance | bunnei | 2018-07-19 | 3 | -15/+15 |
|\ | | | | | core: Don't construct instance of Core::System, just to access its live instance | ||||
| * | core: Don't construct instance of Core::System, just to access its live instance | Lioncash | 2018-07-19 | 3 | -15/+15 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | | decoders: Fix calc of swizzle image_width_in_gobs. | bunnei | 2018-07-19 | 1 | -1/+4 |
|/ | |||||
* | Merge pull request #678 from lioncash/astc | bunnei | 2018-07-18 | 1 | -78/+60 |
|\ | | | | | astc: Minor changes | ||||
| * | astc: Initialize vector size directly in Decompress | Lioncash | 2018-07-18 | 1 | -2/+1 |
| | | | | | | | | There's no need to perform a separate resize. | ||||
| * | astc: Mark functions as internally linked where applicable | Lioncash | 2018-07-18 | 1 | -17/+20 |
| | | |||||
| * | astc: const-correctness changes where applicable | Lioncash | 2018-07-18 | 1 | -14/+13 |
| | | | | | | | | | | A few member functions didn't actually modify class state, so these can be amended as necessary. | ||||
| * | astc: Delete Bits' copy contstructor and assignment operator | Lioncash | 2018-07-18 | 1 | -8/+6 |
| | | | | | | | | | | This also potentially avoids warnings, considering the copy assignment operator is supposed to have a return value. | ||||
| * | astc: In-class initialize member variables where appropriate | Lioncash | 2018-07-18 | 1 | -39/+22 |
| | | |||||
* | | vi: Partially implement buffer crop parameters. | bunnei | 2018-07-18 | 3 | -4/+20 |
|/ | |||||
* | GPU: Added register definitions for the stencil parameters. | Subv | 2018-07-17 | 1 | -2/+25 |
| | |||||
* | gl_rasterizer_cache: Implement texture format G8R8. | bunnei | 2018-07-15 | 3 | -9/+40 |
| | |||||
* | Merge pull request #665 from bunnei/fix-z24-s8 | bunnei | 2018-07-15 | 1 | -1/+2 |
|\ | | | | | gl_rasterizer_cache: Fix incorrect offset in ConvertS8Z24ToZ24S8. | ||||
| * | gl_rasterizer_cache: Fix incorrect offset in ConvertS8Z24ToZ24S8. | bunnei | 2018-07-15 | 1 | -1/+2 |
| | | |||||
* | | gl_rasterizer_cache: Implement depth format Z16_UNORM. | bunnei | 2018-07-15 | 3 | -1/+15 |
|/ | |||||
* | Merge pull request #598 from bunnei/makedonecurrent | bunnei | 2018-07-15 | 3 | -1/+27 |
|\ | | | | | OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering. | ||||
| * | OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering. | bunnei | 2018-07-14 | 3 | -1/+27 |
| | | |||||
* | | GPU: Always enable the depth write when clearing the depth buffer. | Subv | 2018-07-14 | 1 | -3/+8 |
|/ | | | | 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. | ||||
* | gl_rasterizer: Fix check for if a shader stage is enabled. | bunnei | 2018-07-13 | 3 | -35/+11 |
| | |||||
* | gl_shader_gen: Implement dual vertex shader mode. | bunnei | 2018-07-13 | 5 | -55/+139 |
| | | | | - When VertexA shader stage is enabled, we combine with VertexB program to make a single Vertex Shader stage. | ||||
* | Merge pull request #655 from bunnei/pred-lt-nan | bunnei | 2018-07-13 | 2 | -5/+7 |
|\ | | | | | gl_shader_decompiler: Implement PredCondition::LessThanWithNan. | ||||
| * | gl_shader_decompiler: Implement PredCondition::LessThanWithNan. | bunnei | 2018-07-13 | 2 | -5/+7 |
| | | |||||
* | | gl_shader_decompiler: Use FlowCondition field in EXIT instruction. | bunnei | 2018-07-13 | 2 | -8/+34 |
|/ | |||||
* | Merge pull request #652 from Subv/fadd32i | Sebastian Valle | 2018-07-13 | 2 | -0/+32 |
|\ | | | | | GPU: Implement the FADD32I shader instruction. | ||||
| * | GPU: Implement the FADD32I shader instruction. | Subv | 2018-07-12 | 2 | -0/+32 |
| | | |||||
* | | Merge pull request #651 from Subv/ffma_decode | bunnei | 2018-07-12 | 1 | -1/+1 |
|\ \ | | | | | | | GPU: Corrected the decoding of FFMA for immediate operands. | ||||
| * | | GPU: Corrected the decoding of FFMA for immediate operands. | Subv | 2018-07-12 | 1 | -1/+1 |
| |/ | |||||
* | | gl_rasterizer: Flip triangles when regs.viewport_transform[0].scale_y is negative. | bunnei | 2018-07-08 | 1 | -1/+4 |
| | | | | | | | | - Fixes a regression with Binding of Isaac. | ||||
* | | Merge pull request #625 from Subv/imnmx | bunnei | 2018-07-08 | 2 | -3/+31 |
|\ \ | | | | | | | GPU: Implemented the IMNMX shader instruction. | ||||
| * | | GPU: Implemented the IMNMX shader instruction. | Subv | 2018-07-04 | 2 | -3/+31 |
| | | | | | | | | | | | | It's similar to the FMNMX instruction but it works on integers. | ||||
* | | | GPU: Implemented the BC7U texture format. | Subv | 2018-07-07 | 3 | -7/+21 |
| |/ |/| | | | | | 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. | ||||
* | | Merge pull request #629 from Subv/depth_test | bunnei | 2018-07-05 | 2 | -9/+29 |
|\ \ | | | | | | | GPU: Allow using the old NV04 values for the depth test function. | ||||
| * | | GPU: Allow using the old NV04 values for the depth test function. | Subv | 2018-07-05 | 2 | -9/+29 |
| | | | | | | | | | | | | | | | | | | These seem to be just a valid as the GL token values. Thanks @ReinUsesLisp This restores graphical output to Disgaea 5 | ||||
* | | | Merge pull request #626 from Subv/shader_sync | bunnei | 2018-07-05 | 2 | -0/+12 |
|\ \ \ | |/ / |/| | | GPU: Stub the shader SYNC and DEPBAR instructions. | ||||
| * | | GPU: Stub the shader SYNC and DEPBAR instructions. | Subv | 2018-07-04 | 2 | -0/+12 |
| |/ | | | | | | | 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. | ||||
* | | Merge pull request #624 from Subv/f2f_round | bunnei | 2018-07-05 | 1 | -0/+3 |
|\ \ | | | | | | | GPU: Implemented the F2F 'round' rounding mode. | ||||
| * | | GPU: Implemented the F2F 'round' rounding mode. | Subv | 2018-07-04 | 1 | -0/+3 |
| |/ | | | | | | | It's implemented via the GLSL 'roundEven()' function. | ||||
* | | Merge pull request #623 from Subv/vertex_types | bunnei | 2018-07-05 | 1 | -0/+8 |
|\ \ | | | | | | | GPU: Implement the Size_16_16 and Size_10_10_10_2 vertex attribute types | ||||
| * | | GPU: Implement the Size_16_16 and Size_10_10_10_2 vertex attribute types. | Subv | 2018-07-04 | 1 | -0/+8 |
| |/ | | | | | | | Both signed and unsigned variants. | ||||
* | | Merge pull request #622 from Subv/unused_tex | bunnei | 2018-07-05 | 2 | -2/+5 |
|\ \ | | | | | | | GPU: Ignore unused textures and corrected the TEX shader instruction decoding. | ||||
| * | | GPU: Ignore textures that the GLSL compiler deemed unused when binding textures to the shaders. | Subv | 2018-07-04 | 1 | -1/+4 |
| | | | |||||
| * | | GPU: Corrected the decoding for the TEX shader instruction. | Subv | 2018-07-04 | 1 | -1/+1 |
| |/ | |||||
* | | Merge pull request #621 from Subv/psetp_ | bunnei | 2018-07-05 | 2 | -0/+43 |
|\ \ | | | | | | | GPU: Implemented the PSETP shader instruction. | ||||
| * | | GPU: Implemented the PSETP shader instruction. | Subv | 2018-07-04 | 2 | -0/+43 |
| |/ | | | | | | | It's similar to the isetp and fsetp instructions but it works on predicates instead. | ||||
* | | Merge pull request #620 from Subv/depth_z32f | bunnei | 2018-07-05 | 3 | -2/+15 |
|\ \ | | | | | | | GPU: Implemented the 32 bit float depth buffer format. | ||||
| * | | GPU: Implemented the 32 bit float depth buffer format. | Subv | 2018-07-04 | 3 | -2/+15 |
| |/ | |||||
* / | GPU: Flip the triangle front face winding if the GPU is configured to not flip the triangles. | Subv | 2018-07-04 | 2 | -3/+29 |
|/ | | | | | | OpenGL's default behavior is already correct when the GPU is configured to flip the triangles. This fixes 1-2 Switch's splash screen. | ||||
* | GPU: Only configure the used framebuffers during clear. | Subv | 2018-07-04 | 4 | -17/+48 |
| | | | | Don't try to configure the color buffer if it is not being cleared, it may not be completely valid at this point. | ||||
* | Merge pull request #609 from Subv/clear_buffers | bunnei | 2018-07-04 | 5 | -16/+105 |
|\ | | | | | GPU: Implemented the CLEAR_BUFFERS register. | ||||
| * | GPU: Factor out the framebuffer configuration code for both Clear and Draw commands. | Subv | 2018-07-03 | 2 | -72/+39 |
| | | |||||
| * | GPU: Support clears that don't clear the color buffer. | Subv | 2018-07-03 | 2 | -6/+17 |
| | | |||||
| * | GPU: Bind and clear the render target when the CLEAR_BUFFERS register is written to. | Subv | 2018-07-03 | 4 | -0/+86 |
| | | |||||
| * | GPU: Added registers for the CLEAR_BUFFERS and CLEAR_COLOR methods. | Subv | 2018-07-03 | 1 | -2/+27 |
| | | |||||
* | | gl_rasterizer_cache: Implement PixelFormat S8Z24. | bunnei | 2018-07-03 | 3 | -11/+83 |
| | | |||||
* | | Merge pull request #607 from jroweboy/logging | bunnei | 2018-07-03 | 13 | -88/+87 |
|\ \ | | | | | | | Logging - Customizable backends | ||||
| * | | Update clang format | James Rowe | 2018-07-03 | 7 | -21/+20 |
| | | | |||||
| * | | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 13 | -70/+70 |
| |/ | |||||
* | | Merge pull request #612 from bunnei/fix-cull | bunnei | 2018-07-03 | 1 | -2/+5 |
|\ \ | | | | | | | gl_rasterizer: Only set cull mode and front face if enabled. | ||||
| * | | gl_rasterizer: Only set cull mode and front face if enabled. | bunnei | 2018-07-03 | 1 | -2/+5 |
| |/ | |||||
* | | Merge pull request #611 from Subv/enabled_depth_test | bunnei | 2018-07-03 | 2 | -9/+13 |
|\ \ | | | | | | | GPU: Don't try to parse the depth test function if the depth test is disabled and use only the least significant 3 bits in the depth test func | ||||
| * | | GPU: Use only the least significant 3 bits when reading the depth test func. | Subv | 2018-07-03 | 1 | -9/+9 |
| | | | | | | | | | | | | Some games set the full GL define value here (including nouveau), but others just seem to set those last 3 bits. | ||||
| * | | GPU: Don't try to parse the depth test function if the depth test is disabled. | Subv | 2018-07-03 | 1 | -0/+4 |
| |/ | |||||
* | | Merge pull request #610 from Subv/mufu_8 | bunnei | 2018-07-03 | 2 | -0/+5 |
|\ \ | |/ |/| | GPU: Implemented MUFU suboperation 8, sqrt. | ||||
| * | GPU: Implemented MUFU suboperation 8, sqrt. | Subv | 2018-07-03 | 2 | -0/+5 |
| | | |||||
* | | Merge pull request #608 from Subv/depth | bunnei | 2018-07-03 | 9 | -32/+246 |
|\ \ | | | | | | | GPU: Implemented the depth buffer and depth test + culling | ||||
| * | | GPU: Set up the culling configuration on each draw. | Subv | 2018-07-03 | 1 | -6/+8 |
| | | | |||||
| * | | GPU: Set up the depth test state on every draw. | Subv | 2018-07-02 | 2 | -0/+14 |
| | | | |||||
| * | | MaxwellToGL: Added conversion functions for depth test and cull mode. | Subv | 2018-07-02 | 1 | -0/+50 |
| | | | |||||
| * | | GPU: Added registers for depth test and cull mode. | Subv | 2018-07-02 | 1 | -3/+51 |
| | | | |||||
| * | | GPU: Implemented the Z24S8 depth format and load the depth framebuffer. | Subv | 2018-07-02 | 7 | -24/+124 |
| |/ | |||||
* | | Merge pull request #606 from Subv/base_vertex | Sebastian Valle | 2018-07-02 | 2 | -8/+15 |
|\ \ | | | | | | | GPU: Fixed the index offset and implement BaseVertex when doing indexed rendering. | ||||
| * | | GPU: Implement offsetted rendering when using non-indexed drawing. | Subv | 2018-07-02 | 1 | -1/+1 |
| | | | |||||
| * | | GPU: Fixed the index offset rendering, and implemented the base vertex functionality. | Subv | 2018-07-02 | 1 | -6/+8 |
| | | | | | | | | | | | | This fixes Stardew Valley. | ||||
| * | | GPU: Added register definitions for the vertex buffer base element. | Subv | 2018-07-02 | 1 | -1/+6 |
| |/ | |||||
* | | Merge pull request #605 from Subv/dma_copy | Sebastian Valle | 2018-07-02 | 1 | -1/+5 |
|\ \ | | | | | | | GPU: Directly copy the pixels when performing a same-layout DMA. | ||||
| * | | GPU: Directly copy the pixels when performing a same-layout DMA. | Subv | 2018-07-02 | 1 | -1/+5 |
| | | | |||||
* | | | Merge pull request #604 from Subv/invalid_textures | bunnei | 2018-07-02 | 3 | -3/+12 |
|\ \ \ | |_|/ |/| | | GPU: Ignore invalid and disabled textures when drawing. | ||||
| * | | GPU: Ignore disabled textures and textures with an invalid address. | Subv | 2018-07-02 | 2 | -1/+10 |
| | | | |||||
| * | | GPU: Allow GpuToCpuAddress to return boost::none for unmapped addresses. | Subv | 2018-07-02 | 1 | -2/+2 |
| |/ | |||||
* | | Merge pull request #602 from Subv/mufu_subop | bunnei | 2018-07-01 | 2 | -6/+1 |
|\ \ | | | | | | | GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation. | ||||
| * | | GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation. | Subv | 2018-06-30 | 2 | -6/+1 |
| |/ | |||||
* | | Merge pull request #601 from Subv/rgba32_ui | bunnei | 2018-07-01 | 4 | -25/+48 |
|\ \ | | | | | | | GPU: Implement the RGBA32_UINT rendertarget format. | ||||
| * | | GPU: Implemented the RGBA32_UINT rendertarget format. | Subv | 2018-06-30 | 4 | -9/+28 |
| | | | |||||
| * | | GLCache: Specify the component type along the texture type in the format tuple. | Subv | 2018-06-30 | 1 | -17/+21 |
| |/ | |||||
* / | gl_shader_decompiler: Implement predicate NotEqualWithNan. | bunnei | 2018-06-30 | 2 | -17/+24 |
|/ | |||||
* | Merge pull request #595 from bunnei/raster-cache | bunnei | 2018-06-29 | 8 | -1454/+404 |
|\ | | | | | Rewrite the OpenGL rasterizer cache | ||||
| * | gl_rasterizer_cache: Only dereference color_surface/depth_surface if valid. | bunnei | 2018-06-29 | 1 | -2/+6 |
| | | |||||
| * | gl_rasterizer_cache: Implement caching for texture and framebuffer surfaces. | bunnei | 2018-06-27 | 3 | -16/+168 |
| | | | | | | | | | | | | gl_rasterizer_cache: Improved cache management based on Citra's implementation. gl_surface_cache: Add some docstrings. | ||||
| * | gl_rasterizer_cache: Various fixes for ASTC handling. | bunnei | 2018-06-27 | 2 | -35/+39 |
| | | |||||
| * | gl_rasterizer_cache: Use SurfaceParams as a key for surface caching. | bunnei | 2018-06-27 | 2 | -43/+72 |
| | | |||||
| * | maxwell_3d: Add a struct for RenderTargetConfig. | bunnei | 2018-06-27 | 1 | -17/+19 |
| | | |||||
| * | gl_rasterizer: Implement AccelerateDisplay to forward textures to framebuffers. | bunnei | 2018-06-27 | 6 | -8/+62 |
| | | |||||
| * | gl_rasterizer_cache: Cache size_in_bytes as a const per surface. | bunnei | 2018-06-27 | 2 | -9/+13 |
| | | |||||
| * | gl_rasterizer_cache: Refactor to make SurfaceParams members const. | bunnei | 2018-06-27 | 2 | -52/+37 |
| | | |||||
| * | gl_rasterizer_cache: Remove Citra's rasterizer cache, always load/flush surfaces. | bunnei | 2018-06-27 | 4 | -1494/+210 |
| | | |||||
* | | gl_shader_decompiler: Add a return path for unknown instructions. | bunnei | 2018-06-27 | 1 | -0/+1 |
|/ | |||||
* | gl_rasterizer: Workaround for when exceeding max UBO size. | bunnei | 2018-06-27 | 2 | -1/+7 |
| | |||||
* | Merge pull request #593 from bunnei/fix-swizzle | bunnei | 2018-06-27 | 5 | -12/+20 |
|\ | | | | | gl_state: Fix state management for texture swizzle. | ||||
| * | gl_state: Fix state management for texture swizzle. | bunnei | 2018-06-26 | 5 | -12/+20 |
| | | |||||
* | | Merge pull request #592 from bunnei/cleanup-gl-state | bunnei | 2018-06-27 | 2 | -94/+0 |
|\ \ | | | | | | | gl_state: Remove unused state management from 3DS. | ||||
| * | | gl_state: Remove unused state management from 3DS. | bunnei | 2018-06-26 | 2 | -94/+0 |
| |/ | |||||
* / | gl_rasterizer_cache: Fix inverted B5G6R5 format. | bunnei | 2018-06-26 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #554 from Subv/constbuffer_ubo | bunnei | 2018-06-26 | 4 | -18/+39 |
|\ | | | | | Rasterizer: Use UBOs instead of SSBOs for uploading const buffers. | ||||
| * | Rasterizer: Use UBOs instead of SSBOs for uploading const buffers. | Subv | 2018-06-10 | 4 | -18/+39 |
| | | | | | | | | This should help a bit with GPU performance once we're GPU-bound. | ||||
* | | Fix crash at exit | mailwl | 2018-06-25 | 1 | -2/+4 |
| | | |||||
* | | Build: Fixed some MSVC warnings in various parts of the code. | Subv | 2018-06-20 | 7 | -12/+13 |
| | | |||||
* | | Merge pull request #574 from Subv/shader_abs_neg | bunnei | 2018-06-19 | 1 | -7/+14 |
|\ \ | | | | | | | GPU: Perform negation after absolute value in the float shader instructions. | ||||
| * | | GPU: Perform negation after absolute value in the float shader instructions. | Subv | 2018-06-19 | 1 | -7/+14 |
| | | | |||||
* | | | GPU: Don't mark uniform buffers and registers as used for instructions which don't have them. | Subv | 2018-06-19 | 2 | -14/+18 |
|/ / | | | | | | | | | Like the MOV32I and FMUL32I instructions. This fixes a potential crash when using these instructions. | ||||
* | | Merge pull request #570 from bunnei/astc | bunnei | 2018-06-19 | 6 | -1/+1709 |
|\ \ | | | | | | | gl_rasterizer: Implement texture format ASTC_2D_4X4. | ||||
| * | | gl_rasterizer: Implement texture format ASTC_2D_4X4. | bunnei | 2018-06-18 | 6 | -1/+1709 |
| | | | |||||
* | | | Merge pull request #571 from Armada651/loose-blend | bunnei | 2018-06-18 | 1 | -1/+1 |
|\ \ \ | |/ / |/| | | gl_rasterizer: Get loose on independent blending. | ||||
| * | | gl_rasterizer: Get loose on independent blending. | Jules Blok | 2018-06-18 | 1 | -1/+1 |
| | | | |||||
* | | | gl_rasterizer_cache: Loosen things up a bit. | bunnei | 2018-06-18 | 1 | -26/+8 |
| | | | |||||
* | | | gl_shader_decompiler: Implement LOP instructions. | bunnei | 2018-06-17 | 2 | -6/+42 |
| | | | |||||
* | | | gl_shader_decompiler: Refactor LOP32I instruction a bit in support of LOP. | bunnei | 2018-06-17 | 2 | -57/+42 |
|/ / | |||||
* | | gl_shader_decompiler: Implement integer size conversions for I2I/I2F/F2I. | bunnei | 2018-06-16 | 2 | -14/+43 |
| | | |||||
* | | Merge pull request #564 from bunnei/lop32i_passb | bunnei | 2018-06-16 | 1 | -6/+12 |
|\ \ | | | | | | | gl_shader_decompiler: Implement LOP32I LogicOperation PassB. | ||||
| * | | gl_shader_decompiler: Implement LOP32I LogicOperation PassB. | bunnei | 2018-06-16 | 1 | -6/+12 |
| | | | |||||
* | | | gl_shader_gen: Set position.w to 1. | bunnei | 2018-06-16 | 1 | -0/+4 |
|/ / | |||||
* | | Merge pull request #556 from Subv/dma_engine | bunnei | 2018-06-12 | 7 | -1/+237 |
|\ \ | | | | | | | GPU: Partially implemented the Maxwell DMA engine. | ||||
| * | | GPU: Partially implemented the Maxwell DMA engine. | Subv | 2018-06-12 | 7 | -1/+237 |
| | | | | | | | | | | | | Only tiled->linear and linear->tiled copies that aren't offsetted are supported for now. Queries are not supported. Swizzled copies are not supported. | ||||
* | | | Merge pull request #558 from Subv/iadd32i | bunnei | 2018-06-12 | 2 | -2/+31 |
|\ \ \ | | | | | | | | | GPU: Implemented the iadd32i shader instruction. | ||||
| * | | | GPU: Implemented the iadd32i shader instruction. | Subv | 2018-06-12 | 2 | -2/+31 |
| | | | | |||||
* | | | | gl_shader_decompiler: Implement saturate for float instructions. | bunnei | 2018-06-12 | 2 | -39/+32 |
|/ / / | |||||
* / / | GPU: Convert the gl_InstanceId and gl_VertexID variables to floats when reading from them. | Subv | 2018-06-10 | 1 | -1/+1 |
|/ / | | | | | | | This corrects the invalid position values in some games when doing attribute-less rendering. | ||||
* | | GPU: Implement the iset family of shader instructions. | Subv | 2018-06-09 | 2 | -2/+46 |
| | | |||||
* | | GPU: Added decodings for the ISET family of instructions. | Subv | 2018-06-09 | 1 | -0/+7 |
|/ | |||||
* | Merge pull request #550 from Subv/ssy | bunnei | 2018-06-09 | 2 | -0/+7 |
|\ | | | | | GPU: Stub the SSY shader instruction. | ||||
| * | GPU: Stub the SSY shader instruction. | Subv | 2018-06-09 | 2 | -0/+7 |
| | | | | | | | | This instruction tells the GPU where the flow reconverges in a non-uniform control flow scenario, we can ignore this when generating GLSL code. | ||||
* | | Merge pull request #551 from bunnei/shr | bunnei | 2018-06-09 | 2 | -0/+17 |
|\ \ | | | | | | | gl_shader_decompiler: Implement SHR instruction. | ||||
| * | | gl_shader_decompiler: Implement SHR instruction. | bunnei | 2018-06-09 | 2 | -0/+17 |
| |/ | |||||
* | | gl_shader_decompiler: Implement IADD instruction. | bunnei | 2018-06-09 | 2 | -11/+37 |
| | | |||||
* | | gl_shader_decompiler: Add missing asserts for saturate_a instructions. | bunnei | 2018-06-09 | 2 | -8/+18 |
|/ | |||||
* | GPU: Synchronize the blend state on every draw call. | Subv | 2018-06-09 | 2 | -16/+20 |
| | | | | | | Only independent blending on render target 0 is implemented for now. This fixes the elongated squids in Splatoon 2's boot screen. | ||||
* | GPU: Added registers for normal and independent blending. | Subv | 2018-06-09 | 2 | -31/+27 |
| | |||||
* | Merge pull request #547 from Subv/compressed_alignment | bunnei | 2018-06-08 | 1 | -2/+7 |
|\ | | | | | GLCache: Align compressed texture sizes to their compression ratio, and then align that compressed size to the block height for tiled textures. | ||||
| * | GLCache: Align compressed texture sizes to their compression ratio, and then align that compressed size to the block height for tiled textures. | Subv | 2018-06-08 | 1 | -2/+7 |
| | | | | | | | | This fixes issues with retrieving non-block-aligned tiled compressed textures from the cache. | ||||
* | | Rasterizer: Flush the written region when writing shader uniform data before copying it to the uniform buffers. | Subv | 2018-06-08 | 1 | -0/+3 |
|/ | | | | This fixes the flip_viewport uniform having invalid values when drawing. | ||||
* | Merge pull request #543 from Subv/uniforms | bunnei | 2018-06-07 | 1 | -3/+4 |
|\ | | | | | GLRenderer: Write the shader stage configuration UBO data *before* copying it to the GPU. | ||||
| * | GLRenderer: Write the shader stage configuration UBO data *before* copying it to the GPU. | Subv | 2018-06-07 | 1 | -3/+4 |
| | | | | | | | | This should fix the bug with the vs_config UBO being uninitialized during shader execution. | ||||
* | | Merge pull request #542 from bunnei/bfe_imm | bunnei | 2018-06-07 | 2 | -7/+44 |
|\ \ | | | | | | | gl_shader_decompiler: Implement BFE_IMM instruction. | ||||
| * | | gl_shader_decompiler: Implement BFE_IMM instruction. | bunnei | 2018-06-07 | 2 | -7/+44 |
| | | | |||||
* | | | Merge pull request #541 from Subv/blittextures | bunnei | 2018-06-07 | 1 | -56/+9 |
|\ \ \ | |/ / |/| | | GLCache: Fixed copying compressed textures in the rasterizer cache. | ||||
| * | | GLCache: Use the full uncompressed size when blitting from one texture to another. | Subv | 2018-06-07 | 1 | -3/+6 |
| | | | | | | | | | | | | This avoids the problem of only copying a tiny piece of the textures when they are compressed. | ||||
| * | | GLCache: Simplify the logic to copy from one texture to another in BlitTextures. | Subv | 2018-06-07 | 1 | -53/+3 |
| |/ | | | | | | | | | | | We now use glCopyImageSubData, this should avoid errors with trying to attach a compressed texture as a framebuffer's color attachment and then blitting to it. Maybe in the future we can change this to glCopyTextureSubImage which only requires GL_ARB_direct_state_access. | ||||
* | | gl_shader_decompiler: F2F: Implement rounding modes. | bunnei | 2018-06-07 | 2 | -10/+35 |
| | | |||||
* | | Merge pull request #537 from bunnei/misc-shader | bunnei | 2018-06-07 | 2 | -8/+24 |
|\ \ | | | | | | | gl_shader_decompiler: Additional decodings, remove unused stuff from TEX | ||||
| * | | gl_shader_decompiler: Remove some attribute stuff that has nothing to do with TEX/TEXS. | bunnei | 2018-06-07 | 1 | -8/+4 |
| | | | |||||
| * | | shader_bytecode: Add instruction decodings for BFE, IMNMX, and XMAD. | bunnei | 2018-06-07 | 1 | -0/+20 |
| |/ | |||||
* | | Merge pull request #535 from Subv/gpu_swizzle | bunnei | 2018-06-07 | 6 | -0/+65 |
|\ \ | | | | | | | GPU: Support changing the texture swizzles for Maxwell textures. | ||||
| * | | GPU: Support changing the texture swizzles for Maxwell textures. | Subv | 2018-06-07 | 3 | -0/+45 |
| | | | |||||
| * | | GLState: Support changing the GL_TEXTURE_SWIZZLE parameter of each texture unit. | Subv | 2018-06-07 | 3 | -0/+20 |
| |/ | |||||
* / | gl_shader_decompiler: Implement ISETP_IMM instruction. | bunnei | 2018-06-07 | 1 | -8/+9 |
|/ | |||||
* | Merge pull request #534 from Subv/multitexturing | bunnei | 2018-06-07 | 9 | -69/+172 |
|\ | | | | | GPU: Implement sampling multiple textures in the generated glsl shaders. | ||||
| * | GPU: Implement sampling multiple textures in the generated glsl shaders. | Subv | 2018-06-06 | 9 | -69/+172 |
| | | | | | | | | | | | | All tested games that use a single texture show no regression. Only Texture2D textures are supported right now, each shader gets its own "tex_fs/vs/gs" sampler array to maintain independent textures between shader stages, the textures themselves are reused if possible. | ||||
* | | gl_shader_decompiler: Implement LD_C instruction. | bunnei | 2018-06-07 | 2 | -0/+43 |
| | | |||||
* | | gl_shader_gen: Add uniform handling for indirect const buffer access. | bunnei | 2018-06-07 | 3 | -4/+40 |
| | | |||||
* | | gl_shader_decompiler: Refactor uniform handling to allow different decodings. | bunnei | 2018-06-06 | 2 | -26/+29 |
|/ | |||||
* | Merge pull request #531 from bunnei/fix-shl | Sebastian Valle | 2018-06-06 | 1 | -1/+1 |
|\ | | | | | gl_shader_decompiler: Fix un/signed mismatch with SHL. | ||||
| * | gl_shader_decompiler: Fix un/signed mismatch with SHL. | bunnei | 2018-06-06 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #530 from bunnei/wrap-mirror | Sebastian Valle | 2018-06-06 | 1 | -0/+2 |
|\ \ | | | | | | | maxwell_to_gl: Implement WrapMode Mirror. | ||||
| * | | maxwell_to_gl: Implement WrapMode Mirror. | bunnei | 2018-06-06 | 1 | -0/+2 |
| |/ | |||||
* | | Merge pull request #527 from Subv/rgba32f_texcopy | bunnei | 2018-06-06 | 2 | -0/+5 |
|\ \ | | | | | | | GPU: Allow the usage of RGBA32_FLOAT and RGBA16_FLOAT in the texture copy engine. | ||||
| * | | GPU: Allow the usage of RGBA16_FLOAT in the texture copy engine. | Subv | 2018-06-06 | 1 | -0/+2 |
| | | | |||||
| * | | GPU: Allow the usage of RGBA32_FLOAT in the texture copy engine. | Subv | 2018-06-06 | 2 | -0/+3 |
| | | | |||||
* | | | Merge pull request #528 from Subv/rg11b10f | bunnei | 2018-06-06 | 4 | -12/+31 |
|\ \ \ | |_|/ |/| | | GPU: Implemented the R11FG11FB10F texture and rendertarget formats. | ||||
| * | | GPU: Implemented the R11FG11FB10F texture and rendertarget formats. | Subv | 2018-06-06 | 4 | -11/+30 |
| | | | |||||
| * | | GPU: Fixed the compression factor for RGBA16F textures. | Subv | 2018-06-06 | 1 | -1/+1 |
| |/ | | | | | | | They're not compressed. | ||||
* | | Merge pull request #516 from Subv/f2i_r | bunnei | 2018-06-06 | 2 | -7/+64 |
|\ \ | | | | | | | GPU: Implemented the F2I_R shader instruction. | ||||
| * | | GPU: Implemented the F2I_R shader instruction. | Subv | 2018-06-05 | 2 | -7/+64 |
| | | | |||||
* | | | Merge pull request #521 from Subv/bra | bunnei | 2018-06-05 | 1 | -4/+5 |
|\ \ \ | | | | | | | | | GPU: Corrected the branch targets for the shader bra instruction. | ||||
| * | | | GPU: Corrected the branch targets for the shader bra instruction. | Subv | 2018-06-05 | 1 | -4/+5 |
| | |/ | |/| | |||||
* | | | Merge pull request #520 from bunnei/shader-shl | bunnei | 2018-06-05 | 2 | -15/+48 |
|\ \ \ | |/ / |/| | | gl_shader_decompiler: Implement SHL instruction. | ||||
| * | | gl_shader_decompiler: Fix typo with ISCADD instruction. | bunnei | 2018-06-05 | 1 | -1/+1 |
| | | | |||||
| * | | gl_shader_decompiler: Implement SHL instruction. | bunnei | 2018-06-05 | 2 | -14/+47 |
| | | | |||||
* | | | Merge pull request #518 from Subv/incomplete_shaders | bunnei | 2018-06-05 | 1 | -5/+16 |
|\ \ \ | |/ / |/| | | GPU: Implemented predicated exit instructions in the shader programs. | ||||
| * | | GPU: Implement predicated exit instructions in the shader programs. | Subv | 2018-06-05 | 1 | -4/+6 |
| | | | |||||
| * | | GPU: Take into account predicated exits when performing shader control flow analysis. | Subv | 2018-06-05 | 1 | -1/+10 |
| | | | |||||
* | | | gl_shader_decompiler: Implement PredCondition::NotEqual. | bunnei | 2018-06-05 | 1 | -3/+3 |
| | | | |||||
* | | | GPU: Implement the ISCADD shader instructions. | Subv | 2018-06-05 | 2 | -0/+40 |
| | | | |||||
* | | | GPU: Added decodings for the ISCADD instructions. | Subv | 2018-06-05 | 1 | -0/+7 |
| |/ |/| | |||||
* | | Merge pull request #514 from Subv/lop32i | bunnei | 2018-06-05 | 2 | -1/+58 |
|\ \ | | | | | | | GPU: Implemented the LOP32I instruction. | ||||
| * | | GPU: Implemented the LOP32I instruction. | Subv | 2018-06-04 | 2 | -1/+58 |
| | | | |||||
* | | | Merge pull request #510 from Subv/isetp | bunnei | 2018-06-05 | 2 | -6/+63 |
|\ \ \ | | | | | | | | | GPU: Implemented the ISETP_R and ISETP_C instructions | ||||
| * | | | GPU: Use explicit types when retrieving the uniform values for fsetp/fset and isetp instead of the type of an invalid output register. | Subv | 2018-06-04 | 1 | -9/+18 |
| | | | | |||||
| * | | | GPU: Implemented the ISETP_R and ISETP_C shader instructions. | Subv | 2018-06-04 | 2 | -0/+48 |
| |/ / | |||||
* | | | Merge pull request #512 from Subv/fset | bunnei | 2018-06-05 | 2 | -4/+19 |
|\ \ \ | |_|/ |/| | | GPU: Corrected the FSET and I2F instructions. | ||||
| * | | GPU: Use the bf bit in FSET to determine whether to write 0xFFFFFFFF or 1.0f. | Subv | 2018-06-04 | 2 | -2/+7 |
| | | | |||||
| * | | GPU: Corrected the I2F_R implementation. | Subv | 2018-06-04 | 1 | -2/+12 |
| |/ | |||||
* | | Merge pull request #501 from Subv/shader_bra | bunnei | 2018-06-05 | 2 | -1/+45 |
|\ \ | | | | | | | GPU: Partially implemented the bra shader instruction | ||||
| * | | GPU: Partially implemented the shader BRA instruction. | Subv | 2018-06-04 | 2 | -1/+43 |
| | | | |||||
| * | | GPU: Added decoding for the BRA instruction. | Subv | 2018-06-04 | 1 | -0/+2 |
| |/ | |||||
* | | Merge pull request #515 from Subv/viewport_fix | bunnei | 2018-06-05 | 2 | -14/+30 |
|\ \ | | | | | | | GPU: Calculate the correct viewport dimensions based on the scale and translate registers. | ||||
| * | | GPU: Calculate the correct viewport dimensions based on the scale and translate registers. | Subv | 2018-06-04 | 2 | -14/+30 |
| |/ | | | | | | | This is how nouveau calculates the viewport width and height. For some reason some games set 0xFFFF in the VIEWPORT_HORIZ and VIEWPORT_VERT registers, maybe those are a misnomer and actually refer to something else? | ||||
* / | GLCache: Corrected a mismatch between storing compressed sizes and verifying the uncompressed alignment in GetSurface. | Subv | 2018-06-04 | 1 | -1/+2 |
|/ | |||||
* | Merge pull request #500 from Subv/long_queries | bunnei | 2018-06-04 | 1 | -9/+24 |
|\ | | | | | GPU: Partial implementation of long GPU queries. | ||||
| * | GPU: Partial implementation of long GPU queries. | Subv | 2018-06-04 | 1 | -9/+24 |
| | | | | | | | | | | | | | | | | Long queries write a 128-bit result value to memory, which consists of a 64 bit query value and a 64 bit timestamp. In this implementation, only select=Zero of the Crop unit is implemented, this writes the query sequence as a 64 bit value, and a 0u64 value for the timestamp, since we emulate an infinitely fast GPU. This specific type was hwtested, but more rigorous tests should be performed in the future for the other types. | ||||
* | | gl_shader_decompiler: Implement TEXS component mask. | bunnei | 2018-06-03 | 2 | -9/+26 |
| | | |||||
* | | Merge pull request #494 from bunnei/shader-tex | bunnei | 2018-06-03 | 2 | -2/+58 |
|\ \ | | | | | | | gl_shader_decompiler: Implement TEX, fixes for TEXS. | ||||
| * | | gl_shader_decompiler: Implement TEX instruction. | bunnei | 2018-06-01 | 2 | -1/+36 |
| | | | |||||
| * | | gl_shader_decompiler: Support multi-destination for TEXS. | bunnei | 2018-06-01 | 2 | -2/+23 |
| |/ | |||||
* | | Merge pull request #495 from bunnei/improve-rro | bunnei | 2018-06-03 | 2 | -9/+18 |
|\ \ | | | | | | | gl_shader_decompiler: Implement RRO as a register move. | ||||
| * | | gl_shader_decompiler: Implement RRO as a register move. | bunnei | 2018-06-03 | 2 | -9/+18 |
| |/ | |||||
* / | GPU: Implemented the DXN1 (BC4) texture format. | Subv | 2018-06-02 | 3 | -3/+16 |
|/ | |||||
* | gl_rasterizer_cache: Assert that component type is UNorm or format is RGBA16F. | bunnei | 2018-05-31 | 1 | -1/+2 |
| | |||||
* | gl_rasterizer_cache: Implement PixelFormat RGBA16F. | bunnei | 2018-05-31 | 3 | -6/+22 |
| | |||||
* | Merge pull request #489 from Subv/vertexid | bunnei | 2018-05-30 | 2 | -1/+11 |
|\ | | | | | Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader. | ||||
| * | Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader. | Subv | 2018-05-30 | 2 | -1/+11 |
| | | |||||
* | | Merge pull request #483 from bunnei/sonic | Sebastian Valle | 2018-05-30 | 3 | -5/+16 |
|\ \ | | | | | | | Several GPU fixes to boot Sonic Mania | ||||
| * | | gl_shader_decompiler: F2F_R instruction: Implement abs. | bunnei | 2018-05-30 | 1 | -1/+7 |
| | | | |||||
| * | | gl_shader_decompiler: Partially implement F2F_R instruction. | bunnei | 2018-05-30 | 2 | -4/+9 |
| | | | |||||
| * | | gl_rasterize_cache: Invert order of tex format RGB565. | bunnei | 2018-05-30 | 1 | -1/+1 |
| |/ | |||||
* / | GPU: Implemented the R8 texture format (0x1D) | Subv | 2018-05-30 | 3 | -5/+18 |
|/ | |||||
* | add all the known TextureFormat (#474) | greggameplayer | 2018-05-29 | 1 | -2/+71 |
| | |||||
* | Merge pull request #472 from bunnei/greater-equal | bunnei | 2018-05-27 | 1 | -4/+3 |
|\ | | | | | gl_shader_decompiler: Implement GetPredicateComparison GreaterEqual. | ||||
| * | gl_shader_decompiler: Implement GetPredicateComparison GreaterEqual. | bunnei | 2018-05-26 | 1 | -4/+3 |
| | | |||||
* | | Merge pull request #476 from Subv/a1bgr5 | bunnei | 2018-05-27 | 4 | -5/+21 |
|\ \ | | | | | | | GPU: Implemented the A1B5G5R5 texture format (0x14) | ||||
| * | | GPU: Implemented the A1B5G5R5 texture format (0x14) | Subv | 2018-05-27 | 4 | -5/+21 |
| |/ | |||||
* / | shader_bytecode: Implement other variants of FMNMX. | bunnei | 2018-05-26 | 2 | -4/+10 |
|/ | |||||
* | Merge pull request #468 from Subv/compound_preds | bunnei | 2018-05-26 | 1 | -46/+66 |
|\ | | | | | Shader: Implemented compound predicates in the fset and fsetp instructions | ||||
| * | Shader: Implemented compound predicates in fset. | Subv | 2018-05-25 | 1 | -28/+12 |
| | | | | | | | | | | | | You can specify a predicate in the fset instruction: Result = ((Value1 Comp Value2) OP P0) ? 1.0 : 0.0; | ||||
| * | Shader: Implemented compound predicates in fsetp. | Subv | 2018-05-25 | 1 | -19/+55 |
| | | | | | | | | | | | | | | You can specify three predicates in an fsetp instruction: P1 = (Value1 Comp Value2) OP P0; P2 = !(Value1 Comp Value2) OP P0; | ||||
* | | GPU: Allow command lists to rebind a channel to another engine in the middle of the command list. | Subv | 2018-05-25 | 1 | -1/+0 |
|/ | |||||
* | Merge pull request #456 from Subv/unmap_buffer | bunnei | 2018-05-21 | 2 | -0/+20 |
|\ | | | | | Implemented nvhost-as-gpu's UnmapBuffer and nvmap's Free ioctls. | ||||
| * | GPU: Implemented nvhost-as-gpu's UnmapBuffer ioctl. | Subv | 2018-05-20 | 2 | -0/+20 |
| | | | | | | | | It removes a mapping previously created with the MapBufferEx ioctl. | ||||
* | | Merge pull request #458 from Subv/fmnmx | bunnei | 2018-05-21 | 2 | -6/+26 |
|\ \ | | | | | | | Shaders: Implemented the FMNMX shader instruction. | ||||
| * | | Shaders: Implemented the FMNMX shader instruction. | Subv | 2018-05-21 | 2 | -6/+26 |
| |/ | |||||
* | | Merge pull request #452 from Subv/psetp | Sebastian Valle | 2018-05-21 | 1 | -0/+3 |
|\ \ | | | | | | | ShadersDecompiler: Added decoding for the PSETP instruction. | ||||
| * | | ShadersDecompiler: Added decoding for the PSETP instruction. | Subv | 2018-05-19 | 1 | -0/+3 |
| |/ | |||||
* | | Merge pull request #451 from Subv/gl_array_size | Sebastian Valle | 2018-05-21 | 2 | -13/+3 |
|\ \ | | | | | | | GLRenderer: Remove unused vertex buffer and increase the size of the stream buffer to 128 MB. | ||||
| * | | GLRenderer: Remove unused hw_vao_enabled_attributes variable. | Subv | 2018-05-19 | 2 | -4/+0 |
| | | | |||||
| * | | GLRenderer: Remove unused vertex buffer and increase the size of the stream buffer to 128 MB. | Subv | 2018-05-19 | 2 | -9/+3 |
| |/ | | | | | | | The stream buffer is where all the vertex data is copied, some games require this to be much bigger than the 4 MB we used to have. | ||||
* / | GLRenderer: Log the shader source code when program linking fails. | Subv | 2018-05-19 | 1 | -0/+27 |
|/ | |||||
* | general: Make formatting of logged hex values more straightforward | Lioncash | 2018-05-02 | 1 | -1/+1 |
| | | | | | | This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on). | ||||
* | Merge pull request #422 from bunnei/shader-mov | bunnei | 2018-04-30 | 4 | -0/+30 |
|\ | | | | | Shader instructions MOV_C, MOV_R, and several minor GPU things | ||||
| * | maxwell_3d: Reset vertex counts after drawing. | bunnei | 2018-04-29 | 1 | -0/+10 |
| | | |||||
| * | gl_shader_decompiler: Implement MOV_R. | bunnei | 2018-04-29 | 1 | -1/+2 |
| | | |||||
| * | maxwell_to_gl: Implement type SignedNorm, Size_8_8_8_8. | bunnei | 2018-04-29 | 1 | -0/+12 |
| | | |||||
| * | shader_bytecode: Add decoding for FMNMX instruction. | bunnei | 2018-04-29 | 1 | -0/+2 |
| | | |||||
| * | gl_shader_decompiler: Implement MOV_C. | bunnei | 2018-04-29 | 1 | -0/+5 |
| | | |||||
* | | Shaders: Implemented predicate condition 3 (LessEqual) in the fset and fsetp instructions. | Subv | 2018-04-29 | 1 | -0/+7 |
|/ | |||||
* | Merge pull request #416 from bunnei/shader-ints-p3 | bunnei | 2018-04-29 | 2 | -114/+206 |
|\ | | | | | gl_shader_decompiler: Implement MOV32I, partially implement I2I, I2F | ||||
| * | gl_shader_decompiler: Partially implement I2I_R, and I2F_R. | bunnei | 2018-04-29 | 2 | -8/+34 |
| | | |||||
| * | gl_shader_decompiler: More cleanups, etc. with how we handle register types. | bunnei | 2018-04-29 | 1 | -44/+120 |
| | | |||||
| * | GLSLRegister: Simplify register declarations, etc. | bunnei | 2018-04-29 | 1 | -63/+31 |
| | | |||||
| * | shader_bytecode: Add decodings for i2i instructions. | bunnei | 2018-04-29 | 1 | -3/+20 |
| | | |||||
| * | gl_shader_decompiler: Implement MOV32_IMM instruction. | bunnei | 2018-04-29 | 2 | -2/+7 |
| | | |||||
* | | fermi_2d: Fix surface copy block height. | bunnei | 2018-04-29 | 2 | -2/+7 |
|/ | |||||
* | Merge pull request #408 from bunnei/shader-ints-p2 | bunnei | 2018-04-27 | 1 | -154/+262 |
|\ | | | | | gl_shader_decompiler: Add GLSLRegisterManager class to track register state. | ||||
| * | gl_shader_decompiler: Add GLSLRegisterManager class to track register state. | bunnei | 2018-04-27 | 1 | -154/+262 |
| | | |||||
* | | renderer_opengl: Replace usages of LOG_GENERIC with fmt-capable equivalents | Lioncash | 2018-04-27 | 1 | -6/+7 |
|/ | |||||
* | general: Convert assertion macros over to be fmt-compatible | Lioncash | 2018-04-27 | 4 | -7/+7 |
| | |||||
* | gl_shader_decompiler: Boilerplate for handling integer instructions. | bunnei | 2018-04-26 | 2 | -6/+111 |
| | |||||
* | gl_shader_decompiler: Move color output to EXIT instruction. | bunnei | 2018-04-26 | 1 | -6/+12 |
| | |||||
* | Merge pull request #396 from Subv/shader_ops | bunnei | 2018-04-26 | 2 | -9/+89 |
|\ | | | | | Shaders: Implemented the FSET instruction. | ||||
| * | Shaders: Added bit decodings for the I2I instruction. | Subv | 2018-04-25 | 1 | -0/+6 |
| | | |||||
| * | Shaders: Implemented the FSET instruction. | Subv | 2018-04-25 | 1 | -0/+53 |
| | | | | | | | | This instruction is similar to the FSETP instruction, but it doesn't set a predicate, it sets the destination register to 1.0 if the condition holds, and 0 otherwise. | ||||
| * | Shaders: Added decodings for the FSET instructions. | Subv | 2018-04-25 | 2 | -9/+30 |
| | | |||||
* | | GPU: Partially implemented the Fermi2D surface copy operation. | Subv | 2018-04-25 | 2 | -0/+59 |
| | | | | | | | | | | The hardware allows for some rather complicated operations to be performed on the data during the copy, this is not implemented. Only same-format same-size raw copies are implemented for now. | ||||
* | | GPU: Make the Textures::CopySwizzledData function accessible from the outside of the file. | Subv | 2018-04-25 | 2 | -3/+6 |
| | | |||||
* | | GPU: Added a function to retrieve the bytes per pixel of the render target formats. | Subv | 2018-04-25 | 2 | -0/+15 |
| | | |||||
* | | GPU: Added surface copy registers to Fermi2D | Subv | 2018-04-25 | 1 | -1/+57 |
| | | |||||
* | | GPU: Added boilerplate code for the Fermi2D engine | Subv | 2018-04-25 | 3 | -3/+34 |
| | | |||||
* | | GPU: Reduce the number of registers of Maxwell3D to 0xE00. | Subv | 2018-04-25 | 2 | -5/+5 |
| | | | | | | | | The rest are just macro shim registers. | ||||
* | | GPU: Move the Maxwell3D macro uploading code to the inside of the Maxwell3D processor. | Subv | 2018-04-25 | 4 | -40/+23 |
| | | | | | | | | It doesn't belong in the PFIFO handler. | ||||
* | | GPU: Corrected the upper bound of the PFIFO method ids in the command processor. | Subv | 2018-04-25 | 1 | -1/+1 |
| | | |||||
* | | video-core: Move logging macros over to new fmt-capable ones | Lioncash | 2018-04-25 | 5 | -18/+20 |
|/ | |||||
* | renderer_opengl: Use correct byte order for framebuffer pixel format ABGR8. | bunnei | 2018-04-25 | 1 | -2/+1 |
| | |||||
* | gl_rasterizer_cache: Use CHAR_BIT for bpp conversions instead of 8. | bunnei | 2018-04-25 | 2 | -4/+4 |
| | |||||
* | gl_rasterizer_cache: Use GPU PAGE_BITS/SIZE, not CPU. | bunnei | 2018-04-25 | 1 | -5/+5 |
| | |||||
* | gl_rasterizer_cache: Use new logger. | bunnei | 2018-04-25 | 1 | -4/+4 |
| | |||||
* | gl_rasterizer_cache: Add a function for finding framebuffer GPU address. | bunnei | 2018-04-25 | 3 | -0/+31 |
| | |||||
* | gl_rasterizer_cache: Handle compressed texture sizes. | bunnei | 2018-04-25 | 2 | -24/+65 |
| | |||||
* | gl_rasterizer_cache: Update to be based on GPU addresses, not CPU addresses. | bunnei | 2018-04-25 | 8 | -50/+72 |
| | |||||
* | memory_manager: Add implement CpuToGpuAddress. | bunnei | 2018-04-24 | 2 | -0/+27 |
| | |||||
* | memory_manager: Make GpuToCpuAddress return an optional. | bunnei | 2018-04-24 | 6 | -24/+33 |
| | |||||
* | memory_manager: Use GPUVAdddr, not PAddr, for GPU addresses. | bunnei | 2018-04-24 | 6 | -58/+55 |
| | |||||
* | Merge pull request #386 from Subv/gpu_query | bunnei | 2018-04-24 | 2 | -2/+53 |
|\ | | | | | GPU: Added asserts to our code for handling the QUERY_GET GPU command. | ||||
| * | GPU: Added asserts to our code for handling the QUERY_GET GPU command. | Subv | 2018-04-24 | 2 | -2/+53 |
| | | | | | | | | | | This is based on research from nouveau. Many things are currently unknown and will require hwtests in the future. This commit also stubs QueryMode::Write2 to do the same as Write. Nouveau code treats them interchangeably, it is currently unknown what the difference is. | ||||
* | | renderer_opengl: Silence a -Wdangling-else warning in DrawScreenTriangles() | Lioncash | 2018-04-24 | 1 | -1/+2 |
| | | |||||
* | | Merge pull request #379 from Subv/multi_buffers | bunnei | 2018-04-24 | 3 | -43/+89 |
|\ \ | | | | | | | GPU: Support multiple enabled vertex arrays. | ||||
| * | | GPU: Support multiple enabled vertex arrays. | Subv | 2018-04-23 | 3 | -43/+89 |
| |/ | | | | | | | | | | | The vertex arrays will be copied to the stream buffer one after the other, and the attributes will be set using the ARB_vertex_attrib_binding extension. yuzu now thus requires OpenGL 4.3 or the ARB_vertex_attrib_binding extension. | ||||
* | | Merge pull request #383 from Subv/gpu_mmu | bunnei | 2018-04-23 | 2 | -34/+25 |
|\ \ | | | | | | | GPU: Make the GPU virtual memory manager use 16 page bits and 10 pagetable bits. | ||||
| * | | GPU: Make the GPU virtual memory manager use 16 page bits and 10 page table bits. | Subv | 2018-04-23 | 2 | -34/+25 |
| |/ | | | | | | | Also removed some dead code and added memory map consistency asserts. | ||||
* | | GPU: Implement the RGB10_A2 RenderTarget format, it will use the same format as the A2BGR10 texture format. | Subv | 2018-04-23 | 1 | -0/+2 |
| | | |||||
* | | GPU: Implement the A2BGR10 texture format. | Subv | 2018-04-22 | 4 | -6/+18 |
|/ | |||||
* | Merge pull request #376 from bunnei/shader-decoder | bunnei | 2018-04-21 | 2 | -210/+249 |
|\ | | | | | Shader opcode decoding | ||||
| * | gl_shader_decompiler: Skip RRO instruction. | bunnei | 2018-04-21 | 1 | -0/+4 |
| | | |||||
| * | gl_shader_decompiler: Cleanup error logging. | bunnei | 2018-04-21 | 1 | -14/+6 |
| | | |||||
| * | shader_bytecode: Add several more instruction decodings. | bunnei | 2018-04-21 | 1 | -5/+52 |
| | | |||||
| * | shader_bytecode: Decode instructions based on bit strings. | bunnei | 2018-04-21 | 2 | -205/+201 |
| | | |||||
* | | Merge pull request #375 from lioncash/header | bunnei | 2018-04-21 | 4 | -11/+0 |
|\ \ | |/ |/| | opengl: Remove unnecessary header inclusions | ||||
| * | opengl: Remove unnecessary header inclusions | Lioncash | 2018-04-21 | 4 | -11/+0 |
| | | |||||
* | | Merge pull request #369 from Subv/shader_instr2 | bunnei | 2018-04-21 | 2 | -4/+179 |
|\ \ | | | | | | | ShaderGen: Implemented fsetp/kil and predicated instruction execution. | ||||
| * | | ShaderGen: Implemented the KIL instruction, which is equivalent to 'discard'. | Subv | 2018-04-21 | 1 | -1/+7 |
| | | | |||||
| * | | ShaderGen: Implemented predicated instruction execution. | Subv | 2018-04-21 | 2 | -1/+40 |
| | | | | | | | | | | | | Each predicated instruction will be wrapped in an `if (predicate) { instruction_body; }` in the GLSL, where `predicate` is one of the predicate boolean variables previously set by fsetp. | ||||
| * | | ShaderGen: Implemented the fsetp instruction. | Subv | 2018-04-21 | 2 | -3/+112 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | | ShaderGen: Register id 255 is special and is hardcoded to return 0 (SR_ZERO). | Subv | 2018-04-20 | 2 | -0/+5 |
| | | | |||||
| * | | ShaderGen: Ignore the 'sched' instruction when generating shaders. | Subv | 2018-04-20 | 1 | -0/+16 |
| |/ | | | | | | | The 'sched' instruction has a very convoluted encoding, but fortunately it seems to only appear on a fixed interval (once every 4 instructions). | ||||
* | | Merge pull request #374 from lioncash/noexcept | bunnei | 2018-04-21 | 1 | -20/+19 |
|\ \ | | | | | | | gl_resource_manager: Add missing noexcept specifiers to move constructors and assignment operators | ||||
| * | | gl_resource_manager: Add missing noexcept specifiers to move constructors and assignment operators | Lioncash | 2018-04-21 | 1 | -20/+19 |
| |/ | | | | | | | | | | | | | | | Standard library containers may use std::move_if_noexcept to perform move operations. If a move cannot be performed under these circumstances, then a copy is attempted. Given we only intend for these types to be move-only this can be somewhat problematic. By defining these to be noexcept we prevent cases where copies may be attempted. | ||||
* / | gl_rasterizer_cache: Make MatchFlags an enum class | Lioncash | 2018-04-21 | 1 | -4/+9 |
|/ | | | | Prevents implicit conversions and scope pollution. | ||||
* | Merge pull request #367 from lioncash/clamp | bunnei | 2018-04-20 | 2 | -16/+17 |
|\ | | | | | math_util: Remove the Clamp() function | ||||
| * | math_util: Remove the Clamp() function | Lioncash | 2018-04-20 | 2 | -16/+17 |
| | | | | | | | | | | C++17 adds clamp() to the standard library, so we can remove ours in favor of it. | ||||
* | | Merge pull request #363 from lioncash/array-size | bunnei | 2018-04-20 | 1 | -2/+2 |
|\ \ | | | | | | | common_funcs: Remove ARRAY_SIZE macro | ||||
| * | | common_funcs: Remove ARRAY_SIZE macro | Lioncash | 2018-04-20 | 1 | -2/+2 |
| |/ | | | | | | | C++17 has non-member size() which we can just call where necessary. | ||||
* / | renderer_opengl: Add missing header guards | Lioncash | 2018-04-20 | 2 | -0/+4 |
|/ | |||||
* | Merge pull request #356 from lioncash/shader | bunnei | 2018-04-20 | 1 | -12/+30 |
|\ | | | | | glsl_shader_decompiler: Minor API changes to ShaderWriter | ||||
| * | glsl_shader_decompiler: Use std::string_view instead of std::string for AddLine() | Lioncash | 2018-04-20 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | This function doesn't need to take ownership of the string data being given to it, considering all we do is append the characters to the internal string instance. Instead, use a string view to simply reference the string data without any potential heap allocation. Now anything that is a raw const char* won't need to be converted to a std::string before appending. | ||||
| * | glsl_shader_decompiler: Add AddNewLine() function to ShaderWriter | Lioncash | 2018-04-20 | 1 | -6/+12 |
| | | | | | | | | Avoids constructing a std::string just to append a newline character | ||||
| * | glsl_shader_decompiler: Add char overload for ShaderWriter's AddLine() | Lioncash | 2018-04-20 | 1 | -4/+11 |
| | | | | | | | | Avoids constructing a std::string just to append a character. | ||||
| * | glsl_shader_decompiler: Append indentation without constructing a separate std::string | Lioncash | 2018-04-20 | 1 | -1/+5 |
| | | | | | | | | | | The interface of std::string already lets us append N copies of a character to an existing string. | ||||
* | | ShaderGen: Implemented the fmul32i shader instruction. | Subv | 2018-04-19 | 2 | -9/+30 |
| | | |||||
* | | ShaderGen: Fixed a case where the TEXS instruction would use the same registers for the input and the output. | Subv | 2018-04-19 | 1 | -2/+9 |
|/ | | | | It will now save the coords before writing the outputs in a subscope. | ||||
* | GPU: Add support for the DXT23 and DXT45 compressed texture formats. | Subv | 2018-04-19 | 3 | -28/+35 |
| | |||||
* | Merge pull request #351 from Subv/tex_formats | bunnei | 2018-04-19 | 4 | -8/+28 |
|\ | | | | | GPU: Implemented the B5G6R5 format. | ||||
| * | GPU: Implemented the B5G6R5 format. | Subv | 2018-04-19 | 4 | -8/+28 |
| | | |||||
* | | gl_shader_gen: Support vertical/horizontal viewport flipping. (#347) | bunnei | 2018-04-18 | 4 | -5/+29 |
|/ | | | | | | * gl_shader_gen: Support vertical/horizontal viewport flipping. * fixup! gl_shader_gen: Support vertical/horizontal viewport flipping. | ||||
* | GLCache: Added boilerplate code to make supporting configurable texture component types. | Subv | 2018-04-18 | 3 | -9/+69 |
| | | | | For now only the UNORM type is supported. | ||||
* | GLCache: Unify texture and framebuffer formats when converting to OpenGL. | Subv | 2018-04-18 | 2 | -26/+13 |
| | |||||
* | GPU: Texture format 8 and framebuffer format 0xD5 are actually ABGR8. | Subv | 2018-04-18 | 2 | -10/+10 |
| | |||||
* | GPU: Pitch textures are now supported, don't assert when encountering them. | Subv | 2018-04-18 | 1 | -2/+3 |
| | |||||
* | GLCache: Take into account the texture's block height when caching and unswizzling. | Subv | 2018-04-18 | 3 | -43/+43 |
| | |||||
* | GLCache: Added a function to convert cached PixelFormats back to texture formats. | Subv | 2018-04-18 | 1 | -0/+12 |
| | | | | TODO: The way we handle cached formats must change, framebuffer and texture formats are too different to keep them in the same place. | ||||
* | GPU: Allow using a configurable block height when unswizzling textures. | Subv | 2018-04-18 | 4 | -7/+23 |
| | |||||
* | GPU/TIC: Added the pitch and block height fields to the TIC structure. | Subv | 2018-04-18 | 1 | -1/+16 |
| | |||||
* | Merge pull request #346 from bunnei/misc-gpu-improvements | bunnei | 2018-04-18 | 4 | -2/+11 |
|\ | | | | | Misc gpu improvements | ||||
| * | gl_rasterizer_cache: Add missing LOG statements. | bunnei | 2018-04-18 | 1 | -0/+3 |
| | | |||||
| * | texture: Add missing formats. | bunnei | 2018-04-18 | 1 | -1/+3 |
| | | |||||
| * | gpu: Add several framebuffer formats to RenderTargetFormat. | bunnei | 2018-04-18 | 1 | -0/+3 |
| | | |||||
| * | maxwell3d: Allow Texture2DNoMipmap as Texture2D. | bunnei | 2018-04-18 | 1 | -1/+2 |
| | | |||||
* | | Merge pull request #344 from bunnei/shader-decompiler-p2 | bunnei | 2018-04-18 | 3 | -67/+179 |
|\ \ | | | | | | | Shader decompiler changes part 2 | ||||
| * | | shader_bytecode: Make ctor's constexpr and explicit. | bunnei | 2018-04-18 | 1 | -7/+7 |
| | | | |||||
| * | | gl_shader_decompiler: Fix warnings with MarkAsUsed. | bunnei | 2018-04-17 | 1 | -1/+2 |
| | | | |||||
| * | | gl_shader_decompiler: Cleanup logging, updating to NGLOG_*. | bunnei | 2018-04-17 | 1 | -24/+22 |
| | | | |||||
| * | | gl_shader_decompiler: Implement several MUFU subops and abs_d. | bunnei | 2018-04-17 | 1 | -7/+21 |
| | | | |||||
| * | | gl_shader_decompiler: Fix swizzle in GetRegister. | bunnei | 2018-04-17 | 1 | -1/+1 |
| | | | |||||
| * | | gl_shader_decompiler: Implement FMUL/FADD/FFMA immediate instructions. | bunnei | 2018-04-17 | 2 | -12/+53 |
| | | | |||||
| * | | gl_shader_decompiler: Allow vertex position to be used in fragment shader. | bunnei | 2018-04-17 | 2 | -16/+18 |
| | | | |||||
| * | | gl_shader_decompiler: Implement IPA instruction. | bunnei | 2018-04-17 | 1 | -0/+11 |
| | | | |||||
| * | | gl_shader_decompiler: Add support for TEXS instruction. | bunnei | 2018-04-17 | 2 | -12/+43 |
| | | | |||||
| * | | gl_shader_decompiler: Use fragment output color for GPR 0-3. | bunnei | 2018-04-17 | 1 | -0/+5 |
| | | | |||||
| * | | gl_shader_decompiler: Partially implement MUFU. | bunnei | 2018-04-17 | 1 | -2/+11 |
| |/ | |||||
* / | renderer_opengl: Implement BlendEquation and BlendFunc. | bunnei | 2018-04-18 | 6 | -7/+140 |
|/ | |||||
* | Merge pull request #343 from Subv/tex_wrap_4 | bunnei | 2018-04-17 | 1 | -0/+7 |
|\ | | | | | GPU: Implement some wrap modes | ||||
| * | MaxwellToGL: Implemented tex wrap mode 1 (Wrap, GL_REPEAT). | Subv | 2018-04-17 | 1 | -0/+2 |
| | | |||||
| * | MaxwellToGL: Added a TODO and partial implementation of maxwell wrap mode 4 (Clamp, GL_CLAMP). | Subv | 2018-04-17 | 1 | -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. | ||||
* | | gl_rendering: Use NGLOG* for changed code. | bunnei | 2018-04-17 | 2 | -10/+11 |
| | | |||||
* | | gl_rasterizer: Implement indexed vertex mode. | bunnei | 2018-04-17 | 5 | -23/+92 |
|/ | |||||
* | GPU: Use the same buffer names in the generated GLSL and the buffer uploading code. | Subv | 2018-04-15 | 4 | -17/+24 |
| | |||||
* | GPU: Don't use explicit binding points when uploading the constbuffers to opengl. | Subv | 2018-04-15 | 3 | -7/+47 |
| | | | | The bindpoints will now be dynamically calculated based on the number of buffers used by the previous shader stage. | ||||
* | GPU: Don't use GetPointer when uploading the constbuffer data to the GPU. | Subv | 2018-04-15 | 1 | -3/+4 |
| | |||||
* | GPU: Use the buffer hints from the shader decompiler to upload only the necessary const buffers for each shader stage. | Subv | 2018-04-15 | 3 | -31/+41 |
| | |||||
* | shaders: Expose hints about used const buffers. | bunnei | 2018-04-15 | 5 | -31/+146 |
| | |||||
* | GPU: Upload the entirety of each constbuffer for each shader stage as SSBOs. | Subv | 2018-04-15 | 4 | -14/+48 |
| | | | | We're going to need the shader generator to give us a mapping of the actual used const buffers to properly bind them to the shader. | ||||
* | GPU: Allow configuring ssbos in the opengl state manager. | Subv | 2018-04-15 | 4 | -0/+30 |
| | |||||
* | GPU: Added a function to determine whether a shader stage is enabled or not. | Subv | 2018-04-15 | 3 | -3/+27 |
| | |||||
* | shaders: Add NumTextureSamplers const, remove unused #pragma. | bunnei | 2018-04-15 | 4 | -4/+5 |
| | |||||
* | shaders: Address PR review feedback. | bunnei | 2018-04-14 | 2 | -7/+9 |
| | |||||
* | gl_shader_decompiler: Cleanup log statements. | bunnei | 2018-04-14 | 1 | -15/+15 |
| | |||||
* | shaders: Fix GCC and clang build issues. | bunnei | 2018-04-14 | 3 | -5/+5 |
| | |||||
* | gl_shader_decompiler: Implement negate, abs, etc. and lots of cleanup. | bunnei | 2018-04-14 | 2 | -40/+96 |
| | |||||
* | shader_bytecode: Add FSETP and KIL to GetInfo. | bunnei | 2018-04-14 | 1 | -0/+3 |
| | |||||
* | shader_bytecode: Add SubOp decoding. | bunnei | 2018-04-14 | 1 | -0/+10 |
| | |||||
* | gl_shader_decompiler: Add shader stage hint. | bunnei | 2018-04-14 | 2 | -5/+12 |
| | |||||
* | renderer_opengl: Fix Morton copy byteswap, etc. | bunnei | 2018-04-14 | 2 | -6/+6 |
| | |||||
* | gl_shader_manager: Implement SetShaderSamplerBindings. | bunnei | 2018-04-14 | 1 | -0/+8 |
| | |||||
* | gl_rasterizer: Generate shaders and upload uniforms. | bunnei | 2018-04-14 | 2 | -32/+77 |
| | |||||
* | gl_shader_decompiler: Basic impl. for very simple vertex shaders. | bunnei | 2018-04-14 | 2 | -16/+311 |
| | | | | - Tested with Puyo Puyo Tetris and Cave Story+ | ||||
* | gl_shader_manager: Cleanup and consolidate uniform handling. | bunnei | 2018-04-14 | 2 | -26/+24 |
| | |||||
* | maxwell_3d: Make memory_manager public. | bunnei | 2018-04-14 | 1 | -2/+1 |
| | |||||
* | maxwell_3d: Fix shader_config decodings. | bunnei | 2018-04-14 | 1 | -6/+3 |
| | |||||
* | gl_rasterizer: Use shader program manager, remove test shader. | bunnei | 2018-04-14 | 2 | -196/+31 |
| | |||||
* | renderer_opengl: Add gl_shader_manager class. | bunnei | 2018-04-14 | 3 | -0/+209 |
| | |||||
* | maxwell_to_gl: Add a few types, etc. | bunnei | 2018-04-14 | 1 | -0/+10 |
| | |||||
* | gl_shader_gen: Add hashable setup/config structs. | bunnei | 2018-04-14 | 2 | -29/+50 |
| | |||||
* | gl_shader_util: Add missing includes. | bunnei | 2018-04-14 | 1 | -0/+2 |
| | |||||
* | renderer_opengl: Use OGLProgram instead of OGLShader. | bunnei | 2018-04-14 | 6 | -6/+6 |
| | |||||
* | gl_shader_util: Grab latest upstream. | bunnei | 2018-04-14 | 2 | -149/+74 |
| | |||||
* | gl_resource_manager: Grab latest upstream. | bunnei | 2018-04-14 | 1 | -30/+86 |
| | |||||
* | gl_shader_decompiler: Add skeleton code from Citra for shader analysis. | bunnei | 2018-04-14 | 2 | -44/+142 |
| | |||||
* | shader_bytecode: Add initial module for shader decoding. | bunnei | 2018-04-14 | 2 | -0/+298 |
| | |||||
* | Fix clang format issues | James Rowe | 2018-04-07 | 1 | -1/+1 |
| | |||||
* | GPU: Assert when finding a texture with a format type other than UNORM. | Subv | 2018-04-07 | 2 | -4/+16 |
| | |||||
* | GL: Set up the textures used for each draw call. | Subv | 2018-04-07 | 2 | -2/+39 |
| | | | | | Each Maxwell shader stage can have an arbitrary number of textures, but we're limited to a certain number in OpenGL. We try to only use the minimum amount of host textures by not keeping a 1:1 relation between guest texture ids and host texture ids, ie, guest texture id 8 can be host texture id 0 if it's the only texture used in the guest shader program. This mapping will have to be passed to the shader decompiler so it can rewrite the texture accesses. | ||||
* | GL: Bind the textures to the shaders used for drawing. | Subv | 2018-04-07 | 1 | -2/+11 |
| | |||||
* | GLCache: Specialize the MortonCopy function for the DXT1 texture format. | Subv | 2018-04-07 | 1 | -1/+15 |
| | | | | It will now use the UnswizzleTexture function instead of the MortonCopyPixels128, which doesn't seem to work for textures. | ||||
* | GLCache: Implemented GetTextureSurface. | Subv | 2018-04-07 | 1 | -3/+28 |
| | |||||
* | GLCache: Support uploading compressed textures to the GPU. | Subv | 2018-04-07 | 1 | -5/+17 |
| | | | | Compressed texture formats like DXT1, DXT2, DXT3, etc will use this to ease the load on the CPU. | ||||
* | GL: Remove remaining references to 3DS-specific pixel formats | Subv | 2018-04-07 | 1 | -83/+22 |
| | |||||
* | RasterizerCache: Remove 3DS-specific pixel formats. | Subv | 2018-04-07 | 2 | -71/+32 |
| | | | | We're only left with RGB8 and DXT1 for now. More will be added as they are needed. | ||||
* | GL: Create the sampler objects when starting up the GL rasterizer. | Subv | 2018-04-07 | 1 | -0/+6 |
| | |||||
* | GL: Ported the SamplerInfo struct from citra. | Subv | 2018-04-07 | 2 | -1/+59 |
| | |||||
* | GL: Rename PicaTexture to MaxwellTexture. | Subv | 2018-04-07 | 2 | -2/+2 |
| | |||||
* | GL: Added functions to convert Maxwell tex filters and wrap modes to OpenGL. | Subv | 2018-04-07 | 1 | -0/+23 |
| | |||||
* | Textures: Added a helper function to know if a texture is blocklinear or pitch. | Subv | 2018-04-07 | 1 | -0/+5 |
| | |||||
* | rasterizer_interface.h: Update from citra to yuzu | N00byKing | 2018-04-04 | 1 | -3/+3 |
| | |||||
* | gl_rasterizer_cache.cpp: Update from citra to yuzu | N00byKing | 2018-04-04 | 1 | -1/+1 |
| | |||||
* | gl_rasterizer_cache.h: Update from citra to yuzu | N00byKing | 2018-04-04 | 1 | -3/+3 |
| | |||||
* | renderer_opengl.h: Update from citra to yuzu | N00byKing | 2018-04-04 | 1 | -2/+2 |
| | |||||
* | GPU: Use the MacroInterpreter class to execute the GPU macros instead of HLEing them. | Subv | 2018-04-01 | 2 | -121/+13 |
| | |||||
* | GPU: Implemented a gpu macro interpreter. | Subv | 2018-04-01 | 5 | -0/+431 |
| | | | | | | 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. | ||||
* | renderer_opengl: Use better naming for DrawScreens and DrawSingleScreen. | bunnei | 2018-03-27 | 2 | -8/+8 |
| | |||||
* | gl_rasterizer: Move code to bind framebuffer surfaces before draw to its own function. | bunnei | 2018-03-27 | 2 | -22/+31 |
| | |||||
* | gl_rasterizer: Add a SyncViewport method. | bunnei | 2018-03-27 | 3 | -18/+30 |
| | |||||
* | gl_rasterizer: Move PrimitiveTopology check to MaxwellToGL. | bunnei | 2018-03-27 | 2 | -11/+12 |
| | |||||
* | graphics_surface: Fix merge conflicts. | bunnei | 2018-03-27 | 1 | -0/+1 |
| | |||||
* | gl_rasterizer: Use ReadBlock instead of GetPointer for SetupVertexArray. | bunnei | 2018-03-27 | 1 | -1/+1 |
| | |||||
* | gl_rasterizer: Normalize vertex array data as appropriate. | bunnei | 2018-03-27 | 2 | -1/+5 |
| | |||||
* | maxwel_to_gl: Fix string formatting in log statements. | bunnei | 2018-03-27 | 1 | -2/+2 |
| | |||||
* | rasterizer: Rename DrawTriangles to DrawArrays. | bunnei | 2018-03-27 | 3 | -5/+5 |
| | |||||
* | gl_rasterizer: Use passthrough shader for SetupVertexShader. | bunnei | 2018-03-27 | 1 | -1/+2 |
| | |||||
* | renderer_opengl: Logging, etc. cleanup. | bunnei | 2018-03-27 | 6 | -33/+34 |
| | |||||
* | renderer_opengl: Remove framebuffer RasterizerFlushVirtualRegion hack. | bunnei | 2018-03-27 | 1 | -5/+0 |
| | |||||
* | gl_rasterizer_cache: Implement UpdatePagesCachedCount. | bunnei | 2018-03-27 | 2 | -8/+37 |
| | |||||
* | gl_rasterizer: Implement SetupVertexArray. | bunnei | 2018-03-27 | 1 | -20/+38 |
| | |||||
* | gl_rasterizer_cache: Fix an ASSERT_MSG. | bunnei | 2018-03-27 | 1 | -1/+1 |
| | |||||
* | maxwell_to_gl: Add module and function for decoding VertexType. | bunnei | 2018-03-27 | 2 | -0/+41 |
| | |||||
* | maxwell_3d: Use names that match envytools for VertexType. | bunnei | 2018-03-27 | 1 | -8/+8 |
| | |||||
* | maxwell_3d: Add VertexAttribute struct and cleanup. | bunnei | 2018-03-27 | 1 | -121/+160 |
| | |||||
* | gl_rasterizer: Use 32 texture units instead of 3. | bunnei | 2018-03-27 | 3 | -2/+3 |
| | |||||
* | gl_rasterizer: Implement DrawTriangles. | bunnei | 2018-03-27 | 1 | -1/+194 |
| | |||||
* | Maxwell3D: Call AccelerateDrawBatch on DrawArrays. | bunnei | 2018-03-27 | 1 | -1/+8 |
| | |||||
* | gl_rasterizer: Implement AnalyzeVertexArray. | bunnei | 2018-03-27 | 2 | -1/+56 |
| | |||||
* | gl_rasterizer_cache: MortonCopy Switch-style. | bunnei | 2018-03-27 | 1 | -72/+32 |
| | |||||
* | gl_rasterizer_cache: Implement GetFramebufferSurfaces. | bunnei | 2018-03-27 | 2 | -4/+104 |
| | |||||
* | maxwell: Add RenderTargetFormat enum. | bunnei | 2018-03-27 | 2 | -4/+5 |
| | |||||
* | renderer_opengl: Only draw the screen if a framebuffer is specified. | bunnei | 2018-03-27 | 1 | -6/+7 |
| | |||||
* | GPU: Load the sampler info (TSC) when retrieving active textures. | Subv | 2018-03-26 | 2 | -21/+67 |
| | |||||
* | GPU: Added the TSC structure. It contains information about the sampler. | Subv | 2018-03-26 | 1 | -0/+50 |
| | |||||
* | GPU: Added more fields to the TIC structure. | Subv | 2018-03-26 | 1 | -4/+30 |
| | |||||
* | GPU: Make the debug_context variable a member of the frontend instead of a global. | Subv | 2018-03-25 | 3 | -15/+13 |
| | |||||
* | GPU: Added a function to retrieve the active textures for a shader stage. | Subv | 2018-03-24 | 2 | -50/+59 |
| | | | | 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. | ||||
* | Frontend: Updated the surface view debug widget to work with Maxwell surfaces. | Subv | 2018-03-24 | 2 | -0/+15 |
| | |||||
* | GPU: Implement the Incoming/FinishedPrimitiveBatch debug breakpoints. | Subv | 2018-03-24 | 1 | -0/+7 |
| | |||||
* | GPU: Implement the MaxwellCommandLoaded/Processed debug breakpoints. | Subv | 2018-03-24 | 1 | -0/+10 |
| | |||||
* | Frontend: Ported the GPU breakpoints and surface viewer widgets from citra. | Subv | 2018-03-24 | 5 | -0/+242 |
| | |||||
* | GPU: Added a method to unswizzle a texture without decoding it. | Subv | 2018-03-24 | 4 | -5/+95 |
| | | | | Allow unswizzling of DXT1 textures. | ||||
* | GPU: Preliminary work for texture decoding. | Subv | 2018-03-24 | 5 | -0/+139 |
| | |||||
* | GPU: Added viewport registers to Maxwell3D's reg structure. | Subv | 2018-03-24 | 1 | -1/+18 |
| | |||||
* | gl_rasterizer: Fake render in green, because it's cooler. | bunnei | 2018-03-24 | 1 | -1/+1 |
| | |||||
* | gl_rasterizer: Log warning instead of sync'ing unimplemented funcs. | bunnei | 2018-03-24 | 1 | -7/+1 |
| | |||||
* | gl_rasterizer_cache: Add missing include for vm_manager. | bunnei | 2018-03-23 | 1 | -0/+1 |
| | |||||
* | renderer_opengl: Only invalidate the framebuffer region, not flush. | bunnei | 2018-03-23 | 1 | -4/+3 |
| | |||||
* | renderer_opengl: Fixes for properly flushing & rendering the framebuffer. | bunnei | 2018-03-23 | 1 | -6/+12 |
| | |||||
* | RasterizerCacheOpenGL: FlushAll should flush full memory region. | bunnei | 2018-03-23 | 1 | -1/+1 |
| | |||||
* | rasterizer: Flush and invalidate regions should be 64-bit. | bunnei | 2018-03-23 | 3 | -9/+9 |
| | |||||
* | renderer_opengl: Add framebuffer_transform_flags member variable. | bunnei | 2018-03-23 | 1 | -2/+2 |
| | |||||
* | renderer_opengl: Better handling of framebuffer transform flags. | bunnei | 2018-03-23 | 2 | -3/+20 |
| | |||||
* | renderer_opengl: Use accelerated framebuffer load with LoadFBToScreenInfo. | bunnei | 2018-03-23 | 1 | -31/+25 |
| | |||||
* | gl_rasterizer: Implement AccelerateDisplay method from Citra. | bunnei | 2018-03-23 | 2 | -2/+44 |
| | |||||
* | LoadGLBuffer: Use bytes_per_pixel, not bits. | bunnei | 2018-03-23 | 1 | -1/+2 |
| | |||||
* | gl_rasterizer_cache: LoadGLBuffer should do a morton copy. | bunnei | 2018-03-23 | 1 | -16/+5 |
| | |||||
* | video_core: Move MortonCopyPixels128 to utils header. | bunnei | 2018-03-23 | 2 | -111/+113 |
| | |||||
* | video_core: Remove usage of PAddr and replace with VAddr. | bunnei | 2018-03-23 | 5 | -39/+39 |
| | |||||
* | video_core: Move FramebufferInfo to FramebufferConfig in GPU. | bunnei | 2018-03-23 | 7 | -66/+74 |
| | |||||
* | gl_rasterizer: Replace a bunch of UNIMPLEMENTED with ASSERT. | bunnei | 2018-03-23 | 2 | -20/+20 |
| | |||||
* | gl_rasterizer: Add a simple passthrough shader in lieu of shader generation. | bunnei | 2018-03-23 | 2 | -5/+68 |
| | |||||
* | gpu: Expose Maxwell3D engine. | bunnei | 2018-03-23 | 1 | -0/+4 |
| | |||||
* | maxwell_3d: Add some format decodings and string helper functions. | bunnei | 2018-03-23 | 1 | -3/+107 |
| | |||||
* | renderer: Create rasterizer and cleanup. | bunnei | 2018-03-23 | 4 | -4/+16 |
| | |||||
* | GPU: Added vertex attribute format registers. | Subv | 2018-03-21 | 1 | -1/+14 |
| | |||||
* | GPU: Added registers for the number of vertices to render. | Subv | 2018-03-21 | 1 | -2/+13 |
| | |||||
* | Merge pull request #254 from bunnei/port-citra-renderer | bunnei | 2018-03-21 | 18 | -101/+2905 |
|\ | | | | | Port Citra OpenGL rasterizer code | ||||
| * | renderer_gl: Port boilerplate rasterizer code over from Citra. | bunnei | 2018-03-20 | 5 | -1/+495 |
| | | |||||
| * | gl_shader_util: Sync latest version with Citra. | bunnei | 2018-03-20 | 3 | -46/+116 |
| | | |||||
| * | renderer_gl: Port over gl_shader_gen module from Citra. | bunnei | 2018-03-20 | 3 | -0/+88 |
| | | |||||
| * | renderer_gl: Port over gl_shader_decompiler module from Citra. | bunnei | 2018-03-20 | 3 | -0/+87 |
| | | |||||
| * | renderer_gl: Port over gl_rasterizer_cache module from Citra. | bunnei | 2018-03-20 | 3 | -0/+1714 |
| | | |||||
| * | gl_resource_manager: Sync latest version with Citra. | bunnei | 2018-03-20 | 1 | -8/+77 |
| | | |||||
| * | renderer_gl: Port over gl_stream_buffer module from Citra. | bunnei | 2018-03-20 | 3 | -0/+218 |
| | | |||||
| * | gl_state: Sync latest version with Citra. | bunnei | 2018-03-20 | 2 | -47/+111 |
| | | |||||
* | | Merge pull request #253 from Subv/rt_depth | Mat M | 2018-03-20 | 1 | -1/+48 |
|\ \ | |/ |/| | GPU: Added registers for color and Z buffers. | ||||
| * | GPU: Added Z buffer registers to Maxwell3D's reg structure. | Subv | 2018-03-19 | 1 | -1/+17 |
| | | |||||
| * | GPU: Added the render target (RT) registers to Maxwell3D's reg structure. | Subv | 2018-03-19 | 1 | -1/+32 |
| | | |||||
* | | Clang Fixes | N00byKing | 2018-03-19 | 1 | -1/+2 |
| | | |||||
* | | Clean Warnings (?) | N00byKing | 2018-03-19 | 1 | -1/+1 |
|/ | |||||
* | GPU: Added the TSC registers to the Maxwell3D register structure. | Subv | 2018-03-19 | 1 | -1/+15 |
| | |||||
* | GPU: Added the TIC registers to the Maxwell3D register structure. | Subv | 2018-03-19 | 1 | -1/+16 |
| | |||||
* | GPU: Implement macro 0xE1A BindTextureInfoBuffer in HLE. | Subv | 2018-03-19 | 2 | -1/+29 |
| | | | | This macro simply sets the current CB_ADDRESS to the texture buffer address for the input shader stage. | ||||
* | GPU: Implement the BindStorageBuffer macro method in HLE. | Subv | 2018-03-18 | 2 | -1/+36 |
| | | | | | | 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. | ||||
* | GPU: Handle writes to the CB_DATA method. | Subv | 2018-03-18 | 2 | -0/+39 |
| | | | | | | Writing to this method will cause the written value to be stored in the currently-set ConstBuffer plus CB_POS. This method is usually used to upload uniforms or other shader-visible data. | ||||
* | GPU: Move the GPU's class constructor and destructors to a cpp file. | Subv | 2018-03-18 | 3 | -10/+30 |
| | | | | This should reduce recompile times when editing the Maxwell3D register structure. | ||||
* | GPU: Store uploaded GPU macros and keep track of the number of method parameters. | Subv | 2018-03-18 | 4 | -27/+74 |
| | |||||
* | GPU: Macros are specific to the Maxwell3D engine, so handle them internally. | Subv | 2018-03-18 | 8 | -63/+55 |
| | |||||
* | GPU: Renamed ShaderType to ShaderStage as that is less confusing. | Subv | 2018-03-18 | 2 | -19/+19 |
| | |||||
* | GPU: Store shader constbuffer bindings in the GPU state. | Subv | 2018-03-18 | 2 | -5/+61 |
| | |||||
* | GPU: Corrected some register offsets and removed superfluous macro registers. | Subv | 2018-03-18 | 1 | -9/+3 |
| | |||||
* | GPU: Make the SetShader macro call do the same as the real macro's code. | Subv | 2018-03-18 | 2 | -3/+44 |
| | | | | | | It'll now set the CB_SIZE, CB_ADDRESS and CB_BIND registers when it's called. Presumably this SetShader function is binding the constant shader uniforms to buffer 1 (c1[]). | ||||
* | GPU: Corrected the parameter documentation for the SetShader macro call. | Subv | 2018-03-17 | 2 | -11/+12 |
| | | | | | | Register 0xE24 is actually a macro that sets some shader parameters in the register structure. Macros are uploaded to the GPU at startup and have their own ISA, we'll probably write an interpreter for this in the future. | ||||
* | Merge pull request #242 from Subv/set_shader | bunnei | 2018-03-17 | 2 | -4/+38 |
|\ | | | | | GPU: Handle the SetShader method call (0xE24) and store the shader config. | ||||
| * | GPU: Handle the SetShader method call (0xE24) and store the shader config. | Subv | 2018-03-17 | 2 | -4/+38 |
| | | |||||
* | | GPU: Added the vertex array registers. | Subv | 2018-03-17 | 1 | -2/+33 |
|/ | |||||
* | Merge pull request #241 from Subv/gpu_method_call | bunnei | 2018-03-17 | 9 | -8/+97 |
|\ | | | | | GPU: Process command mode 5 (IncreaseOnce) differently from other commands | ||||
| * | GPU: Process command mode 5 (IncreaseOnce) differently from other commands. | Subv | 2018-03-17 | 9 | -8/+97 |
| | | | | | | | | | | | | Accumulate all arguments before calling the desired method. Note: Maybe we should do the same for the NonIncreasing mode? | ||||
* | | GPU: Assert that we get a 0 CODE_ADDRESS register in the 3D engine. | Subv | 2018-03-17 | 1 | -0/+8 |
| | | | | | | | | Shader address calculation depends on this value to some extent, we do not currently know what it being 0 entails. | ||||
* | | GPU: Added Maxwell registers for Shader Program control. | Subv | 2018-03-17 | 1 | -2/+55 |
|/ | |||||
* | GPU: Intercept writes to the VERTEX_END_GL register. | Subv | 2018-03-05 | 2 | -1/+18 |
| | | | | | | This is the register that gets written after a game calls DrawArrays(). We should collect all GPU state and draw using our graphics API here. | ||||
* | maxwell_3d: Make constructor explicit | Lioncash | 2018-02-14 | 1 | -1/+1 |
| | |||||
* | Merge pull request #187 from Subv/maxwell3d_query | bunnei | 2018-02-14 | 3 | -3/+95 |
|\ | | | | | GPU: Partially implemented the QUERY_* registers in the Maxwell3D engine. | ||||
| * | GPU: Partially implemented the QUERY_* registers in the Maxwell3D engine. | Subv | 2018-02-12 | 3 | -3/+95 |
| | | | | | | | | Only QueryMode::Write is supported at the moment. | ||||
* | | Merge pull request #178 from Subv/command_buffers | bunnei | 2018-02-12 | 12 | -0/+488 |
|\| | | | | | GPU: Added a command processor to decode the GPU pushbuffers and forward the commands to their respective engines | ||||
| * | Make a GPU class in VideoCore to contain the GPU state. | Subv | 2018-02-12 | 12 | -44/+252 |
| | | | | | | | | Also moved the GPU MemoryManager class to video_core since it makes more sense for it to be there. | ||||
| * | GPU: Added a command processor to decode the GPU pushbuffers and forward the commands to their respective engines. | Subv | 2018-02-12 | 9 | -0/+280 |
| | | |||||
* | | renderer_opengl: Support framebuffer flip vertical. | bunnei | 2018-02-12 | 3 | -5/+13 |
|/ | |||||
* | memory: Replace all memory hooking with Special regions | MerryMage | 2018-01-27 | 1 | -1/+1 |
| | |||||
* | Format: Run the new clang format on everything | James Rowe | 2018-01-21 | 4 | -4/+4 |
| | |||||
* | CMakeLists: Derive the source directory grouping from targets themselves | Lioncash | 2018-01-18 | 1 | -19/+15 |
| | | | | | Removes the need to store to separate SRC and HEADER variables, and then construct the target in most cases. | ||||
* | clang-format | MerryMage | 2018-01-16 | 1 | -1/+2 |
| | |||||
* | renderer_gl: Clear screen to black before rendering framebuffer. | bunnei | 2018-01-15 | 2 | -5/+8 |
| | |||||
* | renderer: Render previous frame when no new one is available. | bunnei | 2018-01-15 | 3 | -16/+18 |
| | |||||
* | Fix build on macOS and linux | MerryMage | 2018-01-13 | 1 | -0/+1 |
| | |||||
* | Remove gpu debugger and get yuzu qt to compile | James Rowe | 2018-01-13 | 2 | -5/+0 |
| | |||||
* | Remove references to PICA and rasterizers in video_core | James Rowe | 2018-01-13 | 64 | -14952/+3 |
| | |||||
* | renderer_opengl: Fix LOG_TRACE in LoadFBToScreenInfo. | bunnei | 2018-01-12 | 1 | -1/+1 |
| | |||||
* | renderer_opengl: Support rendering Switch framebuffer. | bunnei | 2018-01-11 | 3 | -138/+83 |
| | |||||
* | render_base: Add a struct describing framebuffer metadata. | bunnei | 2018-01-11 | 1 | -0/+26 |
| | |||||
* | renderer_opengl: Add MortonCopyPixels function for Switch framebuffer. | bunnei | 2018-01-11 | 1 | -0/+111 |
| | |||||
* | renderer_opengl: Update DrawScreens for Switch. | bunnei | 2018-01-11 | 2 | -23/+11 |
| | |||||
* | core/video_core: Fix a bunch of u64 -> u32 warnings. | bunnei | 2018-01-01 | 4 | -8/+8 |
| | |||||
* | hle: Initial implementation of NX service framework and IPC. | bunnei | 2017-10-15 | 1 | -1/+1 |
| | |||||
* | Extracted the attribute setup and draw commands into their own functions | Huw Pascoe | 2017-10-04 | 1 | -217/+222 |
| | |||||
* | Fixed type conversion ambiguity | Huw Pascoe | 2017-09-30 | 2 | -3/+3 |
| | |||||
* | Disable unary operator- on Math::Vec2/Vec3/Vec4 for unsigned types. | Subv | 2017-09-27 | 1 | -1/+1 |
| | | | | | It is unlikely we will ever use this without first doing a Cast to a signed type. Fixes 9 "unary minus operator applied to unsigned type, result still unsigned" warnings on MSVC2017.3 | ||||
* | Merge pull request #2951 from huwpascoe/perf-4 | B3n30 | 2017-09-25 | 1 | -10/+4 |
|\ | | | | | Optimized Morton | ||||
| * | Optimized Morton | Huw Pascoe | 2017-09-24 | 1 | -10/+4 |
| | | |||||
* | | Optimized Float<M,E> multiplication | Huw Pascoe | 2017-09-25 | 1 | -11/+7 |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: ucomiss xmm1, xmm1 jp .L9 pxor xmm2, xmm2 mov edx, 1 ucomiss xmm0, xmm2 setp al cmovne eax, edx test al, al jne .L9 .L3: movaps xmm0, xmm2 ret .L9: ucomiss xmm0, xmm0 jp .L10 pxor xmm2, xmm2 mov edx, 1 ucomiss xmm1, xmm2 setp al cmovne eax, edx test al, al je .L3 After: movaps xmm2, xmm1 mulss xmm2, xmm0 ucomiss xmm2, xmm2 jnp .L3 ucomiss xmm1, xmm0 jnp .L11 .L3: movaps xmm0, xmm2 ret .L11: pxor xmm2, xmm2 jmp .L3 | ||||
* | Merge pull request #2921 from jroweboy/batch-fix-2 | James Rowe | 2017-09-24 | 1 | -12/+17 |
|\ | | | | | GPU: Add draw for immediate and batch modes | ||||
| * | Remove pipeline.gpu_mode and fix minor issues | James Rowe | 2017-09-23 | 1 | -12/+2 |
| | | |||||
| * | GPU: Add draw for immediate and batch modes | James Rowe | 2017-09-11 | 1 | -2/+17 |
| | | | | | | | | | | | | | | | | PR #1461 introduced a regression where some games would change configuration even while in the poorly named "drawing" mode, which broke the heuristic citra was using to determine when to draw the batch. This change adds back in a draw call for batching, and also adds in a draw call in immediate mode each time it adds a triangle. | ||||
* | | Merge pull request #2928 from huwpascoe/master | Yuri Kunde Schlesner | 2017-09-22 | 1 | -7/+18 |
|\ \ | | | | | | | Fixed framebuffer warning | ||||
| * | | Fixed framebuffer warning | Huw Pascoe | 2017-09-17 | 1 | -7/+18 |
| | | | |||||
* | | | Improved performance of FromAttributeBuffer | Huw Pascoe | 2017-09-17 | 1 | -1/+2 |
|/ / | | | | | | | | | | | | | Ternary operator is optimized by the compiler whereas std::min() is meant to return a value. I've noticed a 5%-10% emulation speed increase. | ||||
* | | Merge pull request #2900 from wwylele/clip-2 | Yuri Kunde Schlesner | 2017-09-16 | 5 | -46/+116 |
|\ \ | |/ |/| | PICA: implement custom clip plane | ||||
| * | SwRasterizer/Clipper: flip the sign convention to match PICA and OpenGL | wwylele | 2017-08-25 | 1 | -9/+9 |
| | | |||||
| * | gl_rasterizer: implement custom clip plane | wwylele | 2017-08-25 | 3 | -34/+83 |
| | | |||||
| * | SwRasterizer: implement custom clip plane | wwylele | 2017-08-24 | 2 | -4/+25 |
| | | |||||
* | | Merge pull request #2865 from wwylele/gs++ | bunnei | 2017-09-08 | 15 | -37/+594 |
|\ \ | | | | | | | PICA: implemented geometry shader | ||||
| * | | pica/command_processor: build geometry pipeline and run geometry shader | wwylele | 2017-08-19 | 6 | -28/+383 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The geometry pipeline manages data transfer between VS, GS and primitive assembler. It has known four modes: - no GS mode: sends VS output directly to the primitive assembler (what citra currently does) - GS mode 0: sends VS output to GS input registers, and sends GS output to primitive assembler - GS mode 1: sends VS output to GS uniform registers, and sends GS output to primitive assembler. It also takes an index from the index buffer at the beginning of each primitive for determine the primitive size. - GS mode 2: similar to mode 1, but doesn't take the index and uses a fixed primitive size. hwtest shows that immediate mode also supports GS (at least for mode 0), so the geometry pipeline gets refactored into its own class for supporting both drawing mode. In the immediate mode, some games don't set the pipeline registers to a valid value until the first attribute input, so a geometry pipeline reset flag is set in `pipeline.vs_default_attributes_setup.index` trigger, and the actual pipeline reconfigure is triggered in the first attribute input. In the normal drawing mode with index buffer, the vertex cache is a little bit modified to support the geometry pipeline. Instead of OutputVertex, it now holds AttributeBuffer, which is the input to the geometry pipeline. The AttributeBuffer->OutputVertex conversion is done inside the pipeline vertex handler. The actual hardware vertex cache is believed to be implemented in a similar way (because this is the only way that makes sense). Both geometry pipeline and GS unit rely on states preservation across drawing call, so they are put into the global state. In the future, the other three vertex shader units should be also placed in the global state, and a scheduler should be implemented on top of the four units. Note that the current gs_unit already allows running VS on it in the future. | ||||
| * | | pica/shader/jit: implement SETEMIT and EMIT | wwylele | 2017-08-19 | 2 | -2/+49 |
| | | | |||||
| * | | pica/primitive_assembly: Handle winding for GS primitive | wwylele | 2017-08-19 | 2 | -3/+19 |
| | | | | | | | | | | | | hwtest shows that, although GS always emit a group of three vertices as one primitive, it still respects to the topology type, as if the three vertices are input into the primitive assembler independently and sequentially. It is also shown that the winding flag in SETEMIT only takes effect for Shader topology type, which is believed to be the actual difference between List and Shader (hence removed the TODO). However, only Shader topology type is observed in official games when GS is in use, so the other mode seems to be just unintended usage. | ||||
| * | | correct constness | wwylele | 2017-08-19 | 2 | -2/+4 |
| | | | |||||
| * | | pica/shader/interpreter: implement SETEMIT and EMIT | wwylele | 2017-08-19 | 1 | -0/+16 |
| | | | |||||
| * | | pica/shader: extend UnitState for GS | wwylele | 2017-08-19 | 2 | -0/+84 |
| | | | | | | | | | | | | | | | Among four shader units in pica, a special unit can be configured to run both VS and GS program. GSUnitState represents this unit, which extends UnitState (which represents the other three normal units) with extra state for primitive emitting. It uses lots of raw pointers to represent internal structure in order to keep it standard layout type for JIT to access. This unit doesn't handle triangle winding (inverting) itself; instead, it calls a WindingSetter handler. This will be explained in the following commits | ||||
| * | | pica/regs: layout geometry shader configuration regs | wwylele | 2017-08-10 | 2 | -2/+39 |
| | | | | | | | | | | | | All the register meanings are derived from ctrulib (3dbrew is outdated for most of them) | ||||
* | | | Merge pull request #2914 from wwylele/fresnel-fix | bunnei | 2017-09-05 | 2 | -7/+9 |
|\ \ \ | | | | | | | | | pica/lighting: only apply Fresnel factor for the last light | ||||
| * | | | pica/lighting: only apply Fresnel factor for the last light | wwylele | 2017-09-03 | 2 | -7/+9 |
| | | | | |||||
* | | | | video_core: report telemetry for gas mode | wwylele | 2017-08-31 | 1 | -0/+6 |
|/ / / | |||||
* | | | Merge pull request #2891 from wwylele/sw-bump | bunnei | 2017-08-31 | 4 | -10/+40 |
|\ \ \ | | | | | | | | | SwRasterizer/Lighting: implement bump mapping | ||||
| * | | | gl_rasterizer/lighting: more accurate CP formula | wwylele | 2017-08-22 | 1 | -2/+2 |
| | | | | |||||
| * | | | SwRasterizer/Lighting: implement LUT input CP | wwylele | 2017-08-22 | 1 | -0/+11 |
| | | | | |||||
| * | | | SwRasterizer/Lighting: implement bump mapping | wwylele | 2017-08-22 | 3 | -8/+27 |
| | | | | |||||
* | | | | Merge pull request #2892 from Subv/warnings2 | Weiyi Wang | 2017-08-28 | 3 | -6/+10 |
|\ \ \ \ | |_|_|/ |/| | | | Warnings: Fixed a few missing-return warnings in video_core. | ||||
| * | | | Warnings: Fixed a few missing-return warnings in video_core. | Subv | 2017-08-26 | 3 | -6/+10 |
| |/ / | |||||
* | | | swrasterizer: remove invalid TODO | wwylele | 2017-08-21 | 1 | -4/+2 |
| | | | | | | | | | | | | This function is called in clipping, before the pespective divide, and is not used in later rasterization. Thus it doesn't need perspective correction. | ||||
* | | | swrasterizer/clipper: remove tested TODO | wwylele | 2017-08-21 | 1 | -4/+0 |
| | | | | | | | | | | | | hwtested. Current implementation is the correct behavior | ||||
* | | | gl_shader_gen: simplify and clarify the depth transformation between vertex shader and fragment shader | wwylele | 2017-08-21 | 1 | -2/+5 |
| | | | |||||
* | | | gl_rasterizer: add clipping plane z<=0 defined in PICA | wwylele | 2017-08-21 | 4 | -0/+21 |
|/ / | |||||
* | | Merge pull request #2872 from wwylele/sw-geo-factor | Yuri Kunde Schlesner | 2017-08-21 | 1 | -4/+16 |
|\ \ | | | | | | | SwRasterizer/Lighting: implement geometric factor | ||||
| * | | SwRasterizer/Lighting: implement geometric factor | wwylele | 2017-08-11 | 1 | -4/+16 |
| | | | |||||
* | | | Merge pull request #2871 from wwylele/sw-spotlight | James Rowe | 2017-08-20 | 1 | -3/+19 |
|\ \ \ | | | | | | | | | SwRasterizer/Lighting: implement spot light | ||||
| * | | | SwRasterizer/Lighting: implement spot light | wwylele | 2017-08-11 | 1 | -3/+19 |
| |/ / | |||||
* / / | gl_shader_gen: don't call SampleTexture when bump map is not used | wwylele | 2017-08-11 | 1 | -4/+5 |
|/ / | |||||
* / | SwRasterizer/Lighting: use make_tuple instead of constructor | wwylele | 2017-08-10 | 1 | -1/+1 |
|/ | | | | implicit tuple constructor is a c++17 thing, which is not supported by some not-so-old libraries. Play safe for now | ||||
* | Merge pull request #2822 from wwylele/sw_lighting-2 | Weiyi Wang | 2017-08-09 | 6 | -5/+307 |
|\ | | | | | Implement fragment lighting in the sw renderer (take 2) | ||||
| * | SwRasterizer/Lighting: shorten file name | wwylele | 2017-08-03 | 4 | -4/+4 |
| | | |||||
| * | SwRasterizer/Lighting: move to its own file | wwylele | 2017-08-02 | 4 | -240/+271 |
| | | |||||
| * | SwRasterizer/Lighting: reduce confusion | wwylele | 2017-08-02 | 1 | -1/+1 |
| | | |||||
| * | SwRasterizer/Lighting: move quaternion normalization to the caller | wwylele | 2017-08-02 | 1 | -3/+3 |
| | | |||||
| * | SwRasterizer/Lighting: dist atten lut input need to be clamp | wwylele | 2017-07-11 | 1 | -1/+1 |
| | | |||||
| * | SwRasterizer/Lighting: unify float suffix | wwylele | 2017-07-11 | 1 | -11/+13 |
| | | |||||
| * | SwRasterizer/Lighting: get rid of nested return | wwylele | 2017-07-11 | 1 | -10/+11 |
| | | |||||
| * | SwRasterizer/Lighting: refactor GetLutValue into a function. | wwylele | 2017-07-11 | 1 | -83/+27 |
| | | | | | | | | merging similar pattern. Also makes the code more similar to the gl one | ||||
| * | SwRasterizer: only interpolate quat and view when lighting is enabled | wwylele | 2017-07-11 | 1 | -14/+14 |
| | | |||||
| * | SwRasterizer/Lighting: pass lighting state as parameter | wwylele | 2017-07-11 | 1 | -13/+13 |
| | | |||||
| * | SwRasterizer/Lighting: Move the clamp highlight calculation to the end of the per-light loop body. | Subv | 2017-07-11 | 1 | -17/+17 |
| | | |||||
| * | SwRasterizer/Lighting: Move the lighting enable check outside the ComputeFragmentsColors function. | Subv | 2017-07-11 | 1 | -7/+6 |
| | | |||||
| * | SwRasterizer/Lighting: Do not use global registers state in ComputeFragmentsColors. | Subv | 2017-07-11 | 1 | -3/+3 |
| | | |||||
| * | SwRasterizer/Lighting: Do not use global state in LookupLightingLut. | Subv | 2017-07-11 | 2 | -13/+22 |
| | | |||||
| * | SwRasterizer/Lighting: Fixed a bug where the distance attenuation bias was being set to the dist atten scale. | Subv | 2017-07-11 | 1 | -3/+2 |
| | | |||||
| * | SwRasterizer: Fixed a few conversion warnings and moved per-light values into the per-light loop. | Subv | 2017-07-11 | 1 | -5/+6 |
| | | |||||
| * | SwRasterizer: Run clang-format | Subv | 2017-07-11 | 1 | -45/+83 |
| | | |||||
| * | SwRasterizer: Flip the vertex quaternions before clipping (if necessary). | Subv | 2017-07-11 | 2 | -20/+15 |
| | | |||||
| * | SwRasterizer: Corrected the light LUT lookups. | Subv | 2017-07-11 | 1 | -6/+7 |
| | | |||||
| * | SwRasterizer: Corrected the light LUT lookups. | Subv | 2017-07-11 | 1 | -33/+43 |
| | | |||||
| * | SwRasterizer: Fixed the lighting lut lookup function. | Subv | 2017-07-11 | 1 | -2/+4 |
| | | |||||
| * | SwRasterizer: Calculate fresnel for fragment lighting. | Subv | 2017-07-11 | 1 | -1/+25 |
| | | |||||
| * | SwRasterizer: Calculate specular_1 for fragment lighting. | Subv | 2017-07-11 | 1 | -3/+59 |
| | | |||||
| * | SwRasterizer: Calculate specular_0 for fragment lighting. | Subv | 2017-07-11 | 1 | -13/+94 |
| | | |||||
| * | SwRasterizer: Implement primary fragment color. | Subv | 2017-07-11 | 1 | -4/+113 |
| | | |||||
* | | pica: upload shared shader code to both unit | wwylele | 2017-08-07 | 2 | -26/+45 |
| | | |||||
* | | pica/shader_interpreter: fix off-by-one in LOOP | wwylele | 2017-07-27 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #2816 from wwylele/proctex-lutlutlut | Sebastian Valle | 2017-07-23 | 5 | -70/+80 |
|\ \ | | | | | | | gl_rasterizer: use texture buffer for proctex LUT | ||||
| * | | gl_rasterizer: use texture buffer for proctex LUT | wwylele | 2017-07-01 | 5 | -70/+80 |
| |/ | |||||
* | | Merge pull request #2834 from wwylele/depth-enable-fix | Sebastian Valle | 2017-07-23 | 1 | -4/+5 |
|\ \ | | | | | | | gl_rasterizer_cache: fix using_depth_fb | ||||
| * | | gl_rasterizer_cache: depth write is disabled if allow_depth_stencil_write is false | wwylele | 2017-06-10 | 1 | -4/+5 |
| | | | |||||
* | | | telemetry: Log performance, configuration, and system data. | bunnei | 2017-07-18 | 2 | -6/+16 |
| |/ |/| | |||||
* | | gl_rasterizer: use texture buffer for fog LUT | wwylele | 2017-06-22 | 7 | -29/+32 |
| | | |||||
* | | gl_rasterizer: create the texture before applying the state | wwylele | 2017-06-22 | 1 | -2/+2 |
| | | | | | | | | this is a rebasing error from #2792. It doesn't affect much though, because the later more Apply() call fixes/hides it | ||||
* | | gl_state: reset 1d textures | wwylele | 2017-06-21 | 1 | -0/+14 |
| | | |||||
* | | gl_rasterizer: fix glGetUniformLocation type | wwylele | 2017-06-21 | 1 | -8/+8 |
| | | |||||
* | | gl_rasterizer: manage texture ids in one place | wwylele | 2017-06-21 | 3 | -31/+55 |
| | | |||||
* | | gl_rasterizer/lighting: fix LUT interpolation | wwylele | 2017-06-21 | 7 | -116/+102 |
| | | |||||
* | | Merge pull request #2776 from wwylele/geo-factor | Yuri Kunde Schlesner | 2017-06-18 | 3 | -7/+26 |
|\ \ | | | | | | | Fragment lighting: implement geometric factor | ||||
| * | | gl_rasterizer/lighting: use the formula from the paper for germetic factor | wwylele | 2017-06-18 | 1 | -8/+8 |
| | | | |||||
| * | | gl_rasterizer/lighting: implement geometric factor | wwylele | 2017-06-15 | 3 | -1/+20 |
| | | | |||||
* | | | Stop using reserved operator names (and/or/xor) with Xbyak | Yuri Kunde Schlesner | 2017-06-17 | 1 | -13/+13 |
|/ / | | | | | | | Also has the Dynarmic upgrade with the same change | ||||
* | | Merge pull request #2762 from wwylele/light-cp-tangent | Yuri Kunde Schlesner | 2017-06-15 | 2 | -10/+38 |
|\ \ | | | | | | | Fragment lighting: implement lut input 5 (CP) and tangent mapping | ||||
| * | | gl_rasterizer/lighting: Implement tangent mapping | wwylele | 2017-06-11 | 1 | -7/+12 |
| | | | |||||
| * | | gl_rasterizer/lighting: implement lut input 5 (CP) | wwylele | 2017-06-11 | 2 | -3/+26 |
| | | | |||||
* | | | Merge pull request #2743 from wwylele/wrap-fix | Yuri Kunde Schlesner | 2017-06-14 | 4 | -12/+48 |
|\ \ \ | | | | | | | | | pica/rasterizer: implement/stub texture wrap mode 4-7 | ||||
| * | | | pica/rasterizer: implement/stub texture wrap mode 4-7 | wwylele | 2017-06-04 | 4 | -12/+48 |
| | | | | |||||
* | | | | Merge pull request #2767 from yuriks/quaternion-flip-comment | Yuri Kunde Schlesner | 2017-06-13 | 1 | -8/+11 |
|\ \ \ \ | |_|/ / |/| | | | OpenGL: Update comment on AreQuaternionsOpposite with new information | ||||
| * | | | OpenGL: Update comment on AreQuaternionsOpposite with new information | Yuri Kunde Schlesner | 2017-06-10 | 1 | -8/+11 |
| | |/ | |/| | | | | | | | | | | | | | | | | While debugging the software renderer implementation, it was noticed that this is actually exactly what the hardware does, upgrading the status of this "hack" to being a proper implementation. And there was much rejoicing. | ||||
* | | | Merge pull request #2727 from wwylele/spot-light | Sebastian Valle | 2017-06-11 | 5 | -28/+128 |
|\ \ \ | |/ / |/| | | Fragment lighting: implement spot light | ||||
| * | | gl_rasterizer: implement spot light | wwylele | 2017-05-30 | 1 | -6/+24 |
| | | | |||||
| * | | gl_rasterizer: sync spot light status | wwylele | 2017-05-30 | 4 | -2/+61 |
| | | | |||||
| * | | pica: prepare registers for spotlight | wwylele | 2017-05-30 | 1 | -20/+43 |
| | | | |||||
* | | | Merge pull request #2721 from wwylele/texture-cube | bunnei | 2017-05-30 | 2 | -3/+77 |
|\ \ \ | |_|/ |/| | | swrasterizer: implemented TextureCube | ||||
| * | | swrasterizer: implement TextureCube | wwylele | 2017-05-29 | 1 | -2/+51 |
| | | | |||||
| * | | pica: add registers for texture cube | wwylele | 2017-05-29 | 1 | -1/+26 |
| | | | |||||
* | | | Merge pull request #2734 from yuriks/cmake-imported-libs | Yuri Kunde Schlesner | 2017-05-30 | 1 | -4/+3 |
|\ \ \ | | | | | | | | | CMake: Use CMake target properties for all libraries | ||||
| * | | | CMake: Create INTERFACE targets for microprofile and nihstro | Yuri Kunde Schlesner | 2017-05-28 | 1 | -1/+1 |
| | | | | |||||
| * | | | CMake: Use IMPORTED target for libpng | Yuri Kunde Schlesner | 2017-05-28 | 1 | -3/+2 |
| | | | | |||||
* | | | | Merge pull request #2729 from yuriks/quaternion-fix | Yuri Kunde Schlesner | 2017-05-28 | 1 | -3/+5 |
|\ \ \ \ | |/ / / |/| | | | OpenGL: Improve accuracy of quaternion interpolation | ||||
| * | | | OpenGL: Improve accuracy of quaternion interpolation | Yuri Kunde Schlesner | 2017-05-27 | 1 | -3/+5 |
| | |/ | |/| | | | | | | | | | | | | | | | | Current order of operations (rotate then normalize) seems to produce a lot more distortion than normalizing and then rotating. This makes Citra results match pretty closesly with hardware, and indicates that hardware may also be using lerp instead of slerp to interpolate the quaternions. | ||||
* | | | CMake: Correct inter-module dependencies and library visibility | Yuri Kunde Schlesner | 2017-05-28 | 1 | -5/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modules didn't correctly define their dependencies before, which relied on the frontends implicitly including every module for linking to succeed. Also changed every target_link_libraries call to specify visibility of dependencies to avoid leaking definitions to dependents when not necessary. | ||||
* | | | Move screen size constants from video_core to core | Yuri Kunde Schlesner | 2017-05-28 | 2 | -27/+8 |
| | | | | | | | | | | | | | | | video_core didn't even properly use them, and they were the source of many otherwise-unnecessary dependencies from core to video_core. | ||||
* | | | OpenGL: Remove unused RendererOpenGL fields | Yuri Kunde Schlesner | 2017-05-28 | 2 | -11/+2 |
| |/ |/| | |||||
* | | gl_shader: refactor texture sampler into its own function | wwylele | 2017-05-27 | 1 | -40/+39 |
|/ | |||||
* | Merge pull request #2697 from wwylele/proctex | Yuri Kunde Schlesner | 2017-05-25 | 14 | -11/+1038 |
|\ | | | | | Implemented Procedural Texture (Texture Unit 3) | ||||
| * | gl_rasterizer: implement procedural texture | wwylele | 2017-05-20 | 6 | -7/+600 |
| | | |||||
| * | pica/swrasterizer: implement procedural texture | wwylele | 2017-05-20 | 8 | -4/+438 |
| | | |||||
* | | swrasterizer: add missing tc0_w and fragment lighting attribute processing | wwylele | 2017-05-21 | 2 | -5/+8 |
| | | |||||
* | | pica: use correct register value for shader bool_uniforms | wwylele | 2017-05-17 | 1 | -2/+2 |
| | | | | | | | | variable value is not masked. the masked and combined register value should be used instead | ||||
* | | Merge pull request #2703 from wwylele/pica-reg-revise | Yuri Kunde Schlesner | 2017-05-16 | 4 | -17/+25 |
|\ \ | | | | | | | pica: correct bit field length for some registers | ||||
| * | | pica: correct bit field length for some registers | wwylele | 2017-05-16 | 4 | -17/+25 |
| |/ | |||||
* | | Pica: Write GS registers | Jannik Vogel | 2017-05-12 | 1 | -0/+52 |
| | | | | | | | | This adds the handlers for the geometry shader register writes which will call the functions from the previous commit to update registers for the GS. | ||||
* | | Pica: Write shader registers in functions | Jannik Vogel | 2017-05-12 | 1 | -57/+103 |
| | | | | | | | | The commit after this one adds GS register writes, so this moves the VS handlers into functions so they can be re-used and extended more easily. | ||||
* | | Pica: Set program code / swizzle data limit to 4096 | Jannik Vogel | 2017-05-11 | 5 | -13/+16 |
|/ | | | | | | | | | | | | | One of the later commits will enable writing to GS regs. It turns out that on startup, most games will write 4096 GS program words. The current limit of 1024 would hence result in 3072 (4096 - 1024) error messages: ``` HW.GPU <Error> video_core/shader/shader.cpp:WriteProgramCode:229: Invalid GS program offset 1024 ``` New constants have been introduced to represent these limits. The swizzle data size has also been raised. This matches the given field sizes of [GPUREG_SH_OPDESCS_INDEX](https://3dbrew.org/wiki/GPU/Internal_Registers#GPUREG_SH_OPDESCS_INDEX) and [GPUREG_SH_CODETRANSFER_INDEX](https://www.3dbrew.org/wiki/GPU/Internal_Registers#GPUREG_SH_CODETRANSFER_INDEX) (12 bit = [0; 4095]). | ||||
* | pica: shader_dirty if texture2 coord changed | wwylele | 2017-05-05 | 5 | -7/+12 |
| | |||||
* | pica: use correct coordinates for texture 2 | wwylele | 2017-05-03 | 4 | -5/+22 |
| | |||||
* | Merge pull request #2671 from wwylele/dot3-rgba | bunnei | 2017-04-21 | 4 | -22/+39 |
|\ | | | | | rasterizer: implement combiner operation 7 (Dot3_RGBA) | ||||
| * | gl_shader_gen: remove TODO about Lerp behaviour verification. The implementation is verified against hardware | wwylele | 2017-04-20 | 1 | -2/+0 |
| | | |||||
| * | rasterizer: implement combiner operation 7 (Dot3_RGBA) | wwylele | 2017-04-19 | 4 | -20/+39 |
| | | |||||
* | | OpenGL: Pass Pica regs via parameter | Yuri Kunde Schlesner | 2017-04-17 | 3 | -7/+5 |
| | | |||||
* | | OpenGL: Move PicaShaderConfig to gl_shader_gen.h | Yuri Kunde Schlesner | 2017-04-17 | 4 | -202/+206 |
| | | | | | | | | Also move the implementation of CurrentConfig to the cpp file. | ||||
* | | OpenGL: Move Attributes enum to a more appropriate file | Yuri Kunde Schlesner | 2017-04-17 | 3 | -12/+11 |
|/ | |||||
* | Pica/Regs: Correct bit width for blend-equations | Jannik Vogel | 2017-04-08 | 1 | -2/+2 |
| | |||||
* | Input: remove unused stuff & clean up | wwylele | 2017-03-01 | 1 | -0/+1 |
| | | | | | | | 1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID 2. removed button handling in EmuWindow 3. removed key_map 4. cleanup #include | ||||
* | Doxygen: Amend minor issues (#2593) | Mat M | 2017-02-27 | 3 | -3/+5 |
| | | | | | | | | | Corrects a few issues with regards to Doxygen documentation, for example: - Incorrect parameter referencing. - Missing @param tags. - Typos in @param tags. and a few minor other issues. | ||||
* | Core: Re-write frame limiter | Yuri Kunde Schlesner | 2017-02-27 | 1 | -3/+3 |
| | | | | | | | | | Now based on std::chrono, and also works in terms of emulated time instead of frames, so we can in the future frame-limit even when the display is disabled, etc. The frame limiter can also be enabled along with v-sync now, which should be useful for those with displays running at more than 60 Hz. | ||||
* | Core: Make PerfStats internally locked | Yuri Kunde Schlesner | 2017-02-27 | 1 | -8/+2 |
| | | | | More ergonomic to use and will be required for upcoming changes. | ||||
* | Remove built-in (non-Microprofile) profiler | Yuri Kunde Schlesner | 2017-02-27 | 1 | -8/+0 |
| | |||||
* | Add performance statistics to status bar | Yuri Kunde Schlesner | 2017-02-27 | 1 | -0/+9 |
| | |||||
* | OpenGL: Check if uniform block exists before updating it (#2581) | Jannik Vogel | 2017-02-18 | 1 | -29/+30 |
| | |||||
* | video_core: remove #pragma once in cpp file (#2570) | Weiyi Wang | 2017-02-15 | 2 | -4/+0 |
| | |||||
* | SWRasterizer: Move more framebuffer functions to file | Yuri Kunde Schlesner | 2017-02-13 | 3 | -100/+105 |
| | |||||
* | SWRasterizer: Move texturing functions to their own file | Yuri Kunde Schlesner | 2017-02-13 | 4 | -210/+259 |
| | |||||
* | SWRasterizer: Convert large no-capture lambdas to standalone functions | Yuri Kunde Schlesner | 2017-02-13 | 1 | -315/+310 |
| | |||||
* | SWRasterizer: Move framebuffer operation functions to their own file | Yuri Kunde Schlesner | 2017-02-13 | 4 | -236/+285 |
| | |||||
* | VideoCore: Move software rasterizer files to sub-directory | Yuri Kunde Schlesner | 2017-02-13 | 8 | -12/+12 |
| | |||||
* | video_core/shader: Document sanitized MUL operation | Yuri Kunde Schlesner | 2017-02-12 | 1 | -0/+8 |
| | |||||
* | Merge pull request #2550 from yuriks/pica-refactor2 | Yuri Kunde Schlesner | 2017-02-12 | 17 | -138/+130 |
|\ | | | | | Small VideoCore cleanups | ||||
| * | VideoCore: Split u64 Pica reg unions into 2 separate u32 unions | Yuri Kunde Schlesner | 2017-02-09 | 1 | -36/+42 |
| | | | | | | | | | | This eliminates UB when aliasing it with the array of u32 regs, and is compatible with non-LE architectures. | ||||
| * | VideoCore: Force enum sizes to u32 in LightingRegs | Yuri Kunde Schlesner | 2017-02-09 | 1 | -4/+4 |
| | | | | | | | | | | All enums that are used with BitField must have their type forced to u32 to ensure correctness. | ||||
| * | OpenGL: Remove unused duplicate of IsPassThroughTevStage | Yuri Kunde Schlesner | 2017-02-09 | 1 | -12/+0 |
| | | | | | | | | | | This copy was left behind when the shader generation code was moved to a separate file. | ||||
| * | VideoCore: Split regs.h inclusions | Yuri Kunde Schlesner | 2017-02-09 | 13 | -24/+45 |
| | | |||||
| * | Pica/Regs: Use binary search to look up reg names | Yuri Kunde Schlesner | 2017-02-09 | 2 | -15/+10 |
| | | | | | | | | | | | | This gets rid of the static unordered_map. Also changes the return type const char*, avoiding unnecessary allocations (the result was only used by calling .c_str() on it.) | ||||
| * | VideoCore: Use union to index into Regs struct | Yuri Kunde Schlesner | 2017-02-09 | 2 | -46/+28 |
| | | | | | | | | Also remove some unused members. | ||||
* | | video_core: Fix benign out-of-bounds indexing of array (#2553) | Yuri Kunde Schlesner | 2017-02-11 | 1 | -2/+1 |
|/ | | | | | | The resulting pointer wasn't written to unless the index was verified as valid, but that's still UB and triggered debug checks in MSVC. Reported by garrettboast on IRC | ||||
* | Merge pull request #2482 from yuriks/pica-refactor | Yuri Kunde Schlesner | 2017-02-09 | 33 | -2397/+2604 |
|\ | | | | | Split up monolithic Regs struct | ||||
| * | VideoCore: Move Regs to its own file | Yuri Kunde Schlesner | 2017-02-04 | 22 | -658/+679 |
| | | |||||
| * | VideoCore: Split shader regs from Regs struct | Yuri Kunde Schlesner | 2017-02-04 | 9 | -102/+116 |
| | | |||||
| * | VideoCore: Split geometry pipeline regs from Regs struct | Yuri Kunde Schlesner | 2017-02-04 | 9 | -264/+292 |
| | | |||||
| * | VideoCore: Split lighting regs from Regs struct | Yuri Kunde Schlesner | 2017-02-04 | 6 | -312/+341 |
| | | |||||
| * | VideoCore: Split framebuffer regs from Regs struct | Yuri Kunde Schlesner | 2017-02-04 | 10 | -445/+491 |
| | | |||||
| * | VideoCore: Split texturing regs from Regs struct | Yuri Kunde Schlesner | 2017-02-04 | 15 | -494/+532 |
| | | |||||
| * | VideoCore: Split rasterizer regs from Regs struct | Yuri Kunde Schlesner | 2017-02-04 | 13 | -187/+218 |
| | | |||||
* | | Use std::array<u8,2> instead of u8[2] to fix MSVC build | Lectem | 2017-02-05 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #2476 from yuriks/shader-refactor3 | Yuri Kunde Schlesner | 2017-02-04 | 16 | -161/+160 |
|\ | | | | | Oh No! More shader changes! | ||||
| * | VideoCore: Make PrimitiveAssembler const-correct | Yuri Kunde Schlesner | 2017-01-30 | 2 | -3/+4 |
| | | |||||
| * | VideoCore: Extract swrast-specific data from OutputVertex | Yuri Kunde Schlesner | 2017-01-30 | 5 | -58/+64 |
| | | |||||
| * | VideoCore/Shader: Clean up OutputVertex::FromAttributeBuffer | Yuri Kunde Schlesner | 2017-01-30 | 2 | -10/+16 |
| | | | | | | | | | | | | This also fixes a long-standing but neverthless harmless memory corruption bug, whech the padding of the OutputVertex struct would get corrupted by unused attributes. | ||||
| * | VideoCore: Split shader output writing from semantic loading | Yuri Kunde Schlesner | 2017-01-30 | 3 | -24/+24 |
| | | |||||
| * | VideoCore: Consistently use shader configuration to load attributes | Yuri Kunde Schlesner | 2017-01-30 | 6 | -44/+23 |
| | | |||||
| * | VideoCore: Use correct register for immediate mode attribute count | Yuri Kunde Schlesner | 2017-01-30 | 2 | -7/+13 |
| | | |||||
| * | VideoCore: Rename some types to more accurate names | Yuri Kunde Schlesner | 2017-01-30 | 8 | -18/+18 |
| | | |||||
| * | VideoCore: Change misleading register names | Yuri Kunde Schlesner | 2017-01-30 | 4 | -8/+9 |
| | | | | | | | | | | | | A few registers had names such as "count" or "number" when they actually contained the maximum (that is, count - 1). This can easily lead to hard to notice off by one errors. | ||||
* | | Pica/Texture: Move part of ETC1 decoding to new file and cleanups | Yuri Kunde Schlesner | 2017-02-04 | 4 | -110/+159 |
| | | |||||
* | | Pica/Texture: Simplify/cleanup texture tile addressing | Yuri Kunde Schlesner | 2017-02-04 | 4 | -37/+111 |
| | | |||||
* | | VideoCore: Move LookupTexture out of debug_utils.h | Yuri Kunde Schlesner | 2017-02-04 | 7 | -301/+340 |
| | | |||||
* | | ShaderJIT: add 16 dummy bytes at the bottom of the stack | wwylele | 2017-02-03 | 1 | -2/+5 |
| | | |||||
* | | Common/x64: remove legacy emitter and abi (#2504) | Weiyi Wang | 2017-01-31 | 1 | -1/+0 |
| | | | | | | These are not used any more since we moved shader JIT to xbyak. | ||||
* | | shader_jit_x64_compiler: esi and edi should be persistent (#2500) | Merry | 2017-01-31 | 1 | -0/+2 |
| | | |||||
* | | video_core: gl_rasterizer_cache.cpp removed unused type alias | Kloen | 2017-01-30 | 1 | -1/+0 |
| | | |||||
* | | video_core: gl_rasterizer.cpp removed unused type alias | Kloen | 2017-01-30 | 1 | -2/+0 |
|/ | |||||
* | video_core: silence unused-local-typedef boost related warning on GCC | Kloen | 2017-01-29 | 1 | -0/+7 |
| | |||||
* | VideoCore/Shader: Move entry_point to SetupBatch | Yuri Kunde Schlesner | 2017-01-26 | 6 | -26/+27 |
| | |||||
* | VideoCore/Shader: Move per-batch ShaderEngine state into ShaderSetup | Yuri Kunde Schlesner | 2017-01-26 | 6 | -44/+40 |
| | |||||
* | Shader: Remove OutputRegisters struct | Yuri Kunde Schlesner | 2017-01-26 | 4 | -22/+17 |
| | |||||
* | Shader: Initialize conditional_code in interpreter | Yuri Kunde Schlesner | 2017-01-26 | 2 | -3/+3 |
| | | | | | | | This doesn't belong in LoadInputVertex because it also happens for non-VS invocations. Since it's not used by the JIT it seems adequate to initialize it in the interpreter which is the only thing that cares about them. | ||||
* | Shader: Don't read ShaderSetup from global state | Yuri Kunde Schlesner | 2017-01-26 | 1 | -3/+3 |
| | |||||
* | shader_jit_x64: Don't read program from global state | Yuri Kunde Schlesner | 2017-01-26 | 3 | -22/+22 |
| | |||||
* | VideoCore/Shader: Move ProduceDebugInfo to InterpreterEngine | Yuri Kunde Schlesner | 2017-01-26 | 4 | -19/+10 |
| | |||||
* | VideoCore/Shader: Split interpreter and JIT into separate ShaderEngines | Yuri Kunde Schlesner | 2017-01-26 | 8 | -97/+153 |
| | |||||
* | VideoCore/Shader: Rename shader_jit_x64{ => _compiler}.{cpp,h} | Yuri Kunde Schlesner | 2017-01-26 | 4 | -4/+4 |
| | |||||
* | VideoCore/Shader: Split shader uniform state and shader engine | Yuri Kunde Schlesner | 2017-01-26 | 4 | -21/+54 |
| | | | | | Currently there's only a single dummy implementation, which will be split in a following commit. | ||||
* | VideoCore/Shader: Add constness to methods | Yuri Kunde Schlesner | 2017-01-26 | 2 | -4/+4 |
| | |||||
* | VideoCore/Shader: Use only entry_point as ShaderSetup param | Yuri Kunde Schlesner | 2017-01-26 | 3 | -11/+13 |
| | | | | | This removes all implicit dependency of ShaderState on global PICA state. | ||||
* | VideoCore/Shader: Use self instead of g_state.vs in ShaderSetup | Yuri Kunde Schlesner | 2017-01-26 | 2 | -11/+8 |
| | |||||
* | VideoCore/Shader: Extract input vertex loading code into function | Yuri Kunde Schlesner | 2017-01-26 | 3 | -22/+26 |
| | |||||
* | video_core: fix shader.cpp signed / unsigned warning | Kloen | 2017-01-23 | 1 | -2/+2 |
| | |||||
* | video_core: gl_rasterizer float to int warning | Kloen | 2017-01-23 | 1 | -1/+2 |
| | |||||
* | video_core: fix gl_rasterizer warning on MSVC | Kloen | 2017-01-23 | 1 | -1/+1 |
| | |||||
* | config: Add option for specifying screen resolution scale factor. | bunnei | 2017-01-07 | 3 | -5/+10 |
| | |||||
* | Fix some warnings (#2399) | Jonathan Hao | 2017-01-04 | 1 | -2/+0 |
| | |||||
* | Merge pull request #2367 from JayFoxRox/lighting-lut-quickfix | bunnei | 2016-12-29 | 1 | -10/+9 |
|\ | | | | | Lighting LUT Quickfix | ||||
| * | Minor cleanup in GLSL code | Jannik Vogel | 2016-12-25 | 1 | -3/+2 |
| | | |||||
| * | Offset lighting LUT samples correctly | Jannik Vogel | 2016-12-25 | 1 | -7/+7 |
| | | |||||
* | | core: Move emu_window and key_map into core | MerryMage | 2016-12-23 | 2 | -2/+2 |
|/ | | | | * Removes circular dependences (common should not depend on core) | ||||
* | Merge pull request #2319 from yuriks/profile-scopes | bunnei | 2016-12-21 | 2 | -0/+15 |
|\ | | | | | VideoCore: Make profiling scope more representative | ||||
| * | VideoCore: Make profiling scope more representative | Yuri Kunde Schlesner | 2016-12-15 | 2 | -0/+15 |
| | | |||||
* | | Use GL_TRUE when setting color_mask | Albin Bernhardsson | 2016-12-19 | 1 | -4/+4 |
| | | |||||
* | | Merge pull request #2318 from yuriks/trace-opt | bunnei | 2016-12-19 | 3 | -16/+15 |
|\ \ | | | | | | | VideoCore: Inline IsPicaTracing | ||||
| * | | VideoCore: Inline IsPicaTracing | Yuri Kunde Schlesner | 2016-12-15 | 3 | -16/+15 |
| |/ | | | | | | | Speeds up ALBW main menu slightly (~3%) | ||||
* | | VideoCore/Shader: Extract DebugData out from UnitState | Yuri Kunde Schlesner | 2016-12-16 | 8 | -103/+99 |
| | | |||||
* | | Remove unnecessary cast | Yuri Kunde Schlesner | 2016-12-16 | 1 | -3/+1 |
| | | |||||
* | | VideoCore/Shader: Extract evaluate_condition lambda to function scope | Yuri Kunde Schlesner | 2016-12-16 | 1 | -26/+24 |
| | | |||||
* | | VideoCore/Shader: Extract call lambda up a scope and remove unused param | Yuri Kunde Schlesner | 2016-12-16 | 1 | -21/+17 |
| | | |||||
* | | VideoCore/Shader: Remove dynamic control flow in (Get)UniformOffset | Yuri Kunde Schlesner | 2016-12-16 | 2 | -18/+11 |
| | | |||||
* | | VideoCore/Shader: Move DebugData to a separate file | Yuri Kunde Schlesner | 2016-12-16 | 4 | -172/+189 |
| | | |||||
* | | shader_jit_x64: Use LOOPCOUNT_REG as a 64-bit reg when indexing | Yuri Kunde Schlesner | 2016-12-15 | 1 | -1/+1 |
|/ | |||||
* | VideoCore: Eliminate an unnecessary copy in the drawcall loop | Yuri Kunde Schlesner | 2016-12-15 | 3 | -5/+3 |
| | |||||
* | shader_jit_x64: Use Reg32 for LOOP* registers, eliminating casts | Yuri Kunde Schlesner | 2016-12-15 | 1 | -16/+16 |
| | |||||
* | VideoCore: Convert x64 shader JIT to use Xbyak for assembly | Yuri Kunde Schlesner | 2016-12-15 | 3 | -223/+228 |
| | |||||
* | Add all services to the Service namespace | Lioncash | 2016-12-11 | 2 | -6/+7 |
| | | | | | Previously there was a split where some of the services were in the Service namespace and others were not. | ||||
* | OpenGL: Drop framebuffer completeness check. | Markus Wick | 2016-12-07 | 5 | -47/+8 |
| | | | | | | | This OpenGL call synchronize the worker thread of the nvidia blob. It can be verified on linux with the __GL_THREADED_OPTIMIZATIONS=1 environment variable. Those errors should not happen on tested drivers. It was used as a workaround for https://bugs.freedesktop.org/show_bug.cgi?id=94148 | ||||
* | Implement Frame rate limiter (#2223) | emmauss | 2016-12-06 | 2 | -0/+2 |
| | | | | | | * implement frame limiter * fixes | ||||
* | ASSERT that shader was linked successfully | Jannik Vogel | 2016-12-05 | 1 | -0/+2 |
| | |||||
* | Report shader uniform block size in case of mismatch | Jannik Vogel | 2016-12-05 | 1 | -1/+3 |
| | |||||
* | Print broken shader code to log | Jannik Vogel | 2016-12-05 | 1 | -3/+9 |
| | |||||
* | OpenGL: Non-zero stride only makes sense for linear buffers | Yuri Kunde Schlesner | 2016-12-04 | 3 | -7/+11 |
| | |||||
* | OpenGL: Ensure framebuffer binding is restored if completion check fails | Yuri Kunde Schlesner | 2016-12-04 | 1 | -10/+7 |
| | |||||
* | OpenGL: Fix DisplayTransfer accel when input width != output width | Yuri Kunde Schlesner | 2016-12-04 | 1 | -1/+10 |
| | | | | Fixes #2246, #2261 | ||||
* | Merge pull request #2259 from JayFoxRox/fix-fallback | Yuri Kunde Schlesner | 2016-12-04 | 1 | -1/+1 |
|\ | | | | | shader_jit: Fix non-SSE4.1 path where FLR would not truncate | ||||
| * | shader_jit: Fix non-SSE4.1 path where FLR would not truncate | Jannik Vogel | 2016-12-04 | 1 | -1/+1 |
| | | |||||
* | | clang-format: Fix coding style | Yuri Kunde Schlesner | 2016-12-03 | 1 | -1/+1 |
|/ | |||||
* | shader_jit: Load LOOPCOUNT_REG and LOOPINC 4 bit left-shifted | Jannik Vogel | 2016-12-02 | 1 | -6/+9 |
| | |||||
* | ClangFormat: Fixed the clang-format errors | Subv | 2016-11-30 | 2 | -6/+10 |
| | |||||
* | Build: Fixed a few warnings. | Subv | 2016-11-29 | 2 | -7/+7 |
| | |||||
* | Merge pull request #2222 from linkmauve/die-frameskip-die | Yuri Kunde Schlesner | 2016-11-28 | 1 | -4/+0 |
|\ | | | | | Remove the broken frame_skip option | ||||
| * | GPU: Remove the broken frame_skip option. | Emmanuel Gil Peyrot | 2016-11-27 | 1 | -4/+0 |
| | | | | | | | | Fixes #1960. | ||||
* | | RasterizerGL: Use GL_TRUE and 0xFF in the stencil and depth masks instead of simply true and -1 | Subv | 2016-11-27 | 2 | -4/+4 |
| | | |||||
* | | Rasterizer/Memfill: Set the correct stencil write mask when clearing the stencil buffer. | Subv | 2016-11-27 | 1 | -1/+1 |
|/ | |||||
* | Cache Vertices instead of Output registers (#2165) | jphalimi | 2016-11-24 | 1 | -6/+7 |
| | | | | This patch brings +3% performance improvement on average. It removes ToVertex() as an important hotspot of the emulator. | ||||
* | Fix format error from #2195 | wwylele | 2016-11-22 | 1 | -1/+1 |
| | |||||
* | Merge pull request #2195 from Subv/factor_check | bunnei | 2016-11-20 | 1 | -6/+5 |
|\ | | | | | GPU/CiTrace: Avoid calling GetTextures() when not necessary. | ||||
| * | GPU/CiTrace: Avoid calling GetTextures() when not necessary. | Subv | 2016-11-20 | 1 | -6/+5 |
| | | |||||
* | | Merge pull request #2194 from jroweboy/extremely-minor-clangformat-change | James Rowe | 2016-11-19 | 1 | -1/+1 |
|\ \ | |/ |/| | Minor formatting change | ||||
| * | Minor formatting change | James Rowe | 2016-11-19 | 1 | -1/+1 |
| | | |||||
* | | Add default hotkey to swap primary screens. | James Rowe | 2016-11-05 | 1 | -3/+2 |
| | | | | | | | | Also minor style changes | ||||
* | | Support additional screen layouts. | James Rowe | 2016-11-05 | 1 | -6/+12 |
|/ | | | | | Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen. | ||||
* | Fix typos | Ricardo de Almeida Gonzaga | 2016-10-20 | 1 | -1/+1 |
| | |||||
* | Merge pull request #2082 from yuriks/shader-interp-crash | bunnei | 2016-10-07 | 2 | -35/+43 |
|\ | | | | | Fix/mask crash in shader debugger in Mii Maker | ||||
| * | VideoCore: Shader interpreter cleanups | Yuri Kunde Schlesner | 2016-09-30 | 1 | -32/+42 |
| | | |||||
| * | VideoCore: Fix out-of-bounds read in ShaderSetup::ProduceDebugInfo | Yuri Kunde Schlesner | 2016-09-30 | 1 | -3/+1 |
| | | | | | | | | | | | | As far as I can tell, memset was replaced by a fill without correcting the parameter type, causing an out-of-bounds array read in the Vec4 constructor. | ||||
* | | Merge pull request #2103 from wwylele/gpu-reg-cleanup | bunnei | 2016-10-04 | 3 | -6/+12 |
|\ \ | |/ |/| | GPU: DisplayTransfer & MemoryFill cleanup and param check | ||||
| * | rasterizer: separate TextureCopy from DisplayTransfer | wwylele | 2016-09-29 | 3 | -6/+12 |
| | | |||||
* | | OpenGL: Take cached viewport sub-rect into account for scissor | Yuri Kunde Schlesner | 2016-09-30 | 3 | -29/+25 |
|/ | | | | Fixes #1938 | ||||
* | Remove special rules for Windows.h and library includes | Yuri Kunde Schlesner | 2016-09-21 | 1 | -1/+1 |
| | |||||
* | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 2016-09-21 | 18 | -18/+18 |
| | |||||
* | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 2016-09-21 | 35 | -105/+17 |
| | | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | ||||
* | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 2016-09-19 | 23 | -125/+119 |
| | |||||
* | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 2016-09-18 | 42 | -2532/+2943 |
| | |||||
* | VideoCore: Fix dangling lambda context in shader interpreter | Yuri Kunde Schlesner | 2016-09-16 | 1 | -1/+1 |
| | | | | | | The static meant that after the first execution, these lambda context would be pointing to a random location on the stack. Fixes a random crash when using the interpreter. | ||||
* | Merge pull request #2032 from bunnei/qt-graphics | bunnei | 2016-09-01 | 1 | -0/+1 |
|\ | | | | | Qt graphics configure & V-Sync option | ||||
| * | config: Add a setting for graphics V-Sync. | bunnei | 2016-08-30 | 1 | -0/+1 |
| | | |||||
* | | OpenGL: Avoid error on unsupported lighting LUT | Jannik Vogel | 2016-08-30 | 1 | -0/+1 |
|/ | |||||
* | OpenGL: Add scaled resolution support to scissor | Yuri Kunde Schlesner | 2016-06-28 | 4 | -3/+16 |
| | |||||
* | PICA: Scissor fixes and cleanups | Yuri Kunde Schlesner | 2016-06-28 | 5 | -45/+39 |
| | |||||
* | PICA: Implement scissor test | Subv | 2016-06-28 | 5 | -3/+105 |
| | |||||
* | Remove superfluous std::move in return std::move(local_var) | scurest | 2016-06-25 | 1 | -1/+1 |
| | |||||
* | OpenGL: Implement fog | Jannik Vogel | 2016-06-07 | 5 | -7/+124 |
| | |||||
* | Rasterizer: Implement fog | Jannik Vogel | 2016-06-07 | 1 | -21/+52 |
| | |||||
* | Pica: Add fog state | Jannik Vogel | 2016-06-07 | 3 | -14/+69 |
| | |||||
* | OpenGL: Avoid undefined behaviour for UNIFORM_BLOCK_DATA_SIZE | Jannik Vogel | 2016-06-07 | 2 | -6/+8 |
| | |||||
* | gsp::gpu: Reset g_thread_id in UnregisterInterruptRelayQueue | mailwl | 2016-06-01 | 1 | -1/+1 |
| | |||||
* | Merge pull request #1812 from JayFoxRox/refactor-shader | bunnei | 2016-06-01 | 4 | -64/+81 |
|\ | | | | | Retrieve shader result from new OutputRegisters-type | ||||
| * | Retrieve shader result from new OutputRegisters-type | Jannik Vogel | 2016-05-16 | 4 | -64/+81 |
| | | |||||
* | | Merge pull request #1846 from JayFoxRox/missing-dirty-lighting | bunnei | 2016-05-26 | 4 | -43/+140 |
|\ \ | | | | | | | OpenGL: Set shader_dirty on lighting changes | ||||
| * | | OpenGL: Set shader_dirty on lighting changes | Jannik Vogel | 2016-05-23 | 1 | -0/+23 |
| | | | |||||
| * | | Pica: Name LightSrc.config register | Jannik Vogel | 2016-05-23 | 2 | -17/+15 |
| | | | |||||
| * | | Pica: Name lighting.config0 and .config1 registers | Jannik Vogel | 2016-05-23 | 2 | -18/+18 |
| | | | |||||
| * | | OpenGL: Use uniforms for dist_atten_bias and dist_atten_scale | Jannik Vogel | 2016-05-23 | 3 | -8/+84 |
| | | | |||||
* | | | Merge pull request #1733 from lioncash/vert_loader | bunnei | 2016-05-24 | 3 | -11/+23 |
|\ \ \ | |/ / |/| | | VertexLoader: Minor changes | ||||
| * | | vertex_loader: Correct forward declaration of InputVertex | Lioncash | 2016-05-09 | 1 | -1/+1 |
| | | | | | | | | | | | | It's actually a struct, not a class. | ||||
| * | | vertex_loader: Provide an assertion for ensuring the loader has been setup | Lioncash | 2016-05-09 | 2 | -0/+7 |
| | | | | | | | | | | | | | | | Also adds an assert to ensure that Setup is not called more than once during a VertexLoader's lifetime. | ||||
| * | | vertex_loader: Add constructors to facilitate immediate and two-step initialization | Lioncash | 2016-05-09 | 2 | -2/+6 |
| | | | |||||
| * | | vertex_loader: initialize_num_total_attributes. | Lioncash | 2016-05-09 | 1 | -1/+1 |
| | | | | | | | | | | | | Keeps the public API sane. | ||||
| * | | vertex_loader: Use std::array instead of raw C arrays | Lioncash | 2016-05-09 | 1 | -6/+7 |
| | | | |||||
| * | | vertex_loader: Correct header ordering | Lioncash | 2016-05-09 | 1 | -1/+1 |
| | | | |||||
* | | | Refactor Tev stage dumper | Jannik Vogel | 2016-05-21 | 2 | -115/+114 |
| | | | |||||
* | | | Extend Tev stage dumper | Jannik Vogel | 2016-05-21 | 1 | -14/+38 |
| | | | |||||
* | | | Merge pull request #1786 from JayFoxRox/blend-equation | bunnei | 2016-05-17 | 4 | -0/+31 |
|\ \ \ | |_|/ |/| | | OpenGL: Support blend equation | ||||
| * | | OpenGL: Support blend equation | Jannik Vogel | 2016-05-12 | 4 | -0/+31 |
| | | | |||||
* | | | Merge pull request #1787 from JayFoxRox/refactor-jit | linkmauve | 2016-05-16 | 6 | -32/+50 |
|\ \ \ | | | | | | | | | Refactor JIT | ||||
| * | | | Use new shader-jit signature for interpreter | Jannik Vogel | 2016-05-13 | 3 | -8/+8 |
| | | | | |||||
| * | | | Refactor access to state in shader-jit | Jannik Vogel | 2016-05-13 | 4 | -24/+42 |
| | | | | |||||
* | | | | OpenGL: Only update depth uniforms if the depth changed | Jannik Vogel | 2016-05-14 | 2 | -9/+22 |
| | | | | |||||
* | | | | OpenGL: value-initialize variables which cause uninitialised access otherwise | Jannik Vogel | 2016-05-14 | 1 | -2/+2 |
|/ / / | |||||
* | | | Move program_counter and call_stack from UnitState to interpreter | Jannik Vogel | 2016-05-12 | 3 | -45/+42 |
| | | | |||||
* | | | Move default_attributes into Pica state | Jannik Vogel | 2016-05-12 | 4 | -4/+4 |
|/ / | |||||
* | | Merge pull request #1690 from JayFoxRox/tex-type-3 | bunnei | 2016-05-12 | 7 | -38/+106 |
|\ \ | | | | | | | Pica: Implement texture type 3 (Projection2D) | ||||
| * | | OpenGL: Implement texture type 3 | Jannik Vogel | 2016-05-11 | 4 | -35/+67 |
| | | | |||||
| * | | Rasterizer: Implement texture type 3 | Jannik Vogel | 2016-05-11 | 1 | -2/+27 |
| | | | |||||
| * | | Pica: Add tc0.w to OutputVertex | Jannik Vogel | 2016-05-11 | 1 | -1/+2 |
| | | | |||||
| * | | Pica: Add texture type to state | Jannik Vogel | 2016-05-11 | 1 | -0/+10 |
| | | | |||||
* | | | Turn ShaderSetup into struct | Jannik Vogel | 2016-05-11 | 4 | -57/+58 |
|/ / | |||||
* | | Merge pull request #1621 from JayFoxRox/w-buffer | bunnei | 2016-05-11 | 6 | -14/+65 |
|\ \ | | | | | | | Implement W-buffer and fix depth-mapping | ||||
| * | | OpenGL: Implement W-Buffers and fix depth-mapping | Jannik Vogel | 2016-05-10 | 3 | -4/+23 |
| | | | |||||
| * | | Pica: Implement W-Buffer in SW rasterizer | Jannik Vogel | 2016-05-10 | 4 | -11/+43 |
| | | | |||||
* | | | gl_rasterizer: Fix compilation for debug builds | Lioncash | 2016-05-10 | 1 | -1/+1 |
|/ / | |||||
* | | Merge pull request #1704 from JayFoxRox/pod-config | linkmauve | 2016-05-10 | 3 | -122/+164 |
|\ \ | |/ |/| | Pica: PicaShaderConfig is TC and cleared before use | ||||
| * | Pica: Use a union for PicaShaderConfig | Jannik Vogel | 2016-05-03 | 3 | -125/+139 |
| | | |||||
| * | Pica: Add TevStageConfigRaw to PicaShaderConfig (MSVC workaround) | Jannik Vogel | 2016-05-03 | 2 | -2/+23 |
| | | |||||
| * | Pica: Make PicaShaderConfig trivially_copyable and clear it before use | Jannik Vogel | 2016-05-03 | 1 | -21/+28 |
| | | |||||
* | | fixup simple type conversions where possible | Alexander Laties | 2016-05-07 | 4 | -7/+8 |
| | | |||||
* | | Frontends, VideoCore: Move glad initialisation to the frontend | Emmanuel Gil Peyrot | 2016-05-06 | 1 | -6/+0 |
| | | | | | | | | | | | | | | | | | | | | On SDL2 this allows it to use SDL_GL_GetProcAddress() instead of the default function loader, and fixes a crash when using apitrace with an EGL context. On Qt we will need to migrate from QGLWidget to QOpenGLWidget and QOpenGLContext before we can use gladLoadGLLoader() instead of gladLoadGL(), since the former doesn’t expose a function loader. | ||||
* | | Pica: Rename VertexLoaded breakpoint to VertexShaderInvocation | Jannik Vogel | 2016-05-04 | 2 | -7/+5 |
|/ | |||||
* | OpenGL: Don't copy const_color (Reverts #1745) | Jannik Vogel | 2016-05-03 | 1 | -2/+3 |
| | |||||
* | Pica: Replace logic in shader.cpp with loop | Jannik Vogel | 2016-05-03 | 1 | -34/+4 |
| | |||||
* | Merge pull request #1741 from linkmauve/iwyu-video_core | bunnei | 2016-05-01 | 34 | -79/+212 |
|\ | | | | | Fix video_core includes (and dependencies) using include-what-you-use | ||||
| * | VideoCore: Run include-what-you-use and fix most includes. | Emmanuel Gil Peyrot | 2016-04-30 | 34 | -79/+212 |
| | | |||||
* | | OpenGL: Copy TevStageConfig using a loop. Fixes bug: const_color not copied | Jannik Vogel | 2016-05-01 | 1 | -30/+11 |
| | | |||||
* | | OpenGL: border_color was never set. Fixed. (#1740) | Jannik Vogel | 2016-04-30 | 1 | -0/+1 |
|/ | |||||
* | Remove TGA dumper | Jannik Vogel | 2016-04-30 | 3 | -62/+0 |
| | |||||
* | Merge pull request #1730 from hrydgard/vertex-loader | bunnei | 2016-04-29 | 6 | -121/+210 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove late accesses to attribute_config * Refactor: Extract VertexLoader from command_processor.cpp. Preparation for a similar concept to Dolphin or PPSSPP. These can be JIT-ed and cached. * Move "&" to their proper place, add missing includes and make some properly relative. * Don't keep base_address in the loader, it doesn't belong there (with it, the loader can't be cached). * Optimize the vertex loader, nearly doubling its speed. * Debugger fix * Move and rename the MemoryAccesses class to MemoryAccessTracker. | ||||
| * | Move and rename the MemoryAccesses class to MemoryAccessTracker. | Henrik Rydgard | 2016-04-29 | 4 | -32/+35 |
| | | |||||
| * | Debugger fix | Henrik Rydgard | 2016-04-28 | 1 | -2/+2 |
| | | |||||
| * | Optimize the vertex loader, nearly doubling its speed. | Henrik Rydgard | 2016-04-28 | 2 | -32/+54 |
| | | |||||
| * | Don't keep base_address in the loader, it doesn't belong there (with it, the loader can't be cached). | Henrik Rydgard | 2016-04-28 | 3 | -11/+10 |
| | | |||||
| * | Move "&" to their proper place, add missing includes and make some properly relative. | Henrik Rydgard | 2016-04-28 | 2 | -8/+11 |
| | | |||||
| * | Refactor: Extract VertexLoader from command_processor.cpp. | Henrik Rydgard | 2016-04-28 | 5 | -125/+185 |
| | | | | | | | | Preparation for a similar concept to Dolphin or PPSSPP. These can be JIT-ed and cached. | ||||
| * | Remove late accesses to attribute_config | Henrik Rydgard | 2016-04-28 | 1 | -5/+7 |
| | | |||||
* | | Common: Remove section measurement from profiler (#1731) | Yuri Kunde Schlesner | 2016-04-29 | 4 | -11/+0 |
| | | | | | | | | This has been entirely superseded by MicroProfile. The rest of the code can go when a simpler frametime/FPS meter is added to the GUI. | ||||
* | | Merge pull request #1710 from hrydgard/optimize-event-breakpoints | bunnei | 2016-04-26 | 2 | -7/+14 |
|\ \ | | | | | | | Replace std::map with std::array for graphics event breakpoints | ||||
| * | | Replace std::map with std::array for graphics event breakpoints, and allow the compiler to inline. Saves 1%+ in vertex heavy situations. | Henrik Rydgard | 2016-04-24 | 2 | -7/+14 |
| |/ | |||||
* | | shader: Shader size is long uint, not uint. | Sam Spilsbury | 2016-04-24 | 1 | -1/+1 |
| | | |||||
* | | shader: Handle non-CALL opcodes with a break | Sam Spilsbury | 2016-04-24 | 1 | -0/+2 |
| | | |||||
* | | shader: Format string must be provided inline and not as a variable | Sam Spilsbury | 2016-04-24 | 1 | -1/+1 |
|/ | |||||
* | pica: Handle default lighting case | Sam Spilsbury | 2016-04-23 | 1 | -1/+6 |
| | |||||
* | HWRasterizer: reorder declarations to match defs | tfarley | 2016-04-22 | 1 | -9/+9 |
| | |||||
* | HWRasterizer: sync specular uniform for new shaders | tfarley | 2016-04-22 | 1 | -0/+2 |
| | |||||
* | Merge pull request #1436 from tfarley/hw-tex-forwarding | bunnei | 2016-04-22 | 15 | -759/+1373 |
|\ | | | | | Hardware Renderer Texture Forwarding | ||||
| * | HWRasterizer: Texture forwarding | tfarley | 2016-04-21 | 13 | -759/+1371 |
| | | |||||
| * | Config: Add scaled resolution option | tfarley | 2016-04-21 | 2 | -0/+2 |
| | | |||||
* | | Merge pull request #1655 from JayFoxRox/hw-dot3 | bunnei | 2016-04-21 | 1 | -0/+3 |
|\ \ | |/ |/| | OpenGL: Implement color combiner Operation::Dot3_RGB | ||||
| * | OpenGL: Implement color combiner Operation::Dot3_RGB | Jannik Vogel | 2016-04-10 | 1 | -0/+3 |
| | | |||||
* | | Merge pull request #1625 from JayFoxRox/sw-blend-func | bunnei | 2016-04-18 | 1 | -57/+42 |
|\ \ | | | | | | | Rasterizer: Allow all blend factors for alpha blend-func | ||||
| * | | Rasterizer: Allow all blend factors for alpha blend-func | Jannik Vogel | 2016-04-17 | 1 | -57/+42 |
| | | | |||||
* | | | debug_utils: use std::make_unique for initializing PicaTrace | Lioncash | 2016-04-15 | 1 | -1/+1 |
| | | | |||||
* | | | Merge pull request #1665 from lioncash/file | bunnei | 2016-04-14 | 1 | -1/+16 |
|\ \ \ | | | | | | | | | IOFile: Minor API changes | ||||
| * | | | file_util: Don't expose IOFile internals through the API | Lioncash | 2016-04-14 | 1 | -1/+16 |
| |/ / | |||||
* | | | shader_jit_x64: Rename RuntimeAssert to Compile_Assert. | bunnei | 2016-04-14 | 2 | -5/+5 |
| | | | |||||
* | | | shader_jit_x64.cpp: Rename JitCompiler to JitShader. | bunnei | 2016-04-14 | 3 | -92/+92 |
| | | | |||||
* | | | shader_jit_x64: Free memory that's no longer needed after compilation. | bunnei | 2016-04-14 | 1 | -0/+6 |
| | | | |||||
* | | | shader_jit_x64: Use a sorted vector instead of a set for keeping track of return addresses. | bunnei | 2016-04-14 | 2 | -5/+8 |
| | | | |||||
* | | | shader_jit_x64: Use CALL/RET instead of JMP for subroutines. | bunnei | 2016-04-14 | 1 | -17/+7 |
| | | | |||||
* | | | shader_jit_x64: Separate initialization and code generation for readability. | bunnei | 2016-04-14 | 1 | -9/+8 |
| | | | |||||
* | | | shader_jit_x64: Get rid of unnecessary last_program_counter variable. | bunnei | 2016-04-14 | 2 | -6/+2 |
| | | | |||||
* | | | shader_jit_x64: Execute certain asserts at runtime. | bunnei | 2016-04-14 | 2 | -5/+19 |
| | | | | | | | | | | | | - This is because we compile the full shader code space, and therefore its common to compile malformed instructions. | ||||
* | | | shader: Remove unused 'state' argument from 'Setup' function. | bunnei | 2016-04-14 | 3 | -5/+4 |
| | | | |||||
* | | | shader_jit_x64: Specify shader main offset at runtime. | bunnei | 2016-04-14 | 3 | -10/+6 |
| | | | |||||
* | | | shader_jit_x64: Allocate each program independently and persist for emu session. | bunnei | 2016-04-14 | 3 | -38/+28 |
| | | | |||||
* | | | shader_jit_x64: Rewrite flow control to support arbitrary CALL and JMP instructions. | bunnei | 2016-04-14 | 2 | -35/+119 |
| | | | |||||
* | | | shader_jit_x64: Fix strict memory aliasing issues. | bunnei | 2016-04-14 | 1 | -1/+3 |
|/ / | |||||
* / | Pica: Remove geometry dumper (PICA_DUMP_GEOMETRY) | Jannik Vogel | 2016-04-10 | 4 | -71/+0 |
|/ | |||||
* | OpenGL: Respect buffer-write allow registers | Jannik Vogel | 2016-04-08 | 1 | -6/+28 |
| | |||||
* | OpenGL: Split buffer-write mask sync into seperate functions | Jannik Vogel | 2016-04-08 | 2 | -8/+39 |
| | |||||
* | Rasterizer: Respect buffer-write allow registers | Jannik Vogel | 2016-04-08 | 2 | -4/+16 |
| | |||||
* | OpenGL: Keep stencil-test and framebuffer.depth_format in sync | Jannik Vogel | 2016-04-08 | 1 | -0/+1 |
| | |||||
* | Merge pull request #1639 from linkmauve/fix-double-framebuffer-check | bunnei | 2016-04-08 | 1 | -4/+6 |
|\ | | | | | OpenGL: Fix a double framebuffer completeness checks. | ||||
| * | OpenGL: Fix a double framebuffer completeness checks. | Emmanuel Gil Peyrot | 2016-04-03 | 1 | -4/+6 |
| | | |||||
* | | Merge pull request #1643 from MerryMage/make_unique | Mathew Maidment | 2016-04-06 | 5 | -11/+7 |
|\ \ | |/ |/| | Common: Remove Common::make_unique, use std::make_unique | ||||
| * | Common: Remove Common::make_unique, use std::make_unique | MerryMage | 2016-04-05 | 5 | -11/+7 |
| | | |||||
* | | OpenGL: Check for framebuffer completeness | Jannik Vogel | 2016-04-03 | 1 | -0/+3 |
| | | |||||
* | | Avoid warnings by casting to size_t for ARRAY_SIZE() comparisons | Jannik Vogel | 2016-04-01 | 1 | -6/+6 |
| | | |||||
* | | Pica: Improve accuracy of immediate-mode support | Yuri Kunde Schlesner | 2016-03-24 | 5 | -29/+56 |
| | | | | | | | | This partially fixes Etrian Odyssey IV. | ||||
* | | OpenGL: Don't attempt to draw empty triangle batches | Yuri Kunde Schlesner | 2016-03-24 | 1 | -0/+3 |
| | | | | | | | | | | Our code did not handle this well, causing random crashes in some situations. | ||||
* | | Merge pull request #1508 from JayFoxRox/vs-output-map | bunnei | 2016-03-22 | 2 | -7/+19 |
|\ \ | |/ |/| | Respect vs output map | ||||
| * | Respect vs output map | Jannik Vogel | 2016-03-14 | 2 | -7/+19 |
| | | |||||
* | | Merge pull request #1538 from lioncash/dot | bunnei | 2016-03-20 | 1 | -5/+3 |
|\ \ | | | | | | | shader_interpreter: use std::inner_product for the dot product | ||||
| * | | shader_interpreter: use std::inner_product for the dot product | Lioncash | 2016-03-17 | 1 | -5/+3 |
| | | | | | | | | | | | | Same thing, less code. | ||||
* | | | Merge pull request #1535 from JayFoxRox/fix-align | bunnei | 2016-03-18 | 1 | -6/+6 |
|\ \ \ | | | | | | | | | PICA: Alignment happens locally in vertex | ||||
| * | | | PICA: Alignment happens locally in vertex | Jannik Vogel | 2016-03-17 | 1 | -6/+6 |
| | | | | |||||
* | | | | video_core: Don't cast away const | Lioncash | 2016-03-17 | 3 | -18/+19 |
| |/ / |/| | | |||||
* | | | core/video_core: Make NumIds functions constexpr | Lioncash | 2016-03-17 | 1 | -1/+1 |
| | | | |||||
* | | | core/video_core: Don't cast away const in subscript operators | Lioncash | 2016-03-17 | 1 | -3/+3 |
|/ / | | | | | | | Not to say these subscript operators aren't totally ugly as is. | ||||
* | | Merge pull request #1519 from JayFoxRox/vp-offset-fix | bunnei | 2016-03-16 | 1 | -2/+2 |
|\ \ | | | | | | | PICA: Fix viewport offset | ||||
| * | | PICA: Fix viewport offset | Jannik Vogel | 2016-03-14 | 1 | -2/+2 |
| |/ | |||||
* | | Merge pull request #1503 from bunnei/clear-jit-cache | bunnei | 2016-03-16 | 3 | -7/+27 |
|\ \ | | | | | | | Clear JIT cache | ||||
| * | | shader_jit_x64: Clear cache after code space fills up. | bunnei | 2016-03-12 | 3 | -2/+19 |
| | | | |||||
| * | | shader_jit_x64: Make assert outputs more useful & cleanup formatting. | bunnei | 2016-03-12 | 1 | -4/+7 |
| | | | |||||
| * | | shader: Update log message to use proper log class. | bunnei | 2016-03-12 | 1 | -1/+1 |
| | | | |||||
* | | | PICA: Fix MAD/MADI encoding | Jannik Vogel | 2016-03-15 | 2 | -29/+33 |
| |/ |/| | |||||
* | | PICA: Align vertex attributes | Jannik Vogel | 2016-03-13 | 1 | -1/+5 |
|/ | |||||
* | Merge pull request #1475 from lioncash/align | Yuri Kunde Schlesner | 2016-03-10 | 1 | -4/+4 |
|\ | | | | | Common: Get rid of alignment macros | ||||
| * | Common: Get rid of alignment macros | Lioncash | 2016-03-09 | 1 | -4/+4 |
| | | | | | | | | | | The gl rasterizer already uses alignas, so we may as well move everything over. | ||||
* | | Merge pull request #1474 from lioncash/renderer | bunnei | 2016-03-09 | 3 | -15/+15 |
|\ \ | | | | | | | renderer_base: Minor changes | ||||
| * | | renderer_base: In-class initialize variables | Lioncash | 2016-03-09 | 1 | -5/+2 |
| | | | |||||
| * | | render_base: Clarify/normalize getter functions | Lioncash | 2016-03-09 | 1 | -2/+2 |
| | | | |||||
| * | | renderer_base: Don't directly expose the rasterizer unique_ptr | Lioncash | 2016-03-09 | 3 | -8/+11 |
| |/ | | | | | | | | | There's no reason to allow direct access to the unique_ptr instance. Only its contained pointer. | ||||
* | | Merge pull request #1344 from LittleWhite-tb/error-output | bunnei | 2016-03-09 | 5 | -8/+18 |
|\ \ | |/ |/| | Output errors in GUI | ||||
| * | Improve error report from Init() functions | LittleWhite | 2016-03-08 | 5 | -8/+18 |
| | | | | | | | | Add error popup when citra initialization failed | ||||
* | | Pica: Write depth value even when depth test is disabled | Yuri Kunde Schlesner | 2016-03-06 | 2 | -10/+12 |
|/ | | | | This has been confirmed on hardware. Fixes Etrian Odyssey IV. | ||||
* | Add immediate mode vertex submission | Dwayne Slater | 2016-03-03 | 17 | -60/+172 |
| | |||||
* | Merge pull request #1424 from MerryMage/lut_init | bunnei | 2016-02-26 | 1 | -0/+4 |
|\ | | | | | renderer_opengl: Initalise fragment shader LUT textures | ||||
| * | renderer_opengl: Initalise fragment shader LUT textures | MerryMage | 2016-02-26 | 1 | -0/+4 |
| | | |||||
* | | Merge pull request #1395 from ds84182/padding-attributes | bunnei | 2016-02-25 | 1 | -7/+17 |
|\ \ | |/ |/| | Add support for padding vertex attributes | ||||
| * | Fix out of bounds array access when loading a component >= 12 | Dwayne Slater | 2016-02-21 | 1 | -1/+4 |
| | | |||||
| * | Add support for padding vertex attributes | Dwayne Slater | 2016-02-21 | 1 | -6/+13 |
| | | |||||
* | | BitField: Make trivially copyable and remove assignment operator | MerryMage | 2016-02-12 | 2 | -6/+6 |
| | | |||||
* | | pica: Cleanup lighting register definitions and documentation. | bunnei | 2016-02-05 | 2 | -48/+51 |
| | | |||||
* | | gl_rasterizer: Use alignas(16) instead of explicit padding. | bunnei | 2016-02-05 | 1 | -13/+6 |
| | | |||||
* | | renderer_opengl: Use GLvec3/GLvec4 aliases for commonly used types. | bunnei | 2016-02-05 | 4 | -14/+18 |
| | | |||||
* | | gl_rasterizer: Fix issue with interpolation of opposite quaternions. | bunnei | 2016-02-05 | 2 | -4/+32 |
| | | |||||
* | | pica_types: Fix typo in docstring. | bunnei | 2016-02-05 | 1 | -1/+1 |
| | | |||||
* | | pica_types: Replace float24/20/16 with a template class. | bunnei | 2016-02-05 | 5 | -116/+82 |
| | | |||||
* | | command_processor: Add an assertion to ensure LUTs are not written past their boundaries. | bunnei | 2016-02-05 | 1 | -0/+3 |
| | | |||||
* | | gl_rasterizer: Remove unnecessary casts. | bunnei | 2016-02-05 | 1 | -6/+6 |
| | | |||||
* | | gl_rasterizer: Fix PicaShaderConfig on GCC. | bunnei | 2016-02-05 | 1 | -29/+27 |
| | | |||||
* | | gl_rasterizer: Initial implementation of bump mapping. | bunnei | 2016-02-05 | 3 | -5/+42 |
| | | |||||
* | | gl_shader_gen: Fix bug in LUT range (should within range [0, 255] not [0, 256]). | bunnei | 2016-02-05 | 1 | -3/+3 |
| | | |||||
* | | gl_shader_gen: Implement lighting red, green, and blue reflection. | bunnei | 2016-02-05 | 3 | -21/+77 |
| | | |||||
* | | gl_shader_gen: View should be normalized. | bunnei | 2016-02-05 | 1 | -2/+2 |
| | | |||||
* | | gl_shader_gen: Implement fragment lighting fresnel effect. | bunnei | 2016-02-05 | 3 | -9/+38 |
| | | |||||
* | | gl_shader_gen: Implement fragment lighting specular 1 component. | bunnei | 2016-02-05 | 3 | -11/+41 |
| | | |||||
* | | gl_shader_gen: Add support for D0 LUT scaling. | bunnei | 2016-02-05 | 3 | -3/+71 |
| | | |||||
* | | gl_shader_gen: Refactor lighting config to match Pica register naming. | bunnei | 2016-02-05 | 3 | -42/+50 |
| | | | | | | | | - Also implement D0 LUT enable. | ||||
* | | pica: Cleanup and add some comments to lighting registers. | bunnei | 2016-02-05 | 2 | -19/+19 |
| | | |||||
* | | gl_rasterizer: Minor naming refactor on Pica register naming. | bunnei | 2016-02-05 | 2 | -20/+23 |
| | | |||||
* | | gl_shader_gen: Reorganize and cleanup lighting code. | bunnei | 2016-02-05 | 1 | -100/+107 |
| | | | | | | | | - No functional difference. | ||||
* | | gl_shader_gen: Fix directional lights. | bunnei | 2016-02-05 | 1 | -1/+1 |
| | | |||||
* | | gl_shader_gen: Fix bug with lighting where clamp highlights was only applied to last light. | bunnei | 2016-02-05 | 1 | -6/+6 |
| | | |||||
* | | gl_shader_gen: View vector needs to be normalized when computing half angle vector. | bunnei | 2016-02-05 | 1 | -3/+4 |
| | | |||||
* | | renderer_opengl: Use textures for fragment shader LUTs instead of UBOs. | bunnei | 2016-02-05 | 5 | -27/+64 |
| | | | | | | | | | | - Gets us LUT interpolation for free. - Some older Intel GPU drivers did not support the big UBOs needed to store the LUTs. | ||||
* | | renderer_opengl: Initial implementation of basic specular lighting. | bunnei | 2016-02-05 | 4 | -13/+165 |
| | | |||||
* | | renderer_opengl: Implement HW fragment lighting distance attenuation. | bunnei | 2016-02-05 | 2 | -17/+38 |
| | | |||||
* | | renderer_opengl: Implement HW fragment lighting LUTs within our default UBO. | bunnei | 2016-02-05 | 4 | -16/+67 |
| | | |||||
* | | renderer_opengl: Implement diffuse component of HW fragment lighting. | bunnei | 2016-02-05 | 6 | -15/+270 |
| | | |||||
* | | pica: Implement decoding of basic fragment lighting components. | bunnei | 2016-02-05 | 5 | -15/+120 |
| | | | | | | | | | | | | | | - Diffuse - Distance attenuation - float16/float20 types - Vertex Shader 'view' output | ||||
* | | pica: Implement fragment lighting LUTs. | bunnei | 2016-02-05 | 2 | -0/+34 |
| | | |||||
* | | pica: Add decodings for distance attenuation and LUT registers. | bunnei | 2016-02-05 | 1 | -1/+104 |
| | | |||||
* | | pica: Add pica_types module and move float24 definition. | bunnei | 2016-02-05 | 3 | -112/+127 |
|/ | |||||
* | hwrasterizer: Use proper cached fb addr/size | tfarley | 2016-02-03 | 2 | -42/+34 |
| | |||||
* | OpenGL: Downgrade GL_DEBUG_SEVERITY_NOTIFICATION to Debug logging level | Yuri Kunde Schlesner | 2016-02-03 | 1 | -2/+0 |
| | | | | | | The nVidia driver is *extremely* spammy on this category, sending a message on every buffer or texture upload, slowing down the emulator and making the log useless. | ||||
* | Merge pull request #1367 from yuriks/jit-jmp | bunnei | 2016-01-27 | 2 | -6/+6 |
|\ | | | | | Shader JIT: Fix off-by-one error when compiling JMPs | ||||
| * | Shader JIT: Fix off-by-one error when compiling JMPs | Yuri Kunde Schlesner | 2016-01-24 | 2 | -6/+6 |
| | | | | | | | | | | | | | | There was a mistake in the JMP code which meant that one instruction at the destination would be skipped when the jump was taken. This commit also changes the meaning of the culprit parameter to make it less confusing and avoid similar mistakes in the future. | ||||
* | | Merge pull request #1369 from yuriks/jmpu-inverted | bunnei | 2016-01-26 | 2 | -2/+5 |
|\ \ | | | | | | | Shader: Implement "invert condition" feature of IFU instruction | ||||
| * | | Shader: Implement "invert condition" feature of IFU instruction | Yuri Kunde Schlesner | 2016-01-25 | 2 | -2/+5 |
| |/ | | | | | | | | | | | If the bit 0 of the JMPU instruction is set, then the jump condition will be inverted. That is, a jump will happen when the boolean is false instead of when it is true. | ||||
* / | Debugger: Use 3dbrew names for GPU registers | Yuri Kunde Schlesner | 2016-01-25 | 1 | -57/+465 |
|/ | | | | | This list was imported from the 3dbrew wiki page and is pretty much complete. | ||||
* | Merge pull request #1334 from tfarley/hw-depth-modifiers | bunnei | 2016-01-21 | 3 | -2/+24 |
|\ | | | | | hwrasterizer: Use depth offset | ||||
| * | hwrasterizer: Use depth offset | tfarley | 2016-01-21 | 3 | -2/+24 |
| | | |||||
* | | command_processor: Get rid of variable shadowing | Lioncash | 2016-01-17 | 1 | -2/+1 |
|/ | |||||
* | Merge pull request #1196 from linkmauve/khr_debug | bunnei | 2016-01-13 | 1 | -0/+57 |
|\ | | | | | Add optional GL_KHR_debug support | ||||
| * | OpenGL: Log GL_KHR_debug messages we receive | Emmanuel Gil Peyrot | 2015-10-24 | 1 | -0/+57 |
| | | | | | | | | | | This allows the driver to communicate errors, warnings and improvement suggestions about our usage of the API. | ||||
* | | video_core: Make the renderer global a unique_ptr | Lioncash | 2015-12-30 | 2 | -6/+10 |
| | | |||||
* | | swrasterizer: Add missing override specifier | Lioncash | 2015-12-30 | 1 | -1/+1 |
| | | |||||
* | | VideoCore: Sync state after changing rasterizers | Yuri Kunde Schlesner | 2015-12-21 | 1 | -0/+1 |
| | | | | | | | | | | This fixes various bugs that appear in the HW rasterizer after switching between it and the SW one during emulation. | ||||
* | | Merge pull request #1267 from yuriks/flipped-framebuffer | Yuri Kunde Schlesner | 2015-12-10 | 4 | -12/+17 |
|\ \ | | | | | | | OpenGL: Flip framebuffers during transfer rather than when rendering | ||||
| * | | OpenGL: Flip framebuffers during transfer rather than when rendering | Yuri Kunde Schlesner | 2015-12-05 | 2 | -12/+11 |
| | | | |||||
| * | | OpenGL: Add support for glFrontFace in the state tracker | Yuri Kunde Schlesner | 2015-12-05 | 2 | -0/+6 |
| | | | |||||
* | | | Merge pull request #1269 from Subv/triangle_fan | bunnei | 2015-12-08 | 1 | -5/+4 |
|\ \ \ | | | | | | | | | GPU/PrimitiveAssembler: Fixed drawing triangle fans. | ||||
| * | | | GPU/PrimitiveAssembler: Fixed drawing triangle fans. | Subv | 2015-12-06 | 1 | -5/+4 |
| |/ / | | | | | | | | | | It was skipping the second vertex assignment and using uninitialized garbage when assembling the corresponding triangle. | ||||
* | | | VideoCore: Unify interface to OpenGL and SW rasterizers | Yuri Kunde Schlesner | 2015-12-08 | 13 | -67/+105 |
| | | | | | | | | | | | | | | | | | | This removes explicit checks sprinkled all over the codebase to instead just have the SW rasterizer expose an implementation with no-ops for most operations. | ||||
* | | | VideoCore: Rename HWRasterizer methods to be less confusing | Yuri Kunde Schlesner | 2015-12-07 | 4 | -12/+12 |
| | | | |||||
* | | | OpenGL: Rename cache functions to better match what they actually do | Yuri Kunde Schlesner | 2015-12-07 | 3 | -12/+11 |
|/ / | |||||
* | | PICA: Properly emulate 1-stage delay in the combiner buffer | Yuri Kunde Schlesner | 2015-12-01 | 2 | -12/+19 |
| | | | | | | | | | | | | | | | | | | This was discovered and verified by @fincs. The tev combiner buffer actually lags behind by one stage, meaning stage 1 reads the initial color, stage 2 reads stage 0's output, and so on. Fixes character portraits in Fire Emblem: Awakening and world textures in Zelda: ALBW. Closes #1140. | ||||
* | | renderer_opengl: Fix uniform issues introduced with kemenaran/avoid-explicit-uniform-location. | bunnei | 2015-11-26 | 2 | -6/+8 |
| | | |||||
* | | Use regular uniform location | Pierre de La Morinerie | 2015-11-25 | 3 | -15/+5 |
| | | | | | | | | | | | | The support for GL_ARB_explicit_uniform_location is not that good (53% according to http://feedback.wildfiregames.com/report/opengl/feature/GL_ARB_explicit_uniform_location). This fix the shader compilation on Intel HD 4000 (#1222). | ||||
* | | FragShader: Use an UBO instead of several individual uniforms | Subv | 2015-11-19 | 6 | -13/+67 |
| | | |||||
* | | GPU/Loaders: Log an error when a loader tries to load from a component beyond the available ones (12). | Subv | 2015-11-10 | 1 | -0/+2 |
| | | | | | | | | Related to #1170 | ||||
* | | gl_shader_gen: Use explicit locations for vertex shader attributes. | bunnei | 2015-10-22 | 2 | -15/+9 |
| | | |||||
* | | gl_shader_gen: Optimize code for AppendAlphaTestCondition. | bunnei | 2015-10-22 | 1 | -16/+11 |
| | | | | | | | | - Also add a comment to AppendColorCombiner. | ||||
* | | gl_rasterizer: Define enum types for each vertex texcoord attribute. | bunnei | 2015-10-22 | 3 | -12/+14 |
| | | |||||
* | | gl_shader_gen: Various cleanups to shader generation. | bunnei | 2015-10-22 | 3 | -48/+52 |
| | | |||||
* | | gl_rasterizer: Use MMH3 hash for shader cache hey. | bunnei | 2015-10-22 | 4 | -83/+63 |
| | | | | | | | | - Includes a check to confirm no hash collisions. | ||||
* | | gl_shader_gen: Require explicit uniform locations. | bunnei | 2015-10-22 | 3 | -56/+34 |
| | | | | | | | | - Fixes uniform issue on AMD. | ||||
* | | gl_shader_gen: Rename 'o' to 'attr' in vertex/fragment shaders. | bunnei | 2015-10-22 | 1 | -11/+11 |
| | | |||||
* | | gl_shader_gen: AppendAlphaModifier default should be 0.0, not vec4(0.0). | bunnei | 2015-10-22 | 1 | -1/+1 |
| | | |||||
* | | gl_shader_gen: Fix bug where TEV stage outputs should be clamped. | bunnei | 2015-10-22 | 1 | -3/+3 |
| | | |||||
* | | gl_rasterizer: Add documentation to ShaderCacheKey. | bunnei | 2015-10-22 | 1 | -0/+16 |
| | | |||||
* | | gl_shader_gen: Add additional function documentation. | bunnei | 2015-10-22 | 2 | -0/+18 |
| | | |||||
* | | gl_shader_util: Cleanup header file + add docstring. | bunnei | 2015-10-22 | 1 | -1/+7 |
| | | |||||
* | | gl_shader_gen: Various cleanups + moved TEV stage generation to its own function. | bunnei | 2015-10-22 | 1 | -161/+170 |
| | | |||||
* | | renderer_opengl: Refactor shader generation/caching to be more organized + various cleanups. | bunnei | 2015-10-22 | 10 | -788/+509 |
| | | |||||
* | | gl_rasterizer: Move logic for creating ShaderCacheKey to a static function. | bunnei | 2015-10-22 | 3 | -22/+50 |
| | | |||||
* | | gl_shader_util: Use vec3 constants for AppendColorCombiner. | bunnei | 2015-10-22 | 1 | -6/+6 |
| | | |||||
* | | gl_rasterizer: Fix typo in uploading TEV const color uniforms. | bunnei | 2015-10-22 | 1 | -5/+5 |
| | | |||||
* | | gl_shader_util: Fix precision bug with alpha testing. | bunnei | 2015-10-22 | 2 | -9/+9 |
| | | | | | | | | - Alpha testing is not done with float32 precision, this makes the HW renderer match the SW renderer. | ||||
* | | Initial implementation of fragment shader generation with caching. | Subv | 2015-10-22 | 7 | -261/+568 |
| | | |||||
* | | CitraQt, SkyEye, Loader, VideoCore: Remove newlines in LOG_* calls. | Emmanuel Gil Peyrot | 2015-10-09 | 2 | -7/+7 |
|/ | | | | The LOG_* function itself already appends one. | ||||
* | Silence -Wsign-compare warnings. | Rohit Nirmal | 2015-10-07 | 1 | -3/+3 |
| | |||||
* | fix some xcode 7.0 warnings | Martin Lindhe | 2015-09-29 | 3 | -2/+4 |
| | |||||
* | general: Silence some warnings when using clang | Lioncash | 2015-09-16 | 3 | -7/+7 |
| | |||||
* | video_core: Reorganize headers | Lioncash | 2015-09-11 | 19 | -62/+56 |
| | |||||
* | video_core: Remove unnecessary includes from headers | Lioncash | 2015-09-11 | 5 | -13/+3 |
| | |||||
* | Merge pull request #1133 from lioncash/emplace-back | bunnei | 2015-09-10 | 1 | -3/+3 |
|\ | | | | | gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle | ||||
| * | gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle | Lioncash | 2015-09-10 | 1 | -3/+3 |
| | | |||||
* | | Merge pull request #1136 from lioncash/proto | bunnei | 2015-09-10 | 1 | -3/+0 |
|\ \ | | | | | | | renderer_opengl: Remove unimplemented function declaration | ||||
| * | | renderer_opengl: Remove unimplemented function declaration | Lioncash | 2015-09-10 | 1 | -3/+0 |
| |/ | |||||
* / | video_core: Remove unused variables | Lioncash | 2015-09-10 | 3 | -4/+0 |
|/ | |||||
* | Shader JIT: Use SCALE constant from emitter | aroulin | 2015-09-07 | 1 | -4/+4 |
| | |||||
* | Shader: Fix size_t to int casts of register offsets | aroulin | 2015-09-07 | 2 | -15/+21 |
| | |||||
* | OpenGL: Use Sampler Objects to decouple sampler config from textures | Yuri Kunde Schlesner | 2015-09-03 | 4 | -21/+76 |
| | | | | Fixes #978 | ||||
* | OpenGL: Remove ugly and endian-unsafe color pointer casts | Yuri Kunde Schlesner | 2015-09-03 | 4 | -9/+13 |
| | |||||
* | OpenGL: Add support for Sampler Objects to state tracker | Yuri Kunde Schlesner | 2015-09-03 | 3 | -4/+42 |
| | |||||
* | Merge pull request #1087 from yuriks/opengl-glad | Yuri Kunde Schlesner | 2015-09-03 | 11 | -2812/+12 |
|\ | | | | | Replace the previous OpenGL loader with a glad-generated 3.3 one | ||||
| * | Replace the previous OpenGL loader with a glad-generated 3.3 one | Yuri Kunde Schlesner | 2015-08-30 | 11 | -2812/+12 |
| | | | | | | | | | | | | 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. | ||||
* | | Merge pull request #1088 from aroulin/x64-emitter-abi-call | bunnei | 2015-09-02 | 2 | -28/+18 |
|\ \ | | | | | | | x64: Proper stack alignment in shader JIT function calls | ||||
| * | | x64: Proper stack alignment in shader JIT function calls | aroulin | 2015-09-01 | 2 | -28/+18 |
| | | | | | | | | | | | | | | | Import Dolphin stack handling and register saving routines Also removes the x86 parts from abi files | ||||
* | | | video_core: Fix format specifiers warnings | aroulin | 2015-09-02 | 2 | -2/+3 |
|/ / | |||||
* | | Merge pull request #1092 from Subv/vertex_offset | Tony Wasserka | 2015-08-31 | 2 | -1/+7 |
|\ \ | | | | | | | Pica: Add the vertex_offset register to the Pica registers map. | ||||
| * | | Pica: Added the primitive_restart register (0x25f) to the registers map. | Subv | 2015-08-31 | 2 | -1/+5 |
| | | | |||||
| * | | Pica: Add the vertex_offset register to the Pica registers map. | Subv | 2015-08-31 | 2 | -0/+2 |
| | | | |||||
* | | | Shader JIT: Fix SGE/SGEI NaN behavior | aroulin | 2015-08-31 | 1 | -3/+3 |
|/ / | | | | | | | | | SGE was incorrectly emulated w.r.t. NaN behavior as the CMPSS SSE instruction was used with NLT | ||||
* | | Merge pull request #1059 from Subv/vertex_offset | bunnei | 2015-08-30 | 2 | -2/+8 |
|\ \ | |/ |/| | GPU: Implemented register 0x22A PICA_REG_DRAW_VERTEX_OFFSET | ||||
| * | GPU: Implemented register 0x22A. | Subv | 2015-08-30 | 2 | -2/+8 |
| | | | | | | | | | | | | 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. | ||||
* | | Merge pull request #1049 from Subv/stencil | bunnei | 2015-08-30 | 6 | -28/+111 |
|\ \ | | | | | | | Rasterizer: Corrected the stencil implementation. | ||||
| * | | HWRenderer: Added a workaround for the Intel Windows driver bug that causes glTexSubImage2D to not change the stencil buffer. | Subv | 2015-08-24 | 1 | -2/+9 |
| | | | | | | | | | | | | Reported here https://communities.intel.com/message/324464 | ||||
| * | | HWRasterizer: Implemented stencil ops 6 and 7. | Subv | 2015-08-21 | 1 | -1/+3 |
| | | | |||||
| * | | SWRasterizer: Implemented stencil ops 6 and 7. | Subv | 2015-08-21 | 2 | -6/+14 |
| | | | | | | | | | | | | IncrementWrap and DecrementWrap, verified with hwtests. | ||||
| * | | HWRasterizer: Implemented stencil op 1 (GL_ZERO) | Subv | 2015-08-21 | 1 | -1/+1 |
| | | | |||||
| * | | SWRasterizer: Implemented stencil action 1 (GL_ZERO). | Subv | 2015-08-21 | 2 | -1/+4 |
| | | | | | | | | | | | | Verified with hwtests. | ||||
| * | | SWRasterizer: Removed a todo. Verified with hwtests. | Subv | 2015-08-21 | 1 | -1/+0 |
| | | | |||||
| * | | SWRenderer: The stencil depth_pass action is executed even if depth testing is disabled. | Subv | 2015-08-21 | 1 | -7/+5 |
| | | | | | | | | | | | | The HW renderer already did this. | ||||
| * | | Rasterizer: Abstract duplicated stencil code into a lambda. | Subv | 2015-08-21 | 1 | -6/+9 |
| | | | |||||
| * | | GLRasterizer: Implemented stencil testing in the hw renderer. | Subv | 2015-08-20 | 4 | -2/+44 |
| | | | |||||
| * | | GPU/Rasterizer: Corrected the stencil implementation. | Subv | 2015-08-20 | 2 | -18/+39 |
| |/ | | | | | | | Verified the behavior with hardware tests. | ||||
* | | Merge pull request #1065 from yuriks/shader-fp | Yuri Kunde Schlesner | 2015-08-28 | 4 | -57/+100 |
|\ \ | | | | | | | Shader FP compliance fixes | ||||
| * | | fixup! Shaders: Fix multiplications between 0.0 and inf | Yuri Kunde Schlesner | 2015-08-24 | 1 | -4/+4 |
| | | | |||||
| * | | Shader JIT: Tiny micro-optimization in DPH | Yuri Kunde Schlesner | 2015-08-24 | 1 | -4/+4 |
| | | | |||||
| * | | Shaders: Fix multiplications between 0.0 and inf | Yuri Kunde Schlesner | 2015-08-24 | 3 | -40/+58 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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) | ||||
| * | | Shaders: Explicitly conform to PICA semantics in MAX/MIN | Yuri Kunde Schlesner | 2015-08-24 | 2 | -2/+10 |
| | | | |||||
| * | | Shader JIT: Add name to second scratch register (XMM4) | Yuri Kunde Schlesner | 2015-08-24 | 1 | -3/+5 |
| | | | |||||
| * | | Shader JIT: Fix CMP NaN behavior to match hardware | Yuri Kunde Schlesner | 2015-08-24 | 1 | -8/+23 |
| | | | |||||
* | | | gl_rasterizer_cache: Detect and ignore unnecessary texture flushes. | bunnei | 2015-08-28 | 3 | -8/+18 |
| | | | |||||
* | | | Shader JIT: Fix float to integer rounding in MOVA | aroulin | 2015-08-27 | 1 | -2/+2 |
| | | | | | | | | | | | | MOVA converts new address register values from floats to integers using truncation | ||||
* | | | Shader JIT: ifdef out reference to ifdef'd out shader_map | archshift | 2015-08-27 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | 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. | ||||
* | | | Integrate the MicroProfile profiling library | Yuri Kunde Schlesner | 2015-08-25 | 5 | -0/+25 |
| | | | | | | | | | | | | | | | This brings goodies such as a configurable user interface and multi-threaded timeline view. | ||||
* | | | Merge pull request #1063 from Subv/hw_renderer_debug_fb | bunnei | 2015-08-24 | 1 | -2/+6 |
|\ \ \ | | | | | | | | | HWRenderer: Only reload the framebuffer from gpu memory if the hw renderer is in use during a breakpoint | ||||
| * | | | HWRenderer: Only reload the framebuffer from gpu memory if the hw renderer is in use during a breakpoint. | Subv | 2015-08-23 | 1 | -2/+6 |
| | |/ | |/| | |||||
* | | | shader_jit: Replace two MDisp usages with MatR | Lioncash | 2015-08-24 | 1 | -2/+2 |
| |/ |/| | |||||
* | | Merge pull request #1062 from aroulin/shader-rcp-rsq | bunnei | 2015-08-23 | 2 | -10/+10 |
|\ \ | | | | | | | Shader: RCP and RSQ computes only the 1st component | ||||
| * | | Shader: Use std::sqrt for float instead of sqrt | aroulin | 2015-08-23 | 1 | -1/+1 |
| | | | |||||
| * | | Shader: RCP and RSQ computes only the 1st component | aroulin | 2015-08-23 | 2 | -10/+10 |
| | | | |||||
* | | | Shader: implement DPH/DPHI in JIT | aroulin | 2015-08-22 | 2 | -2/+36 |
| | | | |||||
* | | | Shader: implement DPH/DPHI in interpreter | aroulin | 2015-08-22 | 1 | -1/+8 |
|/ / | | | | | | | | | Tests revealed that the component with w=1 is SRC1 and not SRC2, it is now fixed on 3dbrew. | ||||
* | | Shader: implement SGE, SGEI and SLT in JIT | aroulin | 2015-08-19 | 2 | -15/+36 |
| | | |||||
* | | Shader: implement SGE, SGEI in interpreter | aroulin | 2015-08-19 | 1 | -0/+14 |
| | | |||||
* | | Merge pull request #1047 from aroulin/shader-ex2-lg2 | bunnei | 2015-08-19 | 2 | -0/+33 |
|\ \ | | | | | | | Shader: Save caller-saved registers in JIT before a CALL | ||||
| * | | Shader: Save caller-saved registers in JIT before a CALL | aroulin | 2015-08-19 | 2 | -0/+33 |
| | | | |||||
* | | | Merge pull request #1037 from aroulin/shader-ex2-lg2 | bunnei | 2015-08-19 | 3 | -2/+58 |
|\| | | |/ |/| | Shader: Implement EX2 and LG2 in interpreter/JIT | ||||
| * | Shader: implement EX2 and LG2 in JIT | aroulin | 2015-08-17 | 2 | -2/+22 |
| | | |||||
| * | Shader: implement EX2 and LG2 in interpreter | aroulin | 2015-08-16 | 1 | -0/+36 |
| | | |||||
* | | Merge pull request #1034 from yuriks/rg8-textures | bunnei | 2015-08-17 | 2 | -1/+8 |
|\ \ | | | | | | | videocore: Added RG8 texture support | ||||
| * | | videocore: Added RG8 texture support | Patrick Martin | 2015-08-16 | 2 | -1/+8 |
| | | | |||||
* | | | Fix Linux GCC 4.9 build (complaining about undeclared memset) | LittleWhite | 2015-08-16 | 1 | -1/+2 |
| |/ |/| | |||||
* | | Build fix for Debug configurations. | Tony Wasserka | 2015-08-16 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #997 from Lectem/cmdlist_full_debug | Tony Wasserka | 2015-08-16 | 3 | -31/+29 |
|\ \ | | | | | | | citra-qt: Improve pica command list widget (add mask, fix some issues) | ||||
| * | | citra-qt/debug_utils: Use lock_guard everywhere | Lectem | 2015-07-26 | 1 | -6/+5 |
| | | | | | | | | | | | | | | | unique_lock were being used as lock_guards. Also replaced manual lock/unlock by lock_guard for harmonization. | ||||
| * | | citra-qt/command list: Add mask column | Lectem | 2015-07-26 | 3 | -25/+24 |
| | | | |||||
* | | | Introduce a shader tracer to allow inspection of input/output values for each processed instruction. | Tony Wasserka | 2015-08-16 | 8 | -41/+326 |
| | | | |||||
* | | | Pica/DebugUtils: Include uniform information into shader dumps. | Tony Wasserka | 2015-08-16 | 2 | -11/+51 |
| | | | |||||
* | | | citra-qt: Improve shader debugger. | Tony Wasserka | 2015-08-16 | 4 | -13/+28 |
| |/ |/| | | | | | Now supports dumping the current shader and recognizes a larger number of output semantics. | ||||
* | | Shader: Use a POD struct for registers. | bunnei | 2015-08-16 | 5 | -40/+43 |
| | | |||||
* | | Rename ARCHITECTURE_X64 definition to ARCHITECTURE_x86_64. | bunnei | 2015-08-16 | 2 | -7/+6 |
| | | |||||
* | | Common: Cleanup CPU capability detection code. | bunnei | 2015-08-16 | 1 | -5/+5 |
| | | |||||
* | | Common: Move cpu_detect to x64 directory. | bunnei | 2015-08-16 | 1 | -2/+1 |
| | | |||||
* | | x64: Refactor to remove fake interfaces and general cleanups. | bunnei | 2015-08-16 | 6 | -150/+26 |
| | | |||||
* | | JIT: Support negative address offsets. | bunnei | 2015-08-16 | 1 | -26/+25 |
| | | |||||
* | | Shader: Initial implementation of x86_x64 JIT compiler for Pica vertex shaders. | bunnei | 2015-08-16 | 10 | -3/+940 |
| | | | | | | | | | | - Config: Add an option for selecting to use shader JIT or interpreter. - Qt: Add a menu option for enabling/disabling the shader JIT. | ||||
* | | Common: Added MurmurHash3 hash function for general-purpose use. | bunnei | 2015-08-15 | 1 | -1/+1 |
| | | |||||
* | | Shader: Define a common interface for running vertex shader programs. | bunnei | 2015-08-15 | 7 | -186/+289 |
| | | |||||
* | | Shader: Move shader code to its own subdirectory, "shader". | bunnei | 2015-08-15 | 9 | -12/+12 |
| | | |||||
* | | GPU: Refactor "VertexShader" namespace to "Shader". | bunnei | 2015-08-15 | 13 | -50/+48 |
| | | | | | | | | - Also renames "vertex_shader.*" to "shader_interpreter.*" | ||||
* | | Merge pull request #893 from linkmauve/remove-uint._t-int._t | bunnei | 2015-08-11 | 1 | -1/+2 |
|\ \ | | | | | | | Replace standard uint*_t and int*_t with CommonTypes’ u* and s* types | ||||
| * | | ARM Core, Video Core, CitraQt, Citrace: Use CommonTypes types instead of the standard u?int*_t types. | Emmanuel Gil Peyrot | 2015-08-11 | 1 | -1/+2 |
| | | | |||||
* | | | OpenGL: Fix state tracking in situations with reused object handles | Yuri Kunde Schlesner | 2015-08-06 | 4 | -0/+45 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an OpenGL object is created, bound to a binding using the state tracker, and then destroyed, a newly created object can be assigned the same numeric handle by OpenGL. However, even though it is a new object, and thus needs to be bound to the binding again, the state tracker compared the current and previous handles and concluded that no change needed to be made, leading to failure to bind objects in certain cases. This manifested as broken text in VVVVVV, which this commit fixes along with similar texturing problems in other games. | ||||
* | | | OpenGL: Remove redundant texture.enable_2d field from OpenGLState | Yuri Kunde Schlesner | 2015-08-06 | 4 | -26/+3 |
|/ / | | | | | | | | | All uses of this field where it's false can just set the texture id to 0 instead. | ||||
* | | Videocore: Implement simple vertex caching | Yuri Kunde Schlesner | 2015-08-05 | 1 | -62/+89 |
| | | | | | | | | | | | | This gives a ~2/3 reduction in the amount of vertices that need to be processed through the vertex loaders and the vertex shader, yielding a good speedup. | ||||
* | | Merge pull request #1006 from yuriks/fb-commit-profile | bunnei | 2015-07-30 | 1 | -0/+7 |
|\ \ | | | | | | | OpenGL: Add a profiler category measuring framebuffer readback | ||||
| * | | OpenGL: Add a profiler category measuring framebuffer readback | Yuri Kunde Schlesner | 2015-07-28 | 1 | -0/+7 |
| | | | |||||
* | | | Merge pull request #963 from yuriks/gpu-fixes | bunnei | 2015-07-29 | 2 | -42/+44 |
|\ \ \ | |/ / |/| | | Misc. GPU vertex loading fixes | ||||
| * | | VideoCore: Fix values of unset components in input attribute arrays | Yuri Kunde Schlesner | 2015-07-23 | 1 | -42/+38 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an input attribute array had a field with less than 4 components, the remaining components were left unset if not specified by a default vertex attribute. If neither mechanism would set a component, it would assume a garbage value. It has been verified that the hardware behavior is to instead to set the missing components from the fixed default of (0 0 0 1). The default vertex attribute values aren't used at all if a vertex array is specified for that attribute. Fixes UI graphics on Fire Emblem: Awakening, a small texturing glitch when selecting a character in Cubic Ninja, as well as eliminating the unset-W hack which was required for Ocarina of Time to not have garbled triangles. This change has been tested against hardware. | ||||
| * | | VideoCore: Saturate vertex colors before interpolating | Yuri Kunde Schlesner | 2015-07-23 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During testing, it was discovered that hardware does not interpolate colors output by the vertex shader as-is. Rather, it drops the sign and saturates the value to 1.0. This is done before interpolation, such that (e.g.) interpolating outputs 1.5 and -0.5 is equivalent to as if the shader had output the values 1.0 and 0.5 instead, with the interpolated value never crossing 0.0. This change has been tested against hardware. | ||||
* | | | Merge pull request #991 from yuriks/globjects | bunnei | 2015-07-26 | 3 | -143/+79 |
|\ \ \ | | | | | | | | | OpenGL: Make OpenGL object resource wrappers fully inline | ||||
| * | | | OpenGL: Make OpenGL object resource wrappers fully inline | Yuri Kunde Schlesner | 2015-07-26 | 3 | -143/+79 |
| | | | | | | | | | | | | | | | | | | | | The functions are so simple that having them separate only bloats the code and hinders optimization. | ||||
* | | | | Merge pull request #992 from yuriks/hot-path-debug | bunnei | 2015-07-26 | 5 | -13/+18 |
|\ \ \ \ | | | | | | | | | | | VideoCore: #ifdef out some debugging routines | ||||
| * | | | | VideoCore: #ifdef out some debugging routines | Yuri Kunde Schlesner | 2015-07-26 | 5 | -13/+18 |
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Some disabled debugging functionality was being called from rendering routines in VideoCore. Although disabled, many of them still allocated memory or did some extra work that was enough to show up in a profiler. Gives a slight (~2ms) speedup. | ||||
* | | | | Merge pull request #987 from yuriks/regnames | Tony Wasserka | 2015-07-26 | 2 | -65/+72 |
|\ \ \ \ | |_|_|/ |/| | | | Videocore: Don't reinitialize register name map on every query. | ||||
| * | | | Videocore: Don't reinitialize register name map on every query | Yuri Kunde Schlesner | 2015-07-26 | 2 | -65/+72 |
| |/ / | | | | | | | | | | This greatly speeds up the command list debug widget. | ||||
* | | | Videocore: Simplify variables in vertex shader interpreter | Yuri Kunde Schlesner | 2015-07-26 | 1 | -24/+21 |
| | | | | | | | | | | | | Simplifies the code and gives a tiny speed-up. | ||||
* | | | Videocore: Replace std::stack in shader interpreter with static_vector | Yuri Kunde Schlesner | 2015-07-26 | 1 | -6/+6 |
|/ / | | | | | | | Shaves off 1/3rd of the vertex shader time in Fire Emblem | ||||
* | | Address error that remained in last merge | Yuri Kunde Schlesner | 2015-07-25 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #892 from zawata/another-warning-fixes | Yuri Kunde Schlesner | 2015-07-25 | 3 | -18/+18 |
|\ \ | | | | | | | Yet More Warning Fixes | ||||
| * | | Vertex Shader : Undo casting | zawata | 2015-07-19 | 1 | -1/+1 |
| | | | |||||
| * | | Video_Core : Type fixes | zawata | 2015-07-19 | 2 | -2/+2 |
| | | | |||||
| * | | Video_Core: Finally fix pesky warning | zawata | 2015-07-19 | 1 | -1/+1 |
| | | | |||||
| * | | Video_Core : Change Tabs to Spaces | zawata | 2015-07-19 | 1 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | | This really should be universalized, I keep getting errors creating commits because lines I've edited use tabs instead of spaces(and yes I did read the contributing guide and i know they are supposed to be spaces) | ||||
| * | | Video_Core : Fix Conversion Warnings | zawata | 2015-07-19 | 3 | -18/+3 |
| | | | |||||
* | | | Merge pull request #980 from Subv/more_breakpoints | Tony Wasserka | 2015-07-24 | 2 | -4/+7 |
|\ \ \ | |_|/ |/| | | Qt/GPU Breakpoints: Added three more breakpoint types. | ||||
| * | | Qt/GPU Breakpoints: Added three more breakpoint types: | Subv | 2015-07-23 | 2 | -4/+7 |
| | | | | | | | | | | | | | | | | | | * IncomingDisplayTransfer: Triggered just before a display transfer is performed. * GSPCommandProcessed: Triggered right after a GSP command is processed. * BufferSwapped: Triggered when the frames flip | ||||
* | | | Merge pull request #977 from yuriks/glenable-tex2d | bunnei | 2015-07-23 | 1 | -8/+5 |
|\ \ \ | | | | | | | | | GL Renderer: Remove erroneous glEnable(GL_TEXTURE_2D) calls | ||||
| * | | | GL Renderer: Remove erroneous glEnable(GL_TEXTURE_2D) calls | Yuri Kunde Schlesner | 2015-07-22 | 1 | -8/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In OpenGL 3, texturing is always enabled, and this call is invalid. While it produced no effect in the rest of the execution, it wouldn't have the intended effect of disabling texturing for that unit. Instead bind a null texture to the unit. | ||||
* | | | | Rasterizer/GL: Set the border color when binding a texture. | Subv | 2015-07-23 | 1 | -2/+9 |
| |/ / |/| | | |||||
* | | | Merge pull request #968 from Subv/texture_filtering | bunnei | 2015-07-22 | 4 | -3/+37 |
|\ \ \ | |/ / |/| | | GPU: Added registers for min and mag texture filters | ||||
| * | | GPU: Added registers for min and mag texture filters and implemented them in the hw renderer. | Subv | 2015-07-21 | 4 | -3/+37 |
| | | | |||||
* | | | Merge pull request #929 from neobrain/geoshader_definitions | Tony Wasserka | 2015-07-21 | 5 | -149/+162 |
|\ \ \ | |/ / |/| | | Pica/Shader: Add geometry shader definitions. | ||||
| * | | Pica/Shader: Add geometry shader definitions. | Tony Wasserka | 2015-07-15 | 5 | -149/+162 |
| | | | |||||
* | | | Merge pull request #944 from Subv/spam | bunnei | 2015-07-20 | 1 | -3/+7 |
|\ \ \ | | | | | | | | | GLRasterizer: Don't try to get a pointer to the depth buffer if it doesn't exist. | ||||
| * | | | GLRasterizer: Don't try to get a pointer to the depth buffer if it doesn't exist. | Subv | 2015-07-19 | 1 | -3/+7 |
| | | | | |||||
* | | | | Pica: Correct switched S/T texture wrapping registers | Yuri Kunde Schlesner | 2015-07-20 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | This was found and hwtested by Lectem | ||||
* | | | | Pica: Fix DP3 instruction, which wasn't assigning to the w component | Yuri Kunde Schlesner | 2015-07-20 | 1 | -1/+1 |
|/ / / | |||||
* | / | Rasterizer/Textures: Fixed a bug where the I4 format would get twice the real stride. | Subv | 2015-07-19 | 1 | -0/+1 |
| |/ |/| | | | | | Also added its name to the texture viewer widget | ||||
* | | Merge pull request #931 from neobrain/move_default_attr_handler | Tony Wasserka | 2015-07-15 | 1 | -40/+40 |
|\ \ | | | | | | | Pica/CommandProcessor: Move default attribute setup to the proper position. | ||||
| * | | Pica/CommandProcessor: Move default attribute setup to the proper position. | Tony Wasserka | 2015-07-15 | 1 | -40/+40 |
| |/ | |||||
* / | Pica/Clipper: Output proper number of triangles in debugging logs. | Tony Wasserka | 2015-07-15 | 1 | -1/+1 |
|/ | |||||
* | VideoCore: Implement the DOT3_RGB combiner | Lectem | 2015-07-14 | 2 | -1/+13 |
| | |||||
* | Pica: Implement stencil testing. | Tony Wasserka | 2015-07-13 | 2 | -12/+173 |
| | |||||
* | Clean up command_processor.cpp. | Tony Wasserka | 2015-07-13 | 1 | -22/+27 |
| | |||||
* | Add CiTrace recording support. | Tony Wasserka | 2015-07-13 | 3 | -2/+63 |
| | | | | | | This is exposed in the GUI as a new "CiTrace Recording" widget. Playback is implemented by a standalone 3DS homebrew application (which only runs reliably within Citra currently; on an actual 3DS it will often crash still). | ||||
* | Merge pull request #907 from Lectem/clamp_to_border | Tony Wasserka | 2015-07-12 | 3 | -13/+28 |
|\ | | | | | Add GL_CLAMP_TO_BORDER support. | ||||
| * | Added GL_CLAMP_TO_BORDER support | Lectem | 2015-07-09 | 3 | -13/+28 |
| | | |||||
* | | Core: Cleanup hw includes. | Emmanuel Gil Peyrot | 2015-06-28 | 5 | -4/+13 |
| | | |||||
* | | Core, VideoCore: Replace or fix exit() calls. | Emmanuel Gil Peyrot | 2015-06-28 | 1 | -6/+9 |
| | | |||||
* | | CitraQt: Cleanup includes. | Emmanuel Gil Peyrot | 2015-06-28 | 3 | -5/+10 |
| | | |||||
* | | Common: Cleanup emu_window includes. | Emmanuel Gil Peyrot | 2015-06-28 | 3 | -10/+8 |
| | | |||||
* | | Common: Cleanup key_map includes. | Emmanuel Gil Peyrot | 2015-06-28 | 2 | -3/+9 |
|/ | |||||
* | VideoCore: Fix floating point warning | zawata | 2015-06-27 | 1 | -1/+1 |
| | |||||
* | VideoCore: Log the GL driver’s vendor and renderer. | Emmanuel Gil Peyrot | 2015-06-16 | 1 | -0/+2 |
| | |||||
* | video_core: add extra braces around initializer | Yuri Kunde Schlesner | 2015-06-14 | 1 | -3/+3 |
| | | | | Trivial change and fixes several warnings in the clang build. | ||||
* | Renderer formatting edits | tfarley | 2015-06-09 | 2 | -26/+29 |
| | |||||
* | Render-to-texture flush, interval math fix | tfarley | 2015-06-09 | 1 | -1/+13 |
| | |||||
* | Liberal texture unbind (clout menu) | tfarley | 2015-06-09 | 2 | -4/+40 |
| | |||||
* | Depth format fix (crush3d intro/black screens) | tfarley | 2015-06-09 | 1 | -46/+46 |
| | |||||
* | Implemented glColorMask | tfarley | 2015-06-09 | 3 | -0/+24 |
| | |||||
* | Merge pull request #811 from archshift/commonify | archshift | 2015-05-31 | 9 | -865/+9 |
|\ | | | | | Commonify video_core utility headers | ||||
| * | Move video_core/color.h to common/color.h | archshift | 2015-05-30 | 5 | -218/+4 |
| | | |||||
| * | Move video_core/math.h to common/vector_math.h | archshift | 2015-05-30 | 7 | -648/+6 |
| | | | | | | | | The file only contained vector manipulation code, and such widely-useable code doesn't belong in video_core. | ||||
* | | Pica: Use zero for the SecondaryFragmentColor source. | bunnei | 2015-05-31 | 3 | -11/+21 |
| | | | | | | | | - This is a workaround until we support fragment lighting. | ||||
* | | rasterizer: Remove unnecessary 'using' for BlendEquation. | bunnei | 2015-05-31 | 1 | -2/+1 |
| | | |||||
* | | Pica: Implement LogicOp function. | bunnei | 2015-05-31 | 7 | -8/+135 |
| | | |||||
* | | rasterizer: Implement AddSigned combiner function for alpha channel. | bunnei | 2015-05-31 | 1 | -0/+7 |
| | | |||||
* | | vertex_shader: Use address offset on src2 in inverted mode. | bunnei | 2015-05-31 | 1 | -3/+3 |
| | | |||||
* | | Pica: Implement command buffer execution registers. | bunnei | 2015-05-31 | 2 | -44/+76 |
| | | |||||
* | | vertex_shader: Implement SLT/SLTI instructions. | bunnei | 2015-05-31 | 1 | -4/+10 |
| | | |||||
* | | vertex_shader: Implement MIN instruction. | bunnei | 2015-05-31 | 1 | -0/+9 |
|/ | |||||
* | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 2015-05-29 | 11 | -25/+25 |
| | |||||
* | gl_state: Remove unnecessary const specifier on Apply | Lioncash | 2015-05-23 | 2 | -2/+2 |
| | |||||
* | video_core/utils: Remove unused variables in GetMortonOffset | Lioncash | 2015-05-23 | 1 | -3/+0 |
| | |||||
* | Pica: Create 'State' structure and move state memory there. | bunnei | 2015-05-23 | 12 | -428/+451 |
| | |||||
* | gl_state: Fix a condition typo in Apply | Lioncash | 2015-05-23 | 1 | -1/+1 |
| | |||||
* | OpenGL renderer | tfarley | 2015-05-23 | 21 | -44/+2196 |
| | |||||
* | Merge pull request #772 from lioncash/warn | bunnei | 2015-05-18 | 1 | -1/+1 |
|\ | | | | | core/video_core: Fix a few warnings when compiling on MSVC. | ||||
| * | pica: Add the ULL specifier in IsDefaultAttribute | Lioncash | 2015-05-14 | 1 | -1/+1 |
| | | | | | | | | This is necessary otherwise there are warnings about a 32-bit result being casted to a 64-bit value. | ||||
* | | GPU/DefaultAttributes: Clear up a comment in command_processor | Subv | 2015-05-17 | 1 | -2/+2 |
| | | |||||
* | | GPU/DefaultAttributes: Let the attribute data from the loaders overwrite the default attributes, if set. | Subv | 2015-05-17 | 1 | -21/+23 |
| | | | | | | | | closes #735 | ||||
* | | Memmap: Re-organize memory function in two files | Yuri Kunde Schlesner | 2015-05-15 | 4 | -5/+3 |
|/ | | | | | | | memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory. | ||||
* | GPU: Add more fine grained profiling for vertex shader and rasterization | Yuri Kunde Schlesner | 2015-05-12 | 2 | -0/+10 |
| | |||||
* | Implement I4 texture format | archshift | 2015-05-11 | 2 | -1/+12 |
| | | | | | | @neobrain, could you confirm that this is correct? It's been tested with various different games and fixes different textures, including in Animal Crossing, Kirby Triple Deluxe, and SMB3D. | ||||
* | rasterizer: Implemented combiner output scaling. | bunnei | 2015-05-10 | 2 | -2/+16 |
| | |||||
* | rasterizer: Implemented AddSigned combiner op. | bunnei | 2015-05-10 | 1 | -0/+10 |
| | |||||
* | rasterizer: Fixed a depth testing bug. | bunnei | 2015-05-10 | 2 | -6/+19 |
| | |||||
* | rasterizer: Implement combiner buffer input. | bunnei | 2015-05-10 | 2 | -4/+53 |
| | |||||
* | rasterizer: Return zero'd vectors on error conditions. | bunnei | 2015-05-10 | 1 | -3/+3 |
| | |||||
* | vertex_shader: Implement FLR instruction. | bunnei | 2015-05-10 | 1 | -0/+9 |
| | |||||
* | vertex_shader: Implement MADI instruction. | bunnei | 2015-05-10 | 1 | -4/+7 |
| | | | | nihstro: Update submodule to latest upstream/master to support MADI instruction decoding. | ||||
* | Memory: Add GetPhysicalPointer helper function | Yuri Kunde Schlesner | 2015-05-09 | 3 | -11/+11 |
| | |||||
* | Memory: Support more regions in the VAddr-PAddr translation functions | Yuri Kunde Schlesner | 2015-05-09 | 3 | -18/+7 |
| | | | | | Also adds better documentation and removes the one-off reimplementation of the function in pica.h. | ||||
* | Memory: Re-organize and rename memory area address constants | Yuri Kunde Schlesner | 2015-05-09 | 1 | -1/+1 |
| | |||||
* | Merge pull request #721 from yuriks/more-cleanups | Yuri Kunde Schlesner | 2015-05-07 | 6 | -3/+8 |
|\ | | | | | More cleanups | ||||
| * | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 6 | -3/+8 |
| | | |||||
* | | Merge pull request #695 from Subv/crash_f | bunnei | 2015-05-07 | 4 | -68/+137 |
|\ \ | |/ |/| | GPU: Implemented default vertex shader attributes. | ||||
| * | GPU: Implemented default vertex shader attributes. | Subv | 2015-05-07 | 4 | -68/+137 |
| | | | | | | | | Fixes some games crashing. | ||||
* | | VideoCore: Remove a superfluous auto variable declaration in debug_utils. | Emmanuel Gil Peyrot | 2015-04-29 | 1 | -1/+1 |
| | | |||||
* | | Silence some -Wsign-compare warnings. | Rohit Nirmal | 2015-04-10 | 1 | -2/+2 |
|/ | |||||
* | Changed occurences of colour to color for consistency | Gareth Higgins | 2015-04-05 | 2 | -4/+4 |
| | |||||
* | Allow the user to set the background clear color during emulation | archshift | 2015-04-04 | 1 | -1/+2 |
| | | | | The background color can be seen at the sides of the bottom screen or when the window is wider than normal. | ||||
* | Merge pull request #652 from neobrain/shader_output_fix | bunnei | 2015-03-16 | 1 | -20/+24 |
|\ | | | | | Pica/VertexShader: Fix a bug caused due to incorrect assumptions of consecutive output register tables. | ||||
| * | Pica/VertexShader: Fix a bug caused due to incorrect assumptions of consecutive output register tables. | Tony Wasserka | 2015-03-12 | 1 | -20/+24 |
| | | | | | | | | We now write create a temporary buffer for output registers and copy all of them to the actual output vertex structure after the shader has run. This is technically not necessary, but it's easier to vectorize in the future. | ||||
* | | VideoCore: Add static_cast around expressions where the compiler doesn’t deduce the right type. | Emmanuel Gil Peyrot | 2015-03-16 | 2 | -4/+4 |
|/ | |||||
* | Merge pull request #629 from archshift/lcdfb | bunnei | 2015-03-10 | 2 | -11/+48 |
|\ | | | | | Implement SetLcdForceBlack and add implementation for color filling in the GPU code | ||||
| * | Added LCD registers, and implementation for color filling in OGL code. | archshift | 2015-03-09 | 2 | -11/+48 |
| | | |||||
* | | Merge pull request #643 from Subv/dem_feels | bunnei | 2015-03-10 | 3 | -13/+134 |
|\ \ | | | | | | | GPU: Implemented more depth buffer formats. | ||||
| * | | GPU: Added the stencil test structure to the Pica Regs struct. | Subv | 2015-03-10 | 3 | -50/+65 |
| | | | |||||
| * | | GPU: Implemented more depth buffer formats. | Subv | 2015-03-10 | 3 | -9/+115 |
| | | | | | | | | | | | | This fixes the horizontal lines in Picross E, Cubic Ninja, Cave Story 3D and possibly others | ||||
* | | | Pica/PrimitiveAssembly: Fix triangle strips and fans being generated with incorrect winding order. | Tony Wasserka | 2015-03-09 | 1 | -6/+3 |
| | | | |||||
* | | | Update nihstro submodule to the initial release version. | archshift | 2015-03-08 | 1 | -37/+38 |
| | | | | | | | | | | | | Includes more opcodes to implement in the future. | ||||
* | | | Merge pull request #636 from bunnei/refactor-screen-win | bunnei | 2015-03-08 | 3 | -43/+9 |
|\ \ \ | |/ / |/| | | Set framebuffer layout from EmuWindow. | ||||
| * | | Set framebuffer layout from EmuWindow. | bunnei | 2015-03-07 | 3 | -43/+9 |
| |/ | |||||
* | | GPU/Textures: Fixed ETC texture decoding. | Subv | 2015-03-07 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #538 from yuriks/perf-stat | Tony Wasserka | 2015-03-07 | 2 | -0/+18 |
|\ \ | |/ |/| | Add profiling infrastructure and widget | ||||
| * | Add profiling infrastructure and widget | Yuri Kunde Schlesner | 2015-03-02 | 2 | -0/+18 |
| | | |||||
* | | GPU: Added RGB565/RGB8 framebuffer support and various cleanups. | bunnei | 2015-03-04 | 5 | -85/+155 |
|/ | | | | | | - Centralizes color format encode/decode functions. - Fixes endianness issues. - Implements remaining framebuffer formats in the debugger. | ||||
* | Added RGBA5551 compatibility in the rasterizer | archshift | 2015-02-28 | 3 | -2/+41 |
| | | | | This allows Virtual Console games to display properly. | ||||
* | GPU: Implemented bits 3 and 1 from the display transfer flags. | Subv | 2015-02-27 | 3 | -54/+91 |
| | | | | | Bit 3 is used to specify a raw copy, where no processing is done to the data, seems to behave exactly as a DMA. Bit 1 is used to specify whether to convert from a tiled format to a linear format or viceversa. | ||||
* | Video core: Fix A4 texture decoding | Yuri Kunde Schlesner | 2015-02-26 | 1 | -2/+2 |
| | | | | | | | | | It was trying to take the LSB from `coarse_x`, which would always be 0 and thus would always return the same texel from each byte. To add insult to the injury, the conditional was actually the wrong way around too. Fixes blocky text in OoT. | ||||
* | Video core: Fix pixelation/blockiness in textures. | Yuri Kunde Schlesner | 2015-02-26 | 1 | -3/+3 |
| | | | | | | This was caused during morton decoding by me not masking the bits of each coordinate before merging them, so the bits from x could set bits in y if it was >255. | ||||
* | Rasterizer: Add support for RGBA4 framebuffer format. | bunnei | 2015-02-25 | 1 | -0/+21 |
| | |||||
* | Rasterize with the correct color component order. | bunnei | 2015-02-22 | 1 | -11/+24 |
| | | | | - Fixes a regression with #594. | ||||
* | Merge pull request #593 from Subv/search_problem | Tony Wasserka | 2015-02-22 | 1 | -1/+4 |
|\ | | | | | Pica/VertexShader: Fixed LOOP with more than one iteration. | ||||
| * | Pica/VertexShader: Fixed LOOP with more than one iteration. | Subv | 2015-02-21 | 1 | -1/+4 |
| | | | | | | | | | | Previously it wouldn't jump back to the start of the loop code once it reached the end of the block. Fixes the texture problems in a lot of games. | ||||
* | | Merge pull request #588 from archshift/somebranch | bunnei | 2015-02-20 | 1 | -11/+0 |
|\ \ | |/ |/| | Sweeping cleanup of Common | ||||
| * | Remove duplication of INSERT_PADDING_WORDS between pica.h and gpu.h | archshift | 2015-02-20 | 1 | -11/+0 |
| | | |||||
* | | Rasterizer: Fixed a warning in GetWrappedTexCoord. | Subv | 2015-02-19 | 1 | -4/+4 |
|/ | | | | Redeclaring the variable inside the switch was causing weird behavior. | ||||
* | Merge pull request #580 from lioncash/emplace | bunnei | 2015-02-18 | 2 | -4/+4 |
|\ | | | | | core/video_core: Use in-place construction where possible | ||||
| * | core/video_core: Use in-place construction where possible | Lioncash | 2015-02-17 | 2 | -4/+4 |
| | | |||||
* | | Pica/Rasterizer: Replace exit() calls with UNIMPLEMENTED(). | Tony Wasserka | 2015-02-18 | 1 | -5/+5 |
| | | |||||
* | | Pica/Rasterizer: Make some local lambdas static. | Tony Wasserka | 2015-02-18 | 1 | -8/+8 |
| | | |||||
* | | Pica/BlendUnit: Implement separate color/alpha blend equations. | Tony Wasserka | 2015-02-18 | 2 | -65/+59 |
| | | |||||
* | | Pica/TextureEnvironment: Add a note. | Tony Wasserka | 2015-02-18 | 1 | -0/+4 |
| | | |||||
* | | Pica/TextureEnvironment: Treat texture combiner source 1 as the PrimaryColor. | Tony Wasserka | 2015-02-18 | 2 | -0/+4 |
| | | | | | | | | Not really sure where the difference is, but some applications seem to use this 1:1 the same way... | ||||
* | | Pica/TextureEnvironment: Add support for the MAD-like texture combiners and clean up texture environment logic. | Tony Wasserka | 2015-02-18 | 2 | -0/+28 |
| | | |||||
* | | Pica/OutputMerger: Fix flipped framebuffers. | Tony Wasserka | 2015-02-18 | 1 | -0/+10 |
| | | |||||
* | | Pica/TextureUnit: Implement mirrored repeating texture wrapping. | Tony Wasserka | 2015-02-18 | 2 | -3/+12 |
| | | |||||
* | | Pica: Fix a bug in the register definitions, relating to texture wrapping. | Tony Wasserka | 2015-02-18 | 2 | -2/+2 |
| | | |||||
* | | Pica/OutputMerger: Implement color format checking. | Tony Wasserka | 2015-02-18 | 2 | -4/+13 |
| | | |||||
* | | Pica/Rasterizer: Rasterize actual pixel centers instead of pixel corners. | Tony Wasserka | 2015-02-18 | 1 | -2/+3 |
| | | |||||
* | | Pica/Rasterizer: Fix garbage pixels at triangle borders. | Tony Wasserka | 2015-02-18 | 1 | -1/+3 |
| | | |||||
* | | Pica/Rasterizer: Clean up and fix backface culling. | Tony Wasserka | 2015-02-18 | 1 | -11/+27 |
| | | |||||
* | | Pica: Cleanup clipping code and change screenspace z to range from -1..0. | Tony Wasserka | 2015-02-18 | 2 | -53/+42 |
| | | | | | | | | The change in depth range seems to reflect better to what applications are expecting, and makes for cleaner code overall (hence is more likely to reflect hardware behavior). | ||||
* | | Pica/VertexShader: Implement the LOOP instruction. | Tony Wasserka | 2015-02-18 | 1 | -14/+36 |
| | | |||||
* | | Pica/CommandProcessor: Properly implement shader load destination offset registers. | Tony Wasserka | 2015-02-18 | 2 | -20/+10 |
| | | |||||
* | | Pica/CommandProcessor: Work around initialized vertex attributes some more. | Tony Wasserka | 2015-02-18 | 1 | -2/+8 |
| | | |||||
* | | VideoCore: Fix a typo in Vec4 MakeVec(T, Vec3<T>), where the second argument was Vec2<T> instead. | Emmanuel Gil Peyrot | 2015-02-16 | 1 | -1/+1 |
| | | |||||
* | | video_core: Implement the remaining framebuffer formats in the OpenGL renderer. | Emmanuel Gil Peyrot | 2015-02-15 | 2 | -12/+67 |
|/ | |||||
* | Merge pull request #529 from Subv/master | bunnei | 2015-02-14 | 2 | -3/+3 |
|\ | | | | | Build: Fixed some warnings | ||||
| * | Build: Fixed some warnings | Subv | 2015-02-12 | 2 | -3/+3 |
| | | |||||
* | | Fix Min and Max blend equations | Darius Goad | 2015-02-11 | 1 | -6/+8 |
|/ | |||||
* | Asserts: break/crash program, fit to style guide; log.h->assert.h | archshift | 2015-02-11 | 8 | -23/+18 |
| | | | | | | | Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft. | ||||
* | Add more blend equations from 3dbrew | Darius Goad | 2015-02-10 | 2 | -2/+49 |
| | |||||
* | Rasterizer: Implement the other color and alpha modifiers. | bunnei | 2015-02-05 | 2 | -58/+69 |
| | |||||
* | VideoCore: Added same-component swizzlers to math utility functions. | bunnei | 2015-02-05 | 1 | -16/+35 |
| | |||||
* | Pica: Implement blend factors. | bunnei | 2015-01-31 | 2 | -10/+67 |
| | |||||
* | Pica: Implement color/alpha channel enable. | bunnei | 2015-01-28 | 2 | -1/+12 |
| | |||||
* | Rasterizer: Implemented alpha testing. | bunnei | 2015-01-27 | 2 | -7/+52 |
| | |||||
* | GPU: Implement the remaining depth testing functions. | bunnei | 2015-01-26 | 2 | -3/+28 |
| | |||||
* | GSP: Update framebuffer info on all interrupts | Yuri Kunde Schlesner | 2015-01-14 | 1 | -3/+1 |
| | | | | | | | | | | Hardware testing determined that the GSP processes shared memory framebuffer update info even when no memory transfer or filling GX commands are used. They are now updated on every interrupt, which isn't confirmed correct but matches hardware behaviour more closely. This also reverts the hack introduced in #404. It made a few games behave better, but I believe it's incorrect and also breaks other games. | ||||
* | Merge pull request #473 from archshift/pp3ports | bunnei | 2015-01-14 | 2 | -14/+142 |
|\ | | | | | Pica/Rasterizer: Add ETC1 texture decompression support. | ||||
| * | Pica/Rasterizer: Add ETC1 texture decompression support. | Tony Wasserka | 2015-01-13 | 2 | -14/+142 |
| | | |||||
* | | Merge pull request #478 from archshift/pp3ports4 | bunnei | 2015-01-13 | 1 | -0/+69 |
|\ \ | | | | | | | Pica/VertexShader: Implement the MAD instruction. | ||||
| * | | Pica/VertexShader: Implement the MAD instruction. | Tony Wasserka | 2015-01-13 | 1 | -0/+69 |
| |/ | |||||
* / | Pica/VertexShader: Implement JMPC/JMPU/CALLC/CALLU. | Tony Wasserka | 2015-01-13 | 1 | -23/+52 |
|/ | |||||
* | GSP: Toggle active framebuffer each frame | bunnei | 2015-01-08 | 1 | -1/+4 |
| | |||||
* | Pica/Rasterizer: Remove some redundant casts. | Tony Wasserka | 2014-12-31 | 1 | -3/+3 |
| | |||||
* | Pica/Rasterizer: Make orient2d a free function and rename it to SignedArea. | Tony Wasserka | 2014-12-31 | 1 | -31/+38 |
| | |||||
* | Pica: Cleanup color conversion. | Tony Wasserka | 2014-12-31 | 2 | -18/+46 |
| | |||||
* | VideoCore: Remove some unused functions. | Tony Wasserka | 2014-12-31 | 1 | -26/+0 |
| | |||||
* | Pica/Rasterizer: Fix a bug related to multitexturing and texture wrapping. | Tony Wasserka | 2014-12-31 | 1 | -2/+2 |
| | |||||
* | Pica/Rasterizer: Clean up long code lines. | Tony Wasserka | 2014-12-31 | 1 | -4/+8 |
| | |||||
* | Pica/VertexShader: Coding style fixes. | Tony Wasserka | 2014-12-31 | 1 | -16/+8 |
| | |||||
* | Pica/CommandProcessor: Cleanups. | Tony Wasserka | 2014-12-31 | 1 | -3/+4 |
| | |||||
* | Pica/CommandProcessor: Workaround games not setting the input position's w component. | Tony Wasserka | 2014-12-31 | 1 | -0/+14 |
| | |||||
* | Pica/Rasterizer: Implement backface culling. | Tony Wasserka | 2014-12-31 | 2 | -10/+36 |
| | |||||
* | Pica/Rasterizer: Textures seem to be laid out flipped vertically. | Tony Wasserka | 2014-12-31 | 1 | -1/+1 |
| | | | | Not sure if this is a correct fix. Probably should instead change the decoding logic itself. | ||||
* | Pica/DebugUtils: Fix a bug in RGBA4 texture decoding. | Tony Wasserka | 2014-12-31 | 1 | -2/+2 |
| | |||||
* | Pica/Rasterizer: Implement alpha blending. | Tony Wasserka | 2014-12-31 | 1 | -0/+84 |
| | |||||
* | Pica/Rasterizer: Implement depth testing. | Tony Wasserka | 2014-12-31 | 2 | -6/+34 |
| | |||||
* | Pica/Rasterizer: Further enhance Tev support. | Tony Wasserka | 2014-12-31 | 1 | -4/+19 |
| | |||||
* | Pica: Add output merger definitions. | Tony Wasserka | 2014-12-31 | 1 | -1/+56 |
| | |||||
* | Pica: Fix A4, IA4 and IA8 texture formats. | Tony Wasserka | 2014-12-31 | 1 | -13/+7 |
| | | | | Both IA4 and IA8 had their component order mixed up. Additionally, IA4 used the wrong number of nibbles per texel. A4 skipped every second texel. | ||||
* | Pica/CommandProcessor: Add support for integer uniforms. | Tony Wasserka | 2014-12-31 | 4 | -1/+30 |
| | |||||
* | Rasterizer: Pre-divide vertex attributes by W | Yuri Kunde Schlesner | 2014-12-29 | 3 | -8/+32 |
| | | | | | Execute the division-by-W for perspective-correct interpolation of values in the clipper, moving them out of the rasterization inner loop. | ||||
* | GPU: Bitwise texture swizzling | Yuri Kunde Schlesner | 2014-12-29 | 1 | -27/+24 |
| | | | | | | Replace the loop-based texture address swizzling code by a bit-twiddling implementation, providing a very small speed up. Also simplify addressing code. | ||||
* | Rasterizer: Common sub-expression elimination | Yuri Kunde Schlesner | 2014-12-29 | 1 | -14/+17 |
| | | | | | Move the computation of some values out of loops so that they're not constantly recalculated even when they don't change. | ||||
* | Clipper: Compact buffers on each clipping pass | Yuri Kunde Schlesner | 2014-12-29 | 1 | -28/+27 |
| | | | | | | Use a new buffer management scheme in the clipper that allows using a bounded minimal amount of buffer space. Even though it copies more data it is still slightly faster likely due to using less cache. | ||||
* | Clipper: Avoid dynamic allocations | Yuri Kunde Schlesner | 2014-12-29 | 1 | -10/+7 |
| | | | | | | The triangle clipper was allocating its temporary input, output and work buffers using a std::vector. Since this is a hot path, it's desirable to use stack allocation instead. | ||||
* | Vertex Shader: Zero OutputVertex to avoid denormals | Yuri Kunde Schlesner | 2014-12-29 | 1 | -0/+4 |
| | | | | | | | | | Unused OutputVertex attributes were being left un-initialized. The leftover garbage sometimes decoded as floating-point denormalized values, causing fallbacks to microcode and massive slowdowns in the rest of the rasterization pipeline even though the results were unused. By zeroing the structure we ensure these attributes only contain harmless zeros. | ||||
* | GPU: Implement frameskip and remove forced framebuffer swap hack. | bunnei | 2014-12-29 | 1 | -0/+5 |
| | |||||
* | Merge pull request #327 from Apology11/master | bunnei | 2014-12-27 | 1 | -4/+4 |
|\ | | | | | Fix visual studio ambiguous symbol error | ||||
| * | Fix visual studio ambiguous symbol error | Apology11 | 2014-12-21 | 1 | -4/+4 |
| | | |||||
* | | Merge pull request #322 from chinhodado/master | bunnei | 2014-12-22 | 2 | -7/+7 |
|\ \ | | | | | | | More warning cleanups | ||||
| * | | More warning cleanups | Chin | 2014-12-21 | 2 | -7/+7 |
| |/ | |||||
* | | Merge pull request #291 from purpasmart96/license | bunnei | 2014-12-21 | 23 | -23/+23 |
|\ \ | |/ |/| | License change | ||||
| * | License change | purpasmart96 | 2014-12-21 | 23 | -23/+23 |
| | | |||||
* | | Pica/VertexShader: Promote a log message to critical status. | Tony Wasserka | 2014-12-20 | 1 | -1/+1 |
| | | |||||
* | | Pica/VertexShader: Small optimization. | Tony Wasserka | 2014-12-20 | 1 | -7/+7 |
| | | |||||
* | | Pica/VertexShader: Be robust against invalid inputs. | Tony Wasserka | 2014-12-20 | 1 | -2/+9 |
| | | | | | | | | More specifically, this also fixes crashes by Citra trying to load a src2 register even if the current instruction does not use that. | ||||
* | | Pica/VertexShader: Clarify a comment. | Tony Wasserka | 2014-12-20 | 1 | -1/+3 |
| | | |||||
* | | Pica/DebugUtils: Further cleanups to LookupTexture. | Tony Wasserka | 2014-12-20 | 1 | -7/+7 |
| | | |||||
* | | Pica/DebugUtils: Fix two warnings. | Tony Wasserka | 2014-12-20 | 1 | -2/+2 |
| | | |||||
* | | Pica/DebugUtils: Better document LookupTexture. | Tony Wasserka | 2014-12-20 | 2 | -7/+16 |
| | | |||||
* | | Pica/Rasterizer: Get rid of C-style casts. | Tony Wasserka | 2014-12-20 | 1 | -4/+4 |
| | | |||||
* | | Pica/DebugUtils: Make a number of variables static. | Tony Wasserka | 2014-12-20 | 1 | -13/+13 |
| | | | | | | | | Makes for cleaner and faster code. | ||||
* | | Pica/VertexShader: Cleanup flow control logic and implement CMP/IFU instructions. | Tony Wasserka | 2014-12-20 | 1 | -50/+56 |
| | | |||||
* | | Pica/VertexShader: Run instruction handlers according to the effective opcode. | Tony Wasserka | 2014-12-20 | 1 | -1/+1 |
| | | | | | | | | This allows for proper emulation of the different CMP/LRP/MAD instructions. | ||||
* | | Pica/VertexShader: Implement MAX instructions. | Tony Wasserka | 2014-12-20 | 1 | -0/+9 |
| | | |||||
* | | Pica: Add support for boolean uniforms. | Tony Wasserka | 2014-12-20 | 4 | -2/+21 |
| | | |||||
* | | Pica/VertexShader: Add support for MOVA, CMP and IFC. | Tony Wasserka | 2014-12-20 | 2 | -7/+138 |
| | | |||||
* | | Pica/VertexShader: Move code around a bit. | Tony Wasserka | 2014-12-20 | 1 | -42/+58 |
| | | |||||
* | | Pica/VertexShader: Some cleanups using std::array. | Tony Wasserka | 2014-12-20 | 2 | -5/+19 |
| | | |||||
* | | Pica/VertexShader: Support negating src2. | Tony Wasserka | 2014-12-20 | 2 | -3/+9 |
| | | |||||
* | | Pica/DebugUtils: Replace duplicated SHBIN structures in favor of nihstro's ones. | Tony Wasserka | 2014-12-20 | 1 | -61/+8 |
| | | |||||
* | | Pica/VertexShader: Remove (now) duplicated shader bytecode definitions in favor of nihstro's ones. | Tony Wasserka | 2014-12-20 | 2 | -222/+30 |
| | | |||||
* | | Pica/DebugUtils: Add an event triggered after loading a vertex. | Tony Wasserka | 2014-12-20 | 2 | -0/+4 |
| | | |||||
* | | Pica/PrimitiveAssembly: Implement triangle strips. | Tony Wasserka | 2014-12-20 | 2 | -8/+16 |
| | | |||||
* | | Pica/CommandProcessor: Add a safety check for invalid (?) GPU configurations. | Tony Wasserka | 2014-12-20 | 1 | -0/+7 |
| | | |||||
* | | Pica/CommandProcessor: Fix vertex decoding if multiple memory areas are accessed for different attributes. | Tony Wasserka | 2014-12-20 | 1 | -7/+8 |
| | | |||||
* | | Add support for a ridiculous number of texture formats. | Tony Wasserka | 2014-12-20 | 2 | -7/+80 |
| | | |||||
* | | Pica: Unify ugly address translation hacks. | Tony Wasserka | 2014-12-20 | 5 | -16/+25 |
| | | |||||
* | | Pica: Further improve Tev emulation. | Tony Wasserka | 2014-12-20 | 3 | -12/+51 |
| | | |||||
* | | Pica: Merge texture lookup logic for DebugUtils and Rasterizer. | Tony Wasserka | 2014-12-20 | 3 | -55/+41 |
| | | | | | | | | This effectively adds support for a lot texture formats in the rasterizer. | ||||
* | | Pica: Implement texture wrapping. | Tony Wasserka | 2014-12-20 | 2 | -2/+31 |
| | | |||||
* | | Pica/DebugUtils: Add support for RGBA8, RGBA5551, RGBA4 and A8 texture formats. | Tony Wasserka | 2014-12-20 | 2 | -3/+48 |
| | | |||||
* | | Pica: Initial support for multitexturing. | Tony Wasserka | 2014-12-20 | 3 | -24/+83 |
| | | |||||
* | | Clean up some warnings | Chin | 2014-12-20 | 1 | -2/+2 |
| | | |||||
* | | Properly erase/remove an observer | chinhodado | 2014-12-19 | 1 | -1/+1 |
|/ | |||||
* | Convert old logging calls to new logging macros | Yuri Kunde Schlesner | 2014-12-13 | 10 | -38/+50 |
| | |||||
* | Merge pull request #267 from bunnei/apt-shared-font | bunnei | 2014-12-13 | 1 | -2/+2 |
|\ | | | | | APT shared font loading | ||||
| * | MemMap: Renamed "GSP" heap to "linear", as this is not specific to GSP. | bunnei | 2014-12-12 | 1 | -2/+2 |
| | | | | | | | | - Linear simply indicates that the mapped physical address is always MappedVAddr+0x0C000000, thus this memory can be used for hardware devices' DMA (such as the GPU). | ||||
* | | Merge pull request #261 from neobrain/boost | Tony Wasserka | 2014-12-12 | 1 | -6/+10 |
|\ \ | |/ |/| | Add Boost as a submodule and add some minor cleanups using Boost.Range | ||||
| * | Integrate Boost into build system and perform a trivial cleanup in vertex_shader.cpp. | Tony Wasserka | 2014-12-07 | 1 | -6/+10 |
| | | |||||
* | | GSP: Trigger GPU interrupts at more accurate locations. | bunnei | 2014-12-10 | 2 | -1/+15 |
| | | |||||
* | | GPU: Fixed bug in command list size decoding. | bunnei | 2014-12-10 | 1 | -1/+2 |
| | | |||||
* | | Pica: Re-enable command names on MSVC. | Tony Wasserka | 2014-12-09 | 1 | -5/+0 |
| | | | | | | | | The affected code is no longer limited by compiler support on that platform. | ||||
* | | More coding style fixes. | Tony Wasserka | 2014-12-09 | 1 | -6/+12 |
| | | |||||
* | | Some code cleanup. | Tony Wasserka | 2014-12-09 | 1 | -3/+1 |
| | | |||||
* | | citra_qt: Add enhanced texture debugging widgets. | Tony Wasserka | 2014-12-09 | 3 | -1/+30 |
| | | | | | | | | Double-clicking a texture parameter command in the pica command lists will spawn these as a new tab in the pica command list dock area. | ||||
* | | citra-qt: Add texture viewer to Pica command list. | Tony Wasserka | 2014-12-09 | 2 | -21/+45 |
| | | | | | | | | The texture viewer is enabled when selecting a write command to one of the texture config registers. | ||||
* | | Pica/DebugUtils: Add breakpoint functionality. | Tony Wasserka | 2014-12-09 | 3 | -0/+189 |
| | | |||||
* | | Build fix for something which shouldn't have compiled successfully to begin with. | Tony Wasserka | 2014-12-09 | 1 | -1/+1 |
|/ | |||||
* | Change NULLs to nullptrs. | Rohit Nirmal | 2014-12-03 | 2 | -7/+7 |
| | |||||
* | Merge pull request #236 from rohit-n/sign-compare | bunnei | 2014-12-03 | 3 | -6/+6 |
|\ | | | | | Silence a few -Wsign-compare warnings. | ||||
| * | Silence a few -Wsign-compare warnings. | Rohit Nirmal | 2014-12-01 | 3 | -6/+6 |
| | | |||||
* | | Fixed viewport error caused by rounding | vaguilar | 2014-11-30 | 1 | -2/+2 |
|/ | |||||
* | Remove tabs in all files except in skyeye imports and in generated GL code | Emmanuel Gil Peyrot | 2014-11-19 | 4 | -14/+14 |
| | |||||
* | Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated | Emmanuel Gil Peyrot | 2014-11-19 | 2 | -3/+3 |
| | |||||
* | OpenGL Renderer: Cleanup viewport extent calculation. | Tony Wasserka | 2014-11-18 | 2 | -44/+29 |
| | |||||
* | Fixup EmuWindow interface and implementations thereof. | Tony Wasserka | 2014-11-18 | 1 | -3/+3 |
| | |||||
* | Viewport scaling and display density independence | Kevin Hartman | 2014-11-18 | 2 | -1/+50 |
| | | | | | The view is scaled to be as large as possible, without changing the aspect, within the bounds of the window. On "retina" displays, or other displays where window units != pixels, the view should no longer draw incorrectly. | ||||
* | Merge pull request #195 from lioncash/control | Tony Wasserka | 2014-11-16 | 1 | -1/+1 |
|\ | | | | | vertex_shader: Fix control reaches end of function warning | ||||
| * | vertex_shader: Fix control reaches end of function warning | Lioncash | 2014-11-16 | 1 | -1/+1 |
| | | |||||
* | | Fix two format strings. | Lioncash | 2014-11-14 | 1 | -2/+2 |
|/ | |||||
* | Merge pull request #162 from SeannyM/warning-fixes | bunnei | 2014-10-30 | 2 | -3/+3 |
|\ | | | | | Fix some warnings | ||||
| * | Fix some warnings | Sean | 2014-10-30 | 2 | -3/+3 |
| | | |||||
* | | Renamed souce files of services to match port names | Gareth Poole | 2014-10-29 | 1 | -1/+1 |
|/ | |||||
* | Add `override` keyword through the code. | Yuri Kunde Schlesner | 2014-10-26 | 1 | -4/+4 |
| | | | | This was automated using `clang-modernize`. | ||||
* | Only check OpenGL shader log if size is >1. | Yuri Kunde Schlesner | 2014-10-21 | 1 | -9/+6 |
| | | | | | | | | This prevents a crash when the buffer size returned by the driver is 0, in which case no space is allocated to store even the NULL byte and glGetShaderInfoLog errors out. Thanks to @Relys for the bug report. | ||||
* | Rework OpenGL renderer. | Yuri Kunde Schlesner | 2014-10-12 | 4 | -233/+193 |
| | | | | | | | | | The OpenGL renderer has been revised, with the following changes: - Initialization and rendering have been refactored to reduce the number of redundant objects used. - Framebuffer rotation is now done directly, using texture mapping. - Vertex coordinates are now given in pixels, and the projection matrix isn't hardcoded anymore. | ||||
* | OpenGL renderer: Shuffle initialization code around and rename functions. | Yuri Kunde Schlesner | 2014-10-12 | 2 | -25/+18 |
| | |||||
* | Remove virtual inheritance from RendererOpenGL | Yuri Kunde Schlesner | 2014-10-12 | 2 | -3/+3 |
| | | | | Also make destructor virtual so that instances are properly destructed. | ||||
* | Fix warnings in video_core | Lioncash | 2014-10-08 | 7 | -23/+23 |
| | |||||
* | Common: Rename the File namespace to FileUtil, to match the filename and prevent collisions. | Emmanuel Gil Peyrot | 2014-09-17 | 1 | -1/+1 |
| | |||||
* | Merge pull request #110 from lioncash/warnings | bunnei | 2014-09-15 | 1 | -1/+1 |
|\ | | | | | Core: Fix warnings in gpu.cpp | ||||
| * | Core: Fix warnings in gpu.cpp | Lioncash | 2014-09-14 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #97 from archshift/cleanup | bunnei | 2014-09-14 | 4 | -44/+29 |
|\ \ | |/ |/| | Small, general code cleanup | ||||
| * | renderer_opengl.cpp: improved alignment for readability | archshift | 2014-09-07 | 1 | -16/+16 |
| | | |||||
| * | Dead code removal: video_core.cpp, load_symbol_map.cpp | archshift | 2014-09-07 | 1 | -7/+0 |
| | | |||||
| * | utils: cleaned up DumpTGA, removing redundancies | archshift | 2014-09-07 | 2 | -21/+13 |
| | | |||||
* | | Added support for multiple input device types for KeyMap and connected Qt. | Kevin Hartman | 2014-09-12 | 1 | -0/+1 |
| | | |||||
* | | Moved common_types::Rect from common to Common namespace | archshift | 2014-09-09 | 2 | -3/+3 |
|/ | |||||
* | Remove hand-crafted Visual Studio solution. | Yuri Kunde Schlesner | 2014-09-01 | 2 | -217/+0 |
| | |||||
* | CMake cleanup | Yuri Kunde Schlesner | 2014-09-01 | 1 | -13/+26 |
| | | | | | | | | Several cleanups to the buildsystem: - Do better factoring of common libs between platforms. - Add support to building on Windows. - Remove Qt4 support. - Re-sort file lists and add missing headers. | ||||
* | Replace GLEW with a glLoadGen loader. | Yuri Kunde Schlesner | 2014-09-01 | 10 | -13/+2819 |
| | | | | | | | | | This should fix the GL loading errors that occur in some drivers due to the use of deprecated functions by GLEW. Side benefits are more accurate auto-completion (deprecated function and symbols don't exist) and faster pointer loading (less entrypoints to load). In addition it removes an external library depency, simplifying the build system a bit and eliminating one set of binary libraries for Windows. | ||||
* | Downgrade GLSL version to 1.50 (compatible with GL 3.2) | Yuri Kunde Schlesner | 2014-08-28 | 3 | -10/+15 |
| | |||||
* | VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size. | bunnei | 2014-08-26 | 4 | -8/+15 |
| | |||||
* | Rewrite of OpenGL renderer, including OS X support | Kevin Hartman | 2014-08-26 | 8 | -211/+340 |
| | | | | | | Screen contents are now displayed using textured quads. This can be updated to expose an FBO once an OpenGL backend for when Pica rendering is being worked on. That FBO's texture can then be applied to the quads. Previously, FBO blitting was used in order to display screen contents, which did not work on OS X. The new textured quad approach is less of a compatibility risk. | ||||
* | Pica/Rasterizer: Clarify a TODO. | Tony Wasserka | 2014-08-25 | 1 | -1/+3 |
| | |||||
* | Pica/VertexShader: Fix a bug in the call stack handling. | Tony Wasserka | 2014-08-25 | 1 | -2/+3 |
| | |||||
* | Math: Warning fixes. | Tony Wasserka | 2014-08-25 | 1 | -14/+23 |
| | |||||
* | Pica: Consolidate the primitive assembly code in PrimitiveAssembly and GeometryDumper. | Tony Wasserka | 2014-08-25 | 5 | -46/+74 |
| | |||||
* | Pica/Rasterizer: Add texturing support. | Tony Wasserka | 2014-08-25 | 3 | -18/+69 |
| | |||||
* | Pica/DebugUtils: Add convenient tev setup printer. | Tony Wasserka | 2014-08-25 | 3 | -0/+101 |
| | |||||
* | Pica/Rasterizer: Add initial implementation of texture combiners. | Tony Wasserka | 2014-08-25 | 2 | -2/+225 |
| | |||||
* | Pica: Add support for dumping textures. | Tony Wasserka | 2014-08-25 | 3 | -1/+177 |
| | |||||
* | Pica/Math: Improved the design of the Vec2/Vec3/Vec4 classes and simplified rasterizer code accordingly. | Tony Wasserka | 2014-08-25 | 3 | -98/+133 |
| | | | | | | - Swizzlers now return const objects so that things like "first_vec4.xyz() = some_vec3" now will fail to compile (ideally we should support some vector holding references to make this actually work). - The methods "InsertBeforeX/Y/Z" and "Append" have been replaced by more versions of MakeVec, which now also supports building new vectors from vectors. - Vector library now follows C++ type promotion rules (hence, the result of Vec2<u8> with another Vec2<u8> is now a Vec2<int>). | ||||
* | Pica/VertexShader: Fix a bug in the bitfield definitions and add the "negate" field for swizzlers. | Tony Wasserka | 2014-08-25 | 2 | -14/+92 |
| | |||||
* | Pica/citra-qt: Replace command list view and command list debugging code with something more sophisticated. | Tony Wasserka | 2014-08-25 | 4 | -63/+78 |
| | |||||
* | Pica/CommandProcessor: Implement parameter masking. | Tony Wasserka | 2014-08-25 | 2 | -6/+25 |
| | |||||
* | Pica: Add debug utilities for dumping shaders. | Tony Wasserka | 2014-08-25 | 4 | -1/+227 |
| | |||||
* | Pica: Add debug utility functions for dumping geometry data. | Tony Wasserka | 2014-08-25 | 6 | -4/+123 |
| | |||||
* | Fix the threading for GL Context in Qt5. | Sacha | 2014-08-24 | 1 | -1/+0 |
| | | | | Connect the emu_thread start/finish to a moveContext slot. | ||||
* | Merge pull request #42 from archshift/glexp | bunnei | 2014-08-13 | 1 | -3/+2 |
|\ | | | | | Use glewExperimental to fix crashes with citra-glfw | ||||
| * | Use glewExperimental on Linux in order to fix GLFW-mode | archshift | 2014-08-12 | 1 | -3/+2 |
| | | |||||
* | | float24: Remove private default constructor | archshift | 2014-08-13 | 1 | -2/+0 |
|/ | | | | Fixes building with clang. | ||||
* | Pica: Add basic rasterizer. | Tony Wasserka | 2014-08-12 | 7 | -2/+260 |
| | |||||
* | Pica: Add triangle clipper. | Tony Wasserka | 2014-08-12 | 7 | -8/+230 |
| | |||||
* | Pica: Add primitive assembly stage. | Tony Wasserka | 2014-08-12 | 7 | -2/+95 |
| | |||||
* | Pica: Add vertex shader implementation. | Tony Wasserka | 2014-08-12 | 7 | -10/+722 |
| | |||||
* | Pica: Implement vertex loading. | Tony Wasserka | 2014-08-12 | 2 | -8/+102 |
| | |||||
* | Pica: Add register definition for vertex loading and rendering. | Tony Wasserka | 2014-08-12 | 1 | -33/+128 |
| | |||||
* | Pica: Add command processor. | Tony Wasserka | 2014-08-12 | 7 | -5/+107 |
| | |||||
* | Pica: Add float24 structure. | Tony Wasserka | 2014-08-12 | 1 | -0/+75 |
| | | | | | 24-bit floating points are used internally for calculations on the GPU, however the current code will still emulate that with 32-bit floating points. In the future we might want to accurately perform the calculations with correct bitness in the future, but for now we just wrap the calculations around this class. | ||||
* | Video core: Add utility class for vector operations. | Tony Wasserka | 2014-08-12 | 4 | -1/+582 |
| | | | | | I wrote most of this for ppsspp, so I hold full copyright over it. In addition to the original release in ppsspp, this provides functionality to easily extend e.g. two-dimensional vectors to three-dimensional vectors. | ||||
* | Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones. | Tony Wasserka | 2014-08-12 | 2 | -8/+8 |
| | | | | | This cleans up the mess that address reading/writing had become and makes the code a *lot* more sensible. This adds a physical<->virtual address converter to mem_map.h. For further accuracy, we will want to properly extend this to support a wider range of address regions. For now, this makes simply homebrew applications work in a good manner though. | ||||
* | Remove the fancy RegisterSet class introduced in 4c2bff61e. | Tony Wasserka | 2014-08-12 | 2 | -100/+146 |
| | | | | | While it was some nice and fancy template usage, it ultimately had many practical issues regarding length of involved expressions under regular usage as well as common code completion tools not being able to handle the structures. Instead, we now use a more conventional approach which is a lot more clean to use. | ||||
* | GSP: Removed dumb GX prefixes to functions/structs in GSP namespace. | bunnei | 2014-08-06 | 1 | -6/+6 |
| | | | | - Various other cleanups. | ||||
* | Use uniform formatting when printing hexadecimal numbers. | Tony Wasserka | 2014-07-23 | 1 | -1/+1 |
| | |||||
* | GSP: Clean up GX command processing a lot and treat command id as a u8 rather than a u32. | Tony Wasserka | 2014-07-23 | 1 | -3/+2 |
| | | | | Anonymous structs are not standard C++, hence don't use them. | ||||
* | RegisterSet: Simplify code by using structs for register definition instead of unions. | Tony Wasserka | 2014-07-23 | 1 | -9/+9 |
| | |||||
* | GPU: Make use of RegisterSet. | Tony Wasserka | 2014-07-23 | 1 | -26/+28 |
| | |||||
* | Renderer: Fix component order in bottom framebuffer. | Tony Wasserka | 2014-07-23 | 2 | -5/+4 |
| | |||||
* | Renderer: Respect the active_fb GPU register. | Tony Wasserka | 2014-07-23 | 1 | -2/+9 |
| | |||||
* | Renderer: Add a few TODOs. | Tony Wasserka | 2014-07-23 | 1 | -3/+10 |
| | |||||
* | GPU debugger: Don't keep track of debugging data if no debugger views are active. | Tony Wasserka | 2014-07-22 | 1 | -0/+6 |
| | |||||
* | GPU debugger: Const correctness and build fix. | Tony Wasserka | 2014-06-12 | 1 | -3/+3 |
| | |||||
* | Preprocessor: #if's out OSX-specific GL changes on other platforms | archshift | 2014-06-12 | 1 | -0/+3 |
| | |||||
* | Pica: Use some template magic to define register structures efficiently. | Tony Wasserka | 2014-06-12 | 1 | -25/+102 |
| | |||||
* | Further refine GPU command list debugging. | Tony Wasserka | 2014-06-12 | 2 | -0/+17 |
| | |||||
* | Refine command list debugging functionality and its qt interface. | Tony Wasserka | 2014-06-12 | 2 | -8/+17 |
| | |||||
* | citra-qt: Add command list view. | Tony Wasserka | 2014-06-12 | 1 | -2/+2 |
| | |||||
* | GPU debugger: Add functionality to inspect command lists. | Tony Wasserka | 2014-06-12 | 1 | -1/+53 |
| | |||||
* | video core: added PICA definitions file. | Tony Wasserka | 2014-06-12 | 3 | -0/+37 |
| | |||||
* | Rename LCD to GPU. | Tony Wasserka | 2014-06-12 | 1 | -3/+3 |
| | |||||
* | Add initial graphics debugger interface. | Tony Wasserka | 2014-06-12 | 3 | -3/+102 |
| | |||||
* | common_types: Changed BasicRect back to Rect, in the common namespace | archshift | 2014-05-20 | 2 | -3/+3 |
| | | | | Only Rect is in the namespace for now; the rest of common should be added in the future | ||||
* | Improved clarity and whitespace | archshift | 2014-05-20 | 2 | -3/+4 |
| | | | | Changed QGL version to 3,2 in order to be less restrictive, yet it should still change up to 4,1 on OSX on Qt5. | ||||
* | CMakeLists: rename HEADS, improved comments | archshift | 2014-05-20 | 1 | -2/+2 |
| | | | | Changes for clarity of comments, removed redundant compiler flags. | ||||
* | Indent fixes | archshift | 2014-05-19 | 1 | -31/+31 |
| | |||||
* | Merge remote-tracking branch 'upstream/master' into issue-7-fix | archshift | 2014-05-17 | 1 | -7/+6 |
|\ | |||||
| * | Update FlipFramebuffer | Sethpaien | 2014-05-08 | 1 | -7/+6 |
| | | | | | | Less calculations + fix | ||||
* | | Fixed indents | archshift | 2014-05-01 | 2 | -37/+35 |
| | | |||||
* | | Reverse debugging changes | archshift | 2014-05-01 | 1 | -2/+0 |
| | | |||||
* | | TGA dumps work, courtesy of @bunnei | archshift | 2014-05-01 | 2 | -36/+38 |
| | | |||||
* | | OpenGL 3+ on OSX with GLFW | archshift | 2014-05-01 | 1 | -0/+2 |
| | | |||||
* | | IT'S ALIVE! | archshift | 2014-04-29 | 1 | -1/+6 |
| | | |||||
* | | Xcode complains that the class name is redundant. | archshift | 2014-04-28 | 1 | -1/+1 |
| | | |||||
* | | Rect to BasicRect | archshift | 2014-04-28 | 2 | -3/+3 |
|/ | | | | Somewhere along the line an OSX header had already taken the name Rect. | ||||
* | removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable class | bunnei | 2014-04-28 | 2 | -4/+1 |
| | |||||
* | fixed renderer to use correct framebuffer location | bunnei | 2014-04-27 | 2 | -8/+7 |
| | |||||
* | fixed GL context acquire (applies to Qt GUI only) | bunnei | 2014-04-22 | 1 | -0/+2 |
| | |||||
* | renamed hw_lcd module to just lcd | bunnei | 2014-04-18 | 1 | -1/+1 |
| | |||||
* | fixed framebuffer color order | bunnei | 2014-04-17 | 1 | -1/+1 |
| | |||||
* | removed hard-coded framebuffer addresses from renderer_opengl.cpp | bunnei | 2014-04-17 | 1 | -2/+4 |
| | |||||
* | cleaned up some logging messages | bunnei | 2014-04-11 | 1 | -1/+2 |
| | |||||
* | fixed a bunch of errors in CMakeLists | bunnei | 2014-04-10 | 1 | -3/+3 |
| | |||||
* | updated CMakeLists | bunnei | 2014-04-10 | 1 | -16/+2 |
| | |||||
* | fixed project includes to use new directory structure | bunnei | 2014-04-09 | 9 | -38/+39 |
| | |||||
* | got rid of 'src' folders in each sub-project | bunnei | 2014-04-09 | 7 | -0/+0 |
| | |||||
* | fixed license header in video_core | bunnei | 2014-04-09 | 7 | -182/+23 |
| | |||||
* | - removed lots of unused code from gekko | bunnei | 2014-04-09 | 3 | -367/+110 |
| | | | | - updated code style/naming conventions | ||||
* | added support for renderering the external framebuffers | bunnei | 2014-04-07 | 2 | -20/+147 |
| | |||||
* | added external framebuffer GL handles | bunnei | 2014-04-07 | 1 | -2/+11 |
| | |||||
* | added initial renderer code | bunnei | 2014-04-06 | 7 | -19/+534 |
| | |||||
* | added video_core project to solution | bunnei | 2014-04-05 | 8 | -0/+567 |