Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2019-06-06 | shader: Use shared_ptr to store nodes and move initialization to file | ReinUsesLisp | 1 | -0/+2 | |
Instead of having a vector of unique_ptr stored in a vector and returning star pointers to this, use shared_ptr. While changing initialization code, move it to a separate file when possible. This is a first step to allow code analysis and node generation beyond the ShaderIR class. | |||||
2019-04-23 | Revamp Kepler Memory to use a subegine to manage uploads | Fernando Sahmkow | 1 | -0/+2 | |
2019-04-10 | gl_device: Implement interface and add uniform offset alignment | ReinUsesLisp | 1 | -0/+2 | |
2019-04-10 | vk_shader_decompiler: Declare and stub interface for a SPIR-V decompiler | ReinUsesLisp | 1 | -0/+2 | |
2019-04-10 | video_core: Add sirit as optional dependency with Vulkan | ReinUsesLisp | 1 | -1/+4 | |
sirit is a runtime assembler for SPIR-V | |||||
2019-04-08 | Move ConstBufferAccessor to Maxwell3d, correct mistakes and clang format. | Fernando Sahmkow | 1 | -1/+0 | |
2019-04-08 | Simplify ConstBufferAccessor | Fernando Sahmkow | 1 | -1/+0 | |
2019-04-08 | Implement Const Buffer Accessor | Fernando Sahmkow | 1 | -0/+2 | |
2019-04-02 | gl_sampler_cache: Port sampler cache to OpenGL | ReinUsesLisp | 1 | -0/+2 | |
2019-04-02 | video_core: Abstract vk_sampler_cache into a templated class | ReinUsesLisp | 1 | -0/+2 | |
2019-03-29 | data_compression: Move LZ4 compression from video_core/gl_shader_disk_cache to common/data_compression | unknown | 1 | -1/+1 | |
2019-03-29 | vk_swapchain: Implement a swapchain manager | ReinUsesLisp | 1 | -1/+3 | |
2019-03-22 | video_core: Implement API agnostic view based texture cache | ReinUsesLisp | 1 | -0/+2 | |
Implements an API agnostic texture view based texture cache. Classes defined here are intended to be inherited by the API implementation and used in API-specific code. This implementation exposes protected virtual functions to be called from the implementer. Before executing any surface copies methods (defined in API-specific code) it tries to detect if the overlapping surface is a superset and if it is, it creates a view. Views are references of a subset of a surface, it can be a superset view (the same as referencing the whole texture). Current code manages 1D, 1D array, 2D, 2D array, cube maps and cube map arrays with layer and mipmap level views. Texture 3D slices views are not implemented. If the view attempt fails, the fast path is invoked with the overlapping textures (defined in the implementer). If that one fails (returning nullptr) it will flush and reload the texture. | |||||
2019-03-13 | vk_sampler_cache: Implement a sampler cache | ReinUsesLisp | 1 | -0/+2 | |
2019-03-07 | gpu: Refactor a/synchronous implementations into their own classes. | bunnei | 1 | -0/+4 | |
2019-03-07 | gpu: Move command processing to another thread. | bunnei | 1 | -0/+2 | |
2019-03-04 | maxwell_to_vk: Initial implementation | ReinUsesLisp | 1 | -0/+2 | |
2019-03-01 | vk_buffer_cache: Implement a buffer cache | ReinUsesLisp | 1 | -0/+2 | |
This buffer cache is just like OpenGL's buffer cache with some minor style changes. It uses VKStreamBuffer. | |||||
2019-02-27 | gl_rasterizer_cache: Move format conversion to its own file | ReinUsesLisp | 1 | -0/+2 | |
2019-02-26 | shader/decode: Split memory and texture instructions decoding | ReinUsesLisp | 1 | -0/+1 | |
2019-02-24 | vk_stream_buffer: Implement a stream buffer | ReinUsesLisp | 1 | -1/+3 | |
This manages two kinds of streaming buffers: one for unified memory models and one for dedicated GPUs. The first one skips the copy from the staging buffer to the real buffer, since it creates an unified buffer. This implementation waits for all fences to finish their operation before "invalidating". This is suboptimal since it should allocate another buffer or start searching from the beginning. There is room for improvement here. This could also handle AMD's "pinned" memory (a heap with 256 MiB) that seems to be designed for buffer streaming. | |||||
2019-02-22 | vk_scheduler: Implement a scheduler | ReinUsesLisp | 1 | -1/+3 | |
The scheduler abstracts command buffer and fence management with an interface that's able to do OpenGL-like operations on Vulkan command buffers. It returns by value a command buffer and fence that have to be used for subsequent operations until Flush or Finish is executed, after that the current execution context (the pair of command buffers and fences) gets invalidated a new one must be fetched. Thankfully validation layers will quickly detect if this is skipped throwing an error due to modifications to a sent command buffer. | |||||
2019-02-19 | vk_memory_manager: Implement memory manager | ReinUsesLisp | 1 | -0/+2 | |
A memory manager object handles the memory allocations for a device. It allocates chunks of Vulkan memory objects and then suballocates. | |||||
2019-02-14 | vk_resource_manager: Add VKResource interface | ReinUsesLisp | 1 | -1/+3 | |
VKResource is an interface that gets signaled by a fence when it is free to be reused. | |||||
2019-02-13 | vk_device: Abstract device handling into a class | ReinUsesLisp | 1 | -1/+4 | |
VKDevice contains all the data required to manage and initialize a physical device. Its intention is to be passed across Vulkan objects to query device-specific data (for example the logical device and the dispatch loader). | |||||
2019-02-12 | renderer_vulkan: Add declarations file | ReinUsesLisp | 1 | -0/+7 | |
This file is intended to be included instead of vulkan/vulkan.hpp. It includes declarations of unique handlers using a dynamic dispatcher instead of a static one (which would require linking to a Vulkan library). | |||||
2019-02-10 | kepler_compute: Fixup assert and rename engines | ReinUsesLisp | 1 | -2/+2 | |
When I originally added the compute assert I used the wrong documentation. This addresses that. The dispatch register was tested with homebrew against hardware and is triggered by some games (e.g. Super Mario Odyssey). What exactly is missing to get a valid program bound by this engine requires more investigation. | |||||
2019-02-07 | gl_shader_disk_cache: Compress GLSL code using LZ4 | ReinUsesLisp | 1 | -1/+1 | |
2019-02-07 | gl_shader_disk_cache: Add file and move BaseBindings declaration | ReinUsesLisp | 1 | -0/+2 | |
2019-01-30 | shader_decode: Implement LDG and basic cbuf tracking | ReinUsesLisp | 1 | -0/+1 | |
2019-01-15 | video_core: Rename glsl_decompiler to gl_shader_decompiler | ReinUsesLisp | 1 | -2/+2 | |
2019-01-15 | shader_decode: Implement VMAD and VSETP | ReinUsesLisp | 1 | -0/+1 | |
2019-01-15 | video_core: Replace gl_shader_decompiler | ReinUsesLisp | 1 | -2/+0 | |
2019-01-15 | glsl_decompiler: Implementation | ReinUsesLisp | 1 | -0/+2 | |
2019-01-15 | shader_ir: Initial implementation | ReinUsesLisp | 1 | -0/+27 | |
2019-01-08 | gl_global_cache: Add dummy global cache manager | ReinUsesLisp | 1 | -0/+2 | |
2018-11-27 | gpu: Rewrite GPU command list processing with DmaPusher class. | bunnei | 1 | -2/+2 | |
- More accurate impl., fixes Undertale (among other games). | |||||
2018-11-25 | video_core: Move morton functions to their own file | ReinUsesLisp | 1 | -1/+2 | |
2018-11-08 | rasterizer_cache: Add missing virtual destructor to RasterizerCacheObject | Lioncash | 1 | -0/+1 | |
Ensures that destruction will always do the right thing in any context. | |||||
2018-11-06 | gl_resource_manager: Split implementations in .cpp file. | Markus Wick | 1 | -0/+1 | |
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. | |||||
2018-10-30 | video_core: Move surface declarations out of gl_rasterizer_cache | ReinUsesLisp | 1 | -0/+2 | |
2018-10-29 | video_core: Move OpenGL specific utils to its renderer | ReinUsesLisp | 1 | -0/+2 | |
2018-10-04 | gl_rasterizer: Implement quads topology | ReinUsesLisp | 1 | -0/+2 | |
2018-09-12 | GPU: Basic implementation of the Kepler Inline Memory engine (p2mf). | Subv | 1 | -0/+2 | |
This engine writes data from a FIFO register into the configured address. | |||||
2018-09-11 | Implemented (Partialy) Shader Header | FernandoS27 | 1 | -0/+1 | |
2018-09-06 | video_core/CMakeLists: Add missing gl_buffer_cache.h | Lioncash | 1 | -0/+1 | |
Without this, the header file won't show up by default within IDEs such as Visual Studio. | |||||
2018-09-05 | renderer_opengl: Implement a buffer cache. | Markus Wick | 1 | -0/+1 | |
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. | |||||
2018-08-28 | renderer_opengl: Implement a new shader cache. | bunnei | 1 | -0/+2 | |
2018-08-28 | video_core: Add RasterizerCache class for common cache management code. | bunnei | 1 | -0/+1 | |
2018-06-18 | gl_rasterizer: Implement texture format ASTC_2D_4X4. | bunnei | 1 | -0/+2 | |
2018-06-12 | GPU: Partially implemented the Maxwell DMA engine. | Subv | 1 | -0/+2 | |
Only tiled->linear and linear->tiled copies that aren't offsetted are supported for now. Queries are not supported. Swizzled copies are not supported. | |||||
2018-04-14 | renderer_opengl: Add gl_shader_manager class. | bunnei | 1 | -0/+2 | |
2018-04-14 | shader_bytecode: Add initial module for shader decoding. | bunnei | 1 | -0/+1 | |
2018-04-01 | GPU: Implemented a gpu macro interpreter. | Subv | 1 | -0/+2 | |
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. | |||||
2018-03-27 | maxwell_to_gl: Add module and function for decoding VertexType. | bunnei | 1 | -0/+1 | |
2018-03-24 | Frontend: Ported the GPU breakpoints and surface viewer widgets from citra. | Subv | 1 | -0/+2 | |
2018-03-24 | GPU: Preliminary work for texture decoding. | Subv | 1 | -0/+3 | |
2018-03-20 | renderer_gl: Port boilerplate rasterizer code over from Citra. | bunnei | 1 | -0/+3 | |
2018-03-20 | renderer_gl: Port over gl_shader_gen module from Citra. | bunnei | 1 | -0/+2 | |
2018-03-20 | renderer_gl: Port over gl_shader_decompiler module from Citra. | bunnei | 1 | -0/+2 | |
2018-03-20 | renderer_gl: Port over gl_rasterizer_cache module from Citra. | bunnei | 1 | -0/+2 | |
2018-03-20 | renderer_gl: Port over gl_stream_buffer module from Citra. | bunnei | 1 | -0/+2 | |
2018-03-18 | GPU: Move the GPU's class constructor and destructors to a cpp file. | Subv | 1 | -0/+1 | |
This should reduce recompile times when editing the Maxwell3D register structure. | |||||
2018-02-12 | Make a GPU class in VideoCore to contain the GPU state. | Subv | 1 | -0/+3 | |
Also moved the GPU MemoryManager class to video_core since it makes more sense for it to be there. | |||||
2018-02-12 | GPU: Added a command processor to decode the GPU pushbuffers and forward the commands to their respective engines. | Subv | 1 | -0/+8 | |
2018-01-18 | CMakeLists: Derive the source directory grouping from targets themselves | Lioncash | 1 | -19/+15 | |
Removes the need to store to separate SRC and HEADER variables, and then construct the target in most cases. | |||||
2018-01-13 | Remove references to PICA and rasterizers in video_core | James Rowe | 1 | -74/+1 | |
2017-08-19 | pica/command_processor: build geometry pipeline and run geometry shader | wwylele | 1 | -0/+2 | |
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. | |||||
2017-08-03 | SwRasterizer/Lighting: shorten file name | wwylele | 1 | -2/+2 | |
2017-08-02 | SwRasterizer/Lighting: move to its own file | wwylele | 1 | -0/+2 | |
2017-05-28 | CMake: Create INTERFACE targets for microprofile and nihstro | Yuri Kunde Schlesner | 1 | -1/+1 | |
2017-05-28 | CMake: Use IMPORTED target for libpng | Yuri Kunde Schlesner | 1 | -3/+2 | |
2017-05-28 | CMake: Correct inter-module dependencies and library visibility | Yuri Kunde Schlesner | 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. | |||||
2017-05-20 | pica/swrasterizer: implement procedural texture | wwylele | 1 | -0/+2 | |
2017-02-13 | SWRasterizer: Move texturing functions to their own file | Yuri Kunde Schlesner | 1 | -0/+2 | |
2017-02-13 | SWRasterizer: Move framebuffer operation functions to their own file | Yuri Kunde Schlesner | 1 | -0/+2 | |
2017-02-13 | VideoCore: Move software rasterizer files to sub-directory | Yuri Kunde Schlesner | 1 | -6/+6 | |
2017-02-04 | VideoCore: Move Regs to its own file | Yuri Kunde Schlesner | 1 | -0/+2 | |
2017-02-04 | VideoCore: Split shader regs from Regs struct | Yuri Kunde Schlesner | 1 | -0/+1 | |
2017-02-04 | VideoCore: Split geometry pipeline regs from Regs struct | Yuri Kunde Schlesner | 1 | -0/+1 | |
2017-02-04 | VideoCore: Split lighting regs from Regs struct | Yuri Kunde Schlesner | 1 | -0/+1 | |
2017-02-04 | VideoCore: Split framebuffer regs from Regs struct | Yuri Kunde Schlesner | 1 | -0/+1 | |
2017-02-04 | VideoCore: Split texturing regs from Regs struct | Yuri Kunde Schlesner | 1 | -0/+1 | |
2017-02-04 | VideoCore: Split rasterizer regs from Regs struct | Yuri Kunde Schlesner | 1 | -0/+1 | |
2017-02-04 | Pica/Texture: Move part of ETC1 decoding to new file and cleanups | Yuri Kunde Schlesner | 1 | -0/+2 | |
2017-02-04 | VideoCore: Move LookupTexture out of debug_utils.h | Yuri Kunde Schlesner | 1 | -16/+18 | |
2017-01-26 | VideoCore/Shader: Split interpreter and JIT into separate ShaderEngines | Yuri Kunde Schlesner | 1 | -0/+2 | |
2017-01-26 | VideoCore/Shader: Rename shader_jit_x64{ => _compiler}.{cpp,h} | Yuri Kunde Schlesner | 1 | -2/+2 | |
2016-12-16 | VideoCore/Shader: Move DebugData to a separate file | Yuri Kunde Schlesner | 1 | -0/+1 | |
2016-12-15 | VideoCore: Convert x64 shader JIT to use Xbyak for assembly | Yuri Kunde Schlesner | 1 | -0/+3 | |
2016-04-30 | Remove TGA dumper | Jannik Vogel | 1 | -1/+0 | |
2016-04-28 | Refactor: Extract VertexLoader from command_processor.cpp. | Henrik Rydgard | 1 | -0/+2 | |
Preparation for a similar concept to Dolphin or PPSSPP. These can be JIT-ed and cached. | |||||
2016-03-03 | Add immediate mode vertex submission | Dwayne Slater | 1 | -0/+1 | |
2016-02-05 | pica: Add pica_types module and move float24 definition. | bunnei | 1 | -0/+1 | |
2015-12-08 | VideoCore: Unify interface to OpenGL and SW rasterizers | Yuri Kunde Schlesner | 1 | -1/+4 | |
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. | |||||
2015-10-22 | renderer_opengl: Refactor shader generation/caching to be more organized + various cleanups. | bunnei | 1 | -1/+2 | |
2015-08-30 | Replace the previous OpenGL loader with a glad-generated 3.3 one | Yuri Kunde Schlesner | 1 | -2/+1 | |
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. | |||||
2015-08-16 | Rename ARCHITECTURE_X64 definition to ARCHITECTURE_x86_64. | bunnei | 1 | -1/+1 | |
2015-08-16 | x64: Refactor to remove fake interfaces and general cleanups. | bunnei | 1 | -6/+4 | |
2015-08-16 | Shader: Initial implementation of x86_x64 JIT compiler for Pica vertex shaders. | bunnei | 1 | -0/+10 | |
- Config: Add an option for selecting to use shader JIT or interpreter. - Qt: Add a menu option for enabling/disabling the shader JIT. | |||||
2015-08-15 | Shader: Define a common interface for running vertex shader programs. | bunnei | 1 | -0/+2 | |
2015-08-15 | Shader: Move shader code to its own subdirectory, "shader". | bunnei | 1 | -2/+2 | |
2015-08-15 | GPU: Refactor "VertexShader" namespace to "Shader". | bunnei | 1 | -2/+2 | |
- Also renames "vertex_shader.*" to "shader_interpreter.*" | |||||
2015-07-26 | OpenGL: Make OpenGL object resource wrappers fully inline | Yuri Kunde Schlesner | 1 | -1/+0 | |
The functions are so simple that having them separate only bloats the code and hinders optimization. | |||||
2015-05-30 | Move video_core/color.h to common/color.h | archshift | 1 | -1/+0 | |
2015-05-30 | Move video_core/math.h to common/vector_math.h | archshift | 1 | -1/+0 | |
The file only contained vector manipulation code, and such widely-useable code doesn't belong in video_core. | |||||
2015-05-23 | Pica: Create 'State' structure and move state memory there. | bunnei | 1 | -0/+1 | |
2015-05-23 | OpenGL renderer | tfarley | 1 | -1/+11 | |
2015-03-04 | GPU: Added RGB565/RGB8 framebuffer support and various cleanups. | bunnei | 1 | -0/+1 | |
- Centralizes color format encode/decode functions. - Fixes endianness issues. - Implements remaining framebuffer formats in the debugger. | |||||
2014-09-01 | CMake cleanup | Yuri Kunde Schlesner | 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. | |||||
2014-09-01 | Replace GLEW with a glLoadGen loader. | Yuri Kunde Schlesner | 1 | -0/+2 | |
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. | |||||
2014-08-26 | Rewrite of OpenGL renderer, including OS X support | Kevin Hartman | 1 | -4/+7 | |
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. | |||||
2014-08-25 | Pica: Add debug utility functions for dumping geometry data. | Tony Wasserka | 1 | -0/+2 | |
2014-08-12 | Pica: Add basic rasterizer. | Tony Wasserka | 1 | -0/+2 | |
2014-08-12 | Pica: Add triangle clipper. | Tony Wasserka | 1 | -2/+4 | |
2014-08-12 | Pica: Add primitive assembly stage. | Tony Wasserka | 1 | -0/+2 | |
2014-08-12 | Pica: Add vertex shader implementation. | Tony Wasserka | 1 | -0/+2 | |
2014-08-12 | Pica: Add command processor. | Tony Wasserka | 1 | -2/+5 | |
2014-08-12 | Video core: Add utility class for vector operations. | Tony Wasserka | 1 | -1/+2 | |
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. | |||||
2014-05-20 | CMakeLists: rename HEADS, improved comments | archshift | 1 | -2/+2 | |
Changes for clarity of comments, removed redundant compiler flags. | |||||
2014-04-29 | IT'S ALIVE! | archshift | 1 | -1/+6 | |
2014-04-10 | fixed a bunch of errors in CMakeLists | bunnei | 1 | -3/+3 | |
2014-04-10 | updated CMakeLists | bunnei | 1 | -16/+2 | |
2014-04-05 | added video_core project to solution | bunnei | 1 | -0/+19 | |