Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Query Cache: Fix guest side sample counting | Fernando Sahmkow | 2023-09-23 | 1 | -6/+0 |
| | |||||
* | Query Cache: address issues | Fernando Sahmkow | 2023-09-23 | 1 | -6/+0 |
| | |||||
* | Query Cachge: Fully rework Vulkan's query cache | Fernando Sahmkow | 2023-09-23 | 1 | -51/+23 |
| | |||||
* | Maxwell3D: Improve Index buffer size estimation. | Fernando Sahmkow | 2023-08-27 | 1 | -1/+5 |
| | |||||
* | Use spans over guest memory where possible instead of copying data. | Kelebek1 | 2023-07-03 | 1 | -3/+1 |
| | |||||
* | android: video_core: Disable some problematic things on GPU Normal. | bunnei | 2023-06-03 | 1 | -0/+12 |
| | |||||
* | Maxwell3D: only update parameters on High | Fernando Sahmkow | 2023-04-29 | 1 | -0/+3 |
| | |||||
* | maxwell_3d: fix out of bounds array access in size estimation | Liam | 2023-04-22 | 1 | -4/+6 |
| | |||||
* | Merge pull request #9802 from Kelebek1/wait_data_cache | bunnei | 2023-02-16 | 1 | -0/+4 |
|\ | | | | | Re-add the invalidate_texture_data_cache register | ||||
| * | Reimplement the invalidate_texture_data_cache register | Kelebek1 | 2023-02-14 | 1 | -0/+4 |
| | | |||||
* | | remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency | arades79 | 2023-02-14 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: arades79 <scravers@protonmail.com> | ||||
* | | add static lifetime to constexpr values to force compile time evaluation where possible | arades79 | 2023-02-14 | 1 | -1/+1 |
|/ | | | | Signed-off-by: arades79 <scravers@protonmail.com> | ||||
* | Merge pull request #9556 from vonchenplus/draw_texture | liamwhite | 2023-01-19 | 1 | -0/+1 |
|\ | | | | | video_core: Implement maxwell3d draw texture method | ||||
| * | video_core: Implement maxwell3d draw texture method | Feng Chen | 2023-01-05 | 1 | -0/+1 |
| | | |||||
* | | Demote maxwell3d Firmware4 call log to debug | Kelebek1 | 2023-01-18 | 1 | -1/+1 |
| | | |||||
* | | video_core: Cache GPU internal writes. | Fernando Sahmkow | 2023-01-05 | 1 | -6/+1 |
|/ | |||||
* | Video_core: Address feedback | Fernando Sahmkow | 2023-01-04 | 1 | -7/+6 |
| | |||||
* | Rasterizer: Setup skeleton for Host Conditional rendering | Fernando Sahmkow | 2023-01-01 | 1 | -4/+10 |
| | |||||
* | Vulkan: Implement Dynamic State 3 | Fernando Sahmkow | 2023-01-01 | 1 | -1/+0 |
| | |||||
* | Vulkan Implement Dynamic State 2 LogicOp and PatchVertices | Fernando Sahmkow | 2023-01-01 | 1 | -0/+1 |
| | |||||
* | DMAPusher: Improve collection of non executing methods | Fernando Sahmkow | 2023-01-01 | 1 | -0/+94 |
| | |||||
* | Revert Buffer cache changes and setup additional macros. | Fernando Sahmkow | 2023-01-01 | 1 | -17/+9 |
| | |||||
* | MacroHLE: Reduce massive calculations on sizing estimation. | Fernando Sahmkow | 2023-01-01 | 1 | -0/+15 |
| | |||||
* | MacroHLE: Add HLE replacement for base vertex and base instance. | Fernando Sahmkow | 2023-01-01 | 1 | -2/+13 |
| | |||||
* | MacroHLE: Add Index Buffer size estimation. | Fernando Sahmkow | 2023-01-01 | 1 | -0/+7 |
| | |||||
* | MacroHLE: Refactor MacroHLE system. | Fernando Sahmkow | 2023-01-01 | 1 | -0/+37 |
| | |||||
* | MacroHLE: Implement DrawIndexedIndirect & DrawArraysIndirect. | Fernando Sahmkow | 2023-01-01 | 1 | -0/+4 |
| | |||||
* | Merge pull request #9401 from vonchenplus/draw_manager | Fernando S | 2022-12-08 | 1 | -161/+10 |
|\ | | | | | video_core: Implement maxwell3d draw manager and split draw logic | ||||
| * | video_core: Implement maxwell3d draw manager and split draw logic | Feng Chen | 2022-12-08 | 1 | -161/+10 |
| | | |||||
* | | Merge pull request #9360 from Kelebek1/R-E-S-P-E-C-T | liamwhite | 2022-12-06 | 1 | -29/+39 |
|\ \ | |/ |/| | Respect render mode override | ||||
| * | Respect render mode override | Kelebek1 | 2022-11-30 | 1 | -29/+39 |
| | | |||||
* | | Merge pull request #9353 from vonchenplus/draw_indexed | liamwhite | 2022-12-03 | 1 | -27/+21 |
|\ \ | |/ |/| | video_core: Fine tuning the index drawing judgment logic | ||||
| * | video_core: Fine tuning the index drawing judgment logic | Feng Chen | 2022-12-01 | 1 | -27/+21 |
| | | |||||
* | | engines: Remove unnecessary casts | Lioncash | 2022-11-29 | 1 | -6/+6 |
|/ | | | | In a few cases we have some casts that can be trivially removed. | ||||
* | Merge pull request #9288 from vonchenplus/deferred_draw | liamwhite | 2022-11-26 | 1 | -59/+57 |
|\ | | | | | video_core: Fine tune maxwell drawing trigger mechanism | ||||
| * | video_core: Optimize maxwell drawing trigger mechanism | FengChen | 2022-11-22 | 1 | -59/+57 |
| | | |||||
* | | GPU: Fix buffer cache issue, engine upload not inlining memory in multiline and pessismistic invalidation. | Fernando Sahmkow | 2022-11-24 | 1 | -7/+1 |
|/ | |||||
* | maxwell3d: full HLE for multi-layer clears | Liam | 2022-11-17 | 1 | -3/+3 |
| | |||||
* | Fix regs regression with OpenGL two-sided stencil, and re-add data invalidation reg | Kelebek1 | 2022-11-11 | 1 | -0/+5 |
| | |||||
* | video_core: Fix drawing trigger mechanism regression | FengChen | 2022-10-31 | 1 | -32/+25 |
| | |||||
* | video_core: Fix drawing trigger mechanism regression | FengChen | 2022-10-27 | 1 | -61/+68 |
| | |||||
* | Merge pull request #9112 from vonchenplus/deferred_draw | liamwhite | 2022-10-25 | 1 | -151/+134 |
|\ | | | | | video_core: Reimplementing the maxwell drawing trigger mechanism | ||||
| * | video_core: Implement maxwell inline_index method | FengChen | 2022-10-22 | 1 | -66/+94 |
| | | |||||
| * | video_coare: Reimplementing the maxwell drawing trigger mechanism | FengChen | 2022-10-21 | 1 | -151/+106 |
| | | |||||
* | | Merge pull request #9095 from FernandoS27/meat-good-vegetable-bad | Fernando S | 2022-10-22 | 1 | -10/+7 |
|\ \ | |/ |/| | Maxwell3D/Puller: Fix regressions and syncing issues. | ||||
| * | Maxwell3D/Puller: Fix regressions and syncing issues. | Fernando Sahmkow | 2022-10-19 | 1 | -10/+7 |
| | | |||||
* | | Fix stencil func registers, make clip control equivalent to how it was before, but surely wrong. | Kelebek1 | 2022-10-10 | 1 | -4/+4 |
|/ | |||||
* | Update 3D regs | Kelebek1 | 2022-10-07 | 1 | -164/+172 |
| | |||||
* | NVDRV: Further improvements. | Fernando Sahmkow | 2022-10-06 | 1 | -13/+5 |
| | |||||
* | DMA & InlineToMemory Engines Rework. | bunnei | 2022-10-06 | 1 | -2/+3 |
| | |||||
* | Maxwell3D: Add small_index_2 | Fernando Sahmkow | 2022-10-06 | 1 | -0/+2 |
| | |||||
* | VideoCore: Refactor fencing system. | Fernando Sahmkow | 2022-10-06 | 1 | -3/+21 |
| | |||||
* | Maxwell3D: Fix 3D semaphore counter type 0 handling | Billy Laws | 2022-06-02 | 1 | -2/+2 |
| | | | | Counter type 0 actually releases the semaphore payload rather than a constant zero as was previously thought. This is required by Skyrim. | ||||
* | video_core/macro: clear code on upload address assignment | Liam | 2022-05-10 | 1 | -0/+2 |
| | |||||
* | general: Convert source file copyright comments over to SPDX | Morph | 2022-04-23 | 1 | -3/+2 |
| | | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later. | ||||
* | maxwell3d: add small_index_2 register | Liam | 2022-04-14 | 1 | -0/+5 |
| | |||||
* | Merge pull request #8023 from ameerj/kirby-pop-in | Fernando S | 2022-03-16 | 1 | -56/+11 |
|\ | | | | | maxwell_3d: Implement a safer CB data upload | ||||
| * | maxwell_3d: Implement a safer CB data upload | ameerj | 2022-03-15 | 1 | -56/+11 |
| | | | | | | | | This makes constant buffer uploads safer and more accurate by updating the GPU memory as soon as the CB Data method is invoked. The previous implementation was deferring the updates until a different maxwell 3d method was detected, then writing all CB data at once. | ||||
* | | Maxwell3D: restore original topology when topology overrides are disabled | byte[] | 2022-03-14 | 1 | -0/+2 |
| | | |||||
* | | Maxwell3D: Use override constants from nouveau | Liam | 2022-03-14 | 1 | -1/+22 |
| | | | | | | | | This fixes some incorrect rendering in Sunshine | ||||
* | | Maxwell3D: Restrict topology override effect to after the register is set | Liam | 2022-03-12 | 1 | -1/+4 |
| | | |||||
* | | Maxwell3D: mark index buffers as dirty after updating counts | Liam | 2022-03-11 | 1 | -0/+2 |
| | | |||||
* | | Maxwell3D: read small-index draw and primitive topology override registers | Liam | 2022-03-11 | 1 | -0/+14 |
|/ | | | | This allows Galaxy and Sunshine to render for the first time. | ||||
* | Rasterizer: Implement Inline2Memory Acceleration. | Fernando Sahmkow | 2022-01-29 | 1 | -0/+1 |
| | |||||
* | video_core/macro: Remove unused parameter from Execute() | Lioncash | 2022-01-25 | 1 | -1/+1 |
| | | | | Simplifies the function interface. | ||||
* | shader: Unify shader stage types | ReinUsesLisp | 2021-07-23 | 1 | -1/+0 |
| | |||||
* | shader: Remove old shader management | ReinUsesLisp | 2021-07-23 | 1 | -38/+0 |
| | |||||
* | buffer_cache: Simplify uniform disabling logic | ameerj | 2021-06-01 | 1 | -2/+6 |
| | |||||
* | video_core: Reimplement the buffer cache | ReinUsesLisp | 2021-02-13 | 1 | -9/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reimplement the buffer cache using cached bindings and page level granularity for modification tracking. This also drops the usage of shared pointers and virtual functions from the cache. - Bindings are cached, allowing to skip work when the game changes few bits between draws. - OpenGL Assembly shaders no longer copy when a region has been modified from the GPU to emulate constant buffers, instead GL_EXT_memory_object is used to alias sub-buffers within the same allocation. - OpenGL Assembly shaders stream constant buffer data using glProgramBufferParametersIuivNV, from NV_parameter_buffer_object. In theory this should save one hash table resolve inside the driver compared to glBufferSubData. - A new OpenGL stream buffer is implemented based on fences for drivers that are not Nvidia's proprietary, due to their low performance on partial glBufferSubData calls synchronized with 3D rendering (that some games use a lot). - Most optimizations are shared between APIs now, allowing Vulkan to cache more bindings than before, skipping unnecesarry work. This commit adds the necessary infrastructure to use Vulkan object from OpenGL. Overall, it improves performance and fixes some bugs present on the old cache. There are still some edge cases hit by some games that harm performance on some vendors, this are planned to be fixed in later commits. | ||||
* | gpu: Report renderer errors with exceptions | ReinUsesLisp | 2021-02-13 | 1 | -2/+2 |
| | | | | | | Instead of using a two step initialization to report errors, initialize the GPU renderer and rasterizer on the constructor and report errors through std::runtime_error. | ||||
* | maxwell_3d: Silence array bounds warnings | ReinUsesLisp | 2021-01-24 | 1 | -34/+34 |
| | |||||
* | video_core: Rewrite the texture cache | ReinUsesLisp | 2020-12-30 | 1 | -33/+12 |
| | | | | | | | | | | | | | | The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues. | ||||
* | video_core: Remove unnecessary enum class casting in logging messages | Lioncash | 2020-12-07 | 1 | -6/+5 |
| | | | | | | | fmt now automatically prints the numeric value of an enum class member by default, so we don't need to use casts any more. Reduces the line noise a bit. | ||||
* | maxwell_3d: Use insert instead of loop push_back | ReinUsesLisp | 2020-11-11 | 1 | -3/+1 |
| | | | | | | This reduces the overhead of bounds checking on each element. It won't reduce the cost of allocation because usually this vector's capacity is usually large enough to hold whatever we push to it. | ||||
* | maxwell_3d: Move code to separate functions | ReinUsesLisp | 2020-11-11 | 1 | -151/+116 |
| | | | | | Deduplicate some code and put it in separate functions so it's easier to understand and profile. | ||||
* | General: Make use of std::nullopt where applicable | Lioncash | 2020-09-22 | 1 | -1/+1 |
| | | | | | | | | Allows some implementations to avoid completely zeroing out the internal buffer of the optional, and instead only set the validity byte within the structure. This also makes it consistent how we return empty optionals. | ||||
* | video_core: Initialize renderer with a GPU | ReinUsesLisp | 2020-08-22 | 1 | -15/+20 |
| | | | | | Add an extra step in GPU initialization to be able to initialize render backends with a valid GPU instance. | ||||
* | Macro HLE support | David Marcec | 2020-06-24 | 1 | -1/+1 |
| | |||||
* | Merge pull request #4049 from ReinUsesLisp/separate-samplers | bunnei | 2020-06-13 | 1 | -1/+4 |
|\ | | | | | shader/texture: Join separate image and sampler pairs offline | ||||
| * | shader/texture: Join separate image and sampler pairs offline | ReinUsesLisp | 2020-06-05 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Games using D3D idioms can join images and samplers when a shader executes, instead of baking them into a combined sampler image. This is also possible on Vulkan. One approach to this solution would be to use separate samplers on Vulkan and leave this unimplemented on OpenGL, but we can't do this because there's no consistent way of determining which constant buffer holds a sampler and which one an image. We could in theory find the first bit and if it's in the TIC area, it's an image; but this falls apart when an image or sampler handle use an index of zero. The used approach is to track for a LOP.OR operation (this is done at an IR level, not at an ISA level), track again the constant buffers used as source and store this pair. Then, outside of shader execution, join the sample and image pair with a bitwise or operation. This approach won't work on games that truly use separate samplers in a meaningful way. For example, pooling textures in a 2D array and determining at runtime what sampler to use. This invalidates OpenGL's disk shader cache :) - Used mostly by D3D ports to Switch | ||||
* | | Merge pull request #4009 from ogniK5377/macro-jit-prod | bunnei | 2020-06-04 | 1 | -10/+7 |
|\ \ | |/ |/| | video_core: Implement Macro JIT | ||||
| * | Default init labels and use initializer list for macro engine | David Marcec | 2020-06-04 | 1 | -1/+1 |
| | | |||||
| * | Mark parameters as const | David Marcec | 2020-06-03 | 1 | -1/+1 |
| | | |||||
| * | Pass by reference instead of copying parameters | David Marcec | 2020-06-02 | 1 | -4/+6 |
| | | |||||
| * | Implement macro JIT | David Marcec | 2020-05-30 | 1 | -12/+7 |
| | | |||||
* | | Merge pull request #3998 from ReinUsesLisp/init-3d | bunnei | 2020-06-01 | 1 | -0/+4 |
|\ \ | |/ |/| | maxwell_3d: Initialize more registers to their expected value | ||||
| * | maxwell_3d: Initialize line widths | ReinUsesLisp | 2020-05-27 | 1 | -0/+2 |
| | | | | | | | | Initialize line widths to avoid setting a line width of zero. | ||||
| * | maxwell_3d: Initialize polygon modes | ReinUsesLisp | 2020-05-27 | 1 | -0/+2 |
| | | | | | | | | | | NVN expects this to be initialized as Fill, otherwise games that never bind a rasterizer state will log an invalid polygon mode. | ||||
* | | maxwell_3d: Reduce severity of logs that can be spammed | ReinUsesLisp | 2020-05-28 | 1 | -6/+7 |
|/ | | | | | These logs were killing performance on some games when they were spammed. Reduce them to Debug severity. | ||||
* | Merge pull request #3885 from ReinUsesLisp/viewport-swizzles | bunnei | 2020-05-08 | 1 | -0/+6 |
|\ | | | | | video_core: Implement viewport swizzles with NV_viewport_swizzle | ||||
| * | maxwell_3d: Add viewport swizzles | ReinUsesLisp | 2020-05-04 | 1 | -0/+6 |
| | | |||||
* | | Merge pull request #3815 from FernandoS27/command-list-2 | bunnei | 2020-05-05 | 1 | -16/+12 |
|\ \ | |/ |/| | GPU: More optimizations to GPU Command List Processing and DMA Copy Optimizations | ||||
| * | VideoCore/Engines: Refactor Engines CallMethod. | Fernando Sahmkow | 2020-04-28 | 1 | -16/+12 |
| | | |||||
* | | {maxwell_3d,buffer_cache}: Implement memory barriers using 3D registers | ReinUsesLisp | 2020-04-28 | 1 | -0/+4 |
|/ | | | | | | | | | | | | | Drop MemoryBarrier from the buffer cache and use Maxwell3D's register WaitForIdle. To implement this on OpenGL we just call glMemoryBarrier with the necessary bits. Vulkan lacks this synchronization primitive, so we set an event and immediately wait for it. This is not a pretty solution, but it's what Vulkan can do without submitting the current command buffer to the queue (which ends up being more expensive on the CPU). | ||||
* | Maxwell3D: Process Macros on MultiMethod. | Fernando Sahmkow | 2020-04-23 | 1 | -25/+47 |
| | |||||
* | DMAPusher: Propagate multimethod writes into the engines. | Fernando Sahmkow | 2020-04-23 | 1 | -0/+52 |
| | |||||
* | FenceManager: Manage syncpoints and rename fences to semaphores. | Fernando Sahmkow | 2020-04-22 | 1 | -2/+2 |
| | |||||
* | Rasterizer: Document SignalFence & ReleaseFences and setup skeletons on Vulkan. | Fernando Sahmkow | 2020-04-22 | 1 | -1/+0 |
| | |||||
* | GPU: Fix rebase errors. | Fernando Sahmkow | 2020-04-22 | 1 | -4/+3 |
| | |||||
* | OpenGL: Implement Fencing backend. | Fernando Sahmkow | 2020-04-22 | 1 | -11/+5 |
| | |||||
* | GPU: Delay Fences. | Fernando Sahmkow | 2020-04-22 | 1 | -1/+9 |
| | |||||
* | GPU: Refactor synchronization on Async GPU | Fernando Sahmkow | 2020-04-22 | 1 | -2/+6 |
| | |||||
* | maxwell_3d: Initialize format attributes constant as one | ReinUsesLisp | 2020-04-17 | 1 | -0/+4 |
| | | | | nouveau expects this to be true but it doesn't set it. | ||||
* | apply replay logic to all writes. remove replay from MacroInterpreter::Send (@fincs) | namkazy | 2020-03-22 | 1 | -6/+9 |
| | |||||
* | maxwell_3d: init shadow_state | namkazy | 2020-03-22 | 1 | -0/+2 |
| | |||||
* | maxwell_3d: this seem more correct. | namkazy | 2020-03-22 | 1 | -2/+2 |
| | |||||
* | maxwell_3d: update comments for shadow ram usage | namkazy | 2020-03-22 | 1 | -1/+1 |
| | |||||
* | maxwell_3d: track shadow ram ctrl and hw reg value | Nguyen Dac Nam | 2020-03-22 | 1 | -0/+10 |
| | |||||
* | const_buffer_engine_interface: Store component types | ReinUsesLisp | 2020-03-09 | 1 | -1/+1 |
| | | | | | This is required for Vulkan. Sampling integer textures with float handles is illegal. | ||||
* | maxwell_3d: Flatten cull and front face registers | ReinUsesLisp | 2020-02-28 | 1 | -3/+3 |
| | |||||
* | video_core: Reintroduce dirty flags infrastructure | ReinUsesLisp | 2020-02-28 | 1 | -1/+13 |
| | |||||
* | gl_rasterizer: Remove dirty flags | ReinUsesLisp | 2020-02-28 | 1 | -180/+1 |
| | |||||
* | Merge pull request #3414 from ReinUsesLisp/maxwell-3d-draw | bunnei | 2020-02-19 | 1 | -2/+2 |
|\ | | | | | maxwell_3d: Unify draw methods | ||||
| * | maxwell_3d: Unify draw methods | ReinUsesLisp | 2020-02-14 | 1 | -2/+2 |
| | | | | | | | | | | Pass instanced state of a draw invocation as an argument instead of having two separate virtual methods. | ||||
* | | gl_query_cache: Optimize query cache | ReinUsesLisp | 2020-02-14 | 1 | -3/+8 |
| | | | | | | | | Use a custom cache instead of relying on a ranged cache. | ||||
* | | gl_query_cache: Implement host queries using a deferred cache | ReinUsesLisp | 2020-02-14 | 1 | -18/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | maxwell_3d: Slow implementation of passed samples (query 21) | ReinUsesLisp | 2020-02-14 | 1 | -13/+26 |
|/ | | | | Implements GL_SAMPLES_PASSED by waiting immediately for queries. | ||||
* | GPU: Address Feedback. | Fernando Sahmkow | 2020-02-13 | 1 | -5/+2 |
| | |||||
* | GPU: Implement GPU Clock correctly. | Fernando Sahmkow | 2020-02-10 | 1 | -1/+2 |
| | |||||
* | Maxwell3D: Correct query reporting. | Fernando Sahmkow | 2020-02-10 | 1 | -44/+49 |
| | |||||
* | Shader_IR: Allow constant access of guest driver. | Fernando Sahmkow | 2020-01-24 | 1 | -0/+4 |
| | |||||
* | GPU: Implement guest driver profile and deduce texture handler sizes. | Fernando Sahmkow | 2020-01-24 | 1 | -0/+4 |
| | |||||
* | vk_graphics_pipeline: Set front facing properly | ReinUsesLisp | 2020-01-18 | 1 | -0/+1 |
| | | | | | | Front face was being forced to a certain value when cull face is disabled. Set a default value on initialization and drop the forcefully set front facing value with culling disabled. | ||||
* | yuzu: Remove Maxwell debugger | ReinUsesLisp | 2020-01-03 | 1 | -31/+0 |
| | | | | | This was carried from Citra and wasn't really used on yuzu. It also adds some runtime overhead. This commit removes it from yuzu's codebase. | ||||
* | gl_rasterizer: Implement RASTERIZE_ENABLE | ReinUsesLisp | 2019-12-18 | 1 | -3/+3 |
| | | | | | | | | 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. | ||||
* | video_core: Unify ProgramType and ShaderStage into ShaderType | ReinUsesLisp | 2019-11-23 | 1 | -16/+17 |
| | |||||
* | texture_cache: Use a table instead of switch for texture formats | ReinUsesLisp | 2019-11-15 | 1 | -8/+0 |
| | | | | | | Use a large flat array to look up texture formats. This allows us to properly implement formats with different component types. It should also be faster. | ||||
* | video_core: Silence implicit conversion warnings | ReinUsesLisp | 2019-11-08 | 1 | -1/+2 |
| | |||||
* | maxwell_3d/kepler_compute: Remove unused arguments in GetTexture | ReinUsesLisp | 2019-10-28 | 1 | -17/+4 |
| | |||||
* | video_core/textures: Remove unused index entry in FullTextureInfo | ReinUsesLisp | 2019-10-28 | 1 | -1/+0 |
| | |||||
* | maxwell_3d: Remove unused method GetStageTextures | ReinUsesLisp | 2019-10-28 | 1 | -39/+0 |
| | |||||
* | maxwell_3d: Silence implicit conversion warnings | ReinUsesLisp | 2019-10-27 | 1 | -24/+23 |
| | | | | While we are at it, unify types for dirty reg pointers. | ||||
* | Shader_IR: allow lookup of texture samplers within the shader_ir for instructions that don't provide it | Fernando Sahmkow | 2019-10-25 | 1 | -0/+18 |
| | |||||
* | VideoCore: Unify const buffer accessing along engines and provide ConstBufferLocker class to shaders. | Fernando Sahmkow | 2019-10-25 | 1 | -1/+2 |
| | |||||
* | maxwell_3d: Reduce FlushMMEInlineDraw logging to Trace | ReinUsesLisp | 2019-10-20 | 1 | -1/+1 |
| | |||||
* | maxwell_3d: Silence truncation warnings | Lioncash | 2019-10-15 | 1 | -1/+2 |
| | | | | | A trivial warning caused by not using size_t as the argument types instead of u32. | ||||
* | maxwell_3d: Add dirty flags for depth bounds values | ReinUsesLisp | 2019-10-05 | 1 | -0/+5 |
| | | | | | This is useful in Vulkan where we want to update depth bounds without caring if it's enabled or disabled through vkCmdSetDepthBounds. | ||||
* | Merge pull request #2870 from FernandoS27/multi-draw | David | 2019-09-22 | 1 | -1/+101 |
|\ | | | | | Implement a MME Draw commands Inliner and correct host instance drawing | ||||
| * | Maxwell3D: Corrections and refactors to MME instance refactor | Fernando Sahmkow | 2019-09-22 | 1 | -31/+38 |
| | | |||||
| * | Rasterizer: Refactor and simplify DrawBatch Interface. | Fernando Sahmkow | 2019-09-19 | 1 | -2/+2 |
| | | |||||
| * | VideoCore: Corrections to the MME Inliner and removal of hacky instance management. | Fernando Sahmkow | 2019-09-19 | 1 | -8/+27 |
| | | |||||
| * | Video Core: initial Implementation of InstanceDraw Packaging | Fernando Sahmkow | 2019-09-19 | 1 | -0/+74 |
| | | |||||
* | | Mark DrawArrays as LOG_TRACE | David Marcec | 2019-09-21 | 1 | -1/+1 |
|/ | | | | There's no reason to clog logs with DrawArray. | ||||
* | Merge pull request #2851 from ReinUsesLisp/srgb | Fernando Sahmkow | 2019-09-15 | 1 | -0/+3 |
|\ | | | | | renderer_opengl: Fix sRGB blits | ||||
| * | renderer_opengl: Fix sRGB blits | ReinUsesLisp | 2019-09-11 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | Removes the sRGB hack of tracking if a frame used an sRGB rendertarget to apply at least once to blit the final texture as sRGB. Instead of doing this apply sRGB if the presented image has sRGB. Also enable sRGB by default on Maxwell3D registers as some games seem to assume this. | ||||
* | | Merge pull request #2824 from ReinUsesLisp/mme | Fernando Sahmkow | 2019-09-15 | 1 | -0/+12 |
|\ \ | |/ |/| | Revert "Revert #2466" and stub FirmwareCall 4 | ||||
| * | maxwell_3d: Update firmware 4 call stub commentary | Rodrigo Locatti | 2019-09-15 | 1 | -1/+2 |
| | | |||||
| * | Revert "Revert #2466" and stub FirmwareCall 4 | ReinUsesLisp | 2019-09-04 | 1 | -0/+11 |
| | | |||||
* | | maxwell_3d: Avoid moving macro_params | ReinUsesLisp | 2019-09-04 | 1 | -3/+4 |
|/ | |||||
* | maxwell_3d: Fix macro binding cursor | ReinUsesLisp | 2019-09-01 | 1 | -9/+3 |
| | |||||
* | video_core: Silent miscellaneous warnings (#2820) | Rodrigo Locatti | 2019-08-30 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | * texture_cache/surface_params: Remove unused local variable * rasterizer_interface: Add missing documentation commentary * maxwell_dma: Remove unused rasterizer reference * video_core/gpu: Sort member declaration order to silent -Wreorder warning * fermi_2d: Remove unused MemoryManager reference * video_core: Silent unused variable warnings * buffer_cache: Silent -Wreorder warnings * kepler_memory: Remove unused MemoryManager reference * gl_texture_cache: Add missing override * buffer_cache: Add missing include * shader/decode: Remove unused variables | ||||
* | Merge pull request #2592 from FernandoS27/sync1 | bunnei | 2019-07-26 | 1 | -2/+3 |
|\ | | | | | Implement GPU Synchronization Mechanisms & Correct NVFlinger | ||||
| * | video_core: Implement GPU side Syncpoints | Fernando Sahmkow | 2019-07-05 | 1 | -2/+3 |
| | | |||||
* | | Merge pull request #2704 from FernandoS27/conditional | bunnei | 2019-07-24 | 1 | -0/+44 |
|\ \ | | | | | | | maxwell3d: Implement Conditional Rendering | ||||
| * | | maxwell3d: Implement Conditional Rendering | Fernando Sahmkow | 2019-07-17 | 1 | -0/+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. | ||||
* | | Maxwell3D: Reorganize and address feedback | Fernando Sahmkow | 2019-07-20 | 1 | -0/+4 |
| | | |||||
* | | Maxwell3D: Address Feedback | Fernando Sahmkow | 2019-07-17 | 1 | -10/+7 |
| | | |||||
* | | GL_Rasterizer: Corrections to Clearing. | Fernando Sahmkow | 2019-07-17 | 1 | -1/+1 |
| | | |||||
* | | Maxwell3D: Correct marking dirtiness on CB upload | Fernando Sahmkow | 2019-07-17 | 1 | -0/+1 |
| | | |||||
* | | GL_Rasterizer: Rework RenderTarget/DepthBuffer clearing | Fernando Sahmkow | 2019-07-17 | 1 | -1/+0 |
| | | |||||
* | | Maxwell3D: Implement State Dirty Flags. | Fernando Sahmkow | 2019-07-17 | 1 | -0/+82 |
| | | |||||
* | | Maxwell3D: Rework CBData Upload | Fernando Sahmkow | 2019-07-17 | 1 | -8/+34 |
| | | |||||
* | | Maxwell3D: Rework the dirty system to be more consistant and scaleable | Fernando Sahmkow | 2019-07-17 | 1 | -47/+89 |
|/ | |||||
* | maxwell_3d: Partially implement texture buffers as 1D textures | ReinUsesLisp | 2019-06-21 | 1 | -8/+4 |
| | |||||
* | video_core/engines: Move ConstBufferInfo out of Maxwell3D | ReinUsesLisp | 2019-06-08 | 1 | -3/+1 |
| | |||||
* | Merge pull request #2472 from FernandoS27/tic | Hexagon12 | 2019-05-19 | 1 | -1/+1 |
|\ | | | | | maxwell_3d: reduce severity of different component formats assert. | ||||
| * | maxwell_3d: reduce sevirity of different component formats assert. | Fernando Sahmkow | 2019-05-14 | 1 | -1/+1 |
| | | | | | | | | | | | | | | This was reduced due to happening on most games and at such constant rate that it affected performance heavily for the end user. In general, we are well aware of the assert and an implementation is already planned. | ||||
* | | video_core/engines/maxwell3d: Get rid of three magic values in CallMethod() | Lioncash | 2019-05-14 | 1 | -3/+3 |
| | | | | | | | | We can use the named constant instead of using 32 directly. | ||||
* | | video_core/engines/maxwell_3d: Simplify for loops into ranged for loops within InitializeRegisterDefaults() | Lioncash | 2019-05-14 | 1 | -15/+15 |
|/ | | | | | | Lessens the amount of code that needs to be read, and gets rid of the need to introduce an indexing variable. Instead, we just operate on the objects directly. | ||||
* | Corrections and styling | Fernando Sahmkow | 2019-04-23 | 1 | -1/+1 |
| | |||||
* | Implement Maxwell3D Data Upload | Fernando Sahmkow | 2019-04-23 | 1 | -2/+14 |
| | |||||
* | Merge pull request #2411 from FernandoS27/unsafe-gpu | bunnei | 2019-04-22 | 1 | -2/+2 |
|\ | | | | | GPU Manager: Implement ReadBlockUnsafe and WriteBlockUnsafe | ||||
| * | Use ReadBlockUnsafe on TIC and TSC reading | Fernando Sahmkow | 2019-04-16 | 1 | -2/+2 |
| | | | | | | | | | | Use ReadBlockUnsafe on TIC and TSC reading as memory is never flushed from host GPU there. | ||||
* | | Move ConstBufferAccessor to Maxwell3d, correct mistakes and clang format. | Fernando Sahmkow | 2019-04-08 | 1 | -2/+10 |
| | | |||||
* | | Implement Bindless Handling on SetupTexture | Fernando Sahmkow | 2019-04-08 | 1 | -13/+18 |
|/ | |||||
* | maxwell_3d: Reduce severity of ProcessSyncPoint | ReinUsesLisp | 2019-04-06 | 1 | -2/+2 |
| | |||||
* | Merge pull request #2317 from FernandoS27/sync | bunnei | 2019-04-06 | 1 | -0/+12 |
|\ | | | | | Implement SyncPoint Register in the GPU. | ||||
| * | Implement SyncPoint Register in the GPU. | Fernando Sahmkow | 2019-04-06 | 1 | -0/+12 |
| | | |||||
* | | video_core/engines: Make memory manager members private | Lioncash | 2019-04-06 | 1 | -2/+2 |
| | | | | | | | | | | These aren't used externally by anything, so they can be made private data members. | ||||
* | | video_core/engines: Remove unnecessary inclusions where applicable | Lioncash | 2019-04-06 | 1 | -2/+1 |
|/ | | | | | | 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 | ||||
* | gpu: Rewrite virtual memory manager using PageTable. | bunnei | 2019-03-21 | 1 | -4/+4 |
| | |||||
* | video_core: Refactor to use MemoryManager interface for all memory access. | bunnei | 2019-03-16 | 1 | -29/+12 |
| | | | | | | | | | | | # Conflicts: # src/video_core/engines/kepler_memory.cpp # src/video_core/engines/maxwell_3d.cpp # src/video_core/morton.cpp # src/video_core/morton.h # src/video_core/renderer_opengl/gl_global_cache.cpp # src/video_core/renderer_opengl/gl_global_cache.h # src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | ||||
* | gpu: Use host address for caching instead of guest address. | bunnei | 2019-03-15 | 1 | -1/+4 |
| | |||||
* | maxwell_3d: Use std::bitset to manage dirty flags | ReinUsesLisp | 2019-02-26 | 1 | -34/+32 |
| | |||||
* | video_core: Remove usages of System::GetInstance() within the engines | Lioncash | 2019-02-16 | 1 | -5/+7 |
| | | | | | Avoids the use of the global accessor in favor of explicitly making the system a dependency within the interface. | ||||
* | core_timing: Convert core timing into a class | Lioncash | 2019-02-16 | 1 | -1/+1 |
| | | | | | | | | | | | Gets rid of the largest set of mutable global state within the core. This also paves a way for eliminating usages of GetInstance() on the System class as a follow-up. Note that no behavioral changes have been made, and this simply extracts the functionality into a class. This also has the benefit of making dependencies on the core timing functionality explicit within the relevant interfaces. | ||||
* | core_timing: Rename CoreTiming namespace to Core::Timing | Lioncash | 2019-02-12 | 1 | -1/+1 |
| | | | | | | Places all of the timing-related functionality under the existing Core namespace to keep things consistent, rather than having the timing utilities sitting in its own completely separate namespace. | ||||
* | video_core: Assert on invalid GPU to CPU address queries | ReinUsesLisp | 2019-02-03 | 1 | -19/+27 |
| | |||||
* | maxwell_3d: Allow sampler handles with TSC id zero | ReinUsesLisp | 2019-02-03 | 1 | -10/+6 |
| | |||||
* | maxwell_3d: Allow texture handles with TIC id zero | ReinUsesLisp | 2019-02-03 | 1 | -16/+7 |
| | | | | | Also remove "enabled" field from Tegra::Texture::FullTextureInfo because it would become unused. | ||||
* | maxwell_3d: Set rt_separate_frag_data to 1 by default | ReinUsesLisp | 2019-01-22 | 1 | -0/+5 |
| | | | | | | | Commercial games assume that this value is 1 but they never set it. On the other hand nouveau manually sets this register. On ConfigureFramebuffers we were asserting for what we are actually implementing (according to envytools). | ||||
* | gl_rasterizer_cache: Use dirty flags for the depth buffer | ReinUsesLisp | 2019-01-07 | 1 | -0/+10 |
| | |||||
* | gl_rasterizer_cache: Use dirty flags for color buffers | ReinUsesLisp | 2019-01-07 | 1 | -0/+9 |
| | |||||
* | gl_shader_cache: Use dirty flags for shaders | ReinUsesLisp | 2019-01-07 | 1 | -0/+8 |
| | |||||
* | gpu: Rewrite GPU command list processing with DmaPusher class. | bunnei | 2018-11-27 | 1 | -25/+28 |
| | | | | - More accurate impl., fixes Undertale (among other games). | ||||
* | Merge pull request #1723 from degasus/dirty_flags | bunnei | 2018-11-27 | 1 | -0/+16 |
|\ | | | | | gl_rasterizer: Skip VB upload if the state is clean. | ||||
| * | gl_rasterizer: Skip VB upload if the state is clean. | Markus Wick | 2018-11-17 | 1 | -0/+16 |
| | | |||||
* | | maxwell_3d: Initialize rasterizer color mask registers as enabled. | bunnei | 2018-11-21 | 1 | -0/+9 |
| | | | | | | | | - Fixes rendering regression with Sonic Mania. | ||||
* | | set default value for point size register | Rodolfo Bogado | 2018-11-17 | 1 | -0/+3 |
| | | |||||
* | | fix viewport and scissor behavior | Rodolfo Bogado | 2018-11-17 | 1 | -2/+2 |
|/ | |||||
* | gl_rasterizer: Minor cleanup | Frederic L | 2018-11-13 | 1 | -4/+2 |
| | | | Minor code cleanup from unaddressed feedback in #1654 | ||||
* | 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 | 1 | -0/+13 |
| | |||||
* | Merge pull request #1654 from degasus/dirty_flags | bunnei | 2018-11-11 | 1 | -0/+8 |
|\ | | | | | 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 | 1 | -0/+8 |
| | | |||||
* | | Implement multi-target viewports and blending | Rodolfo Bogado | 2018-11-05 | 1 | -0/+16 |
|/ | |||||
* | maxwell_3d: Restructure macro upload to use a single macro code memory. | bunnei | 2018-11-01 | 1 | -8/+18 |
| | | | | | - Fixes an issue where macros could be skipped. - Fixes rendering of distant objects in Super Mario Odyssey. | ||||
* | global: Use std::optional instead of boost::optional (#1578) | Frederic L | 2018-10-30 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | * 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 | ||||
* | maxwell_3d: Add code for initializing register defaults. | bunnei | 2018-10-26 | 1 | -1/+19 |
| | |||||
* | maxwell_3d: Remove unused variable within ProcessQueryGet() | Lioncash | 2018-10-24 | 1 | -1/+0 |
| | |||||
* | engines/maxwell_*: Use nested namespace specifiers where applicable | Lioncash | 2018-10-20 | 1 | -4/+2 |
| | | | | | | 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. | ||||
* | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 2018-09-15 | 1 | -6/+7 |
| | |||||
* | rasterizer: Drop unused handler. | Markus Wick | 2018-09-10 | 1 | -2/+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. | ||||
* | maxwell_3d: Remove assert that no longer applies. | bunnei | 2018-09-08 | 1 | -4/+0 |
| | |||||
* | maxwell_3d: Use CoreTiming for query timestamp | Zach Hilman | 2018-09-01 | 1 | -2/+3 |
| | |||||
* | core/core: Replace includes with forward declarations where applicable | Lioncash | 2018-08-31 | 1 | -2/+1 |
| | | | | | | | | | | | 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. | ||||
* | 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 | ||||
* | Rasterizer: Implemented instanced rendering. | Subv | 2018-08-15 | 1 | -0/+12 |
| | | | | | | 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. | ||||
* | maxwell_3d: Ignore macros that have not been uploaded yet. | bunnei | 2018-08-09 | 1 | -4/+9 |
| | | | | - Used by Super Mario Odyssey (in game). | ||||
* | maxwell_3d: Use correct const buffer size and check bounds. | bunnei | 2018-08-08 | 1 | -0/+2 |
| | | | | - Fixes mem corruption with Super Mario Odyssey and Pokkén Tournament DX. | ||||
* | maxwell_3d: Remove outdated assert. | bunnei | 2018-08-06 | 1 | -2/+0 |
| | |||||
* | video_core: Eliminate the g_renderer global variable | Lioncash | 2018-08-04 | 1 | -5/+5 |
| | | | | | | | | | | | | | | 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. | ||||
* | 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. | ||||
* | maxwell_3d: Remove unused variable within GetStageTextures() | Lioncash | 2018-07-20 | 1 | -2/+0 |
| | |||||
* | gl_rasterizer: Fix check for if a shader stage is enabled. | bunnei | 2018-07-13 | 1 | -21/+0 |
| | |||||
* | Merge pull request #609 from Subv/clear_buffers | bunnei | 2018-07-04 | 1 | -0/+12 |
|\ | | | | | GPU: Implemented the CLEAR_BUFFERS register. | ||||
| * | GPU: Support clears that don't clear the color buffer. | Subv | 2018-07-03 | 1 | -2/+3 |
| | | |||||
| * | GPU: Bind and clear the render target when the CLEAR_BUFFERS register is written to. | Subv | 2018-07-03 | 1 | -0/+11 |
| | | |||||
* | | Update clang format | James Rowe | 2018-07-03 | 1 | -2/+2 |
| | | |||||
* | | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 1 | -1/+1 |
|/ | |||||
* | Build: Fixed some MSVC warnings in various parts of the code. | Subv | 2018-06-20 | 1 | -2/+3 |
| | |||||
* | GPU: Implement sampling multiple textures in the generated glsl shaders. | Subv | 2018-06-06 | 1 | -0/+34 |
| | | | | | | 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. | ||||
* | 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. | ||||
* | maxwell_3d: Reset vertex counts after drawing. | bunnei | 2018-04-29 | 1 | -0/+10 |
| | |||||
* | general: Convert assertion macros over to be fmt-compatible | Lioncash | 2018-04-27 | 1 | -2/+2 |
| | |||||
* | GPU: Reduce the number of registers of Maxwell3D to 0xE00. | Subv | 2018-04-25 | 1 | -3/+3 |
| | | | | 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 | 1 | -4/+10 |
| | | | | It doesn't belong in the PFIFO handler. | ||||
* | video-core: Move logging macros over to new fmt-capable ones | Lioncash | 2018-04-25 | 1 | -2/+2 |
| | |||||
* | memory_manager: Make GpuToCpuAddress return an optional. | bunnei | 2018-04-24 | 1 | -10/+11 |
| | |||||
* | memory_manager: Use GPUVAdddr, not PAddr, for GPU addresses. | bunnei | 2018-04-24 | 1 | -6/+5 |
| | |||||
* | GPU: Added asserts to our code for handling the QUERY_GET GPU command. | Subv | 2018-04-24 | 1 | -1/+26 |
| | | | | | 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. | ||||
* | GPU: Pitch textures are now supported, don't assert when encountering them. | Subv | 2018-04-18 | 1 | -2/+3 |
| | |||||
* | Merge pull request #346 from bunnei/misc-gpu-improvements | bunnei | 2018-04-18 | 1 | -1/+2 |
|\ | | | | | Misc gpu improvements | ||||
| * | maxwell3d: Allow Texture2DNoMipmap as Texture2D. | bunnei | 2018-04-18 | 1 | -1/+2 |
| | | |||||
* | | renderer_opengl: Implement BlendEquation and BlendFunc. | bunnei | 2018-04-18 | 1 | -3/+1 |
|/ | |||||
* | gl_rasterizer: Implement indexed vertex mode. | bunnei | 2018-04-17 | 1 | -1/+3 |
| | |||||
* | GPU: Added a function to determine whether a shader stage is enabled or not. | Subv | 2018-04-15 | 1 | -0/+21 |
| | |||||
* | GPU: Assert when finding a texture with a format type other than UNORM. | Subv | 2018-04-07 | 1 | -0/+2 |
| | |||||
* | GPU: Use the MacroInterpreter class to execute the GPU macros instead of HLEing them. | Subv | 2018-04-01 | 1 | -100/+8 |
| | |||||
* | GPU: Implemented a gpu macro interpreter. | Subv | 2018-04-01 | 1 | -0/+5 |
| | | | | | | 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. | ||||
* | Maxwell3D: Call AccelerateDrawBatch on DrawArrays. | bunnei | 2018-03-27 | 1 | -1/+8 |
| | |||||
* | GPU: Load the sampler info (TSC) when retrieving active textures. | Subv | 2018-03-26 | 1 | -20/+60 |
| | |||||
* | GPU: Make the debug_context variable a member of the frontend instead of a global. | Subv | 2018-03-25 | 1 | -11/+13 |
| | |||||
* | GPU: Added a function to retrieve the active textures for a shader stage. | Subv | 2018-03-24 | 1 | -44/+49 |
| | | | | 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. | ||||
* | 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 |
| | |||||
* | GPU: Added a method to unswizzle a texture without decoding it. | Subv | 2018-03-24 | 1 | -1/+1 |
| | | | | Allow unswizzling of DXT1 textures. | ||||
* | GPU: Preliminary work for texture decoding. | Subv | 2018-03-24 | 1 | -0/+45 |
| | |||||
* | Clang Fixes | N00byKing | 2018-03-19 | 1 | -1/+2 |
| | |||||
* | Clean Warnings (?) | N00byKing | 2018-03-19 | 1 | -1/+1 |
| | |||||
* | GPU: Implement macro 0xE1A BindTextureInfoBuffer in HLE. | Subv | 2018-03-19 | 1 | -0/+18 |
| | | | | 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 | 1 | -0/+21 |
| | | | | | | 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 | 1 | -0/+36 |
| | | | | | | 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: Store uploaded GPU macros and keep track of the number of method parameters. | Subv | 2018-03-18 | 1 | -7/+16 |
| | |||||
* | GPU: Macros are specific to the Maxwell3D engine, so handle them internally. | Subv | 2018-03-18 | 1 | -5/+36 |
| | |||||
* | GPU: Renamed ShaderType to ShaderStage as that is less confusing. | Subv | 2018-03-18 | 1 | -12/+12 |
| | |||||
* | GPU: Store shader constbuffer bindings in the GPU state. | Subv | 2018-03-18 | 1 | -2/+36 |
| | |||||
* | GPU: Make the SetShader macro call do the same as the real macro's code. | Subv | 2018-03-18 | 1 | -1/+19 |
| | | | | | | 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 | 1 | -5/+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. | ||||
* | GPU: Handle the SetShader method call (0xE24) and store the shader config. | Subv | 2018-03-17 | 1 | -2/+22 |
| | |||||
* | Merge pull request #241 from Subv/gpu_method_call | bunnei | 2018-03-17 | 1 | -0/+17 |
|\ | | | | | GPU: Process command mode 5 (IncreaseOnce) differently from other commands | ||||
| * | GPU: Process command mode 5 (IncreaseOnce) differently from other commands. | Subv | 2018-03-17 | 1 | -0/+17 |
| | | | | | | | | | | | | 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: Intercept writes to the VERTEX_END_GL register. | Subv | 2018-03-05 | 1 | -0/+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. | ||||
* | GPU: Partially implemented the QUERY_* registers in the Maxwell3D engine. | Subv | 2018-02-12 | 1 | -1/+39 |
| | | | | Only QueryMode::Write is supported at the moment. | ||||
* | Make a GPU class in VideoCore to contain the GPU state. | Subv | 2018-02-12 | 1 | -3/+1 |
| | | | | 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 | 1 | -0/+15 |