Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2020-04-22 | OpenGL: Implement Fencing backend. | Fernando Sahmkow | 1 | -4/+0 | |
2020-04-22 | GPU: Delay Fences. | Fernando Sahmkow | 1 | -0/+4 | |
2020-04-22 | gl_rasterizer: Fix buffers without size | ReinUsesLisp | 1 | -1/+2 | |
On NVN buffers can be enabled but have no size. According to deko3d and the behavior we see in Animal Crossing: New Horizons these buffers get the special address of 0x1000 and limit themselves to 0xfff. Implement buffers without a size by binding a null buffer to OpenGL without a side. https://github.com/devkitPro/deko3d/blob/1d1930beea093b5a663419e93b0649719a3ca5da/source/maxwell/gpu_3d_vbo.cpp#L62-L63 | |||||
2020-04-19 | fixed_pipeline_state: Pack attribute state | ReinUsesLisp | 1 | -1/+1 | |
Reduce FixedPipelineState's size from 1384 to 664 bytes | |||||
2020-04-14 | gl_rasterizer: Implement constant vertex attributes | ReinUsesLisp | 1 | -0/+4 | |
Credits go to gdkchan from Ryujinx for finding constant attributes are used in retail games. | |||||
2020-04-13 | gl_rasterizer: Implement line widths and smooth lines | ReinUsesLisp | 1 | -2/+8 | |
Implements "legacy" features from OpenGL present on hardware such as smooth lines and line width. | |||||
2020-04-12 | video_core: Add MSAA registers in 3D engine and TIC | ReinUsesLisp | 1 | -6/+61 | |
This adds the registers used for multisampling. It doesn't implement anything for now. | |||||
2020-03-22 | maxwell_3d: change declaration order | namkazy | 1 | -1/+3 | |
2020-03-22 | maxwell_3d: update comments for shadow ram usage | namkazy | 1 | -0/+4 | |
2020-03-22 | maxwell_3d: implement MME shadow RAM | Nguyen Dac Nam | 1 | -1/+14 | |
2020-03-13 | maxwell_3d: Add padding words to XFB entries | ReinUsesLisp | 1 | -2/+4 | |
Use INSERT_UNION_PADDING_WORDS instead of alignas to ensure a size requirement. | |||||
2020-03-13 | gl_rasterizer: Implement transform feedback bindings | ReinUsesLisp | 1 | -0/+9 | |
2020-03-10 | gl_rasterizer: Implement polygon modes and fill rectangles | ReinUsesLisp | 1 | -2/+20 | |
2020-03-09 | engines/maxwell_3d: Add TFB registers and store them in shader registry | ReinUsesLisp | 1 | -2/+32 | |
2020-02-28 | state_tracker: Remove type traits with named structures | ReinUsesLisp | 1 | -4/+8 | |
2020-02-28 | maxwell_3d: Use two tables instead of three for dirty flags | ReinUsesLisp | 1 | -1/+1 | |
2020-02-28 | maxwell_3d: Change write dirty flags to a bitset | ReinUsesLisp | 1 | -4/+2 | |
2020-02-28 | maxwell_3d: Flatten cull and front face registers | ReinUsesLisp | 1 | -16/+14 | |
2020-02-28 | video_core: Reintroduce dirty flags infrastructure | ReinUsesLisp | 1 | -0/+14 | |
2020-02-28 | gl_state: Remove clip distances tracking | ReinUsesLisp | 1 | -10/+1 | |
2020-02-28 | gl_state: Remove viewport and depth range tracking | ReinUsesLisp | 1 | -9/+9 | |
2020-02-28 | gl_rasterizer: Remove dirty flags | ReinUsesLisp | 1 | -75/+0 | |
2020-02-16 | texture_cache: Implement layered framebuffer attachments | ReinUsesLisp | 1 | -2/+7 | |
Layered framebuffer attachments is a feature that allows applications to write attach layered textures to a single attachment. What layer the fragments are written to is decided from the shader using gl_Layer. | |||||
2020-02-14 | gl_query_cache: Implement host queries using a deferred cache | ReinUsesLisp | 1 | -0/+4 | |
Instead of waiting immediately for executed commands, defer the query until the guest CPU reads it. This way we get closer to what the guest program is doing. To archive this we have to build a dependency queue, because host APIs (like OpenGL and Vulkan) use ranged queries instead of counters like NVN. Waiting for queries implicitly uses fences and this requires a command being queued, otherwise the driver will lock waiting until a timeout. To fix this when there are no commands queued, we explicitly call glFlush. | |||||
2020-02-14 | maxwell_3d: Slow implementation of passed samples (query 21) | ReinUsesLisp | 1 | -4/+34 | |
Implements GL_SAMPLES_PASSED by waiting immediately for queries. | |||||
2020-02-10 | Maxwell3D: Correct query reporting. | Fernando Sahmkow | 1 | -7/+9 | |
2020-02-04 | gl_rasterizer: Implement GL_POINT_SPRITE | ReinUsesLisp | 1 | -1/+6 | |
OpenGL core defaults to GL_POINT_SPRITE, meanwhile on OpenGL compatibility we have to explicitly enable it. This fixes gl_PointCoord's behaviour. | |||||
2020-02-02 | maxwell_3d: Fix stencil back mask | ReinUsesLisp | 1 | -3/+3 | |
2020-01-24 | Shader_IR: Allow constant access of guest driver. | Fernando Sahmkow | 1 | -0/+2 | |
2020-01-24 | GPU: Implement guest driver profile and deduce texture handler sizes. | Fernando Sahmkow | 1 | -0/+2 | |
2020-01-16 | maxwell_3d: Make dirty_pointers private | Lioncash | 1 | -2/+2 | |
This isn't used outside of the class itself, so we can make it private for the time being. | |||||
2020-01-15 | gl_state: Implement PROGRAM_POINT_SIZE | ReinUsesLisp | 1 | -1/+9 | |
For gl_PointSize to have effect we have to activate GL_PROGRAM_POINT_SIZE. | |||||
2019-12-23 | maxwell_3d: Add depth bounds registers | ReinUsesLisp | 1 | -6/+14 | |
2019-12-18 | gl_rasterizer: Implement RASTERIZE_ENABLE | ReinUsesLisp | 1 | -1/+6 | |
RASTERIZE_ENABLE is the opposite of GL_RASTERIZER_DISCARD. Implement it naturally using this. NVN games expect rasterize to be enabled by default, reflect that in our initial GPU state. | |||||
2019-12-11 | Maxwell3D: Implement Depth Mode. | Fernando Sahmkow | 1 | -6/+7 | |
This commit finishes adding depth mode that was reverted before due to other unresolved issues. | |||||
2019-12-07 | maxwell_3d: Add tessellation tess level registers | ReinUsesLisp | 1 | -1/+6 | |
2019-12-07 | maxwell_3d: Add tessellation mode register | ReinUsesLisp | 1 | -1/+28 | |
2019-12-07 | maxwell_3d: Add patch vertices register | ReinUsesLisp | 1 | -1/+4 | |
2019-11-23 | gl_shader_cache: Remove dynamic BaseBinding specialization | ReinUsesLisp | 1 | -1/+0 | |
2019-11-23 | video_core: Unify ProgramType and ShaderStage into ShaderType | ReinUsesLisp | 1 | -10/+3 | |
2019-11-13 | maxwell_3d: Fix stencil_back_func_mask offset | ReinUsesLisp | 1 | -3/+3 | |
stencil_back_func_mask and stencil_back_mask were misplaced. This commit addresses that issue. | |||||
2019-11-04 | common_func: Use std::array for INSERT_PADDING_* macros. | bunnei | 1 | -58/+58 | |
- Zero initialization here is useful for determinism. | |||||
2019-10-28 | maxwell_3d/kepler_compute: Remove unused arguments in GetTexture | ReinUsesLisp | 1 | -3/+2 | |
2019-10-28 | maxwell_3d: Remove unused method GetStageTextures | ReinUsesLisp | 1 | -3/+0 | |
2019-10-27 | maxwell_3d: Silence implicit conversion warnings | ReinUsesLisp | 1 | -0/+2 | |
While we are at it, unify types for dirty reg pointers. | |||||
2019-10-25 | Shader_IR: allow lookup of texture samplers within the shader_ir for instructions that don't provide it | Fernando Sahmkow | 1 | -1/+10 | |
2019-10-25 | VideoCore: Unify const buffer accessing along engines and provide ConstBufferLocker class to shaders. | Fernando Sahmkow | 1 | -2/+3 | |
2019-10-05 | maxwell_3d: Add dirty flags for depth bounds values | ReinUsesLisp | 1 | -1/+5 | |
This is useful in Vulkan where we want to update depth bounds without caring if it's enabled or disabled through vkCmdSetDepthBounds. | |||||
2019-09-22 | Maxwell3D: Corrections and refactors to MME instance refactor | Fernando Sahmkow | 1 | -2/+5 | |
2019-09-19 | VideoCore: Corrections to the MME Inliner and removal of hacky instance management. | Fernando Sahmkow | 1 | -2/+5 | |
2019-09-19 | Video Core: initial Implementation of InstanceDraw Packaging | Fernando Sahmkow | 1 | -1/+22 | |
2019-09-06 | gl_rasterizer: Implement image bindings | ReinUsesLisp | 1 | -0/+1 | |
2019-09-04 | Revert "Revert #2466" and stub FirmwareCall 4 | ReinUsesLisp | 1 | -1/+7 | |
2019-09-04 | maxwell_3d: Avoid moving macro_params | ReinUsesLisp | 1 | -1/+2 | |
2019-09-01 | maxwell_3d: Fix macro binding cursor | ReinUsesLisp | 1 | -1/+1 | |
2019-07-20 | Maxwell3D: Reorganize and address feedback | Fernando Sahmkow | 1 | -2/+2 | |
2019-07-17 | GL_State: Feedback and fixes | Fernando Sahmkow | 1 | -1/+7 | |
2019-07-17 | Maxwell3D: Address Feedback | Fernando Sahmkow | 1 | -3/+3 | |
2019-07-17 | Maxwell3D: Implement State Dirty Flags. | Fernando Sahmkow | 1 | -6/+4 | |
2019-07-17 | Maxwell3D: Rework CBData Upload | Fernando Sahmkow | 1 | -0/+11 | |
2019-07-17 | Maxwell3D: Rework the dirty system to be more consistant and scaleable | Fernando Sahmkow | 1 | -11/+63 | |
2019-07-17 | maxwell3d: Implement Conditional Rendering | Fernando Sahmkow | 1 | -1/+44 | |
Conditional Rendering takes care of conditionaly clearing or drawing depending on a set of queries. This PR implements the query checks to stablish if things can be rendered or not. | |||||
2019-07-06 | gl_rasterizer: Minor style changes | ReinUsesLisp | 1 | -0/+1 | |
2019-06-08 | video_core/engines: Move ConstBufferInfo out of Maxwell3D | ReinUsesLisp | 1 | -7/+1 | |
2019-05-14 | video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for Regs | Lioncash | 1 | -0/+2 | |
std::memset is used to clear the entire register structure, which requires that the Regs struct be trivially copyable (otherwise undefined behavior is invoked). This prevents the case where a non-trivial type is potentially added to the struct. | |||||
2019-05-03 | gl_shader_decompiler: Declare all possible varyings on physical attribute usage | ReinUsesLisp | 1 | -0/+1 | |
2019-05-01 | Refactors and name corrections. | Fernando Sahmkow | 1 | -1/+1 | |
2019-04-23 | Add Documentation Headers to all the GPU Engines | Fernando Sahmkow | 1 | -0/+6 | |
2019-04-23 | Implement Maxwell3D Data Upload | Fernando Sahmkow | 1 | -1/+18 | |
2019-04-18 | video_core: Silent -Wswitch warnings | ReinUsesLisp | 1 | -2/+3 | |
2019-04-08 | Move ConstBufferAccessor to Maxwell3d, correct mistakes and clang format. | Fernando Sahmkow | 1 | -0/+2 | |
2019-04-08 | Implement Bindless Handling on SetupTexture | Fernando Sahmkow | 1 | -0/+4 | |
2019-04-06 | Implement SyncPoint Register in the GPU. | Fernando Sahmkow | 1 | -1/+15 | |
2019-04-06 | video_core/engines: Make memory manager members private | Lioncash | 1 | -1/+2 | |
These aren't used externally by anything, so they can be made private data members. | |||||
2019-04-06 | video_core/engines: Remove unnecessary inclusions where applicable | Lioncash | 1 | -1/+4 | |
Replaces header inclusions with forward declarations where applicable and also removes unused headers within the cpp file. This reduces a few more dependencies on core/memory.h | |||||
2019-02-27 | common/math_util: Move contents into the Common namespace | Lioncash | 1 | -1/+1 | |
These types are within the common library, so they should be within the Common namespace. | |||||
2019-02-26 | maxwell_3d: Use std::bitset to manage dirty flags | ReinUsesLisp | 1 | -7/+8 | |
2019-02-16 | video_core: Remove usages of System::GetInstance() within the engines | Lioncash | 1 | -1/+8 | |
Avoids the use of the global accessor in favor of explicitly making the system a dependency within the interface. | |||||
2019-01-07 | gl_rasterizer_cache: Use dirty flags for the depth buffer | ReinUsesLisp | 1 | -0/+2 | |
2019-01-07 | gl_rasterizer_cache: Use dirty flags for color buffers | ReinUsesLisp | 1 | -0/+3 | |
2019-01-07 | gl_shader_cache: Use dirty flags for shaders | ReinUsesLisp | 1 | -0/+3 | |
2018-12-19 | Fixed uninitialized memory due to missing returns in canary | David Marcec | 1 | -0/+2 | |
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used. | |||||
2018-11-29 | gl_rasterizer: Enable clip distances when set in register and in shader | ReinUsesLisp | 1 | -0/+1 | |
2018-11-27 | gpu: Rewrite GPU command list processing with DmaPusher class. | bunnei | 1 | -1/+1 | |
- More accurate impl., fixes Undertale (among other games). | |||||
2018-11-27 | Implement depth clamp | Rodolfo Bogado | 1 | -1/+9 | |
2018-11-27 | Add support for Clip Distance enabled register | Rodolfo Bogado | 1 | -1/+15 | |
2018-11-27 | GPU States: Implement Polygon Offset. This is used in SMO all the time. (#1784) | Marcos | 1 | -4/+26 | |
* GPU States: Implement Polygon Offset. This is used in SMO all the time. * Clang Format fixes. * Initialize polygon_offset in the constructor. | |||||
2018-11-25 | gl_shader_decompiler: Implement S2R's Y_DIRECTION | ReinUsesLisp | 1 | -0/+1 | |
2018-11-24 | Add support for viewport_transfom_enable register | Rodolfo Bogado | 1 | -1/+9 | |
2018-11-24 | Add support for clear_flags register | Rodolfo Bogado | 1 | -1/+11 | |
2018-11-22 | maxwell_3d: Implement alternate blend equations. | bunnei | 1 | -0/+7 | |
- Used by Undertale. | |||||
2018-11-17 | small fix for alphaToOne bit location | Rodolfo Bogado | 1 | -2/+2 | |
2018-11-17 | fix for gcc compilation | Rodolfo Bogado | 1 | -60/+61 | |
2018-11-17 | add AlphaToCoverage and AlphaToOne | Rodolfo Bogado | 1 | -1/+7 | |
2018-11-17 | add support for fragment_color_clamp | Rodolfo Bogado | 1 | -1/+4 | |
2018-11-17 | fix viewport and scissor behavior | Rodolfo Bogado | 1 | -10/+16 | |
2018-11-17 | gl_rasterizer: Skip VB upload if the state is clean. | Markus Wick | 1 | -0/+5 | |
2018-11-11 | 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 | 1 | -0/+8 | |
2018-11-06 | gl_rasterizer: Skip VAO binding if the state is clean. | Markus Wick | 1 | -0/+6 | |
2018-11-05 | Add support to color mask to avoid issues in blending caused by wrong values in the alpha channel in some render targets. | Rodolfo Bogado | 1 | -3/+20 | |
2018-11-05 | Implement multi-target viewports and blending | Rodolfo Bogado | 1 | -2/+12 | |
2018-11-01 | maxwell_3d: Restructure macro upload to use a single macro code memory. | bunnei | 1 | -4/+21 | |
- Fixes an issue where macros could be skipped. - Fixes rendering of distant objects in Super Mario Odyssey. | |||||
2018-10-28 | Implement sRGB Support, including workarounds for nvidia driver issues and QT sRGB support | Rodolfo Bogado | 1 | -1/+6 | |
2018-10-26 | gl_rasterizer: Implement primitive restart. | bunnei | 1 | -1/+9 | |
2018-10-26 | maxwell_3d: Add code for initializing register defaults. | bunnei | 1 | -0/+2 | |
2018-10-22 | Implemented Alpha Testing | FernandoS27 | 1 | -1/+3 | |
2018-10-18 | Implement 3D Textures | FernandoS27 | 1 | -1/+4 | |
2018-10-10 | Add memory Layout to Render Targets and Depth Buffers | FernandoS27 | 1 | -2/+14 | |
2018-10-10 | Fixed block height settings for RenderTargets and Depth Buffers, and added block width and block depth | FernandoS27 | 1 | -2/+10 | |
2018-10-09 | Assert Scissor tests | FernandoS27 | 1 | -1/+16 | |
2018-10-04 | gl_rasterizer: Implement quads topology | ReinUsesLisp | 1 | -0/+6 | |
2018-09-28 | video_core: Implement point_size and add point state sync | ReinUsesLisp | 1 | -1/+6 | |
2018-09-28 | gl_state: Pack sampler bindings into a single ARB_multi_bind | ReinUsesLisp | 1 | -0/+1 | |
2018-09-26 | video_core: Add asserts for CS, TFB and alpha testing | ReinUsesLisp | 1 | -2/+10 | |
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. | |||||
2018-09-15 | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 1 | -14/+14 | |
2018-09-10 | gl_rasterizer: Implement multiple color attachments. | bunnei | 1 | -1/+21 | |
2018-09-05 | gl_rasterizer: Implement a VAO cache. | Markus Wick | 1 | -2/+7 | |
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. | |||||
2018-08-23 | maxwell_3d: Update to include additional stencil registers. | bunnei | 1 | -20/+50 | |
2018-08-21 | GPU: Added registers for the logicop functionality. | Subv | 1 | -1/+28 | |
2018-08-18 | GLRasterizer: Implemented instanced vertex arrays. | Subv | 1 | -1/+14 | |
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. | |||||
2018-08-15 | Rasterizer: Implemented instanced rendering. | Subv | 1 | -0/+3 | |
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. | |||||
2018-08-12 | GPU/Maxwell3D: Implemented an alternative set of blend factors. | Subv | 1 | -0/+21 | |
These are used by nouveau and some games like SMO. | |||||
2018-08-12 | RasterizerGL: Ignore invalid/unset vertex attributes. | Subv | 1 | -0/+5 | |
This should make the es2gears example not crash anymore. | |||||
2018-08-08 | maxwell_3d: Use correct const buffer size and check bounds. | bunnei | 1 | -1/+1 | |
- Fixes mem corruption with Super Mario Odyssey and Pokkén Tournament DX. | |||||
2018-08-04 | video_core: Eliminate the g_renderer global variable | Lioncash | 1 | -1/+7 | |
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. | |||||
2018-07-22 | maxwell_3d: Add depth buffer enable, width, and height registers. | bunnei | 1 | -2/+14 | |
2018-07-21 | video_core: Use nested namespaces where applicable | Lioncash | 1 | -4/+2 | |
Compresses a few namespace specifiers to be more compact. | |||||
2018-07-17 | GPU: Added register definitions for the stencil parameters. | Subv | 1 | -2/+25 | |
2018-07-13 | gl_rasterizer: Fix check for if a shader stage is enabled. | bunnei | 1 | -3/+8 | |
2018-07-05 | GPU: Allow using the old NV04 values for the depth test function. | Subv | 1 | -9/+21 | |
These seem to be just a valid as the GL token values. Thanks @ReinUsesLisp This restores graphical output to Disgaea 5 | |||||
2018-07-04 | GPU: Flip the triangle front face winding if the GPU is configured to not flip the triangles. | Subv | 1 | -3/+19 | |
OpenGL's default behavior is already correct when the GPU is configured to flip the triangles. This fixes 1-2 Switch's splash screen. | |||||
2018-07-03 | GPU: Added registers for the CLEAR_BUFFERS and CLEAR_COLOR methods. | Subv | 1 | -2/+27 | |
2018-07-03 | GPU: Use only the least significant 3 bits when reading the depth test func. | Subv | 1 | -9/+9 | |
Some games set the full GL define value here (including nouveau), but others just seem to set those last 3 bits. | |||||
2018-07-02 | GPU: Added registers for depth test and cull mode. | Subv | 1 | -3/+51 | |
2018-07-02 | GPU: Implemented the Z24S8 depth format and load the depth framebuffer. | Subv | 1 | -1/+1 | |
2018-07-02 | GPU: Added register definitions for the vertex buffer base element. | Subv | 1 | -1/+6 | |
2018-06-27 | maxwell_3d: Add a struct for RenderTargetConfig. | bunnei | 1 | -17/+19 | |
2018-06-09 | GPU: Added registers for normal and independent blending. | Subv | 1 | -5/+26 | |
2018-06-06 | GPU: Implement sampling multiple textures in the generated glsl shaders. | Subv | 1 | -0/+3 | |
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. | |||||
2018-06-04 | GPU: Calculate the correct viewport dimensions based on the scale and translate registers. | Subv | 1 | -12/+28 | |
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? | |||||
2018-04-25 | GPU: Reduce the number of registers of Maxwell3D to 0xE00. | Subv | 1 | -2/+2 | |
The rest are just macro shim registers. | |||||
2018-04-25 | GPU: Move the Maxwell3D macro uploading code to the inside of the Maxwell3D processor. | Subv | 1 | -4/+13 | |
It doesn't belong in the PFIFO handler. | |||||
2018-04-24 | GPU: Added asserts to our code for handling the QUERY_GET GPU command. | Subv | 1 | -1/+27 | |
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. | |||||
2018-04-23 | GPU: Support multiple enabled vertex arrays. | Subv | 1 | -0/+5 | |
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. | |||||
2018-04-18 | gl_shader_gen: Support vertical/horizontal viewport flipping. (#347) | bunnei | 1 | -1/+10 | |
* gl_shader_gen: Support vertical/horizontal viewport flipping. * fixup! gl_shader_gen: Support vertical/horizontal viewport flipping. | |||||
2018-04-18 | renderer_opengl: Implement BlendEquation and BlendFunc. | bunnei | 1 | -1/+47 | |
2018-04-17 | gl_rasterizer: Implement indexed vertex mode. | bunnei | 1 | -1/+43 | |
2018-04-15 | GPU: Added a function to determine whether a shader stage is enabled or not. | Subv | 1 | -0/+3 | |
2018-04-14 | maxwell_3d: Make memory_manager public. | bunnei | 1 | -2/+1 | |
2018-04-14 | maxwell_3d: Fix shader_config decodings. | bunnei | 1 | -6/+3 | |
2018-04-01 | GPU: Use the MacroInterpreter class to execute the GPU macros instead of HLEing them. | Subv | 1 | -21/+5 | |
2018-04-01 | GPU: Implemented a gpu macro interpreter. | Subv | 1 | -0/+3 | |
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 | gl_rasterizer: Add a SyncViewport method. | bunnei | 1 | -0/+10 | |
2018-03-27 | gl_rasterizer: Normalize vertex array data as appropriate. | bunnei | 1 | -0/+4 | |
2018-03-27 | maxwell_3d: Use names that match envytools for VertexType. | bunnei | 1 | -8/+8 | |
2018-03-27 | maxwell_3d: Add VertexAttribute struct and cleanup. | bunnei | 1 | -121/+160 | |
2018-03-27 | gl_rasterizer: Implement AnalyzeVertexArray. | bunnei | 1 | -0/+35 | |
2018-03-27 | maxwell: Add RenderTargetFormat enum. | bunnei | 1 | -3/+4 | |
2018-03-26 | GPU: Load the sampler info (TSC) when retrieving active textures. | Subv | 1 | -1/+7 | |
2018-03-24 | GPU: Added a function to retrieve the active textures for a shader stage. | Subv | 1 | -6/+10 | |
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. | |||||
2018-03-24 | GPU: Added viewport registers to Maxwell3D's reg structure. | Subv | 1 | -1/+18 | |
2018-03-23 | maxwell_3d: Add some format decodings and string helper functions. | bunnei | 1 | -3/+107 | |
2018-03-21 | GPU: Added vertex attribute format registers. | Subv | 1 | -1/+14 | |
2018-03-21 | GPU: Added registers for the number of vertices to render. | Subv | 1 | -2/+13 | |
2018-03-19 | GPU: Added Z buffer registers to Maxwell3D's reg structure. | Subv | 1 | -1/+17 | |
2018-03-19 | GPU: Added the render target (RT) registers to Maxwell3D's reg structure. | Subv | 1 | -1/+32 | |
2018-03-19 | GPU: Added the TSC registers to the Maxwell3D register structure. | Subv | 1 | -1/+15 | |
2018-03-19 | GPU: Added the TIC registers to the Maxwell3D register structure. | Subv | 1 | -1/+16 | |
2018-03-19 | GPU: Implement macro 0xE1A BindTextureInfoBuffer in HLE. | Subv | 1 | -1/+11 | |
This macro simply sets the current CB_ADDRESS to the texture buffer address for the input shader stage. | |||||
2018-03-18 | GPU: Implement the BindStorageBuffer macro method in HLE. | Subv | 1 | -1/+15 | |
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. | |||||
2018-03-18 | GPU: Handle writes to the CB_DATA method. | Subv | 1 | -0/+3 | |
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. | |||||
2018-03-18 | GPU: Store uploaded GPU macros and keep track of the number of method parameters. | Subv | 1 | -4/+8 | |
2018-03-18 | GPU: Macros are specific to the Maxwell3D engine, so handle them internally. | Subv | 1 | -8/+19 | |
2018-03-18 | GPU: Renamed ShaderType to ShaderStage as that is less confusing. | Subv | 1 | -7/+7 | |
2018-03-18 | GPU: Store shader constbuffer bindings in the GPU state. | Subv | 1 | -3/+25 | |
2018-03-18 | GPU: Corrected some register offsets and removed superfluous macro registers. | Subv | 1 | -9/+3 | |
2018-03-18 | GPU: Make the SetShader macro call do the same as the real macro's code. | Subv | 1 | -2/+25 | |
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[]). | |||||
2018-03-17 | GPU: Corrected the parameter documentation for the SetShader macro call. | Subv | 1 | -6/+6 | |
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. | |||||
2018-03-17 | GPU: Handle the SetShader method call (0xE24) and store the shader config. | Subv | 1 | -2/+16 | |
2018-03-17 | GPU: Added the vertex array registers. | Subv | 1 | -2/+33 | |
2018-03-17 | GPU: Process command mode 5 (IncreaseOnce) differently from other commands. | Subv | 1 | -1/+21 | |
Accumulate all arguments before calling the desired method. Note: Maybe we should do the same for the NonIncreasing mode? | |||||
2018-03-17 | GPU: Added Maxwell registers for Shader Program control. | Subv | 1 | -2/+55 | |
2018-03-05 | GPU: Intercept writes to the VERTEX_END_GL register. | Subv | 1 | -1/+9 | |
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. | |||||
2018-02-14 | maxwell_3d: Make constructor explicit | Lioncash | 1 | -1/+1 | |
2018-02-12 | GPU: Partially implemented the QUERY_* registers in the Maxwell3D engine. | Subv | 1 | -1/+55 | |
Only QueryMode::Write is supported at the moment. | |||||
2018-02-12 | Make a GPU class in VideoCore to contain the GPU state. | Subv | 1 | -3/+7 | |
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/+18 | |