summaryrefslogtreecommitdiffstats
path: root/src/video_core (follow)
Commit message (Collapse)AuthorAgeFilesLines
* shader/texture: Add F16 support for TLDSReinUsesLisp2019-07-072-2/+9
|
* Merge pull request #2601 from FernandoS27/texture_cacheZach Hilman2019-07-0555-3269/+4114
|\ | | | | Implement a new Texture Cache
| * texture_cache: Address FeedbackFernando Sahmkow2019-07-054-12/+13
| |
| * texture_cache: Correct Texture Buffer UploadingFernando Sahmkow2019-07-053-2/+18
| |
| * texture_cache: Pack sibling queries inside a methodReinUsesLisp2019-06-301-6/+8
| |
| * texture_cache: Use std::vector reservation for sampled_texturesReinUsesLisp2019-06-301-17/+10
| |
| * texture_cache: Style changesReinUsesLisp2019-06-303-17/+13
| |
| * texture_cache: Use std::array for siblings_tableReinUsesLisp2019-06-291-10/+13
| |
| * texture_cache: Address feedbackReinUsesLisp2019-06-294-30/+13
| |
| * texture_cache: Correct variable naming.Fernando Sahmkow2019-06-261-3/+3
| |
| * gl_texture_cache: Correct assertsFernando Sahmkow2019-06-262-2/+2
| |
| * texture_cache: Corrections, documentation and assertsFernando Sahmkow2019-06-261-42/+42
| |
| * surface_params: Corrections, asserts and documentation.Fernando Sahmkow2019-06-262-43/+58
| |
| * copy_params: use constexpr for constructorFernando Sahmkow2019-06-251-3/+4
| |
| * gl_texture_cache: Corrections and fixesFernando Sahmkow2019-06-252-13/+9
| |
| * gl_resource_manager: Correct MakeStreamCopyFernando Sahmkow2019-06-252-3/+2
| |
| * texture_cache: Query MemoryManager from the systemFernando Sahmkow2019-06-255-20/+7
| |
| * texture_cache: Include "core/core.h"ReinUsesLisp2019-06-241-4/+1
| |
| * gl_texture_cache: Explicitly add indirect includeReinUsesLisp2019-06-241-0/+1
| |
| * texture_cache/surface_view: Address feedbackReinUsesLisp2019-06-241-1/+0
| |
| * texture_cache/surface_base: Address feedbackReinUsesLisp2019-06-242-2/+10
| |
| * video_core/surface: Address feedbackReinUsesLisp2019-06-241-2/+2
| |
| * decode/texture: Address feedbackReinUsesLisp2019-06-241-0/+1
| |
| * renderer_opengl/utils: Remove unused includes and unused forward declarationReinUsesLisp2019-06-241-4/+0
| |
| * gl_texture_cache: Address some feedbackReinUsesLisp2019-06-241-2/+4
| |
| * gl_shader_disk_cache: Address feedbackReinUsesLisp2019-06-242-4/+8
| |
| * gl_shader_decompiler: Address feedbackReinUsesLisp2019-06-241-11/+12
| |
| * shader_bytecode: Include missing <array>ReinUsesLisp2019-06-241-0/+1
| |
| * texture_cache: Style and CorrectionsFernando Sahmkow2019-06-217-71/+75
| |
| * shader_cache: Correct versioning and size calculation.Fernando Sahmkow2019-06-212-2/+7
| |
| * texture_cache: Eliminate linear textures fallthroughFernando Sahmkow2019-06-211-4/+0
| |
| * texture_cache: Correct format R16U as siblingFernando Sahmkow2019-06-212-1/+2
| |
| * texture_cache: Implement texception detection and texture barriers.Fernando Sahmkow2019-06-212-7/+40
| |
| * texture_cache: Corrections to buffers and shadow formats use.Fernando Sahmkow2019-06-211-10/+34
| |
| * texture_cache: Implement Irregular Views in surfacesFernando Sahmkow2019-06-212-4/+24
| |
| * surface: Correct format S8Z24Fernando Sahmkow2019-06-214-9/+5
| |
| * texture_cache: Initialize all siblings to invalid pixel format.Fernando Sahmkow2019-06-211-6/+15
| |
| * gl_texture_cache: Use Stream Buffers instead of Persistant for Buffer Copies.Fernando Sahmkow2019-06-213-5/+4
| |
| * gl_texture_cache: Correct Image BlitFernando Sahmkow2019-06-211-1/+1
| |
| * decoders: correct block calculationFernando Sahmkow2019-06-217-29/+41
| |
| * texture_cache: Use siblings textures on Rebuild and fix possible error on blittingFernando Sahmkow2019-06-212-11/+24
| |
| * texture_cache: Remove old rasterizer cacheFernando Sahmkow2019-06-212-1956/+0
| |
| * texture_cache: Implement siblings texture formats.Fernando Sahmkow2019-06-212-12/+31
| |
| * fermi2d: Correct Origin ModeFernando Sahmkow2019-06-211-5/+10
| |
| * texture_cache: correct texture buffer on surface paramsFernando Sahmkow2019-06-211-4/+11
| |
| * texture_cache: eliminate accelerated depth->color/color->depth copies due to driver instability.Fernando Sahmkow2019-06-214-22/+6
| |
| * texture_cache: correct mutex locksFernando Sahmkow2019-06-211-4/+4
| |
| * shader_ir: Fix image copy rebase issuesFernando Sahmkow2019-06-211-2/+7
| |
| * texture_cache: Don't Image Copy if component types differFernando Sahmkow2019-06-211-1/+2
| |
| * texture_cache: move some large methods to cpp filesFernando Sahmkow2019-06-214-139/+135
| |
| * texture_cache: Optimize GetSurface and use references on functions that don't change a surface.Fernando Sahmkow2019-06-213-12/+12
| |
| * texture_cache: Implement Buffer Copy and detect Turing GPUs Image CopiesFernando Sahmkow2019-06-218-12/+148
| |
| * texture_cache uncompress-compress is untopological.Fernando Sahmkow2019-06-215-19/+53
| | | | | | | | | | | | This makes conflicts between non compress and compress textures to be auto recycled. It also limits the amount of mipmaps a texture can have if it goes above it's limit.
| * texture_cache: Correct copying between compressed and uncompressed formatsFernando Sahmkow2019-06-213-10/+27
| |
| * texture_cache: Only load on recycle with accurate GPU.Fernando Sahmkow2019-06-211-2/+3
| | | | | | | | | | Testing so far has proven this to be quite safe as texture memory read added a 2-5ms load to the current cache.
| * Fix rebase errorsFernando Sahmkow2019-06-213-3/+13
| |
| * texture_cache: Handle uncontinuous surfaces.Fernando Sahmkow2019-06-214-21/+82
| |
| * texture_cache: return null surface on invalid addressFernando Sahmkow2019-06-211-0/+12
| |
| * texture_cache: Add checks for texture buffers.Fernando Sahmkow2019-06-211-2/+16
| |
| * texture_cache: Fermi2D reform and implement View MirageFernando Sahmkow2019-06-2111-77/+125
| | | | | | | | | | This also does some fixes on compressed textures reinterpret and on the Fermi2D engine in general.
| * gl_shader_decompiler: Implement image binding settingsReinUsesLisp2019-06-215-24/+52
| |
| * shader: Implement bindless imagesReinUsesLisp2019-06-213-2/+40
| |
| * shader: Decode SUST and implement backing image functionalityReinUsesLisp2019-06-218-3/+282
| |
| * gl_rasterizer: Track texture buffer usageReinUsesLisp2019-06-216-74/+119
| |
| * video_core: Make ARB_buffer_storage a required extensionReinUsesLisp2019-06-213-8/+5
| |
| * gl_rasterizer_cache: Use texture buffers to emulate texture buffersReinUsesLisp2019-06-215-11/+35
| |
| * maxwell_3d: Partially implement texture buffers as 1D texturesReinUsesLisp2019-06-214-10/+24
| |
| * gl_shader_decompiler: Allow 1D textures to be texture buffersReinUsesLisp2019-06-211-4/+38
| |
| * shader: Implement texture buffersReinUsesLisp2019-06-213-0/+62
| |
| * texture_cache: loose TryReconstructSurface when accurate GPU is not on.Fernando Sahmkow2019-06-213-4/+20
| | | | | | | | Also corrects some asserts.
| * texture_cache: Document the most important methods.Fernando Sahmkow2019-06-211-8/+87
| |
| * texture_cache: Try to Reconstruct Surface on bigger than overlap.Fernando Sahmkow2019-06-211-4/+11
| | | | | | | | | | This fixes clouds in SMO Cap Kingdom and lens on Cloud Kingdom. Also moved accurate_gpu setting check to Pick Strategy
| * texture_cache: Implement Guard mechanismFernando Sahmkow2019-06-212-1/+12
| |
| * texture_cache: General FixesFernando Sahmkow2019-06-218-47/+170
| | | | | | | | | | | | | | Fixed ASTC mipmaps loading Fixed alignment on openGL upload/download Fixed Block Height Calculation Removed unalign_height
| * surface_params: Ensure pitch is always written to avoid surface leaksReinUsesLisp2019-06-211-0/+2
| |
| * gl_framebuffer_cache: Use a hashed struct to cache framebuffersReinUsesLisp2019-06-216-62/+148
| |
| * texture_cache return invalid buffer on deactivated color_maskFernando Sahmkow2019-06-212-2/+9
| |
| * engine_upload: Addapt to new Texture CacheFernando Sahmkow2019-06-212-5/+5
| |
| * surface_params: Optimize CreateForTextureReinUsesLisp2019-06-212-72/+76
| | | | | | | | | | Instead of using Common::AlignUp, use Common::AlignBits to align the texture compression factor.
| * gl_texture_cache: Make main views be proxy textures instead of a full view.Fernando Sahmkow2019-06-212-11/+25
| |
| * texture_cache: Add ASync ProtectionsFernando Sahmkow2019-06-211-0/+10
| |
| * Remove Framebuffer reconfiguration and restrict rendertarget protectionFernando Sahmkow2019-06-214-39/+27
| |
| * texture_cache: Implement GPU Dirty FlagsFernando Sahmkow2019-06-211-15/+22
| |
| * texture_cache: Optimize GetMipBlockHeight and GetMipBlockDepthFernando Sahmkow2019-06-211-13/+6
| |
| * texture_cache: Implement L1_Inner_cacheFernando Sahmkow2019-06-211-13/+30
| |
| * video_core: Use un-shifted block sizes to avoid integer divisionsReinUsesLisp2019-06-219-60/+73
| | | | | | | | | | | | | | | | | | | | | | | | Instead of storing all block width, height and depths in their shifted form: block_width = 1U << block_shift; Store them like they are provided by the emulated hardware (their block_shift form). This way we can avoid doing the costly Common::AlignUp operation to align texture sizes and drop CPU integer divisions with bitwise logic (defined in Common::AlignBits).
| * texture_cache: Change internal cache from lists to vectorsReinUsesLisp2019-06-211-6/+7
| |
| * Reduce amount of size calculations.Fernando Sahmkow2019-06-217-88/+86
| |
| * texture_cache: Correct premature texceptionsFernando Sahmkow2019-06-214-14/+51
| | | | | | | | | | | | | | | | | | | | | | | | Due to our current infrastructure, it is possible for a mipmap to be set on as a render target before a texception of that mipmap's superset be set afterwards. This is problematic as we rely on texture views to set up texceptions and protecting render targets targets for 3D texture rendering. One simple solution is to configure framebuffers after texture setup but this brings other problems. This solution, forces a reconfiguration of the framebuffers after such event happens.
| * texture_cache: Implement guest flushingFernando Sahmkow2019-06-213-10/+29
| |
| * Fixes to mipmap's process and reconstruct processFernando Sahmkow2019-06-212-3/+3
| |
| * surface_base: Add parenthesis to EmplaceOverview's predicateReinUsesLisp2019-06-211-3/+2
| |
| * Texture Cache: Implement Blitting and Fermi CopiesFernando Sahmkow2019-06-217-100/+93
| |
| * surface_view: Add constructor for ViewParamsReinUsesLisp2019-06-213-39/+23
| |
| * surface_base: Split BreakDown into layered and non-layered variantsReinUsesLisp2019-06-211-45/+48
| |
| * surface_base: Silence truncation warnings and minor renames and reorderingReinUsesLisp2019-06-212-32/+37
| |
| * copy_params: Use constructor instead of C-like initializationReinUsesLisp2019-06-213-47/+39
| |
| * Correct Mipmaps View method in Texture CacheFernando Sahmkow2019-06-213-32/+29
| |
| * Change texture_cache chaching from GPUAddr to CacheAddrFernando Sahmkow2019-06-217-101/+60
| | | | | | | | | | This also reverses the changes to make invalidation and flushing through the GPU address.
| * Corrections to Structural MatchingFernando Sahmkow2019-06-212-24/+53
| | | | | | | | | | The texture will now be reconstructed if the width only matches on GoB alignment.
| * Implement Texture Cache V2Fernando Sahmkow2019-06-216-381/+568
| |
| * Correct Surface Base and Views for new Texture CacheFernando Sahmkow2019-06-217-380/+466
| |
| * Add OGLTextureViewFernando Sahmkow2019-06-212-0/+43
| |
| * Deglobalize Memory Manager on texture cahe and Implement Invalidation and Flushing using GPUVAddrFernando Sahmkow2019-06-214-1/+20
| |
| * texture_cache: Remove execution context copies from the texture cacheReinUsesLisp2019-06-217-168/+59
| | | | | | | | | | This is done to simplify the OpenGL implementation, it is needed for Vulkan.
| * gl_texture_cache: Implement fermi copiesReinUsesLisp2019-06-215-2/+105
| |
| * texture_cache: Split texture cache into different filesReinUsesLisp2019-06-2112-876/+965
| |
| * texture_cache: Move staging buffer into a generic implementationReinUsesLisp2019-06-214-181/+211
| |
| * texture_cache: Flush 3D textures in the order they are drawnReinUsesLisp2019-06-215-19/+44
| |
| * gl_texture_cache: Minor changesReinUsesLisp2019-06-215-140/+185
| |
| * gl_texture_cache: Add copy from multiple overlaps into a single surfaceReinUsesLisp2019-06-213-6/+84
| |
| * gl_texture_cache: Attach surface textures instead of viewsReinUsesLisp2019-06-213-20/+32
| |
| * gl_texture_cache: Add fast copy pathReinUsesLisp2019-06-214-7/+60
| |
| * gl_texture_cache: Initial implementationReinUsesLisp2019-06-219-47/+809
| |
* | gl_shader_cache: Make CachedShader constructor privateZach Hilman2019-07-042-5/+5
| | | | | | | | Fixes missing review comments introduced.
* | Merge pull request #2563 from ReinUsesLisp/shader-initializersZach Hilman2019-07-042-52/+53
|\ \ | | | | | | gl_shader_cache: Use static constructors for CachedShader initialization
| * | gl_shader_cache: Use static constructors for CachedShader initializationReinUsesLisp2019-06-082-52/+53
| | |
* | | rasterizer_cache: Protect inherited caches from submission levelFernando Sahmkow2019-07-013-1/+5
| | |
* | | Merge pull request #2579 from ReinUsesLisp/fix-aoffi-testbunnei2019-06-211-1/+2
|\ \ \ | |_|/ |/| | gl_device: Fix TestVariableAoffi test
| * | gl_device: Fix TestVariableAoffi testReinUsesLisp2019-06-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test is intended to be invalid GLSL, but it was being invalid in two points instead of one. The intention is to use a non-immediate parameter in a textureOffset like function. The problem is that this shader was being compiled as a separable shader object and the text was writting to gl_Position without a redeclaration, being invalid GLSL. Address that issue by using a user-defined output attribute.
* | | Merge pull request #2591 from lioncash/recordbunnei2019-06-201-1/+0
|\ \ \ | | | | | | | | core: Remove unused CiTrace source files
| * | | core: Remove unused CiTrace source filesLioncash2019-06-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These source files have been unused for the entire lifecycle of the project. They're a hold-over from Citra and only add to the build time of the project, so they can be removed. There's also likely no way this would ever work in yuzu in its current form without revamping quite a bit of it, given how different the GPU on the Switch is compared to the 3DS.
* | | | Merge pull request #2562 from ReinUsesLisp/split-cbuf-uploadbunnei2019-06-186-56/+69
|\ \ \ \ | | | | | | | | | | video_core/engines: Move ConstBufferInfo out of Maxwell3D
| * | | | gl_rasterizer: Remove unused parameters in descriptor uploadsReinUsesLisp2019-06-082-8/+6
| | | | |
| * | | | video_core/engines: Move ConstBufferInfo out of Maxwell3DReinUsesLisp2019-06-086-49/+64
| | |_|/ | |/| |
* | | | Merge pull request #2538 from ReinUsesLisp/ssy-pbkZach Hilman2019-06-164-27/+78
|\ \ \ \ | |_|_|/ |/| | | shader: Split SSY and PBK stack
| * | | shader: Split SSY and PBK stackReinUsesLisp2019-06-074-27/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware testing revealed that SSY and PBK push to a different stack, allowing code like this: SSY label1; PBK label2; SYNC; label1: PBK; label2: EXIT;
* | | | Merge pull request #2572 from FernandoS27/gpu-membunnei2019-06-121-2/+2
|\ \ \ \ | |_|_|/ |/| | | GPUVM: Correct GPU VM virtual address space
| * | | GPUVM: Correct GPU VM virtual address spaceFernando Sahmkow2019-06-091-2/+2
| | |/ | |/|
* | | kepler_compute: Use std::array for cbuf infoReinUsesLisp2019-06-081-2/+3
| | |
* | | kepler_compute: Fix block_dim_x encodingReinUsesLisp2019-06-081-1/+1
|/ /
* | Merge pull request #2514 from ReinUsesLisp/opengl-compatZach Hilman2019-06-0716-223/+42
|\ \ | |/ |/| video_core: Drop OpenGL core in favor of OpenGL compatibility
| * gl_buffer_cache: Remove unused ReserveMemory methodReinUsesLisp2019-05-302-13/+0
| |
| * maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap modeReinUsesLisp2019-05-303-7/+4
| |
| * gl_rasterizer: Move alpha testing to the OpenGL pipelineReinUsesLisp2019-05-308-71/+33
| | | | | | | | Removes the alpha testing code from each fragment shader invocation.
| * gl_rasterizer: Use GL_QUADS to emulate quads renderingReinUsesLisp2019-05-306-132/+5
| |
* | shader/node: Minor changesReinUsesLisp2019-06-071-50/+54
| | | | | | | | | | | | | | Reflect std::shared_ptr nature of Node on initializers and remove constant members in nodes. Add some commentaries.
* | shader: Move Node declarations out of the shader IR headerReinUsesLisp2019-06-074-493/+518
| | | | | | | | | | | | Analysis passes do not have a good reason to depend on shader_ir.h to work on top of nodes. This splits node-related declarations to their own file and leaves the IR in shader_ir.h
* | shader: Use shared_ptr to store nodes and move initialization to fileReinUsesLisp2019-06-0635-248/+296
| | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #2520 from ReinUsesLisp/vulkan-refreshbunnei2019-06-064-88/+218
|\ \ | | | | | | vk_device,vk_shader_decompiler: Miscellaneous changes
| * | vk_device: Let formats array type be deducedReinUsesLisp2019-05-261-33/+33
| | |
| * | vk_shader_decompiler: Misc fixesReinUsesLisp2019-05-262-45/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix missing OpSelectionMerge instruction. This caused devices loses on most hardware, Intel didn't care. Fix [-1;1] -> [0;1] depth conversions. Conditionally use VK_EXT_scalar_block_layout. This allows us to use non-std140 layouts on UBOs. Update external Vulkan headers.
| * | vk_device: Enable features when available and misc changesReinUsesLisp2019-05-262-43/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keeps track of native ASTC support, VK_EXT_scalar_block_layout availability and SSBO range. Check for independentBlend and vertexPipelineStorageAndAtomics as a required feature. Always enable it. Use vk::to_string format to log Vulkan enums. Style changes.
* | | Merge pull request #2540 from ReinUsesLisp/remove-guest-positionbunnei2019-06-062-36/+21
|\ \ \ | | | | | | | | gl_shader_decompiler: Remove guest "position" varying
| * | | gl_shader_decompiler: Remove guest "position" varyingReinUsesLisp2019-06-032-36/+21
| | |/ | |/| | | | | | | | | | | | | | | | | | | "position" was being written but not read anywhere besides geometry shaders, where it had the same value as gl_Position. This commit replaces "position" with gl_Position, reducing the complexity of our code and the emitted GLSL code.
* | | Merge pull request #2512 from ReinUsesLisp/comp-indexingbunnei2019-06-063-3/+80
|\ \ \ | | | | | | | | gl_shader_decompiler: Pessimize uniform buffer access on AMD's prorpietary driver
| * | | gl_shader_decompiler: Use an if based cbuf indexing for broken driversReinUsesLisp2019-05-241-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following code is broken on AMD's proprietary GLSL compiler: ```glsl uint idx = ...; vec4 values = ...; float some_value = values[idx & 3]; ``` It index the wrong components, to fix this the following pessimized code is emitted when that bug is present: ```glsl uint idx = ...; vec4 values = ...; float some_value; if ((idx & 3) == 0) some_value = values.x; if ((idx & 3) == 1) some_value = values.y; if ((idx & 3) == 2) some_value = values.z; if ((idx & 3) == 3) some_value = values.w; ```
| * | | gl_device: Add test to detect broken component indexingReinUsesLisp2019-05-242-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Component indexing on AMD's proprietary driver is broken. This commit adds a test to detect when we are on a driver that can't successfully manage component indexing. It dispatches a dummy draw with just one vertex shader that writes to an indexed SSBO from the GPU with data sent through uniforms, it then reads that data from the CPU and compares the expected output.
* | | | Merge pull request #2545 from lioncash/timingZach Hilman2019-06-051-1/+1
|\ \ \ \ | | | | | | | | | | core/core_timing_util: Use std::chrono types for specifying time units
| * | | | core/core_timing_util: Use std::chrono types for specifying time unitsLioncash2019-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Makes the interface more type-safe and consistent in terms of return values.
* | | | | Merge pull request #2534 from ReinUsesLisp/shader-cleanupZach Hilman2019-06-052-31/+36
|\ \ \ \ \ | |/ / / / |/| | | | gl_shader_cache: Minor style changes
| * | | | gl_shader_cache: Store a system class and drop global accessorsReinUsesLisp2019-05-302-7/+9
| | | | |
| * | | | gl_shader_cache: Add commentaries explaining the intention in shaders creationReinUsesLisp2019-05-301-0/+2
| | | | |
| * | | | gl_shader_cache: Flip if condition in GetStageProgram to reduce indentationReinUsesLisp2019-05-301-25/+26
| | |/ / | |/| |
* / | | shader_bytecode: Mark EXIT as flow instructionFernando Sahmkow2019-06-041-1/+1
|/ / /
* | | Merge pull request #2446 from ReinUsesLisp/tidbunnei2019-05-294-22/+76
|\ \ \ | | | | | | | | shader: Implement S2R Tid{XYZ} and CtaId{XYZ}
| * | | shader: Implement S2R Tid{XYZ} and CtaId{XYZ}ReinUsesLisp2019-05-204-15/+69
| | | |
| * | | gl_shader_decompiler: Make GetSwizzle constexprReinUsesLisp2019-05-201-7/+7
| | | |
* | | | gl_device: Add commentary to AOFFI unit test source codeReinUsesLisp2019-05-271-0/+1
| | | | | | | | | | | | | | | | | | | | The intention behind this commit is to hint someone inspecting an apitrace dump to ignore this ill-formed GLSL code.
* | | | gl_shader_gen: Always declare extensions after the version declarationReinUsesLisp2019-05-272-7/+5
| |_|/ |/| | | | | | | | | | | This addresses a bug on geometry shaders where code was being written before all #extension declarations were done. Ref to #2523
* | | renderer_opengl/utils: Use a std::string_view with LabelGLObject()Lioncash2019-05-252-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses a std::string_view instead of a std::string, given the pointed to string isn't modified and is only used in a formatting operation. This is nice because a few usages directly supply a string literal to the function, allowing these usages to otherwise not heap allocate, unlike the std::string overloads. While we're at it, we can combine the address formatting into a single formatting call.
* | | Merge pull request #2358 from ReinUsesLisp/parallel-shaderbunnei2019-05-258-53/+113
|\ \ \ | | | | | | | | gl_shader_cache: Use shared contexts to build shaders in parallel at boot
| * | | gl_shader_cache: Fix clang strict standard build issuesReinUsesLisp2019-05-213-9/+13
| | | |
| * | | gl_shader_cache: Use shared contexts to build shaders in parallelReinUsesLisp2019-05-216-47/+103
| | | |
* | | | Merge pull request #2485 from ReinUsesLisp/generic-memorybunnei2019-05-253-35/+73
|\ \ \ \ | |_|_|/ |/| | | shader/memory: Implement generic memory stores and loads (ST and LD)
| * | | shader/memory: Implement ST (generic memory)ReinUsesLisp2019-05-212-21/+36
| | | |
| * | | shader/memory: Implement LD (generic memory)ReinUsesLisp2019-05-213-15/+38
| |/ /
* | | shader/shader_ir: Make Comment() take a std::string by valueLioncash2019-05-232-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for forming comment nodes without making unnecessary copies of the std::string instance. e.g. previously: Comment(fmt::format("Base address is c[0x{:x}][0x{:x}]", cbuf->GetIndex(), cbuf_offset)); Would result in a copy of the string being created, as CommentNode() takes a std::string by value (a const ref passed to a value parameter results in a copy). Now, only one instance of the string is ever moved around. (fmt::format returns a std::string, and since it's returned from a function by value, this is a prvalue (which can be treated like an rvalue), so it's moved into Comment's string parameter), we then move it into the CommentNode constructor, which then moves the string into its member variable).
* | | shader/decode/*: Add missing newline to files lacking themLioncash2019-05-2318-18/+18
| | | | | | | | | | | | Keeps the shader code file endings consistent.
* | | shader/decode/*: Eliminate indirect inclusionsLioncash2019-05-236-1/+5
| | | | | | | | | | | | | | | | | | | | | Amends cases where we were using things that were indirectly being satisfied through other headers. This way, if those headers change and eliminate dependencies on other headers in the future, we don't have cascading compilation errors.
* | | shader/decode/memory: Remove left in debug pragmaLioncash2019-05-221-2/+0
| | |
* | | renderer_opengl/gl_shader_decompiler: Remove redundant name specification in format stringLioncash2019-05-211-1/+1
|/ / | | | | | | This accidentally slipped through a rebase.
* | Merge pull request #2494 from lioncash/shader-textbunnei2019-05-211-181/+195
|\ \ | |/ |/| gl_shader_decompiler: Add AddLine() overloads with single function that forwards to libfmt
| * gl_shader_decompiler: Tidy up minor remaining cases of unnecessary std::string concatenationLioncash2019-05-201-21/+20
| |
| * gl_shader_decompiler: Replace individual overloads with the fmt-based oneLioncash2019-05-201-28/+16
| | | | | | | | | | | | | | | | | | | | Gets rid of the need to special-case brace handling depending on the overload used, and makes it consistent across the board with how fmt handles them. Strings with compile-time deducible strings are directly forwarded to std::string's constructor, so we don't need to worry about the performance difference here, as it'll be identical.
| * gl_shader_decompiler: Utilize fmt overload of AddLine() where applicableLioncash2019-05-201-136/+152
| |
| * gl_shader_decompiler: Add AddLine() overload that forwards to fmtLioncash2019-05-191-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a lot of places throughout the decompiler, string concatenation via operator+ is used quite heavily. This is usually fine, when not heavily used, but when used extensively, can be a problem. operator+ creates an entirely new heap allocated temporary string and given we perform expressions like: std::string thing = a + b + c + d; this ends up with a lot of unnecessary temporary strings being created and discarded, which kind of thrashes the heap more than we need to. Given we utilize fmt in some AddLine calls, we can make this a part of the ShaderWriter's API. We can make an overload that simply acts as a passthrough to fmt. This way, whenever things need to be appended to a string, the operation can be done via a single string formatting operation instead of discarding numerous temporary strings. This also has the benefit of making the strings themselves look nicer and makes it easier to spot errors in them.
* | Revert #2466Fernando Sahmkow2019-05-191-1/+3
|/ | | | | | This reverts a tested behavior on delay slots not exiting if the exit flag is set. Currently new tests are required in order to ensure this behavior.
* Merge pull request #2441 from ReinUsesLisp/al2pbunnei2019-05-1910-157/+310
|\ | | | | shader: Implement AL2P and ALD.PHYS
| * shader_ir/other: Implement IPA.IDXReinUsesLisp2019-05-032-5/+9
| |
| * gl_shader_decompiler: Skip physical unused attributesReinUsesLisp2019-05-031-18/+27
| |
| * shader_ir/memory: Assert on non-32 bits ALD.PHYSReinUsesLisp2019-05-031-0/+3
| |
| * shader: Add physical attributes commentariesReinUsesLisp2019-05-034-4/+8
| |
| * gl_shader_decompiler: Implement GLSL physical attributesReinUsesLisp2019-05-032-66/+101
| |
| * shader_ir/memory: Implement physical input attributesReinUsesLisp2019-05-034-6/+32
| |
| * gl_shader_decompiler: Abstract generic attribute operationsReinUsesLisp2019-05-031-29/+26
| |
| * gl_shader_decompiler: Declare all possible varyings on physical attribute usageReinUsesLisp2019-05-034-27/+88
| |
| * shader: Remove unused AbufNode Ipa modeReinUsesLisp2019-05-036-35/+14
| |
| * shader_ir/memory: Emit AL2P IRReinUsesLisp2019-05-032-0/+22
| |
| * shader_bytecode: Add AL2P decodingReinUsesLisp2019-05-031-2/+15
| |
* | Merge pull request #2491 from FernandoS27/dma-fixHexagon122019-05-191-0/+7
|\ \ | | | | | | Dma_pusher: ASSERT on empty command_list
| * | Dma_pusher: ASSERT on empty command_listFernando Sahmkow2019-05-191-0/+7
| | | | | | | | | | | | | | | This is a measure to avoid crashes on command list reading as an empty command_list is considered a NOP.
* | | Merge pull request #2452 from FernandoS27/raster-cache-fixHexagon122019-05-191-1/+2
|\ \ \ | | | | | | | | Correct possible error on Rasterizer Caches
| * | | Correct possible error on Rasterizer CachesFernando Sahmkow2019-05-071-1/+2
| | | | | | | | | | | | | | | | | | | | There was a weird bug that could happen if the object died directly and the cache address wasn't stored.
* | | | Merge pull request #2497 from lioncash/shader-irHexagon122019-05-193-32/+28
|\ \ \ \ | | | | | | | | | | shader/shader_ir: Minor changes
| * | | | shader/shader_ir: Remove unnecessary inline specifiersLioncash2019-05-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | constexpr internally links by default, so the inline specifier is unnecessary.
| * | | | shader/shader_ir: Simplify constructors for OperationNodeLioncash2019-05-191-15/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many of these constructors don't even need to be templated. The only ones that need to be templated are the ones that actually make use of the parameter pack. Even then, since std::vector accepts an initializer list, we can supply the parameter pack directly to it instead of creating our own copy of the list, then copying it again into the std::vector.
| * | | | shader/shader_ir: Remove unnecessary template parameter packs from Operation() overloads where applicableLioncash2019-05-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | These overloads don't actually make use of the parameter pack, so they can be turned into regular non-template function overloads.
| * | | | shader/shader_ir: Mark tracking functions as const member functionsLioncash2019-05-192-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | These don't actually modify instance state, so they can be marked as const member functions
| * | | | shader/shader_ir: Place implementations of constructor and destructor in cpp fileLioncash2019-05-192-5/+9
| | |/ / | |/| | | | | | | | | | | | | | | | | | Given the class contains quite a lot of non-trivial types, place the constructor and destructor within the cpp file to avoid inlining construction and destruction code everywhere the class is used.
* | | | Merge pull request #2495 from lioncash/cacheHexagon122019-05-192-34/+48
|\ \ \ \ | | | | | | | | | | gl_shader_disk_cache: Minor cleanup
| * | | | gl_shader_disk_cache: in-class initialize virtual file offset of ShaderDiskCacheOpenGLLioncash2019-05-192-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given the offset is assigned a fixed value in the constructor, we can just assign it directly and get rid of the need to write the name of the variable again in the constructor initializer list.
| * | | | gl_shader_disk_cache: Default ShaderDiskCacheOpenGL's destructor in the cpp fileLioncash2019-05-192-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given the disk shader cache contains non-trivial types, we should default it in the cpp file in order to prevent inlining of the complex destruction logic.
| * | | | gl_shader_disk_cache: Make hash specializations noexceptLioncash2019-05-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The standard library expects hash specializations that don't throw exceptions. Make this explicit in the type to allow selection of better code paths if possible in implementations.
| * | | | gl_shader_disk_cache: Remove redundant code string construction in LoadDecompiledEntry()Lioncash2019-05-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need to load the code into a vector and then construct a string over the data. We can just create a string with the necessary size ahead of time, and read the data directly into it, getting rid of an unnecessary heap allocation.
| * | | | gl_shader_disk_cache: Make variable non-const in decompiled entry caseLioncash2019-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | std::move does nothing when applied to a const variable. Resources can't be moved if the object is immutable. With this change, we don't end up making several unnecessary heap allocations and copies.
| * | | | gl_shader_disk_cache: Special-case boolean handlingLioncash2019-05-192-24/+37
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Booleans don't have a guaranteed size, but we still want to have them integrate into the disk cache system without needing to actually use a different type. We can do this by supplying non-template overloads for the bool type. Non-template overloads always have precedence during function resolution, so this is safe to provide. This gets rid of the need to smatter ternary conditionals, as well as the need to use u8 types to store the value in.
* | | | Merge pull request #2467 from lioncash/moveHexagon122019-05-191-6/+0
|\ \ \ \ | | | | | | | | | | video_core/gpu_thread: Remove redundant copy constructor for CommandDataContainer
| * | | | video_core/gpu_thread: Remove redundant copy constructor for CommandDataContainerLioncash2019-05-141-6/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | std::move within a copy constructor (on a data member that isn't mutable) will always result in a copy. Because of that, the behavior of this copy constructor is identical to the one that would be generated automatically by the compiler, so we can remove it.
* | | | Merge pull request #2466 from yuzu-emu/mme-exit-delay-slotHexagon122019-05-191-3/+3
|\ \ \ \ | | | | | | | | | | GPU/MMEInterpreter: Ignore the 'exit' flag when it's executed inside a delay slot.
| * | | | GPU/MMEInterpreter: Ignore the 'exit' flag when it's executed inside a delay slot.Sebastian Valle2019-05-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | It seems instructions marked with the 'exit' flag will not cause an exit when executed within a delay slot. This was hwtested by fincs.
* | | | | Merge pull request #2468 from lioncash/deductionHexagon122019-05-192-2/+2
|\ \ \ \ \ | | | | | | | | | | | | yuzu: Remove explicit types from locks where applicable
| * | | | | yuzu: Remove explicit types from locks where applicableLioncash2019-05-142-2/+2
| | |/ / / | |/| | | | | | | | | | | | | | | | | | With C++17's deduction guides, the type doesn't need to be explicitly specified within locking primitives anymore.
* | | | | Merge pull request #2472 from FernandoS27/ticHexagon122019-05-191-1/+1
|\ \ \ \ \ | | | | | | | | | | | | maxwell_3d: reduce severity of different component formats assert.
| * | | | | maxwell_3d: reduce sevirity of different component formats assert.Fernando Sahmkow2019-05-141-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.
* | | | | Merge pull request #2469 from lioncash/copyableHexagon122019-05-191-0/+2
|\ \ \ \ \ | | | | | | | | | | | | video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for Regs
| * | | | | video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for RegsLioncash2019-05-141-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.
* | | | | Merge pull request #2470 from lioncash/ranged-forSebastian Valle2019-05-191-18/+18
|\ \ \ \ \ | | | | | | | | | | | | video_core/engines/maxwell_3d: Simplify for loops into ranged for loops within InitializeRegisterDefaults()
| * | | | | video_core/engines/maxwell3d: Get rid of three magic values in CallMethod()Lioncash2019-05-141-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()Lioncash2019-05-141-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.
* | | | | Merge pull request #2480 from ReinUsesLisp/fix-quadsHexagon122019-05-191-2/+2
|\ \ \ \ \ | | | | | | | | | | | | gl_rasterizer: Pass the right number of array quad vertices count
| * | | | | gl_rasterizer: Pass the right number of array quad vertices countReinUsesLisp2019-05-171-2/+2
| |/ / / /
* | | | | Merge pull request #2483 from ReinUsesLisp/fix-point-sizeHexagon122019-05-191-1/+3
|\ \ \ \ \ | | | | | | | | | | | | gl_rasterizer: Limit OpenGL point size to a minimum of 1
| * | | | | gl_rasterizer: Limit OpenGL point size to a minimum of 1ReinUsesLisp2019-05-181-1/+3
| |/ / / /
* | | | | Merge pull request #2471 from lioncash/engine-uploadSebastian Valle2019-05-192-6/+8
|\ \ \ \ \ | | | | | | | | | | | | video_core/engines/engine_upload: Minor tidying
| * | | | | video_core/engines/engine_upload: Amend constructor initializer list orderLioncash2019-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Silences a -Wreorder warning.
| * | | | | video_core/engines/engine_upload: Default destructor in the cpp fileLioncash2019-05-142-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids inlining destruction logic where applicable, and also makes forward declarations not cause unexpected compilation errors depending on where the State class is used.
| * | | | | video_core/engines/engine_upload: Remove unnecessary const on parameters in function declarationsLioncash2019-05-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These only apply in the definition of the function. They can be omitted from the declaration.
| * | | | | video_core/engines/engine_upload: Remove unnecessary includesLioncash2019-05-142-2/+2
| |/ / / /
* | | | | Merge pull request #2484 from ReinUsesLisp/triangle-fanSebastian Valle2019-05-191-0/+2
|\ \ \ \ \ | | | | | | | | | | | | maxwell_to_gl: Add TriangleFan primitive topology
| * | | | | maxwell_to_gl: Add TriangleFan primitive topologyReinUsesLisp2019-05-181-0/+2
| |/ / / /
* / / / / gl_shader_gen: std::move objects where applicableLioncash2019-05-191-7/+7
|/ / / / | | | | | | | | | | | | | | | | | | | | Avoids performing copies into the pair being returned. Instead, we can just move the resources into the pair, avoiding the need to make copies of both the std::string and ShaderEntries struct.
* | | | Merge pull request #2462 from lioncash/video-mmMat M2019-05-142-17/+20
|\ \ \ \ | | | | | | | | | | video_core/memory_manager: Minor tidying
| * | | | video_core/memory_manager: Mark IsBlockContinuous() as a const member functionLioncash2019-05-102-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Corrects the typo in its name and marks the function as a const member function, given it doesn't actually modify memory manager state.
| * | | | video_core/memory_manager: Mark the constructor as explicitLioncash2019-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | Prevents implicit converting constructions of the memory manager.
| * | | | video_core/memory_manager: Default the destructor within the cpp fileLioncash2019-05-102-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes the class less surprising when it comes to forward declaring the type, and also prevents inlining the destruction code of the class, given it contains non-trivial types.
| * | | | video_core/memory_manager: Amend doxygen commentsLioncash2019-05-101-7/+7
| | | | | | | | | | | | | | | | | | | | Corrects references to non-existent parameters and corrects typos.
| * | | | video_core/memory_manager: Remove superfluous const from function declarationsLioncash2019-05-101-7/+7
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are able to be omitted from the declaration of functions, since they don't do anything at the type system level. The definitions of the functions can retain the use of const though, since they make the variables immutable in the implementation of the function where they're used.
* | | | Merge pull request #2461 from lioncash/unused-varMat M2019-05-147-22/+4
|\ \ \ \ | | | | | | | | | | video_core: Remove a few unused variables and functions
| * | | | video_core/renderer_opengl/gl_shader_cache: Correct member initialization orderLioncash2019-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | Silences a -Wreorder warning.
| * | | | video_core/shader/decode/texture: Remove unused variable from GetTld4Code()Lioncash2019-05-101-1/+0
| | | | |
| * | | | renderer_vulkan/vk_shader_decompiler: Remove unused variable from DeclareInternalFlags()Lioncash2019-05-101-1/+0
| | | | |
| * | | | video_core/renderer_opengl/gl_shader_decompiler: Remove unused Composite() functionLioncash2019-05-101-11/+0
| | | | | | | | | | | | | | | | | | | | This isn't used at all, so it can be removed.
| * | | | video_core/renderer_opengl/gl_rasterizer_cache: Remove unused variable in UploadGLMipmapTexture()Lioncash2019-05-101-1/+0
| | | | | | | | | | | | | | | | | | | | This variable is unused entirely, so it can be removed.
| * | | | video_core/gpu_thread: Remove unused local variableLioncash2019-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of retrieving the data from the std::variant instance, we can just check if the variant contains that type of data. This is essentially the same behavior, only it returns a bool indicating whether or not the type in the variant is currently active, instead of actually retrieving the data.
| * | | | video_core/textures/astc: Remove unused variablesLioncash2019-05-101-6/+2
| |/ / / | | | | | | | | | | | | Silences a few compilation warnings.
* | | | Merge pull request #2413 from FernandoS27/opt-gpuRodrigo Locatti2019-05-147-33/+54
|\ \ \ \ | |/ / / |/| | | Rasterizer Cache: refactor flushing & optimize memory usage of surfaces
| * | | Rasterizer Cache: Use a temporal storage for Surfaces loading/flushing.Fernando Sahmkow2019-04-214-18/+30
| | | | | | | | | | | | | | | | | | | | This PR should heavily reduce memory usage since temporal buffers are no longer stored per Surface but instead managed by the Rasterizer Cache.
| * | | RasterizerCache Redesign: Flush Fernando Sahmkow2019-04-206-17/+26
| | | | | | | | | | | | | | | | | | | | | | | | flushing is now responsability of children caches instead of the cache object. This change will allow the specific cache to pass extra parameters on flushing and will allow more flexibility.
* | | | Merge pull request #2442 from FernandoS27/astc-fixbunnei2019-05-091-1/+3
|\ \ \ \ | | | | | | | | | | Fix Layered ASTC Textures
| * | | | Fix Layered ASTC TexturesFernando Sahmkow2019-05-011-1/+3
| | |_|/ | |/| | | | | | | | | | By adding the missing layer offset in ASTC compression.
* | | | Merge pull request #2443 from ReinUsesLisp/skip-repeated-variantsbunnei2019-05-091-1/+4
|\ \ \ \ | | | | | | | | | | gl_shader_disk_cache: Skip stored shader variants instead of asserting
| * | | | gl_shader_disk_cache: Skip stored shader variants instead of assertingReinUsesLisp2019-05-011-1/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Instead of asserting on already stored shader variants, silently skip them. This shouldn't be happening but when a shader is invalidated and it is not stored in the shader cache, this assert would hit and save that shader anyways when the asserts are disabled.
* | | | Merge pull request #2429 from FernandoS27/computebunnei2019-05-0913-142/+483
|\ \ \ \ | |_|_|/ |/| | | Corrections and Implementation on GPU Engines
| * | | Refactors and name corrections.Fernando Sahmkow2019-05-016-35/+35
| | | |
| * | | Fixes and Corrections to DMA EngineFernando Sahmkow2019-04-232-37/+57
| | | |
| * | | Add Swizzle Parameters to the DMA engineFernando Sahmkow2019-04-232-2/+27
| | | |
| * | | Add Documentation Headers to all the GPU EnginesFernando Sahmkow2019-04-235-0/+29
| | | |
| * | | Corrections and stylingFernando Sahmkow2019-04-235-6/+9
| | | |
| * | | Implement Maxwell3D Data UploadFernando Sahmkow2019-04-232-3/+32
| | | |
| * | | Introduce skeleton of the GPU Compute Engine.Fernando Sahmkow2019-04-233-8/+202
| | | |
| * | | Revamp Kepler Memory to use a subegine to manage uploadsFernando Sahmkow2019-04-236-93/+134
| | | |
* | | | shader/decode/texture: Remove unused variableLioncash2019-05-041-1/+0
| | | | | | | | | | | | | | | | This isn't used anywhere, so we can get rid of it.
* | | | gl_rasterizer: Silence unused variable warningLioncash2019-05-041-2/+2
| |/ / |/| | | | | | | | Makes use of src, so it's not considered unused.
* | | Merge pull request #2100 from FreddyFunk/disk-cache-precompiled-filebunnei2019-05-013-133/+170
|\ \ \ | | | | | | | | gl_shader_disk_cache: Improve precompiled shader cache generation speed and size
| * | | Re added new lines at the end of filesFreddyFunk2019-04-232-2/+2
| | | |
| * | | gl_shader_disk_cache: Compress precompiled shader cache file with Zstandardunknown2019-04-231-6/+10
| | | |
| * | | gl_shader_disk_cache: Use VectorVfsFile for the virtual precompiled shader cache fileunknown2019-04-233-101/+168
| | | |
| * | | gl_shader_disk_cache: Remove per shader compressionunknown2019-04-232-45/+11
| | | |
* | | | Merge pull request #2435 from ReinUsesLisp/misc-vcbunnei2019-04-292-3/+4
|\ \ \ \ | | | | | | | | | | shader_ir: Miscellaneous fixes
| * | | | shader_ir: Move Sampler index entry in operand< to sort declarationsReinUsesLisp2019-04-261-2/+2
| | | | |
| * | | | shader_ir: Add missing entry to Sampler operand< comparisonReinUsesLisp2019-04-261-2/+3
| | | | |
| * | | | shader_ir/texture: Fix sampler const buffer key shiftReinUsesLisp2019-04-261-1/+1
| |/ / /
* | | | Merge pull request #2322 from ReinUsesLisp/wswitchbunnei2019-04-2910-77/+106
|\ \ \ \ | | | | | | | | | | video_core: Silent -Wswitch warnings
| * | | | video_core: Silent -Wswitch warningsReinUsesLisp2019-04-1810-77/+106
| | | | |
* | | | | Merge pull request #2423 from FernandoS27/half-correctbunnei2019-04-292-15/+16
|\ \ \ \ \ | |_|/ / / |/| | | | Corrections on Half Float operations: HADD2 HMUL2 and HFMA2
| * | | | Corrections Half Float operations on const buffers and implement saturation.Fernando Sahmkow2019-04-212-15/+16
| | | | |
* | | | | Merge pull request #2422 from ReinUsesLisp/fixup-samplersHexagon122019-04-231-3/+5
|\ \ \ \ \ | | | | | | | | | | | | gl_state: Fix samplers memory corruption
| * | | | | gl_state: Fix samplers memory corruptionReinUsesLisp2019-04-191-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was possible for "samplers" to be read without being written. This addresses that.
* | | | | | Merge pull request #2425 from FernandoS27/y-directionHexagon122019-04-231-0/+3
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix flipping on some games by applying Y direction register
| * | | | | | Apply Position Y DirectionFernando Sahmkow2019-04-201-0/+3
| | |_|_|_|/ | |/| | | |
* | | | | | Merge pull request #2383 from ReinUsesLisp/aoffi-testbunnei2019-04-2311-75/+163
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | gl_shader_decompiler: Disable variable AOFFI on unsupported devices
| * | | | | gl_shader_decompiler: Use variable AOFFI on supported hardwareReinUsesLisp2019-04-1410-71/+102
| | | | | |
| * | | | | gl_device: Implement interface and add uniform offset alignmentReinUsesLisp2019-04-105-13/+70
| | | | | |
* | | | | | Merge pull request #2403 from FernandoS27/compressed-linearbunnei2019-04-221-2/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | Support compressed formats on linear textures.
| * | | | | | Support compressed formats on linear textures.Fernando Sahmkow2019-04-151-2/+5
| | |_|_|_|/ | |/| | | |
* | | | | | Merge pull request #2411 from FernandoS27/unsafe-gpubunnei2019-04-225-15/+99
|\ \ \ \ \ \ | | | | | | | | | | | | | | GPU Manager: Implement ReadBlockUnsafe and WriteBlockUnsafe
| * | | | | | make ReadBlockunsafe and WriteBlockunsafe, ignore invalid pages.Fernando Sahmkow2019-04-201-4/+12
| | | | | | |
| * | | | | | Implement IsBlockContinousFernando Sahmkow2019-04-172-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This detects when a GPU Memory Block is not continous within host cpu memory.
| * | | | | | Use ReadBlockUnsafe for fetyching DMA CommandListsFernando Sahmkow2019-04-162-4/+2
| | | | | | |
| * | | | | | Document unsafe versions and add BlockCopyUnsafeFernando Sahmkow2019-04-163-16/+45
| | | | | | |
| * | | | | | Use ReadBlockUnsafe for Shader CacheFernando Sahmkow2019-04-161-5/+7
| | | | | | |
| * | | | | | Use ReadBlockUnsafe on TIC and TSC readingFernando Sahmkow2019-04-162-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use ReadBlockUnsafe on TIC and TSC reading as memory is never flushed from host GPU there.
| * | | | | | GPU MemoryManager: Implement ReadBlockUnsafe and WriteBlockUnsafeFernando Sahmkow2019-04-162-0/+34
| |/ / / / /
* | | | | | Merge pull request #2400 from FernandoS27/corret-kepler-membunnei2019-04-224-17/+81
|\ \ \ \ \ \ | | | | | | | | | | | | | | Implement Kepler Memory on both Linear and BlockLinear.
| * | | | | | Apply Const correctness to SwizzleKepler and replace u32 for size_t on iterators.Fernando Sahmkow2019-04-162-9/+12
| | | | | | |
| * | | | | | Use WriteBlock and ReadBlock.Fernando Sahmkow2019-04-161-10/+6
| | | | | | |
| * | | | | | Implement Block Linear copies in Kepler Memory.Fernando Sahmkow2019-04-163-5/+38
| | | | | | |
| * | | | | | Correct Kepler Memory on Linear Pushes.Fernando Sahmkow2019-04-152-16/+48
| |/ / / / /
* | | | | | Merge pull request #2407 from FernandoS27/f2fbunnei2019-04-202-23/+73
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | Do some corrections in conversion shader instructions.
| * | | | | Do some corrections in conversion shader instructions.Fernando Sahmkow2019-04-162-23/+73
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Corrects encodings for I2F, F2F, I2I and F2I Implements Immediate variants of all four conversion types. Add assertions to unimplemented stuffs.
* | | | | Merge pull request #2409 from ReinUsesLisp/half-floatsbunnei2019-04-209-136/+181
|\ \ \ \ \ | |_|_|/ / |/| | | | shader_ir/decode: Miscellaneous fixes to half-float decompilation
| * | | | vk_shader_decompiler: Add missing operationsReinUsesLisp2019-04-161-0/+7
| | | | |
| * | | | shader_ir/decode: Fix half float pre-operations and remove MetaHalfArithmeticReinUsesLisp2019-04-169-85/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Operations done before the main half float operation (like HAdd) were managing a packed value instead of the unpacked one. Adding an unpacked operation allows us to drop the per-operand MetaHalfArithmetic entry, simplifying the code overall.
| * | | | gl_shader_decompiler: Fix MrgH0 decompilationReinUsesLisp2019-04-161-2/+2
| | | | | | | | | | | | | | | | | | | | GLSL decompilation for HMergeH0 was wrong. This addresses that issue.
| * | | | shader_ir/decode: Implement half float saturationReinUsesLisp2019-04-165-8/+31
| | | | |
| * | | | shader_ir/decode: Reduce severity of unimplemented half-float FTZReinUsesLisp2019-04-163-3/+9
| | | | |
| * | | | renderer_opengl: Implement half float NaN comparisonsReinUsesLisp2019-04-163-36/+59
| | | | |
| * | | | shader_ir: Avoid using static on heap-allocated objectsReinUsesLisp2019-04-161-5/+4
| |/ / / | | | | | | | | | | | | | | | | Using static here might be faster at runtime, but it adds a heap allocation called before main.
* | | | Merge pull request #2374 from lioncash/pagetablebunnei2019-04-209-14/+47
|\ \ \ \ | |_|_|/ |/| | | core: Reorganize boot order
| * | | video_core/gpu: Create threads separately from initializationLioncash2019-04-129-14/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Like with CPU emulation, we generally don't want to fire off the threads immediately after the relevant classes are initialized, we want to do this after all necessary data is done loading first. This splits the thread creation into its own interface member function to allow controlling when these threads in particular get created.
* | | | Merge pull request #2318 from ReinUsesLisp/sampler-cachebunnei2019-04-189-181/+183
|\ \ \ \ | | | | | | | | | | gl_sampler_cache: Port sampler cache to OpenGL
| * | | | gl_sampler_cache: Port sampler cache to OpenGLReinUsesLisp2019-04-025-123/+82
| | | | |
| * | | | video_core: Abstract vk_sampler_cache into a templated classReinUsesLisp2019-04-025-58/+101
| | | | |
* | | | | Merge pull request #2348 from FernandoS27/guest-bindlessbunnei2019-04-188-44/+217
|\ \ \ \ \ | | | | | | | | | | | | Implement Bindless Textures on Shader Decompiler and GL backend
| * | | | | Adapt Bindless to work with AOFFIFernando Sahmkow2019-04-081-7/+18
| | | | | |
| * | | | | Move ConstBufferAccessor to Maxwell3d, correct mistakes and clang format.Fernando Sahmkow2019-04-089-44/+25
| | | | | |
| * | | | | Fix bad rebaseFernando Sahmkow2019-04-081-2/+1
| | | | | |
| * | | | | Fix TMMLFernando Sahmkow2019-04-081-5/+7
| | | | | |
| * | | | | Simplify ConstBufferAccessorFernando Sahmkow2019-04-085-53/+22
| | | | | |
| * | | | | Refactor GetTextureCode and GetTexCode to use an optional instead of optional parametersFernando Sahmkow2019-04-082-34/+33
| | | | | |
| * | | | | Implement TXQ_BFernando Sahmkow2019-04-082-2/+10
| | | | | |
| * | | | | Implement TMML_BFernando Sahmkow2019-04-081-5/+10
| | | | | |
| * | | | | Corrections to TEX_BFernando Sahmkow2019-04-082-4/+37
| | | | | |
| * | | | | Fixes to Const Buffer Accessor and FormattingFernando Sahmkow2019-04-083-10/+10
| | | | | |
| * | | | | Implement Bindless Handling on SetupTextureFernando Sahmkow2019-04-084-18/+34
| | | | | |
| * | | | | Unify both sampler types.Fernando Sahmkow2019-04-084-22/+48
| | | | | |
| * | | | | Implement Bindless Samplers and TEX_B in the IR.Fernando Sahmkow2019-04-084-16/+77
| | | | | |
| * | | | | Implement Const Buffer AccessorFernando Sahmkow2019-04-085-2/+65
| | | | | |
* | | | | | Merge pull request #2315 from ReinUsesLisp/severity-decompilerbunnei2019-04-172-5/+20
|\ \ \ \ \ \ | | | | | | | | | | | | | | shader_ir/decode: Reduce the severity of common assertions
| * | | | | | shader_ir/memory: Reduce severity of LD_L cache management and log itReinUsesLisp2019-04-032-2/+9
| | | | | | |
| * | | | | | shader_ir/memory: Reduce severity of ST_L cache management and log itReinUsesLisp2019-04-032-3/+11
| | | | | | |
* | | | | | | Merge pull request #2384 from ReinUsesLisp/gl-state-clearbunnei2019-04-171-4/+4
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | gl_rasterizer: Apply just the needed state on Clear
| * | | | | | | gl_rasterizer: Apply just the needed state on ClearReinUsesLisp2019-04-101-4/+4
| | |_|_|_|_|/ | |/| | | | |
* | | | | | | Merge pull request #2092 from ReinUsesLisp/stgbunnei2019-04-1711-89/+186
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | shader/memory: Implement STG and global memory flushing
| * | | | | | | shader_ir: Implement STG, keep track of global memory usage and flushReinUsesLisp2019-04-1411-89/+186
| | |_|_|_|_|/ | |/| | | | |
* / | | | | | Correct Pitch in Fermi2DFernando Sahmkow2019-04-151-4/+1
|/ / / / / /
* | | | | | Merge pull request #2373 from FernandoS27/z32bunnei2019-04-142-2/+19
|\ \ \ \ \ \ | | | | | | | | | | | | | | Set Pixel Format to Z32 if its R32F and depth compare enabled, and Implement format ZF32_X24S8
| * | | | | | Implement Texture Format ZF32_X24S8.Fernando Sahmkow2019-04-091-0/+2
| | | | | | |
| * | | | | | Correct depth compare with color formats for R32FFernando Sahmkow2019-04-091-2/+17
| | |_|/ / / | |/| | | |
* | | | | | Merge pull request #2386 from ReinUsesLisp/shader-managerbunnei2019-04-142-34/+61
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | gl_shader_manager: Move code to source file and minor clean up
| * | | | | gl_shader_manager: Move code to source file and minor clean upReinUsesLisp2019-04-112-34/+61
| | |/ / / | |/| | |
* | | | | Merge pull request #2235 from ReinUsesLisp/spirv-decompilerbunnei2019-04-123-1/+1465
|\ \ \ \ \ | | | | | | | | | | | | vk_shader_decompiler: Implement a SPIR-V decompiler
| * | | | | vk_shader_decompiler: Implement flow primitivesReinUsesLisp2019-04-101-5/+82
| | | | | |
| * | | | | vk_shader_decompiler: Implement most common texture primitivesReinUsesLisp2019-04-101-8/+65
| | | | | |
| * | | | | vk_shader_decompiler: Implement texture decompilation helper functionsReinUsesLisp2019-04-101-0/+32
| | | | | |
| * | | | | vk_shader_decompiler: Implement Assign and LogicalAssignReinUsesLisp2019-04-101-2/+64
| | | | | |
| * | | | | vk_shader_decompiler: Implement non-OperationCode visitsReinUsesLisp2019-04-101-7/+129
| | | | | |
| * | | | | vk_shader_decompiler: Implement OperationCode decompilation interfaceReinUsesLisp2019-04-101-1/+411
| | | | | |
| * | | | | vk_shader_decompiler: Implement VisitReinUsesLisp2019-04-101-1/+50
| | | | | |
| * | | | | vk_shader_decompiler: Implement labels tree and flowReinUsesLisp2019-04-101-0/+71
| | | | | |
| * | | | | vk_shader_decompiler: Implement declarationsReinUsesLisp2019-04-101-3/+457
| | | | | |
| * | | | | vk_shader_decompiler: Declare and stub interface for a SPIR-V decompilerReinUsesLisp2019-04-103-0/+127
| | | | | |
| * | | | | video_core: Add sirit as optional dependency with VulkanReinUsesLisp2019-04-101-1/+4
| |/ / / / | | | | | | | | | | | | | | | sirit is a runtime assembler for SPIR-V
* | | | | gl_rasterizer_cache: Relax restrictions on FastCopySurface and FastLayeredCopySurfaceFernando Sahmkow2019-04-111-4/+10
| | | | |
* | | | | Merge pull request #2278 from ReinUsesLisp/vc-texture-cachebunnei2019-04-113-0/+974
|\ \ \ \ \ | | | | | | | | | | | | video_core: Implement API agnostic view based texture cache
| * | | | | video_core: Implement API agnostic view based texture cacheReinUsesLisp2019-03-223-0/+974
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Merge pull request #2372 from FernandoS27/fermi-fixbunnei2019-04-111-0/+4
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | Correct Fermi Copy on Linear Textures.
| * | | | | Correct Fermi Copy on Linear Textures.Fernando Sahmkow2019-04-091-0/+4
| | |/ / / | |/| | |
* | | | | Merge pull request #2345 from ReinUsesLisp/multibindbunnei2019-04-104-30/+69
|\ \ \ \ \ | | | | | | | | | | | | gl_rasterizer: Use ARB_multi_bind to update buffers with a single call per drawcall
| * | | | | renderer_opengl/utils: Skip empty bindsReinUsesLisp2019-04-061-0/+3
| | | | | |
| * | | | | gl_rasterizer: Use ARB_multi_bind to update SSBOsReinUsesLisp2019-04-062-9/+9
| | | | | |
| * | | | | gl_rasterizer: Use ARB_multi_bind to update UBOs across stagesReinUsesLisp2019-04-064-22/+58
| | | | | |
* | | | | | Merge pull request #2375 from FernandoS27/fix-ldcbunnei2019-04-101-2/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | Remove unnecessary bounding in LD_C
| * | | | | | Remove bounding in LD_CFernando Sahmkow2019-04-101-2/+1
| | |/ / / / | |/| | | |
* | | | | | Merge pull request #2354 from lioncash/headerbunnei2019-04-108-3/+10
|\ \ \ \ \ \ | | | | | | | | | | | | | | video_core/texures/texture: Remove unnecessary includes
| * | | | | | video_core/textures/convert: Replace include with a forward declarationLioncash2019-04-062-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids dragging in a direct dependency in a header.
| * | | | | | video_core/texures/texture: Remove unnecessary includesLioncash2019-04-066-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nothing in this header relies on common_funcs or the memory manager. This gets rid of reliance on indirect inclusions in the OpenGL caches.
* | | | | | | Merge pull request #2366 from FernandoS27/xmad-fixbunnei2019-04-102-9/+33
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Correct XMAD mode, psl and high_b on different encodings.
| * | | | | | | Correct XMAD mode, psl and high_b on different encodings.Fernando Sahmkow2019-04-082-9/+33
| | |/ / / / / | |/| | | | |
* | | | | | | Merge pull request #2369 from FernandoS27/mip-alignbunnei2019-04-092-4/+12
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | gl_backend: Align Pixel Storage
| * | | | | | | gl_backend: Align Pixel StorageFernando Sahmkow2019-04-082-4/+12
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes sure GL reads on the correct pack size for the respective texture buffer.
* / / / / / / Correct LOP_IMN encodingFernando Sahmkow2019-04-081-1/+1
|/ / / / / /
* | | | | | Merge pull request #2300 from FernandoS27/null-shaderbunnei2019-04-071-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | shader_cache: Permit a Null Shader in case of a bad host_ptr.
| * | | | | | Permit a Null Shader in case of a bad host_ptr.Fernando Sahmkow2019-04-071-0/+4
| | | | | | |
* | | | | | | Merge pull request #2355 from ReinUsesLisp/sync-pointbunnei2019-04-071-2/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | maxwell_3d: Reduce severity of ProcessSyncPoint
| * | | | | | | maxwell_3d: Reduce severity of ProcessSyncPointReinUsesLisp2019-04-061-2/+2
| | |/ / / / / | |/| | | | |
* | | | | | | Merge pull request #2306 from ReinUsesLisp/aoffibunnei2019-04-074-71/+205
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | shader_ir: Implement AOFFI for TEX and TLD4
| * | | | | | | gl_shader_decompiler: Hide local definitions inside an anonymous namespaceReinUsesLisp2019-03-311-6/+8
| | | | | | | |
| * | | | | | | shader_ir/decode: Silent implicit sign conversion warningMat M2019-03-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
| * | | | | | | gl_shader_decompiler: Add AOFFI backing implementationReinUsesLisp2019-03-301-38/+85
| | | | | | | |
| * | | | | | | shader_ir/decode: Implement AOFFI for TEX and TLD4ReinUsesLisp2019-03-302-27/+94
| | | | | | | |
| * | | | | | | shader_ir: Implement immediate register trackingReinUsesLisp2019-03-302-1/+19
| | | | | | | |
* | | | | | | | Merge pull request #2321 from ReinUsesLisp/gl-state-reworkbunnei2019-04-073-339/+324
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | gl_state: Rework to enable individual applies
| * | | | | | | | gl_state: Rework to enable individual appliesReinUsesLisp2019-04-043-339/+324
| | |_|_|_|_|/ / | |/| | | | | |
* | | | | | | | Merge pull request #2098 from FreddyFunk/disk-cache-zstdbunnei2019-04-071-6/+6
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | gl_shader_disk_cache: Use Zstandard for compression
| * | | | | | | | common/zstd_compression: simplify decompression interfaceunknown2019-03-291-3/+2
| | | | | | | | |
| * | | | | | | | gl_shader_disk_cache: Fixup clang formatunknown2019-03-291-2/+3
| | | | | | | | |
| * | | | | | | | gl_shader_disk_cache: Use Zstandard for compressionunknown2019-03-291-6/+6
| | | | | | | | |
* | | | | | | | | Merge pull request #2352 from bunnei/mem-manager-fixesbunnei2019-04-073-12/+84
|\ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / |/| | | | | | | | memory_manager: Improved implementation of read/write/copy block.
| * | | | | | | | memory_manager: Improved implementation of read/write/copy block.bunnei2019-04-063-12/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fixes graphical issues with Chocobo's Mystery Dungeon EVERY BUDDY! - Fixes a crash with Mario Tennis Aces
* | | | | | | | | Merge pull request #2317 from FernandoS27/syncbunnei2019-04-062-1/+27
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Implement SyncPoint Register in the GPU.
| * | | | | | | | | Implement SyncPoint Register in the GPU.Fernando Sahmkow2019-04-062-1/+27
| | |_|_|/ / / / / | |/| | | | | | |
* | | | | | | | | Merge pull request #2346 from lioncash/headerbunnei2019-04-0610-22/+39
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | video_core/engines: Remove unnecessary inclusions where applicable
| * | | | | | | | video_core/engines: Make memory manager members privateLioncash2019-04-069-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These aren't used externally by anything, so they can be made private data members.
| * | | | | | | | video_core/engines: Remove unnecessary inclusions where applicableLioncash2019-04-0610-9/+25
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | Merge pull request #2350 from lioncash/vmembunnei2019-04-062-22/+38
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | video_core/memory_manager: Mark a few member functions with the const qualifier
| * | | | | | | | video_core/memory_manager: Make Read() a const qualified member functionLioncash2019-04-062-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given this doesn't actually alter internal state, this can be made a const member function.
| * | | | | | | | video_core/memory_manager: Make ReadBlock() a const qualifier member functionLioncash2019-04-062-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, since we have a const qualified variant of GetPointer(), we can put it to use in ReadBlock() to retrieve the source pointer that is passed into memcpy. Now block reading may be done from a const context.
| * | | | | | | | video_core/memory_manager: Add a const qualified variant of GetPointer()Lioncash2019-04-062-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows retrieving read-only pointers from a const context externally.
| * | | | | | | | video_core/memory_manager: Make FindFreeRegion() a const member functionLioncash2019-04-062-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't modify internal state, so it can be made a const member function.
| * | | | | | | | video_core/memory_manager: Make GpuToCpuAddress() a const member functionLioncash2019-04-062-3/+3
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't modify any internal state, so it can be made a const member function to allow its use in const contexts.
* | | | | | | | Merge pull request #2347 from lioncash/truncbunnei2019-04-061-1/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | video_core/gpu_thread: Silence truncation warning in ThreadManager's constructor
| * | | | | | | | video_core/gpu_thread: Silence truncation warning in ThreadManager's constructorLioncash2019-04-061-1/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since c5d41fd812d7eb1a04f36b76c08fe971cee0868c callback parameters were changed to use an s64 to represent late cycles instead of an int, so this was causing a truncation warning to occur here. Changing it to s64 is sufficient to silence the warning.
* | | | | | | | Merge pull request #2327 from ReinUsesLisp/crash-safe-visitbunnei2019-04-061-1/+6
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | gl_shader_decompiler: Return early when an operation is invalid
| * | | | | | | | gl_shader_decompiler: Return early when an operation is invalidReinUsesLisp2019-04-031-1/+6
| | |_|_|/ / / / | |/| | | | | |
* | | | | | | | Merge pull request #2337 from lioncash/temporarybunnei2019-04-061-12/+12
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | gl_shader_decompiler: Rename GenerateTemporal() to GenerateTemporary()
| * | | | | | | | gl_shader_decompiler: Rename GenerateTemporal() to GenerateTemporary()Lioncash2019-04-051-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Temporal generally indicates a relation to time, but this is just creating a temporary, so this isn't really an accurate name for what the function is actually doing.
* | | | | | | | | video_core/macro_interpreter: Remove assertion within FetchParameter()Lioncash2019-04-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can just use .at(), which essentially does the same thing, but with less code.
* | | | | | | | | video_core/macro_interpreter: Simplify GetRegister()Lioncash2019-04-061-11/+6
| |_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given we already ensure nothing can set the zeroth register in SetRegister(), we don't need to check if the index is zero and special case it. We can just access the register normally, since it's already going to be zero. We can also replace the assertion with .at() to perform the equivalent behavior inline as part of the API.
* | | | | | | | Merge pull request #2282 from bunnei/gpu-asynch-v2bunnei2019-04-053-51/+65
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | gpu_thread: Improve synchronization by using CoreTiming.
| * | | | | | | | gpu_thread: Improve synchronization by using CoreTiming.bunnei2019-04-023-51/+65
| | |_|_|_|_|_|/ | |/| | | | | |
* | | | | | | | Merge pull request #2336 from ReinUsesLisp/txqbunnei2019-04-051-2/+3
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | gl_shader_decompiler: Fix TXQ types
| * | | | | | | | gl_shader_decompiler: Fix TXQ typesReinUsesLisp2019-04-051-2/+3
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TXQ returns integer types. Shaders usually do: R0 = TXQ(); // => int R0 = static_cast<float>(R0); If we don't treat it as an integer, it will cast a binary float value as float - resulting in a corrupted number.
* | | | | | | | video_core/renderer_opengl: Remove unnecessary includesLioncash2019-04-0413-24/+4
| |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Quite a few unused includes have built up over time, particularly on core/memory.h. Removing these includes means the source files including those files will no longer need to be rebuilt if they're changed, making compilation slightly faster in this scenario.
* | | | | | | Merge pull request #2093 from FreddyFunk/disk-cache-better-compressionbunnei2019-04-042-39/+9
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | Better LZ4 compression utilization for the disk based shader cache and the yuzu build system
| * | | | | | gl_shader_disk_cache: Use LZ4HC with compression level 9 instead of compression level 12 for less compression timeunknown2019-03-291-3/+3
| | | | | | |
| * | | | | | Addressed feedbackunknown2019-03-291-6/+6
| | | | | | |
| * | | | | | gl_shader_disk_cache: Use better compression for transferable and precompiled shader disk chache filesunknown2019-03-291-2/+2
| | | | | | |
| * | | | | | data_compression: Move LZ4 compression from video_core/gl_shader_disk_cache to common/data_compressionunknown2019-03-292-39/+9
| | |_|/ / / | |/| | | |
* | | | | | Merge pull request #2299 from lioncash/maxwellbunnei2019-04-044-17/+15
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | gl_shader_manager: Remove reliance on a global accessor within MaxwellUniformData::SetFromRegs()
| * | | | | gl_shader_manager: Remove unnecessary gl_shader_manager inclusionLioncash2019-03-281-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This isn't used at all in the OpenGL shader cache, so we can remove it's include here, meaning one less file needs to be recompiled if any changes ever occur within that header. core/memory.h is also not used within this file at all, so we can remove it as well.
| * | | | | gl_shader_manager: Move using statement into the cpp fileLioncash2019-03-282-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids introducing Maxwell3D into the namespace for everything that includes the header.
| * | | | | gl_shader_manager: Remove reliance on global accessor within MaxwellUniformData::SetFromRegs()Lioncash2019-03-283-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can just pass in the Maxwell3D instance instead of going through the system class to get at it. This also lets us simplify the interface a little bit. Since we pass in the Maxwell3D context now, we only really need to pass the shader stage index value in.
| * | | | | gl_shader_manager: Amend Doxygen string for MaxwellUniformDataLioncash2019-03-271-3/+3
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | Previously only one line of the whole comment was in proper Doxygen formatting.
* | | | | Merge pull request #2302 from ReinUsesLisp/vk-swapchainbunnei2019-04-033-1/+305
|\ \ \ \ \ | |_|_|/ / |/| | | | vk_swapchain: Implement a swapchain manager
| * | | | vk_swapchain: Implement a swapchain managerReinUsesLisp2019-03-293-1/+305
| | |/ / | |/| |
* | | | general: Use deducation guides for std::lock_guard and std::unique_lockLioncash2019-04-014-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since C++17, the introduction of deduction guides for locking facilities means that we no longer need to hardcode the mutex type into the locks themselves, making it easier to switch mutex types, should it ever be necessary in the future.
* | | | Merge pull request #2297 from lioncash/reorderbunnei2019-03-316-14/+14
|\ \ \ \ | | | | | | | | | | video_core: Amend constructor initializer list order where applicable
| * | | | video_core: Amend constructor initializer list order where applicableLioncash2019-03-276-14/+14
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Specifies the members in the same order that initialization would take place in. This also silences -Wreorder warnings.
* | | | Merge pull request #2298 from lioncash/variablebunnei2019-03-315-14/+7
|\ \ \ \ | |_|/ / |/| | | video_core/{gl_rasterizer, gpu_thread}: Remove unused class variables where applicable
| * | | gpu_thread: Remove unused dma_pusher class member variable from ThreadManagerLioncash2019-03-272-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | The pusher instance is only ever used in the constructor of the ThreadManager for creating the thread that the ThreadManager instance contains. Aside from that, the member is unused, so it can be removed.
| * | | gl_rasterizer: Remove unused reference member variable from RasterizerOpenGLLioncash2019-03-273-9/+5
| |/ / | | | | | | | | | | | | This member variable is no longer being used, so it can be removed, removing a dependency on EmuWindow from the rasterizer's interface"
* | | Merge pull request #2296 from lioncash/overridebunnei2019-03-283-4/+4
|\ \ \ | | | | | | | | video_core: Add missing override specifiers
| * | | video_core: Add missing override specifiersLioncash2019-03-273-4/+4
| |/ / | | | | | | | | | | | | | | | Ensures that the signatures will always match with the base class. Also silences a few compilation warnings.
* / / video_core/gpu: Amend typo in GPU member variable nameLioncash2019-03-272-7/+8
|/ / | | | | | | smaphore -> semaphore
* | Merge pull request #2256 from bunnei/gpu-vmmbunnei2019-03-2221-237/+533
|\ \ | | | | | | gpu: Rewrite MemoryManager based on the VMManager implementation.
| * | memory_manager: Cleanup FindFreeRegion.bunnei2019-03-212-12/+6
| | |
| * | memory_manager: Use Common::AlignUp in public interface as needed.bunnei2019-03-211-11/+22
| | |
| * | memory_manager: Bug fixes and further cleanup.bunnei2019-03-212-73/+72
| | |
| * | maxwell_dma: Check for valid source in destination before copy.bunnei2019-03-211-0/+10
| | | | | | | | | | | | - Avoid a crash in Octopath Traveler.
| * | memory_manager: Add protections for invalid GPU addresses.bunnei2019-03-212-22/+43
| | | | | | | | | | | | - Avoid a crash in Xenoblade Chronicles 2.
| * | gl_rasterizer_cache: Check that backing memory is valid before creating a surface.bunnei2019-03-212-15/+12
| | | | | | | | | | | | - Fixes a crash in Puyo Puyo Tetris.
| * | gpu: Rewrite virtual memory manager using PageTable.bunnei2019-03-2110-201/+472
| | |
| * | gpu: Move GPUVAddr definition to common_types.bunnei2019-03-2113-31/+24
| |/
* / Revert "Devirtualize Register/Unregister and use a wrapper instead."bunnei2019-03-223-8/+12
|/ | | | - Fixes graphical issues from transitions in Super Mario Odyssey.
* gl_rasterizer: Skip zero addr/sized regions on flush/invalidate.bunnei2019-03-171-0/+6
|
* Merge pull request #2244 from bunnei/gpu-mem-refactorbunnei2019-03-1719-186/+194
|\ | | | | video_core: Refactor to use MemoryManager interface for all memory access.
| * video_core: Refactor to use MemoryManager interface for all memory access.bunnei2019-03-1619-186/+194
| | | | | | | | | | | | | | | | | | | | | | # 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
* | memory: Simplify rasterizer cache operations.bunnei2019-03-161-2/+1
|/
* gpu: Use host address for caching instead of guest address.bunnei2019-03-1524-288/+384
|
* Merge pull request #2233 from ReinUsesLisp/morton-cleanupbunnei2019-03-154-187/+146
|\ | | | | video_core/morton: Miscellaneous changes
| * video_core/morton: Use enum to describe MortonCopyPixels128 modeReinUsesLisp2019-03-133-7/+10
| |
| * video_core/morton: Remove unused parameter in MortonSwizzleReinUsesLisp2019-03-133-8/+7
| |
| * video_core/morton: Remove clang-format off when it's not neededReinUsesLisp2019-03-131-133/+129
| |
| * video_core/morton: Remove unused functionsReinUsesLisp2019-03-131-39/+0
| |
* | Merge pull request #2229 from ReinUsesLisp/vk-sampler-cachebunnei2019-03-154-24/+168
|\ \ | | | | | | vk_sampler_cache: Implement a sampler cache
| * | vk_sampler_cache: Use operator== instead of memcmpMat M2019-03-131-1/+1
| | | | | | | | | Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
| * | vk_sampler_cache: Implement a sampler cacheReinUsesLisp2019-03-134-1/+140
| | |
| * | video_core/texture: Add a raw representation of TSCEntryReinUsesLisp2019-03-121-24/+29
| |/
* | Merge pull request #2216 from ReinUsesLisp/rasterizer-systembunnei2019-03-142-29/+31
|\ \ | | | | | | gl_rasterizer: Use system instance passed from argument
| * | gl_rasterizer: Use system instance passed from argumentReinUsesLisp2019-03-112-29/+31
| | |
* | | Merge pull request #2227 from lioncash/overridebunnei2019-03-132-5/+5
|\ \ \ | | | | | | | | renderer_opengl/gl_global_cache: Add missing override specifiers
| * | | renderer_opengl/gl_global_cache: Replace indexing for assignment with insert_or_assignLioncash2019-03-112-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code had some minor issues with it, really not a big deal, but amending it is basically 'free', so I figured, "why not?". With the standard container maps, when: map[key] = thing; is done, this can cause potentially undesirable behavior in certain scenarios. In particular, if there's no value associated with the key, then the map constructs a default initialized instance of the value type. In this case, since it's a std::shared_ptr (as a type alias) that is the value type, this will construct a std::shared_pointer, and then assign over it (with objects that are quite large, or actively heap allocate this can be extremely undesirable). We also make the function take the region by value, as we can avoid a copy (and by extension with std::shared_ptr, a copy causes an atomic reference count increment), in certain scenarios when ownership isn't a concern (i.e. when ReserveGlobalRegion is called with an rvalue reference, then no copy at all occurs). So, it's more-or-less a "free" gain without many downsides.
| * | | renderer_opengl/gl_global_cache: Append missing override specifiersLioncash2019-03-111-2/+2
| |/ / | | | | | | | | | | | | Two of the functions here are overridden functions, so we can append these specifiers to make it explicit.
* | / video_core/texture: Fix up sampler lod biasReinUsesLisp2019-03-131-1/+1
| |/ |/|
* | Merge pull request #2215 from ReinUsesLisp/samplersbunnei2019-03-123-64/+72
|\ \ | |/ |/| gl_rasterizer: Encapsulate sampler queries into methods
| * gl_rasterizer: Encapsulate sampler queries into methodsReinUsesLisp2019-03-093-64/+72
| |
* | Merge pull request #2147 from ReinUsesLisp/texture-cleanbunnei2019-03-107-527/+588
|\ \ | | | | | | shader_ir: Remove "extras" from the MetaTexture
| * | shader/decode: Remove extras from MetaTextureReinUsesLisp2019-02-264-40/+65
| | |
| * | shader/decode: Split memory and texture instructions decodingReinUsesLisp2019-02-266-501/+537
| | |
* | | Merge pull request #2143 from ReinUsesLisp/texviewbunnei2019-03-103-32/+42
|\ \ \ | | | | | | | | gl_rasterizer_cache: Create texture views for array discrepancies
| * | | gl_rasterizer_cache: Create texture views for array discrepanciesReinUsesLisp2019-02-273-32/+42
| | | | | | | | | | | | | | | | | | | | | | | | When a texture is sampled in a shader with a different array mode than the cached state, create a texture view and bind that to the shader instead.
* | | | gl_rasterizer: Minor logger changesReinUsesLisp2019-03-091-19/+13
| |_|/ |/| |
* | | Merge pull request #2209 from lioncash/reorderbunnei2019-03-081-5/+2
|\ \ \ | | | | | | | | video_core/gpu_thread: Silence a -Wreorder warning
| * | | video_core/gpu_thread: Remove unimplemented WaitForIdle function prototypeLioncash2019-03-071-3/+0
| | | | | | | | | | | | | | | | | | | | This function didn't have a definition, so we can remove it to prevent accidentally attempting to use it.
| * | | video_core/gpu_thread: Amend constructor initializer list orderLioncash2019-03-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Moves the data members to satisfy the order they're declared as in the constructor initializer list. Silences a -Wreorder warning.
* | | | Merge pull request #2208 from lioncash/gpubunnei2019-03-083-3/+3
|\ \ \ \ | | | | | | | | | | video_core/gpu: Make GPU's destructor virtual
| * | | | video_core/gpu: Make GPU's destructor virtualLioncash2019-03-073-3/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because of the recent separation of GPU functionality into sync/async variants, we need to mark the destructor virtual to provide proper destruction behavior, given we use the base class within the System class. Prior to this, it was undefined behavior whether or not the destructor in the derived classes would ever execute.
* | | | Merge pull request #2191 from ReinUsesLisp/maxwell-to-vkbunnei2019-03-084-3/+553
|\ \ \ \ | | | | | | | | | | maxwell_to_vk: Initial implementation
| * | | | maxwell_to_vk: Initial implementationReinUsesLisp2019-03-044-3/+553
| | | | |
* | | | | dma_pusher: Store command_list_header by copyReinUsesLisp2019-03-081-1/+1
| |/ / / |/| | | | | | | | | | | | | | | | | | | Instead of holding a reference that will get invalidated by dma_pushbuffer.pop(), hold it as a copy. This doesn't have any performance cost since CommandListHeader is 8 bytes long.
* | | | Merge pull request #2055 from bunnei/gpu-threadbunnei2019-03-0712-26/+480
|\ \ \ \ | | | | | | | | | | Asynchronous GPU command processing
| * | | | gpu_thread: Fix deadlock with threading idle state check.bunnei2019-03-072-7/+11
| | | | |
| * | | | gpu_thread: (HACK) Ignore flush on FlushAndInvalidateRegion.bunnei2019-03-071-3/+1
| | | | |
| * | | | gpu: Always flush.bunnei2019-03-072-13/+6
| | | | |
| * | | | gpu: Refactor a/synchronous implementations into their own classes.bunnei2019-03-077-63/+155
| | | | |
| * | | | gpu: Move command processing to another thread.bunnei2019-03-077-10/+353
| | | | |
| * | | | gpu: Refactor command and swap buffers interface for asynch.bunnei2019-03-072-3/+22
| | | | |
| * | | | gpu: Refactor to take RendererBase instead of RasterizerInterface.bunnei2019-03-072-17/+22
| | | | |
* | | | | Merge pull request #2149 from ReinUsesLisp/decoders-stylebunnei2019-03-078-150/+183
|\ \ \ \ \ | | | | | | | | | | | | gl_rasterizer_cache: Move format conversion functions to their own file
| * | | | | gl_rasterizer_cache: Move format conversion to its own fileReinUsesLisp2019-02-277-136/+175
| | | | | |
| * | | | | decoders: Minor style changesReinUsesLisp2019-02-272-14/+8
| | |_|_|/ | |/| | |
* | | | | Merge pull request #2190 from lioncash/ogl-globalbunnei2019-03-072-11/+17
|\ \ \ \ \ | |_|/ / / |/| | | | core: Remove the global telemetry accessor function
| * | | | video_core/renderer_opengl: Replace direct usage of global system object accessorsLioncash2019-03-042-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | | We already pass a reference to the system object to the constructor of the renderer, so we can just use that instead of using the global accessor functions.
* | | | | Merge pull request #2203 from lioncash/engines-includebunnei2019-03-0610-11/+11
|\ \ \ \ \ | | | | | | | | | | | | video_core/engines: Remove unnecessary includes
| * | | | | video_core/engines: Remove unnecessary includesLioncash2019-03-0610-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes a few unnecessary dependencies on core-related machinery, such as the core.h and memory.h, which reduces the amount of rebuilding necessary if those files change. This also uncovered some indirect dependencies within other source files. This also fixes those.
* | | | | | video_core/surface: Remove obsolete TODO in PixelFormatFromRenderTargetFormat()Lioncash2019-03-051-2/+0
|/ / / / / | | | | | | | | | | | | | | | This isn't needed anymore, according to Hexagon
* | | | | Merge pull request #2165 from ReinUsesLisp/unbind-texbunnei2019-03-042-14/+2
|\ \ \ \ \ | |_|_|/ / |/| | | | gl_rasterizer: Unbind textures but don't apply the gl_state
| * | | | gl_rasterizer: Remove texture unbinding after dispatching a draw callReinUsesLisp2019-02-281-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Unbinding was required when OpenGL delete operations didn't unbind a resource if it was bound. This is no longer needed and can be removed.
| * | | | gl_state: Fixup multibind bugReinUsesLisp2019-02-281-2/+2
| | | | |
* | | | | Merge pull request #2183 from ReinUsesLisp/vk-buffer-cache-clangMat M2019-03-021-3/+3
|\ \ \ \ \ | |_|/ / / |/| | | | vk_buffer_cache: Fix clang-format
| * | | | vk_buffer_cache: Fix clang-formatReinUsesLisp2019-03-021-3/+3
| | | | |
* | | | | Merge pull request #2182 from bunnei/my-wasted-fridaybunnei2019-03-021-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | fuck git for ruining my day, I will learn but I will not forgive
| * | | | fuck git for ruining my day, I will learn but I will not forgivebunnei2019-03-021-1/+1
| |/ / /
* / / / vk_buffer_cache: Implement a buffer cacheReinUsesLisp2019-03-013-0/+205
|/ / / | | | | | | | | | | | | This buffer cache is just like OpenGL's buffer cache with some minor style changes. It uses VKStreamBuffer.
* | | Merge pull request #2152 from ReinUsesLisp/vk-stream-bufferbunnei2019-02-285-8/+172
|\ \ \ | | | | | | | | vk_stream_buffer: Implement a stream buffer
| * | | vk_stream_buffer: Remove copy code pathReinUsesLisp2019-02-262-53/+18
| | | |
| * | | vk_stream_buffer: Implement a stream bufferReinUsesLisp2019-02-243-1/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | vk_resource_manager: Minor VKFenceWatch changesReinUsesLisp2019-02-242-7/+7
| | | |
* | | | Merge pull request #2121 from FernandoS27/texception2bunnei2019-02-284-16/+213
|\ \ \ \ | | | | | | | | | | Improve the Accuracy of the Rasterizer Cache through a Texception Pass
| * | | | Devirtualize Register/Unregister and use a wrapper instead.Fernando Sahmkow2019-02-283-12/+8
| | | | |
| * | | | Corrections and redesign.Fernando Sahmkow2019-02-282-51/+51
| | | | |
| * | | | Fix linux compile error.Fernando Sahmkow2019-02-281-1/+1
| | | | |
| * | | | Remove NotifyFrameBuffer as we are doing a texception pass every drawcall.Fernando Sahmkow2019-02-282-25/+0
| | | | |
| * | | | Remove certain optimizations that caused texception to fail in certain scenarios.Fernando Sahmkow2019-02-283-24/+1
| | | | |
| * | | | Bug fixes and formattingFernando Sahmkow2019-02-282-3/+4
| | | | |
| * | | | rasterizer_cache_gl: Implement Texception PassFernando Sahmkow2019-02-283-0/+51
| | | | |
| * | | | rasterizer_cache_gl: Implement Partial Reinterpretation of Surfaces.Fernando Sahmkow2019-02-282-0/+100
| | | | |
| * | | | rasterizer_cache: mark reinterpreted surfaces and add ability to reload marked surfaces on next use.Fernando Sahmkow2019-02-282-0/+78
| | | | |
| * | | | rasterizer_cache_gl: Notify on framebuffer changeFernando Sahmkow2019-02-282-4/+23
| | | | |
| * | | | rasterizer_cache: Expose FlushObject to Child classes and allow redefining of Register and UnregisterFernando Sahmkow2019-02-281-11/+11
| | | | |
* | | | | Merge pull request #2172 from lioncash/reorderbunnei2019-02-282-3/+3
|\ \ \ \ \ | |/ / / / |/| | | | gl_rasterizer/vk_memory_manager: Silence -Wreorder warnings
| * | | | vk_memory_manager: Reorder constructor initializer list in terms of member declaration orderLioncash2019-02-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Reorders members in the order that they would actually be initialized in. Silences a -Wreorder warning.
| * | | | gl_rasterizer: Reorder constructor initializer list in terms of member declaration orderLioncash2019-02-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Orders the members in the order they would actually be initialized in. Silences a -Wreorder warning.
* | | | | Merge pull request #2163 from ReinUsesLisp/bitset-dirtybunnei2019-02-284-52/+51
|\ \ \ \ \ | |_|_|_|/ |/| | | | maxwell_3d: Use std::bitset to manage dirty flags
| * | | | maxwell_3d: Use std::bitset to manage dirty flagsReinUsesLisp2019-02-264-52/+51
| | |_|/ | |/| |
* | | | Merge pull request #2167 from lioncash/namespacebunnei2019-02-279-23/+23
|\ \ \ \ | | | | | | | | | | common: Move Quaternion, Rectangle, Vec2, Vec3, and Vec4 into the Common namespace
| * | | | common/math_util: Move contents into the Common namespaceLioncash2019-02-279-23/+23
| | |/ / | |/| | | | | | | | | | | | | | These types are within the common library, so they should be within the Common namespace.
* / | | gl_shader_disk_cache: Remove #pragma once from cpp fileLioncash2019-02-271-2/+0
|/ / / | | | | | | | | | This is only necessary in headers. Silences a warning with clang.
* / / renderer_opengl: Update pixel format trackingReinUsesLisp2019-02-261-0/+1
|/ /
* | shader/track: Resolve variable shadowing warningsLioncash2019-02-251-5/+5
| |
* | Merge pull request #2118 from FernandoS27/ipa-improvebunnei2019-02-256-38/+74
|\ \ | | | | | | shader_decompiler: Improve Accuracy of Attribute Interpolation.
| * | shader_decompiler: Improve Accuracy of Attribute Interpolation.Fernando Sahmkow2019-02-146-38/+74
| | |
* | | Merge pull request #2119 from FernandoS27/fix-copybunnei2019-02-251-1/+5
|\ \ \ | | | | | | | | rasterizer_cache_gl: Only do fast layered copy on the same format.
| * | | rasterizer_cache_gl: Only do fast layered copy on the same format. AsFernando Sahmkow2019-02-131-1/+5
| |/ / | | | | | | | | | glCopyImageSubData does not support different formats.
* | | Merge pull request #2139 from degasus/dma_pusherbunnei2019-02-242-28/+34
|\ \ \ | |_|/ |/| | video_core/dma_pusher: The full list of headers at once.
| * | video_core/dma_pusher: Simplyfy Step() logic.Markus Wick2019-02-192-81/+77
| | | | | | | | | | | | | | | As fetching command list headers and and the list of command headers is a fixed 1:1 relation now, they can be implemented within a single call. This cleans up the Step() logic quite a bit.
| * | video_core/dma_pusher: The full list of headers at once.Markus Wick2019-02-192-48/+58
| | | | | | | | | | | | | | | Fetching every u32 from memory leads to a big overhead. So let's fetch all of them as a block if possible. This reduces the Memory::* calls by the dma_pusher by a factor of 10.
* | | Merge pull request #2146 from ReinUsesLisp/vulkan-schedulerbunnei2019-02-243-1/+132
|\ \ \ | | | | | | | | vk_scheduler: Implement a scheduler
| * | | vk_scheduler: Implement a schedulerReinUsesLisp2019-02-223-1/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #2150 from ReinUsesLisp/fixup-layer-swizzlebunnei2019-02-241-1/+1
|\ \ \ \ | | | | | | | | | | gl_rasterizer_cache: Fixup parameter order in layered swizzle
| * | | | gl_rasterizer_cache: Fixup parameter order in layered swizzleReinUsesLisp2019-02-241-1/+1
| |/ / /
* / / / vk_memory_manager: Fixup commit interval allocationReinUsesLisp2019-02-241-2/+1
|/ / / | | | | | | | | | | | | VKMemoryCommitImpl was using as the end of its interval "begin + end". That ended up wasting memory.
* | | Merge pull request #2138 from ReinUsesLisp/vulkan-memory-managerbunnei2019-02-223-0/+342
|\ \ \ | | | | | | | | vk_memory_manager: Implement memory manager
| * | | vk_memory_manager: Implement memory managerReinUsesLisp2019-02-193-0/+342
| |/ / | | | | | | | | | | | | A memory manager object handles the memory allocations for a device. It allocates chunks of Vulkan memory objects and then suballocates.
* | | Merge pull request #2125 from ReinUsesLisp/fixup-glstatebunnei2019-02-211-83/+61
|\ \ \ | | | | | | | | gl_state: Synchronize gl_state even when state is disabled
| * | | gl_state: Synchronize gl_state even when state is disabledReinUsesLisp2019-02-151-83/+61
| | | | | | | | | | | | | | | | | | | | | | | | There are some potential edge cases where gl_state may fail to track the state if a related state changes while the toggle is disabled or it didn't change. This addresses that.
* | | | Merge pull request #2130 from lioncash/system_enginebunnei2019-02-218-22/+48
|\ \ \ \ | |_|/ / |/| | | video_core: Remove usages of System::GetInstance() within the engines
| * | | video_core: Remove usages of System::GetInstance() within the enginesLioncash2019-02-168-22/+48
| | | | | | | | | | | | | | | | | | | | Avoids the use of the global accessor in favor of explicitly making the system a dependency within the interface.
* | | | Merge pull request #2122 from ReinUsesLisp/vulkan-resource-managerbunnei2019-02-193-1/+468
|\ \ \ \ | | | | | | | | | | vk_resource_manager: Implement fence and command buffer allocator
| * | | | vk_resource_manager: Implement a command buffer pool with VKFencedPoolReinUsesLisp2019-02-142-1/+59
| | | | |
| * | | | vk_resource_manager: Add VKFencedPool interfaceReinUsesLisp2019-02-142-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handles a pool of resources protected by fences. Manages resource overflow allocating more resources. This class is intended to be used through inheritance.
| * | | | vk_resource_manager: Implement VKResourceManager and fence allocatorReinUsesLisp2019-02-142-0/+85
| | | | | | | | | | | | | | | | | | | | | | | | | CommitFence iterates a pool of fences until one is found. If all fences are being used at the same time, allocate more.
| * | | | vk_resource_manager: Implement VKFenceWatchReinUsesLisp2019-02-142-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A fence watch is used to keep track of the usage of a fence and protect a resource or set of resources without having to inherit from their handlers.
| * | | | vk_resource_manager: Implement VKFenceReinUsesLisp2019-02-142-0/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fences take ownership of objects, protecting them from GPU-side or driver-side concurrent access. They must be commited from the resource manager. Their usage flow is: commit the fence from the resource manager, protect resources with it and use them, send the fence to an execution queue and Wait for it if needed and then call Release. Used resources will automatically be signaled when they are free to be reused.
| * | | | vk_resource_manager: Add VKResource interfaceReinUsesLisp2019-02-143-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | VKResource is an interface that gets signaled by a fence when it is free to be reused.
* | | | | Merge pull request #2127 from FearlessTobi/fix-screenshot-srgbbunnei2019-02-161-1/+2
|\ \ \ \ \ | |_|/ / / |/| | | | renderer_opengl: respect the sRGB colorspace for the screenshot feature
| * | | | renderer_opengl: respect the sRGB colorspace for the screenshot featurefearlessTobi2019-02-151-1/+2
| | |/ / | |/| | | | | | | | | | | | | | Previously, we were completely ignoring for screenshots whether the game uses RGB or sRGB. This resulted in screenshot colors that looked off for some titles.
* | | | Merge pull request #2123 from lioncash/coretiming-globalJames Rowe2019-02-163-3/+4
|\ \ \ \ | |/ / / |/| | | core_timing: De-globalize core_timing facilities
| * | | core_timing: Convert core timing into a classLioncash2019-02-163-3/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2112 from lioncash/shadowingbunnei2019-02-151-7/+13
|\ \ \ | | | | | | | | gl_rasterizer_cache: Get rid of variable shadowing
| * | | gl_rasterizer_cache: Remove unnecessary newlineLioncash2019-02-121-2/+0
| | | |
| * | | gl_rasterizer_cache: Get rid of variable shadowingLioncash2019-02-121-6/+14
| | | | | | | | | | | | | | | | | | | | Avoids shadowing the members of the struct itself, which results in a -Wshadow warning.
* | | | Merge pull request #2111 from ReinUsesLisp/fetch-fixbunnei2019-02-152-22/+35
|\ \ \ \ | |_|/ / |/| | | gl_shader_decompiler: Re-implement TLDS lod
| * | | gl_shader_decompiler: Re-implement TLDS lodReinUsesLisp2019-02-122-22/+35
| | | |
* | | | Merge pull request #2113 from ReinUsesLisp/vulkan-basebunnei2019-02-144-0/+402
|\ \ \ \ | |_|_|/ |/| | | vulkan: Add dependencies and device abstraction
| * | | vk_device: Abstract device handling into a classReinUsesLisp2019-02-133-1/+351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
| * | | renderer_vulkan: Add declarations fileReinUsesLisp2019-02-122-0/+52
| |/ / | | | | | | | | | | | | | | | | | | 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).
* | | Merge pull request #2099 from greggameplayer/BGRA8-Framebuffer-Realbunnei2019-02-133-0/+4
|\ \ \ | | | | | | | | Implement BGRA8 framebuffer format
| * | | Implement BGRA8 framebuffer formatgreggameplayer2019-02-093-0/+4
| | |/ | |/|
* | | renderer_opengl: Remove reference to global system instanceLioncash2019-02-131-3/+3
| | | | | | | | | | | | | | | | | | We already store a reference to the system instance that the renderer is created with, so we don't need to refer to the system instance via Core::System::GetInstance()
* | | Merge pull request #2110 from lioncash/namespacebunnei2019-02-133-3/+3
|\ \ \ | | | | | | | | core_timing: Rename CoreTiming namespace to Core::Timing
| * | | core_timing: Rename CoreTiming namespace to Core::TimingLioncash2019-02-123-3/+3
| |/ / | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2104 from ReinUsesLisp/compute-assertbunnei2019-02-136-52/+59
|\ \ \ | |_|/ |/| | kepler_compute: Fixup assert and rename the engine
| * | kepler_compute: Fixup assert and rename enginesReinUsesLisp2019-02-106-52/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2108 from FernandoS27/fix-ccbunnei2019-02-121-2/+2
|\ \ \ | | | | | | | | Fix incorrect value for CC bit in IADD
| * | | Fix incorrect value for CC bit in IADDFernando Sahmkow2019-02-111-2/+2
| | |/ | |/|
* | | Merge pull request #2109 from FernandoS27/fix-f2ibunnei2019-02-122-4/+4
|\ \ \ | | | | | | | | Corrected F2I None mode to RoundEven.
| * | | Corrected F2I None mode to RoundEven.Fernando Sahmkow2019-02-112-4/+4
| |/ /
* | | Merge pull request #2068 from ReinUsesLisp/shader-cleanup-texturesbunnei2019-02-123-153/+123
|\ \ \ | |/ / |/| | shader_ir: Clean texture management code
| * | shader_ir: Remove F4 prefix to texture operationsReinUsesLisp2019-02-073-26/+25
| | | | | | | | | | | | | | | | | | This was originally included because texture operations returned a vec4. These operations now return a single float and the F4 prefix doesn't mean anything.
| * | shader_ir: Clean texture management codeReinUsesLisp2019-02-073-133/+104
| |/ | | | | | | | | | | | | | | | | Previous code relied on GLSL parameter order (something that's always ill-formed on an IR design). This approach passes spatial coordiantes through operation nodes and array and depth compare values in the the texture metadata. It still contains an "extra" vector containing generic nodes for bias and component index (for example) which is still a bit ill-formed but it should be better than the previous approach.
* | Merge pull request #1904 from bunnei/better-fermi-copybunnei2019-02-097-72/+206
|\ \ | | | | | | gl_rasterizer: Implement a more accurate fermi 2D copy.
| * | gl_rasterizer_cache: Mark surface copy destinations as modified.bunnei2019-02-072-4/+18
| | |
| * | gl_rasterizer: Implement a more accurate fermi 2D copy.bunnei2019-02-077-68/+188
| | | | | | | | | | | | - This is a blit, use the blit registers.
* | | Implement linear textures (#2089)Fernando Sahmkow2019-02-092-5/+39
| | |
* | | gl_rasterizer_cache: Fixup texture view parametersReinUsesLisp2019-02-081-2/+2
| |/ |/| | | | | | | These parameters were declared as constants and passed to glTextureView but then they were removed on a rabase. This addresses that mistake.
* | Merge pull request #2083 from ReinUsesLisp/shader-ir-cbuf-trackingbunnei2019-02-0730-127/+141
|\ \ | |/ |/| shader/track: Add a more permissive global memory tracking
| * shader/track: Search inside of conditional nodesReinUsesLisp2019-02-031-0/+11
| | | | | | | | | | | | Some games search conditionally use global memory instructions. This allows the heuristic to search inside conditional nodes for the source constant buffer.
| * shader_ir: Rename BasicBlock to NodeBlockReinUsesLisp2019-02-0330-122/+120
| | | | | | | | It's not always used as a basic block. Rename it for consistency.
| * shader_ir: Pass decoded nodes as a whole instead of per basic blocksReinUsesLisp2019-02-0327-57/+62
| | | | | | | | | | | | | | | | | | Some games call LDG at the top of a basic block, making the tracking heuristic to fail. This commit lets the heuristic the decoded nodes as a whole instead of per basic blocks. This may lead to some false positives but allows it the heuristic to track cases it previously couldn't.
* | gl_shader_disk_cache: Check LZ4 size limitFrederic L2019-02-071-0/+4
| | | | | | Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
* | gl_shader_disk_cache: Consider compressed size zero as an errorFrederic L2019-02-071-2/+2
| | | | | | Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
* | gl_shader_disk_cache: Use unordered containersReinUsesLisp2019-02-074-56/+64
| |
* | gl_shader_cache: Fixup GLSL unique identifiersReinUsesLisp2019-02-072-3/+3
| |
* | gl_shader_cache: Link loading screen with disk shader cache loadReinUsesLisp2019-02-075-9/+40
| |
* | gl_shader_cache: Set GL_PROGRAM_SEPARABLE to dumped shadersReinUsesLisp2019-02-071-0/+1
| | | | | | | | | | | | i965 (and probably all mesa drivers) require GL_PROGRAM_SEPARABLE when using glProgramBinary. This is probably required by the standard but it's ignored by permisive proprietary drivers.
* | gl_shader_disk_cache: Pass core system as argument and guard against games without title idsReinUsesLisp2019-02-0710-17/+57
| |
* | gl_shader_disk_cache: Guard reads and writes against failureReinUsesLisp2019-02-072-216/+339
| |
* | gl_shader_disk_cache: Address miscellaneous feedbackReinUsesLisp2019-02-075-43/+57
| |
* | gl_shader_disk_cache: Pass return values returning instead of by parametersReinUsesLisp2019-02-073-39/+37
| |
* | gl_shader_disk_cache: Compress program binaries using LZ4ReinUsesLisp2019-02-071-7/+28
| |
* | gl_shader_disk_cache: Compress GLSL code using LZ4ReinUsesLisp2019-02-072-6/+57
| |
* | gl_shader_disk_cache: Save GLSL and entries into the precompiled fileReinUsesLisp2019-02-079-135/+234
| |
* | settings: Hide shader cache behind a settingReinUsesLisp2019-02-071-0/+21
| |
* | gl_shader_disk_cache: Invalidate shader cache changes with CMake hashReinUsesLisp2019-02-071-7/+16
| |
* | gl_shader_cache: Refactor to support disk shader cacheReinUsesLisp2019-02-072-121/+388
| |
* | gl_shader_disk_cache: Add transferable cache invalidationReinUsesLisp2019-02-072-0/+8
| |
* | gl_shader_disk_cache: Add precompiled loadReinUsesLisp2019-02-072-0/+45
| |
* | gl_shader_disk_cache: Add precompiled saveReinUsesLisp2019-02-072-0/+57
| |
* | gl_shader_disk_cache: Add transferable loadReinUsesLisp2019-02-072-0/+56
| |
* | gl_shader_disk_cache: Add transferable storesReinUsesLisp2019-02-072-0/+194
| |
* | gl_shader_disk_cache: Add ShaderDiskCacheOpenGL class and helpersReinUsesLisp2019-02-072-0/+76
| |
* | gl_shader_disk_cache: Add file and move BaseBindings declarationReinUsesLisp2019-02-074-10/+58
| |
* | gl_shader_decompiler: Remove name entriesReinUsesLisp2019-02-072-28/+10
| |
* | gl_shader_util: Add parameter to handle retrievable programsReinUsesLisp2019-02-073-6/+10
| |
* | rasterizer_interface: Add disk cache entry for the rasterizerReinUsesLisp2019-02-075-0/+14
| |
* | shader_decode: Implement LDG and basic cbuf trackingReinUsesLisp2019-02-071-0/+33
| |
* | Merge pull request #2042 from ReinUsesLisp/nouveau-texbunnei2019-02-0711-79/+82
|\ \ | | | | | | maxwell_3d: Allow texture handles with TIC id zero
| * | video_core: Assert on invalid GPU to CPU address queriesReinUsesLisp2019-02-038-47/+67
| | |
| * | maxwell_3d: Allow sampler handles with TSC id zeroReinUsesLisp2019-02-031-10/+6
| | |
| * | maxwell_3d: Allow texture handles with TIC id zeroReinUsesLisp2019-02-033-21/+7
| | | | | | | | | | | | | | | Also remove "enabled" field from Tegra::Texture::FullTextureInfo because it would become unused.
| * | memory_manager: Check for reserved page statusReinUsesLisp2019-02-031-1/+2
| |/
* | Merge pull request #2071 from ReinUsesLisp/dsa-texturebunnei2019-02-078-216/+153
|\ \ | | | | | | gl_rasterizer: Use DSA for textures and move swizzling to texture state
| * | gl_rasterizer_cache: Fixup test clauseReinUsesLisp2019-01-301-6/+5
| | |
| * | gl_rasterizer_cache: Guard clause swizzle testingMat M2019-01-301-1/+3
| | | | | | | | | Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
| * | gl_state: Remove texture target trackingReinUsesLisp2019-01-302-5/+0
| | |
| * | gl_rasterizer_cache: Move swizzling to textures instead of stateReinUsesLisp2019-01-306-28/+35
| | |
| * | gl_state: Use DSA and multi bind to update texture bindingsReinUsesLisp2019-01-301-8/+22
| | |
| * | gl_rasterizer: Use DSA for texturesReinUsesLisp2019-01-305-185/+105
| | |
* | | Merge pull request #2085 from ReinUsesLisp/cube-minus-onebunnei2019-02-051-1/+1
|\ \ \ | | | | | | | | video_core/texture: Fix BitField size for depth_minus_one
| * | | video_core/texture: Fix BitField size for depth_minus_oneReinUsesLisp2019-02-051-1/+1
| | | |
* | | | Merge pull request #2081 from ReinUsesLisp/lmem-64bunnei2019-02-052-15/+46
|\ \ \ \ | |/ / / |/| | | shader_ir/memory: Add LD_L 64 bits loads
| * | | shader_ir/memory: Add ST_L 64 and 128 bits storesReinUsesLisp2019-02-031-3/+11
| | | |
| * | | shader_ir/memory: Add LD_L 128 bits loadsReinUsesLisp2019-02-031-7/+19
| | | |
| * | | shader_bytecode: Rename BytesN enums to BitsNReinUsesLisp2019-02-032-7/+7
| | | |
| * | | shader_ir/memory: Add LD_L 64 bits loadsReinUsesLisp2019-02-031-6/+17
| | |/ | |/|
* | | Merge pull request #2082 from FernandoS27/txq-stlbunnei2019-02-052-6/+13
|\ \ \ | |/ / |/| | Fix TXQ not using the component mask.
| * | Update src/video_core/engines/shader_bytecode.hMat M2019-02-041-1/+1
| | | | | | | | | Co-Authored-By: FernandoS27 <fsahmkow27@gmail.com>
| * | Fix TXQ not using the component mask.Fernando Sahmkow2019-02-032-6/+13
| | |
* | | Merge pull request #2074 from ReinUsesLisp/shader-ir-unify-offsetbunnei2019-02-0117-25/+36
|\ \ \ | | | | | | | | shader_ir: Unify constant buffer offset values
| * | | shader_ir: Unify constant buffer offset valuesReinUsesLisp2019-01-3017-25/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Constant buffer values on the shader IR were using different offsets if the access direct or indirect. cbuf34 has a non-multiplied offset while cbuf36 does. On shader decoding this commit multiplies it by four on cbuf34 queries.
* | | | Merge pull request #2067 from ReinUsesLisp/workaround-fbbunnei2019-02-012-14/+19
|\ \ \ \ | | | | | | | | | | gl_rasterizer: Workaround invalid zeta clears
| * | | | gl_rasterizer: Workaround invalid zeta clearsReinUsesLisp2019-01-302-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some games (like Xenoblade Chronicles 2) clear both depth and stencil buffers while there's a depth-only texture attached (e.g. D16 Unorm). This commit reads the zeta format of the bound surface on ConfigureFramebuffers and returns if depth and/or stencil attachments were set. This is ignored on DrawArrays but on Clear it's used to just clear those attachments, bypassing an OpenGL error.
* | | | | rasterizer_interface: Remove unused AccelerateFill operationReinUsesLisp2019-02-013-11/+0
| | | | |
* | | | | video_core: Remove unused Fill surface typeReinUsesLisp2019-02-012-6/+1
| |_|/ / |/| | |
* | | | Merge pull request #2076 from lioncash/encHexagon122019-01-301-1/+1
|\ \ \ \ | |_|_|/ |/| | | video_core/dma_pusher: Silence C4828 warnings
| * | | video_core/dma_pusher: Silence C4828 warningsLioncash2019-01-301-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | This was previously causing: warning C4828: The file contains a character starting at offset 0xa33 that is illegal in the current source character set (codepage 65001). warnings on Windows when compiling yuzu.
* | | Merge pull request #1485 from FernandoS27/render-infobunnei2019-01-302-2/+57
|\ \ \ | |/ / |/| | Add more info into textures' object labels
| * | Add more info into textures' object labelsFernandoS272018-12-092-2/+57
| | |
* | | Merge pull request #2070 from ReinUsesLisp/cubearray-viewbunnei2019-01-304-3/+28
|\ \ \ | | | | | | | | gl_shader_cache: Fix texture view for cubemaps as cubemap arrays
| * | | gl_shader_cache: Fix texture view for cubemaps as cubemap arraysReinUsesLisp2019-01-304-3/+28
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cubemaps are considered layered and to create a texture view the texture mustn't be a layered texture, resulting in cubemaps being bound as cubemap arrays. To fix this issue this commit introduces an extra surface parameter called "is_array" and uses this to query for texture view creation. Now that texture views for cubemaps are actually being created, this also fixes the number of layers created for the texture view (since they have to be 6 to create a texture view of cubemaps).
* | | gl_shader_cache: Use explicit bindingsReinUsesLisp2019-01-307-249/+194
| | |
* | | gl_rasterizer: Implement global memory managementReinUsesLisp2019-01-306-4/+140
| | |
* | | shader_decode: Implement LDG and basic cbuf trackingReinUsesLisp2019-01-307-10/+240
| | |
* | | video_core/GPU Implemented the GPU PFIFO puller semaphore operations. (#1908)Kevin2019-01-302-12/+242
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implemented the puller semaphore operations. * Nit: Fix 2 style issues * Nit: Add Break to default case. * Fix style. * Update for comments. Added ReferenceCount method * Forgot to remove GpuSmaphoreAddress union. * Fix the clang-format issues. * More clang formatting. * two more white spaces for the Clang formatting. * Move puller members into the regs union * Updated to use Memory::WriteBlock instead of Memory::Write* * Fix clang style issues * White space clang error * Removing unused funcitons and other pr comment * Removing unused funcitons and other pr comment * More union magic for setting regs value. * union magic refcnt as well * Remove local var * Set up the regs and regs_assert_positions up properly * Fix clang error
* | shader/shader_ir: Amend three comment typosLioncash2019-01-281-3/+3
| | | | | | | | | | Given we're in the area, these are three trivial typos that can be corrected.
* | shader/shader_ir: Amend constructor initializer ordering for AbufNodeLioncash2019-01-281-2/+2
| | | | | | | | | | Orders the class members in the same order that they would actually be initialized in. Gets rid of two compiler warnings.
* | shader/decode: Avoid a pessimizing std::move within DecodeRange()Lioncash2019-01-281-1/+1
| | | | | | | | | | | | std::moveing a local variable in a return statement has the potential to prevent copy elision from occurring, so this can just be converted into a regular return.
* | video_core: Silent implicit conversion warningReinUsesLisp2019-01-261-3/+4
| |
* | Merge pull request #1927 from ReinUsesLisp/shader-irbunnei2019-01-2639-3808/+5497
|\ \ | | | | | | video_core: Replace gl_shader_decompiler with an IR based decompiler
| * | shader_ir: Fixup clang buildReinUsesLisp2019-01-161-4/+6
| | |
| * | gl_shader_decompiler: replace std::get<> with std::get_if<> for macOS compatibilityReinUsesLisp2019-01-151-44/+58
| | |
| * | gl_shader_decompiler: Inline textureGather componentReinUsesLisp2019-01-151-15/+16
| | |
| * | shader_decode: Fixup XMADReinUsesLisp2019-01-151-1/+1
| | |
| * | shader_ir: Pass to decoder functions basic block's codeReinUsesLisp2019-01-1527-82/+83
| | |
| * | shader_decode: Improve zero flag implementationReinUsesLisp2019-01-1515-75/+79
| | |
| * | shader_ir: Remove composite primitives and use temporals insteadReinUsesLisp2019-01-154-241/+224
| | |
| * | gl_shader_decompiler: Fixup AssignCompositeHalfReinUsesLisp2019-01-151-1/+1
| | |
| * | shader_decode: Use proper primitive namesReinUsesLisp2019-01-154-25/+21
| | |
| * | shader_decode: Use BitfieldExtract instead of shift + andReinUsesLisp2019-01-158-48/+37
| | |
| * | shader_ir: Remove Ipa primitiveReinUsesLisp2019-01-153-13/+2
| | |
| * | gl_shader_decompiler: Use rasterizer's UBO size limitReinUsesLisp2019-01-151-1/+3
| | |
| * | gl_shader_gen: Fixup code formattingReinUsesLisp2019-01-152-18/+22
| | |
| * | video_core: Rename glsl_decompiler to gl_shader_decompilerReinUsesLisp2019-01-157-7/+7
| | |
| * | shader_ir: Remove RZ and use Register::ZeroIndex insteadReinUsesLisp2019-01-153-12/+16
| | |
| * | shader_decode: Implement TEXS.F16ReinUsesLisp2019-01-153-15/+57
| | |
| * | shader_decode: Fixup R2PReinUsesLisp2019-01-151-2/+3
| | |
| * | glsl_decompiler: Fixup TLDSReinUsesLisp2019-01-151-1/+0
| | |
| * | glsl_decompiler: Fixup geometry shadersReinUsesLisp2019-01-152-15/+17
| | |
| * | shader_decode: Fixup WriteLogicOperation zero comparisonReinUsesLisp2019-01-151-1/+1
| | |
| * | glsl_decompiler: Fixup permissive member function declarationsReinUsesLisp2019-01-151-133/+133
| | |
| * | shader_decode: Fixup PSETReinUsesLisp2019-01-151-2/+3
| | |
| * | shader_decode: Fixup clang-formatReinUsesLisp2019-01-152-2/+4
| | |
| * | video_core: Implement IR based geometry shadersReinUsesLisp2019-01-154-10/+102
| | |
| * | shader_decode: Implement VMAD and VSETPReinUsesLisp2019-01-155-2/+129
| | |
| * | shader_decode: Implement HSET2ReinUsesLisp2019-01-153-1/+50
| | |
| * | shader_decode: Rework HSETP2ReinUsesLisp2019-01-154-47/+57
| | |
| * | shader_decode: Implement R2PReinUsesLisp2019-01-151-1/+28
| | |
| * | shader_decode: Implement CSETPReinUsesLisp2019-01-151-14/+37
| | |
| * | shader_decode: Implement PSETReinUsesLisp2019-01-151-1/+16
| | |
| * | shader_decode: Implement HFMA2ReinUsesLisp2019-01-154-5/+60
| | |
| * | glsl_decompiler: Remove HNegate inliningReinUsesLisp2019-01-151-10/+0
| | |
| * | shader_decode: Implement POPCReinUsesLisp2019-01-154-1/+22
| | |
| * | shader_decode: Implement TLDS (untested)ReinUsesLisp2019-01-153-10/+92
| | |
| * | shader_decode: Update TLD4 reflecting #1862 changesReinUsesLisp2019-01-152-52/+52
| | |
| * | shader_ir: Fixup TEX and TEXS and partially fix TLD4 decompilingReinUsesLisp2019-01-153-60/+72
| | |
| * | shader_decode: Fixup FSETReinUsesLisp2019-01-151-2/+2
| | |
| * | shader_decode: Implement IADD32IReinUsesLisp2019-01-151-0/+11
| | |
| * | shader_decode: Fixup clang-formatReinUsesLisp2019-01-151-1/+1
| | |
| * | video_core: Return safe values after an assert hitsReinUsesLisp2019-01-158-8/+19
| | |
| * | shader_decode: Implement FFMAReinUsesLisp2019-01-151-1/+36
| | |
| * | video_core: Address feedbackReinUsesLisp2019-01-154-13/+16
| | |
| * | shader_ir: Fixup file inclusions and clang-formatReinUsesLisp2019-01-153-2/+2
| | |
| * | shader_ir: Move comment node stringMat M2019-01-151-2/+2
| | | | | | | | | Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
| * | shader_ir: Address feedback to avoid UB in bit castingReinUsesLisp2019-01-151-2/+4
| | |
| * | shader_decode: Fixup clang-formatReinUsesLisp2019-01-152-3/+2
| | |
| * | shader_decode: Implement LEAReinUsesLisp2019-01-151-0/+55
| | |
| * | shader_decode: Implement IADD3ReinUsesLisp2019-01-151-0/+61
| | |
| * | shader_decode: Implement LOP3ReinUsesLisp2019-01-152-0/+62
| | |
| * | shader_decode: Implement ST_LReinUsesLisp2019-01-151-0/+17
| | |
| * | shader_decode: Implement LD_LReinUsesLisp2019-01-151-0/+18
| | |
| * | shader_decode: Implement HSETP2ReinUsesLisp2019-01-151-1/+37
| | |
| * | shader_decode: Implement HADD2 and HMUL2ReinUsesLisp2019-01-151-1/+48
| | |
| * | shader_decode: Implement HADD2_IMM and HMUL2_IMMReinUsesLisp2019-01-151-1/+28
| | |
| * | shader_decode: Implement MOV_SYSReinUsesLisp2019-01-151-0/+27
| | |
| * | shader_decode: Implement IMNMXReinUsesLisp2019-01-151-0/+16
| | |
| * | shader_decode: Implement F2F_CReinUsesLisp2019-01-151-2/+10
| | |
| * | shader_decode: Implement I2IReinUsesLisp2019-01-151-0/+26
| | |
| * | shader_decode: Implement BRA internal flagReinUsesLisp2019-01-151-4/+8
| | |
| * | shader_decode: Implement ISCADDReinUsesLisp2019-01-151-0/+15
| | |
| * | shader_decode: Implement XMADReinUsesLisp2019-01-151-1/+85
| | |
| * | shader_decode: Implement PBK and BRKReinUsesLisp2019-01-151-1/+22
| | |
| * | shader_decode: Implement LOPReinUsesLisp2019-01-151-0/+15
| | |
| * | shader_decode: Implement SELReinUsesLisp2019-01-151-0/+8
| | |
| * | shader_decode: Implement IADDReinUsesLisp2019-01-151-1/+28
| | |
| * | shader_decode: Implement ISETPReinUsesLisp2019-01-151-1/+30
| | |
| * | shader_decode: Implement BFIReinUsesLisp2019-01-151-1/+22
| | |
| * | shader_decode: Implement ISETReinUsesLisp2019-01-151-1/+27
| | |
| * | shader_decode: Implement LD_CReinUsesLisp2019-01-151-0/+31
| | |
| * | shader_decode: Implement SHLReinUsesLisp2019-01-151-0/+8
| | |
| * | shader_decode: Implement SHRReinUsesLisp2019-01-151-1/+26
| | |
| * | shader_decode: Implement LOP32IReinUsesLisp2019-01-152-1/+72
| | |
| * | shader_decode: Implement BFEReinUsesLisp2019-01-151-1/+25
| | |
| * | shader_decode: Implement FSETReinUsesLisp2019-01-151-1/+36
| | |
| * | shader_decode: Implement F2IReinUsesLisp2019-01-151-0/+37
| | |
| * | shader_decode: Implement I2FReinUsesLisp2019-01-151-0/+23
| | |
| * | shader_decode: Implement F2FReinUsesLisp2019-01-151-1/+37
| | |
| * | shader_decode: Stub DEPBARReinUsesLisp2019-01-151-0/+4
| | |
| * | shader_decode: Implement SSY and SYNCReinUsesLisp2019-01-151-0/+19
| | |
| * | shader_decode: Implement PSETPReinUsesLisp2019-01-151-1/+21
| | |
| * | shader_decode: Implement TMMLReinUsesLisp2019-01-151-3/+45
| | |
| * | shader_decode: Implement TEX and TXQReinUsesLisp2019-01-152-0/+223
| | |
| * | shader_decode: Implement TEXS (F32)ReinUsesLisp2019-01-152-0/+217
| | |
| * | shader_decode: Implement FSETPReinUsesLisp2019-01-151-1/+33
| | |
| * | shader_decode: Partially implement BRAReinUsesLisp2019-01-151-0/+12
| | |
| * | shader_decode: Implement IPAReinUsesLisp2019-01-151-0/+12
| | |
| * | shader_decode: Implement EXITReinUsesLisp2019-01-151-1/+32
| | |
| * | shader_decode: Implement ST_AReinUsesLisp2019-01-151-0/+30
| | |
| * | shader_decode: Implement LD_AReinUsesLisp2019-01-151-1/+39
| | |
| * | shader_decode: Implement FADD32IReinUsesLisp2019-01-151-0/+12
| | |
| * | shader_decode: Implement FMUL32_IMMReinUsesLisp2019-01-151-0/+10
| | |
| * | shader_decode: Implement MOV32_IMMReinUsesLisp2019-01-151-1/+9
| | |
| * | shader_decode: Stub RRO_C, RRO_R and RRO_IMMReinUsesLisp2019-01-151-0/+9
| | |
| * | shader_decode: Implement FMNMX_C, FMNMX_R and FMNMX_IMMReinUsesLisp2019-01-151-0/+18
| | |
| * | shader_decode: Implement MUFUReinUsesLisp2019-01-151-0/+29
| | |
| * | shader_decode: Implement FADD_C, FADD_R and FADD_IMMReinUsesLisp2019-01-151-0/+15
| | |
| * | shader_decode: Implement FMUL_C, FMUL_R and FMUL_IMMReinUsesLisp2019-01-151-0/+42
| | |
| * | shader_decode: Implement MOV_C and MOV_RReinUsesLisp2019-01-151-1/+23
| | |
| * | video_core: Replace gl_shader_decompilerReinUsesLisp2019-01-158-4185/+57
| | |
| * | glsl_decompiler: ImplementationReinUsesLisp2019-01-153-0/+1483
| | |
| * | shader_ir: Add condition code helperReinUsesLisp2019-01-152-0/+13
| | |
| * | shader_ir: Add predicate combiner helperReinUsesLisp2019-01-152-0/+15
| | |
| * | shader_ir: Add comparison helpersReinUsesLisp2019-01-152-0/+106
| | |
| * | shader_ir: Add half float helpersReinUsesLisp2019-01-152-0/+44
| | |
| * | shader_ir: Add integer helpersReinUsesLisp2019-01-152-0/+40
| | |
| * | shader_ir: Add float helpersReinUsesLisp2019-01-152-0/+24
| | |
| * | shader_ir: Add settersReinUsesLisp2019-01-152-0/+24
| | |
| * | shader_ir: Add local memory gettersReinUsesLisp2019-01-152-0/+7
| | |
| * | shader_ir: Add internal flag gettersReinUsesLisp2019-01-152-0/+10
| | |
| * | shader_ir: Add attribute gettersReinUsesLisp2019-01-152-0/+26
| | |
| * | shader_ir: Add constant buffer gettersReinUsesLisp2019-01-152-0/+25
| | |
| * | shader_ir: Add register getterReinUsesLisp2019-01-152-0/+9
| | |
| * | shader_ir: Add immediate node constructorsReinUsesLisp2019-01-152-1/+34
| | |
| * | shader_ir: Initial implementationReinUsesLisp2019-01-1530-0/+1573
| | |
| * | shader_bytecode: Fixup encodingReinUsesLisp2019-01-151-1/+1
| | |
| * | shader_header: Make local memory size getter constantReinUsesLisp2019-01-151-1/+1
| | |
* | | frontend: Refactor ScopeAcquireWindowContext out of renderer_opengl.bunnei2019-01-243-28/+2
| | |
* | | maxwell_3d: Set rt_separate_frag_data to 1 by defaultReinUsesLisp2019-01-222-4/+6
| | | | | | | | | | | | | | | | | | | | | 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).
* | | Rename step 1 and step 2 to be a little more descriptiveJames Rowe2019-01-211-2/+2
| | |
* | | QT: Upgrade the Loading Bar to look much betterJames Rowe2019-01-201-0/+9
| | |
* | | Merge pull request #2008 from ReinUsesLisp/dirty-framebuffersbunnei2019-01-206-8/+78
|\ \ \ | | | | | | | | gl_rasterizer_cache: Use dirty flags for framebuffers
| * | | gl_rasterizer: Skip framebuffer configuration if rendertargets have not been changedReinUsesLisp2019-01-072-1/+31
| | | |
| * | | gl_rasterizer_cache: Use dirty flags for the depth bufferReinUsesLisp2019-01-074-3/+23
| | | |
| * | | gl_rasterizer_cache: Use dirty flags for color buffersReinUsesLisp2019-01-074-4/+24
| | | |
* | | | Merge pull request #2002 from ReinUsesLisp/dsa-vao-bufferbunnei2019-01-209-103/+73
|\ \ \ \ | | | | | | | | | | gl_rasterizer: Use DSA for VAOs and buffers
| * | | | gl_rasterizer: Workaround Intel VAO DSA bugReinUsesLisp2019-01-093-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a bug on Intel's blob driver where it fails to properly build a vertex array object if it's not bound even after creating it with glCreateVertexArrays. This workaround binds it after creating it to bypass the issue.
| * | | | gl_stream_buffer: Use DSA for buffer managementReinUsesLisp2019-01-063-17/+14
| | | | |
| * | | | gl_rasterizer: Use DSA for vertex array objectsReinUsesLisp2019-01-066-79/+53
| | | | |
| * | | | gl_state: Drop uniform buffer state trackingReinUsesLisp2019-01-063-10/+0
| | | | |
* | | | | gl_rasterizer: Silent unsafe mix warningReinUsesLisp2019-01-181-1/+1
| |_|/ / |/| | |
* | | | gl_global_cache: Add dummy global cache managerReinUsesLisp2019-01-085-3/+96
| | | |
* | | | Merge pull request #1999 from ReinUsesLisp/dirty-shaderbunnei2019-01-075-2/+23
|\ \ \ \ | | |/ / | |/| | gl_shader_cache: Use dirty flags for shaders
| * | | gl_shader_cache: Use dirty flags for shadersReinUsesLisp2019-01-075-2/+23
| |/ /
* / / gl_rasterizer_cache: Use GL_STREAM_COPY for PBOsReinUsesLisp2019-01-051-1/+1
|/ / | | | | | | | | | | Since the data is doing the path CPU -> GPU -> GPU copy is the most approximate hint. Using GL_STREAM_DRAW generated a performance warning on Nvidia's stack. Changing this hint removed the warning.
* | Merge pull request #1961 from ReinUsesLisp/tex-view-2dbunnei2019-01-023-14/+74
|\ \ | | | | | | gl_rasterizer_cache: Texture view if shader samples array but OGL is not
| * | gl_rasterizer_cache: Texture view if shader samples array but OGL is notReinUsesLisp2018-12-303-14/+74
| | | | | | | | | | | | | | | | | | | | | When a shader samples a texture array but that texture in OpenGL is created without layers, use a texture view to increase the texture hierarchy. For example, instead of binding a GL_TEXTURE_2D bind a GL_TEXTURE_2D_ARRAY view.
* | | gpu: Remove PixelFormat G8R8U and G8R8S, as they do not seem to exist.bunnei2018-12-284-79/+46
| | | | | | | | | | | | - Fixes UI rendering issues in The Legend of Zelda: Breath of the Wild.
* | | Add missing uintBitsToFloat to SetRegisterToHalfFloatRodolfo Bogado2018-12-271-2/+2
| | |
* | | Merge pull request #1892 from Tinob/masterbunnei2018-12-271-113/+122
|\ \ \ | | | | | | | | Improve Zero flag implementation
| * | | Apply CC test to the final value to be stored in the registerRodolfo Bogado2018-12-261-9/+12
| | | |
| * | | Includde saturation in the evaluation of the control codeRodolfo Bogado2018-12-221-3/+4
| | | |
| * | | Handle RZ cases evaluating the expression instead of the register value.Rodolfo Bogado2018-12-221-14/+22
| | | |
| * | | complete emulation of ZeroFlagRodolfo Bogado2018-12-221-100/+97
| | | |
* | | | renderer_opengl: Correct forward declaration of FramebufferLayoutLioncash2018-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | This is actually a struct, not a class, which can lead to compilation warnings.
* | | | Fixed shader linking error due to TLDS (#1934)David2018-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed shader linking error due to TLDS coord should be coords * Fix remaining coords
* | | | shader_bytecode: Fixup TEXS.F16 encodingReinUsesLisp2018-12-261-1/+1
| |/ / |/| |
* | | Merge pull request #1886 from FearlessTobi/port-4164bunnei2018-12-236-4/+95
|\ \ \ | |/ / |/| | Port citra-emu/citra#4164: "citra_qt, video_core: Screenshot functionality"
| * | yuzu, video_core: Screenshot functionalityzhupengfei2018-12-186-4/+95
| |/ | | | | | | Allows capturing screenshot at the current internal resolution (native for software renderer), but a setting is available to capture it in other resolutions. The screenshot is saved to a single PNG in the current layout.
* | Merge pull request #1921 from ogniK5377/no-unitbunnei2018-12-2110-3/+30
|\ \ | | | | | | Fixed uninitialized memory due to missing returns in canary
| * | hopefully fix clang format issueDavid Marcec2018-12-191-0/+1
| | |
| * | Fixed uninitialized memory due to missing returns in canaryDavid Marcec2018-12-1910-3/+29
| | | | | | | | | | | | Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
* | | Merge pull request #1920 from heapo/texture_format_selectionbunnei2018-12-211-1/+11
|\ \ \ | | | | | | | | Texture format fixes for RGBA16UI for copies and R16U when used as depth
| * | | Texture format fixes: Flag RGBA16UI as GL_RGBA_INTEGER format, and interpret R16U as Z16 when depth_compare is enabled.heapo2018-12-181-1/+11
| |/ /
* | | Merge pull request #1909 from heapo/shadow_sampling_fixesbunnei2018-12-191-16/+14
|\ \ \ | |/ / |/| | Fix arrayed texture LOD selection and depth comparison ordering
| * | Fix arrayed shadow sampler array slice/depth comparison ordering, as well as invalid GLSL LOD selection.heapo2018-12-171-16/+14
| | |
* | | shader_bytecode: Fixup half float's operator B encodingReinUsesLisp2018-12-181-1/+1
| | |
* | | Implement postfactor multiplication/division for fmul instructionsheapo2018-12-172-5/+21
|/ /
* | Merge pull request #1893 from lioncash/warnbunnei2018-12-121-3/+3
|\ \ | | | | | | gl_shader_cache: Resolve truncation compiler warning
| * | gl_shader_cache: Dehardcode constant in CalculateProgramSize()Lioncash2018-12-111-2/+2
| | | | | | | | | | | | This constant is related to the size of the instruction.
| * | gl_shader_cache: Resolve truncation compiler warningLioncash2018-12-111-1/+1
| | | | | | | | | | | | | | | The previous code would cause a warning, as it was truncating size_t (64-bit) to a u32 (32-bit) implicitly.
* | | Merge pull request #1888 from marcosvitali/glFrontFacingbunnei2018-12-111-1/+1
|\ \ \ | |/ / |/| | gl_shader_decompiler: IPA fix FrontFacing.
| * | gl_shader_decompiler: IPA FrontFacing: the right value when is the front face is 0xFFFFFFFF.Marcos Vitali2018-12-101-1/+1
| |/
* | Merge pull request #1740 from FernandoS27/shader_propsbunnei2018-12-104-0/+57
|\ \ | | | | | | Implemented Shader Unique Identifiers
| * | Implemented a shader unique identifier.Fernando Sahmkow2018-12-094-0/+57
| |/
* / gl_shader_decompiler: TLDS/TLD4/TLD4S Reworked reflecting the source registers, bugs fixed and modularize.Marcos Vitali2018-12-071-106/+134
|/
* Merge pull request #1824 from ReinUsesLisp/fbcachebunnei2018-12-062-40/+82
|\ | | | | gl_rasterizer: Implement a framebuffer cache
| * gl_rasterizer: Implement a framebuffer cacheReinUsesLisp2018-11-292-40/+82
| |
* | gl_shader_decompiler: Implement TEXS.F16ReinUsesLisp2018-12-052-13/+51
| |
* | gl_shader_decompiler: Fixup inverted ifReinUsesLisp2018-12-051-6/+5
| |
* | Improve msvc codegen for hot-path array LUTsheapo2018-12-051-275/+277
| | | | | | | | | | | | | | In some constexpr functions, msvc is building the LUT at runtime (pushing each element onto the stack) out of an abundance of caution. Moving the arrays into be file-scoped constexpr's avoids this and turns the functions into simple look-ups as intended.
* | Rewrited TEX/TEXS (TEX Scalar). (#1826)Marcos2018-12-041-259/+177
| | | | | | | | | | | | | | | | * Rewrited TEX/TEXS (TEX Scalar). * Style fixes. * Styles issues.
* | Merge pull request #1854 from Subv/old_command_processorbunnei2018-12-042-142/+6
|\ \ | | | | | | Don't try to route PFIFO methods (0-0x40) to the other engines.
| * | Removed unused file.Subv2018-12-041-142/+0
| | | | | | | | | | | | This is a leftover from #1792
| * | GPU: Don't try to route PFIFO methods (0-0x40) to the other engines.Subv2018-12-041-0/+6
| | |
* | | Merge pull request #1822 from ReinUsesLisp/glsl-scopebunnei2018-12-031-250/+213
|\ \ \ | | | | | | | | gl_shader_decompiler: Introduce a scoped object and style changes
| * | | gl_shader_decompiler: Remove texture temporal in TLD4ReinUsesLisp2018-11-291-3/+1
| | | |
| * | | gl_shader_decompiler: Flip negated if else statementReinUsesLisp2018-11-291-3/+3
| | | |
| * | | gl_shader_decompiler: Use GLSL scope on instructions unrelated to texturesReinUsesLisp2018-11-291-35/+10
| | | |
| * | | gl_shader_decompiler: Move texture code generation into lambdasReinUsesLisp2018-11-291-97/+78
| | | |
| * | | gl_shader_decompiler: Clean up texture instructionsReinUsesLisp2018-11-291-87/+56
| | | |
| * | | gl_shader_decompiler: Scope GLSL variables with a scoped objectReinUsesLisp2018-11-291-32/+72
| | |/ | |/|
* | | Merge pull request #1827 from ReinUsesLisp/clip-and-shaderbunnei2018-12-025-13/+37
|\ \ \ | | | | | | | | gl_rasterizer: Enable clip distances when set in register and in shader
| * | | gl_rasterizer: Enable clip distances when set in register and in shaderReinUsesLisp2018-11-295-13/+37
| |/ /
* | | Merge pull request #1825 from ReinUsesLisp/shader-pipeline-cachebunnei2018-12-021-4/+17
|\ \ \ | | | | | | | | gl_shader_manager: Update pipeline when programs have changed
| * | | gl_shader_manager: Update pipeline when programs have changedReinUsesLisp2018-11-291-4/+17
| |/ /
* | | Merge pull request #1795 from ReinUsesLisp/vc-cleanupbunnei2018-12-023-32/+3
|\ \ \ | | | | | | | | video_core: Minor style changes
| * | | gl_rasterizer: Signal UNIMPLEMENTED when rt_separate_frag_data is not zeroReinUsesLisp2018-11-291-1/+1
| | | |
| * | | gl_rasterizer_cache: Use brackets for two-line single-expresion blocksReinUsesLisp2018-11-291-1/+2
| | | |
| * | | gl_rasterizer: Remove unused struct declarationsReinUsesLisp2018-11-291-14/+0
| | | |
| * | | gl_rasterizer: Remove extension booleansReinUsesLisp2018-11-292-16/+0
| |/ /
* | | Merge pull request #1823 from bunnei/fix-surface-copybunnei2018-12-021-145/+5
|\ \ \ | |_|/ |/| | gl_rasterizer_cache: Fix several surface copy issues.
| * | gl_rasterizer_cache: Update AccurateCopySurface to flush complete source surface.bunnei2018-11-301-1/+4
| | | | | | | | | | | | - Fixes issues with Breath of the Wild with use_accurate_gpu_emulation setting.
| * | gl_rasterizer_cache: Remove BlitSurface and replace with more accurate copy.bunnei2018-11-291-144/+1
| |/ | | | | | | | | | | - BlitSurface with different texture targets is inherently broken. - When target is the same, we can just use FastCopySurface. - Fixes rendering issues with Breath of the Wild.
* / Fix debug buildLioncash2018-12-011-4/+2
|/ | | | | A non-existent parameter was left in some formatting calls (the logging macro for which only does anything meaningful on debug builds)
* Merge pull request #1808 from Tinob/masterbunnei2018-11-283-15/+31
|\ | | | | Fix clip distance and viewport
| * remove viewport_transform_enabled as it seems to be inactive when valid transforms are used.Rodolfo Bogado2018-11-271-12/+5
| |
| * Add support for Clip Distance enabled registerRodolfo Bogado2018-11-273-3/+26
| |
* | Merge pull request #1786 from Tinob/DepthClampbunnei2018-11-285-10/+58
|\ \ | | | | | | Add Depth Clamp Support
| * | Implement depth clampRodolfo Bogado2018-11-275-10/+58
| |/
* | Merge pull request #1792 from bunnei/dma-pusherbunnei2018-11-2817-105/+355
|\ \ | | | | | | gpu: Rewrite GPU command list processing with DmaPusher class.
| * | dma_pushbuffer: Optimize to avoid loop and copy on Push.bunnei2018-11-282-5/+17
| | |
| * | gpu: Move command list profiling to DmaPusher::DispatchCalls.bunnei2018-11-282-5/+5
| | |
| * | gpu: Rewrite GPU command list processing with DmaPusher class.bunnei2018-11-2717-105/+343
| |/ | | | | | | - More accurate impl., fixes Undertale (among other games).
* | Merge pull request #1735 from FernandoS27/tex-spacingbunnei2018-11-288-36/+55
|\ \ | | | | | | Texture decoder: Implemented Tile Width Spacing
| * | Implemented Tile Width SpacingFernandoS272018-11-268-36/+55
| | |
* | | gl_shader_decompiler: Fixup clip distance indexReinUsesLisp2018-11-271-1/+1
| | |
* | | gl_rasterizer: Fixup for #1723.Markus Wick2018-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On invalidating the streaming buffer, we need to reupload all vertex buffers. But we don't need to reconfigure the vertex format. This was a (silly) misstake in #1723. Thanks at Rodrigo for discovering the issue. Fun fact, as configuring the vertex format also invalidate the vertex buffer, this misstake had no affect on the behavior.
* | | morton: Fixup compiler warningReinUsesLisp2018-11-271-1/+2
| |/ |/|
* | Merge pull request #1794 from Tinob/masterbunnei2018-11-272-8/+32
|\ \ | | | | | | Add support for viewport_transfom_enable register
| * | Limit the amount of viewports tested for state changes only to the usable onesRodolfo Bogado2018-11-251-2/+10
| | |
| * | Add support for viewport_transfom_enable registerRodolfo Bogado2018-11-242-6/+22
| | |
* | | Merge pull request #1723 from degasus/dirty_flagsbunnei2018-11-279-6/+60
|\ \ \ | | | | | | | | gl_rasterizer: Skip VB upload if the state is clean.
| * | | gl_rasterizer: Skip VB upload if the state is clean.Markus Wick2018-11-179-6/+60
| | | |
* | | | GPU States: Implement Polygon Offset. This is used in SMO all the time. (#1784)Marcos2018-11-275-5/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * GPU States: Implement Polygon Offset. This is used in SMO all the time. * Clang Format fixes. * Initialize polygon_offset in the constructor.
* | | | Merge pull request #1713 from FernandoS27/bra-ccbunnei2018-11-271-4/+14
|\ \ \ \ | | | | | | | | | | Implemented BRA CC conditional and FSET CC Setting
| * | | | Implemented BRA CC conditional and FSET CC SettingFernandoS272018-11-241-4/+14
| | |/ / | |/| |
* | | | Merge pull request #1798 from ReinUsesLisp/y-directionbunnei2018-11-275-16/+26
|\ \ \ \ | |_|_|/ |/| | | gl_shader_decompiler: Implement S2R's Y_DIRECTION
| * | | gl_shader_decompiler: Implement S2R's Y_DIRECTIONReinUsesLisp2018-11-255-16/+26
| |/ /
* | | Merge pull request #1763 from ReinUsesLisp/bfibunnei2018-11-262-0/+23
|\ \ \ | | | | | | | | gl_shader_decompiler: Implement BFI_IMM_R
| * | | gl_shader_decompiler: Implement BFI_IMM_RReinUsesLisp2018-11-212-0/+23
| | | |
* | | | Merge pull request #1760 from ReinUsesLisp/r2pbunnei2018-11-262-0/+42
|\ \ \ \ | | | | | | | | | | gl_shader_decompiler: Implement R2P_IMM
| * | | | gl_shader_decompiler: Implement R2P_IMMReinUsesLisp2018-11-212-0/+42
| |/ / /
* | | | Merge pull request #1782 from FernandoS27/dcbunnei2018-11-261-116/+188
|\ \ \ \ | | | | | | | | | | Fixed Coordinate Encodings in TEX and TEXS instructions
| * | | | Fix Texture OverlappingFernandoS272018-11-241-43/+70
| | | | |
| * | | | Fix TEXS Instruction encodingsFernandoS272018-11-241-22/+48
| | | | |
| * | | | Fix one encoding in TEX InstructionFernandoS272018-11-241-3/+3
| | | | |
| * | | | Corrected inputs indexing in TEX instructionFernandoS272018-11-241-66/+85
| | | | |
* | | | | Merge pull request #1783 from ReinUsesLisp/clip-distancesbunnei2018-11-263-21/+58
|\ \ \ \ \ | | | | | | | | | | | | gl_shader_decompiler: Implement clip distances
| * | | | | gl_shader_decompiler: Implement clip distancesReinUsesLisp2018-11-233-21/+58
| | | | | |
* | | | | | Merge pull request #1796 from ReinUsesLisp/morton-movebunnei2018-11-266-345/+391
|\ \ \ \ \ \ | | | | | | | | | | | | | | video_core: Move morton functions out of gl_rasterizer_cache
| * | | | | | morton: Style changesReinUsesLisp2018-11-251-12/+12
| | | | | | |
| * | | | | | video_core: Move morton functions to their own fileReinUsesLisp2018-11-256-345/+391
| | |_|_|/ / | |/| | | |
* | | | | | Merge pull request #1787 from bunnei/fix-gpu-mmbunnei2018-11-252-1/+9
|\ \ \ \ \ \ | |/ / / / / |/| | | | | memory_manager: Do not allow 0 to be a valid GPUVAddr.
| * | | | | memory_manager: Do not allow 0 to be a valid GPUVAddr.bunnei2018-11-232-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | - Fixes a bug with Undertale using 0 for a render target.
* | | | | | Merge pull request #1725 from FernandoS27/gl43bunnei2018-11-245-20/+13
|\ \ \ \ \ \ | | | | | | | | | | | | | | Update OpenGL's backend version from 3.3 to 4.3
| * | | | | | Removed pre 4.3 ARB extensionsFernandoS272018-11-215-20/+13
| | | | | | |
* | | | | | | Merge pull request #1785 from Tinob/masterbunnei2018-11-245-28/+95
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Add support for clear_flags register
| * | | | | | | Add support for clear_flags registerRodolfo Bogado2018-11-245-28/+95
| | |_|_|/ / / | |/| | | | |
* | | | | | | Merge pull request #1769 from ReinUsesLisp/ccbunnei2018-11-242-70/+81
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | gl_shader_decompiler: Rename cc to condition code and name internal flags
| * | | | | | gl_shader_decompiler: Add a message for unimplemented cc generationReinUsesLisp2018-11-221-23/+46
| | | | | | |
| * | | | | | gl_shader_decompiler: Rename internal flag stringsReinUsesLisp2018-11-221-15/+20
| | | | | | |
| * | | | | | gl_shader_decompiler: Rename control codes to condition codesReinUsesLisp2018-11-222-67/+50
| | | | | | |
* | | | | | | Merge pull request #1744 from degasus/shader_cachebunnei2018-11-244-8/+24
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | shader_cache: Only lock covered instructions.
| * | | | | | shader_cache: Only lock covered instructions.Markus Wick2018-11-204-8/+24
| | |/ / / / | |/| | | |
* | | | | | Added predicate comparison LessEqualWithNan (#1736)Hexagon122018-11-232-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added predicate comparison LessEqualWithNan * oops * Clang fix
* | | | | | Merge pull request #1756 from ReinUsesLisp/fix-texturesbunnei2018-11-231-60/+78
|\ \ \ \ \ \ | | | | | | | | | | | | | | gl_shader_decompiler: Fix register overwriting on texture calls
| * | | | | | gl_shader_decompiler: Fix register overwriting on texture callsReinUsesLisp2018-11-221-60/+78
| | |/ / / / | |/| | | |
* | | | | | Merge pull request #1766 from FernandoS27/fix-txqbunnei2018-11-231-2/+12
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | Properly Implemented TXQ Instruction
| * | | | | Properly Implemented TXQ InstructionFernandoS272018-11-211-2/+12
| | |/ / / | |/| | |
* | | | | Merge pull request #1775 from bunnei/blend-eqbunnei2018-11-222-0/+12
|\ \ \ \ \ | | | | | | | | | | | | maxwell_3d: Implement alternate blend equations.
| * | | | | maxwell_3d: Implement alternate blend equations.bunnei2018-11-222-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | - Used by Undertale.
* | | | | | Merge pull request #1764 from bunnei/macrointerpreterbunnei2018-11-222-8/+25
|\ \ \ \ \ \ | | | | | | | | | | | | | | macro_interpreter: Implement AddWithCarry and SubtractWithBorrow.
| * | | | | | macro_interpreter: Implement AddWithCarry and SubtractWithBorrow.bunnei2018-11-222-8/+25
| |/ / / / / | | | | | | | | | | | | | | | | | | - Used by Undertale.
* | | | | | Merge pull request #1737 from FernandoS27/layer-copybunnei2018-11-222-2/+30
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | Implemented Fast Layered Copy
| * | | | | Implemented Fast Layered CopyFernandoS272018-11-202-2/+30
| | |/ / / | |/| | |
* | | | | Merge pull request #1753 from FernandoS27/ufbtypebunnei2018-11-212-0/+8
|\ \ \ \ \ | | | | | | | | | | | | Use default values for unknown framebuffer pixel format
| * | | | | Use default values for unknown framebuffer pixel formatFernandoS272018-11-212-0/+8
| |/ / / /
* | | | | Merge pull request #1752 from ReinUsesLisp/unimpl-decompilerbunnei2018-11-211-371/+258
|\ \ \ \ \ | |_|/ / / |/| | | | gl_shader_decompiler: Use UNIMPLEMENTED when applicable
| * | | | gl_shader_decompiler: Use UNIMPLEMENTED instead of LOG+UNREACHABLE when applicableReinUsesLisp2018-11-211-371/+258
| |/ / /
* | | | Merge pull request #1754 from ReinUsesLisp/zero-registerbunnei2018-11-211-2/+1
|\ \ \ \ | |_|/ / |/| | | gl_shader_decompiler: Remove UNREACHABLE when setting RZ
| * | | gl_shader_decompiler: Remove UNREACHABLE when setting RZReinUsesLisp2018-11-211-2/+1
| |/ /
* / / maxwell_3d: Initialize rasterizer color mask registers as enabled.bunnei2018-11-211-0/+9
|/ / | | | | | | - Fixes rendering regression with Sonic Mania.
* | Merge pull request #1717 from FreddyFunk/swizzle-gobbunnei2018-11-191-37/+33
|\ \ | | | | | | textures/decoders: Replace magic numbers
| * | textures/decoders: Replace magic numbersFrederic Laing2018-11-171-37/+33
| |/
* | Merge pull request #1693 from Tinob/masterbunnei2018-11-199-211/+315
|\ \ | | | | | | Missing ogl states
| * | drop support for non separate alpha as it seems to cause issues in some gamesRodolfo Bogado2018-11-183-61/+35
| | |
| * | fix sampler configuration, thanks to Marcos for his investigationRodolfo Bogado2018-11-173-19/+57
| | |
| * | small type fixRodolfo Bogado2018-11-171-6/+6
| | |
| * | small fix for alphaToOne bit locationRodolfo Bogado2018-11-171-2/+2
| | |
| * | fix for gcc compilationRodolfo Bogado2018-11-171-60/+61
| | |
| * | add AlphaToCoverage and AlphaToOneRodolfo Bogado2018-11-175-1/+39
| | |
| * | add support for fragment_color_clampRodolfo Bogado2018-11-175-1/+24
| | |
| * | add missing MirrorOnceBorder support where supportedRodolfo Bogado2018-11-171-0/+6
| | |
| * | set border color not depending on the wrap modeRodolfo Bogado2018-11-171-9/+9
| | | | | | | | | | | | only enable color mask for the first framebuffer id independent blending is disabled
| * | set default value for point size registerRodolfo Bogado2018-11-172-5/+4
| | |
| * | fix viewport and scissor behaviorRodolfo Bogado2018-11-176-64/+89
| |/
* | Eliminated unnessessary memory allocation and copy (#1702)Frederic L2018-11-193-9/+20
| |
* | gl_rasterizer: Remove default clip distanceReinUsesLisp2018-11-191-2/+0
|/
* Merge pull request #1700 from FreddyFunk/cleanupbunnei2018-11-161-3/+3
|\ | | | | gl_rasterizer_chache: Minor cleanup
| * gl_rasterizer_chache: Minor cleanupFrederic Laing2018-11-151-3/+3
| |
* | Merge pull request #1701 from FreddyFunk/decodersbunnei2018-11-161-16/+16
|\ \ | | | | | | textures/decoders: Minor cleanup
| * | textures/decoders: Minor cleanupFrederic Laing2018-11-151-16/+16
| |/
* | Merge pull request #1676 from lioncash/warnbunnei2018-11-162-3/+4
|\ \ | |/ |/| gl_state: Amend compilation warnings
| * gl_state: Amend compilation warningsLioncash2018-11-132-3/+4
| | | | | | | | | | Makes float -> integral conversions explicit via casts and also silences a sign conversion warning.
* | Merge pull request #1637 from FernandoS27/cachebunnei2018-11-151-18/+17
|\ \ | | | | | | Improved GPU Caches lookup Speed
| * | Improved GPU Caches lookup SpeedFernandoS272018-11-111-18/+17
| | |
* | | Merge pull request #1662 from FreddyFunk/CopySurface-Optimizationbunnei2018-11-141-10/+7
|\ \ \ | | | | | | | | gl_rasterizer_cache: CopySurface optimization
| * | | gl_rasterizer_cache: Remove unnecessary memory allocation and copy in CopySurfaceFrederic Laing2018-11-081-10/+7
| | | |
* | | | Merge pull request #1685 from lioncash/basebunnei2018-11-141-1/+0
|\ \ \ \ | | | | | | | | | | video_core/renderer_base: Remove GL include from the renderer base class files
| * | | | video_core/renderer_base: Remove GL include from the renderer base class filesLioncash2018-11-131-1/+0
| | |_|/ | |/| | | | | | | | | | Keeps the base class source files implementation-agnostic.
* / | | gl_rasterizer: Minor cleanupFrederic L2018-11-131-4/+2
|/ / / | | | | | | Minor code cleanup from unaddressed feedback in #1654
* | | Merge pull request #1628 from greggameplayer/Texture2DArraybunnei2018-11-131-0/+1
|\ \ \ | | | | | | | | Implement SurfaceTarget Texture2DArray
| * \ \ Merge branch 'master' into Texture2DArraygreggameplayer2018-11-0612-186/+338
| |\ \ \
| * | | | correct syntaxgreggameplayer2018-11-021-4/+3
| | | | |
| * | | | Merge branch 'master' into Texture2DArraygreggameplayer2018-11-0214-1031/+1296
| |\ \ \ \
| * | | | | Implement SurfaceTarget Texture2DArraygreggameplayer2018-10-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | ( needed by Mario+Rabbids Kingdom Battle )
* | | | | | Implement ASTC_2D_10X8 & ASTC_2D_10X8_SRGB (#1666)greggameplayer2018-11-134-71/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement ASTC_2D_10X8 & ASTC_2D_10X8_SRGB ( needed by Mario+Rabbids Kingdom Battle ) * Small placement correction
* | | | | | Merge pull request #1660 from Tinob/masterbunnei2018-11-129-88/+138
|\ \ \ \ \ \ | | | | | | | | | | | | | | Map more missing opengl states
| * | | | | | Use core extensions when available to set max anisotropic filtering levelRodolfo Bogado2018-11-111-2/+7
| | | | | | |
| * | | | | | Improve state management by splitting some of the states id separated function to avoid a full apply overheadRodolfo Bogado2018-11-116-39/+40
| | | | | | |
| * | | | | | Try to fix problems with stencil test in some games, relax translation to opengl enums to avoid crashing and only generate logs of the errors.Rodolfo Bogado2018-11-114-37/+61
| | | | | | |
| * | | | | | set sampler max lod, min lod, lod bias and max anisotropyRodolfo Bogado2018-11-113-13/+33
| | |_|_|_|/ | |/| | | |
* | | | | | Merge pull request #1664 from FreddyFunk/cast2bunnei2018-11-111-2/+2
|\ \ \ \ \ \ | |/ / / / / |/| | | | | gl_rasterizer: Fix compiler warnings
| * | | | | gl_rasterizer: Fix compiler warningsFrederic Laing2018-11-081-2/+2
| | |_|_|/ | |/| | |
* | | | | Merge pull request #1669 from ReinUsesLisp/fixup-gsbunnei2018-11-114-15/+24
|\ \ \ \ \ | | | | | | | | | | | | gl_shader_decompiler: Guard out of bound geometry shader input reads
| * | | | | gl_shader_decompiler: Guard out of bound geometry shader input readsReinUsesLisp2018-11-104-15/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Geometry shaders follow a pattern that results in out of bound reads. This pattern is: - VSETP to predicate - Use that predicate to conditionally set a register a big number - Use the register to access geometry shaders At the time of writing this commit I don't know what's the intent of this number. Some drivers argue about these out of bound reads. To avoid this issue, input reads are guarded limiting reads to the highest posible vertex input of the current topology (e.g. points to 1 and triangles to 3).
* | | | | | Merge pull request #1663 from lioncash/rasterbunnei2018-11-119-10/+25
|\ \ \ \ \ \ | | | | | | | | | | | | | | rasterizer_cache: Remove reliance on the System singleton
| * | | | | | rasterizer_cache: Remove reliance on the System singletonLioncash2018-11-089-10/+25
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than have a transparent dependency, we can make it explicit in the interface. This also gets rid of the need to put the core include in a header.
* | | | | | Merge pull request #1648 from FernandoS27/texs-3-arraybunnei2018-11-111-7/+11
|\ \ \ \ \ \ | | | | | | | | | | | | | | Implement 3 coordinate array in TEXS instruction
| * | | | | | Correct issue where texturelod could not be applied to 2darrayshadowFernandoS272018-11-081-1/+5
| | | | | | |
| * | | | | | Implement 3 coordinate array in TEXS instructionFernandoS272018-11-071-6/+6
| | |/ / / / | |/| | | |
* | | | | | Merge pull request #1654 from degasus/dirty_flagsbunnei2018-11-114-7/+37
|\ \ \ \ \ \ | | | | | | | | | | | | | | gl_rasterizer: Skip VAO binding if the state is clean.
| * | | | | | gl_rasterizer: Skip VAO binding if the state is clean.Markus Wick2018-11-063-2/+21
| | | | | | |
| * | | | | | gl_rasterizer: Split VAO and VB setup functions.Markus Wick2018-11-062-5/+16
| | |_|_|_|/ | |/| | | |
* | | | | | rasterizer_cache: Add missing virtual destructor to RasterizerCacheObjectLioncash2018-11-083-0/+10
| |_|/ / / |/| | | | | | | | | | | | | | Ensures that destruction will always do the right thing in any context.
* | | | | gl_resource_manager: Amend clang-format discrepanciesLioncash2018-11-081-4/+2
| |/ / / |/| | | | | | | | | | | Fixes the buildbot.
* | | | Merge pull request #1630 from bunnei/fix-mapbufferexbunnei2018-11-072-31/+52
|\ \ \ \ | | | | | | | | | | memory_manager: Do not MapBufferEx over already in use memory.
| * | | | memory_manager: Do not MapBufferEx over already in use memory.bunnei2018-11-012-31/+52
| | |_|/ | |/| | | | | | | | | | - This fixes rendering when changing areas in Super Mario Odyssey.
* | | | Merge pull request #1635 from Tinob/masterbunnei2018-11-076-153/+338
|\ \ \ \ | | | | | | | | | | Implement multi-target viewports and blending
| * | | | Add support to color mask to avoid issues in blending caused by wrong values in the alpha channel in some render targets.Rodolfo Bogado2018-11-055-25/+79
| | | | |
| * | | | Implement multi-target viewports and blendingRodolfo Bogado2018-11-056-128/+259
| | | | |
* | | | | gl_rasterizer_cache: Add profiles for Copy and Blit.Markus Wick2018-11-061-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | They were missed, and Copy is very high in profile here. It doesn't block the GPU, but it stalls the driver thread. So with our bad GL instructions, this might block quite a while.
* | | | | gl_resource_manager: Profile creation and deletion.Markus Wick2018-11-061-0/+42
| | | | |
* | | | | gl_stream_buffer: Profile orphaning of stream buffer.Markus Wick2018-11-061-0/+5
| |_|/ / |/| | | | | | | | | | | | | | | This serialize to the driver thread and so it may block for a while. So if it is in the benchmark, we get noticed if it happens too often.
* | | | gl_resource_manager: Split implementations in .cpp file.Markus Wick2018-11-065-114/+167
| | | | | | | | | | | | | | | | | | | | Those implementations are quite costly, so there is no need to inline them to the caller. Ressource deletion is often a performance bug, so in this way, we support to add breakpoints to them.
* | | | Merge pull request #1616 from FernandoS27/cube-arraybunnei2018-11-054-0/+20
|\ \ \ \ | |/ / / |/| | | Implement Cube Arrays
| * | | Implement Cube ArraysFernandoS272018-11-014-0/+20
| | | |
* | | | Merge pull request #1625 from FernandoS27/astcbunnei2018-11-058-72/+151
|\ \ \ \ | |_|/ / |/| | | Implement ASTC Textures 5x5 and fix a bunch of ASTC texture problems
| * | | Fix ASTC Decompressor to support depth parameterFernandoS272018-11-026-62/+128
| | | |
| * | | Fix ASTC formatsFernandoS272018-11-013-11/+20
| | | |
| * | | Implemented ASTC 5x5FernandoS272018-11-011-1/+5
| | | |
* | | | Merge pull request #1623 from Tinob/masterbunnei2018-11-013-105/+158
|\ \ \ \ | |/ / / |/| | | Improve OpenGL state handling
| * | | Improve OpenGL state handlingRodolfo Bogado2018-10-313-105/+158
| | |/ | |/|
* | | Merge pull request #1527 from FernandoS27/assert-flowbunnei2018-11-012-2/+27
|\ \ \ | | | | | | | | Assert Control Flow Instructions using Control Codes
| * | | Assert Control Flow Instructions using Control CodesFernandoS272018-10-292-3/+28
| | | |
* | | | maxwell_3d: Restructure macro upload to use a single macro code memory.bunnei2018-11-014-27/+55
| | | | | | | | | | | | | | | | | | | | - Fixes an issue where macros could be skipped. - Fixes rendering of distant objects in Super Mario Odyssey.
* | | | Merge pull request #1528 from FernandoS27/assert-control-codesbunnei2018-11-012-1/+103
|\ \ \ \ | |_|_|/ |/| | | Assert Control Codes Generation on Shader Instructions
| * | | Assert Control Codes GenerationFernandoS272018-10-302-1/+103
| | | |
* | | | video_core: Move surface declarations out of gl_rasterizer_cacheReinUsesLisp2018-10-306-898/+954
| |_|/ |/| |
* | | global: Use std::optional instead of boost::optional (#1578)Frederic L2018-10-3017-97/+107
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build
* | Merge pull request #1580 from FernandoS27/mm-implbunnei2018-10-306-109/+254
|\ \ | | | | | | Implemented Mipmaps
| * | Fixed black textures, pixelation and we no longer require to auto-generate mipmapsFernandoS272018-10-291-14/+2
| | |
| * | Fixed mipmap block autosizing algorithmFernandoS272018-10-293-13/+25
| | |
| * | Fixed Invalid Image size and Mipmap calculationFernandoS272018-10-291-4/+7
| | |
| * | Fixed Block Resizing algorithm and Clang FormatFernandoS272018-10-293-12/+19
| | |
| * | Implement Mip FilterFernandoS272018-10-294-10/+33
| | |
| * | Zero out memory region of recreated surface before flushingFernandoS272018-10-291-0/+2
| | |
| * | Implement MipmapsFernandoS272018-10-282-101/+211
| |/
* | Merge pull request #1613 from ReinUsesLisp/gl-utilsbunnei2018-10-296-30/+61
|\ \ | | | | | | video_core: Move OpenGL specific utils to its renderer
| * | video_core: Move OpenGL specific utils to its rendererReinUsesLisp2018-10-296-30/+61
| |/
* | Merge pull request #1610 from slashiee/dxt1-alphabunnei2018-10-291-2/+2
|\ \ | | | | | | renderer_opengl: Enable alpha channel for DXT1 texture format
| * | Enable alpha channel for DXT1 texture formatMichael2018-10-281-2/+2
| |/
* / renderer_opengl: Correct bpp value for ASTC_2D_8X5_SRGBRodolfo Bogado2018-10-291-1/+1
|/
* Correct bpp value for ASTC_2D_8X5Tobias2018-10-281-1/+1
|
* Merge pull request #1601 from FernandoS27/shader-precisionbunnei2018-10-281-20/+35
|\ | | | | Improved Shader accuracy on Vertex and Geometry Shaders.
| * Refactor precise usage and add FMNMX, MUFU, FMUL32 and FADD332FernandoS272018-10-282-74/+37
| |
| * Improved Shader accuracy on Vertex and Geometry Shaders with FFMA, FMUL and FADDFernandoS272018-10-282-6/+58
| |
* | Implement sRGB Support, including workarounds for nvidia driver issues and QT sRGB supportRodolfo Bogado2018-10-288-40/+197
| |
* | Merge pull request #1594 from FreddyFunk/static-castbunnei2018-10-281-2/+2
|\ \ | |/ |/| gl_rasterizer_cache: Fix compiler warning
| * gl_rasterizer_cache: Fix compiler warningFrederic Laing2018-10-271-2/+2
| |
* | Merge pull request #1592 from bunnei/prim-restartbunnei2018-10-275-1/+40
|\ \ | | | | | | gl_rasterizer: Implement primitive restart.
| * | gl_rasterizer: Implement primitive restart.bunnei2018-10-265-1/+40
| |/
* / Implement Default Block Height for each formatFernandoS272018-10-271-0/+62
|/
* Merge pull request #1533 from FernandoS27/lmembunnei2018-10-263-1/+138
|\ | | | | Implemented Shader Local Memory
| * Implemented LD_L and ST_LFernandoS272018-10-243-12/+112
| |
| * Implement Shader Local MemoryFernandoS272018-10-241-0/+37
| |
* | maxwell_3d: Add code for initializing register defaults.bunnei2018-10-262-1/+21
| |
* | gl_rasterizer: Implement depth range.bunnei2018-10-264-13/+20
| |
* | Merge pull request #1524 from FernandoS27/layers-fixbunnei2018-10-253-72/+109
|\ \ | |/ |/| rasterizer: Fix Layered Textures Loading and Cubemaps
| * Fixed Layered Textures Loading and CubemapsFernandoS272018-10-233-72/+109
| |
* | Merge pull request #1554 from FernandoS27/pointsizebunnei2018-10-243-5/+28
|\ \ | | | | | | Implement PointSize Output Attribute.
| * | Implement PointSizeFernandoS272018-10-233-5/+28
| | |
* | | decoders: Remove unused variable within SwizzledData()Lioncash2018-10-241-1/+0
| | |
* | | maxwell_3d: Remove unused variable within ProcessQueryGet()Lioncash2018-10-241-1/+0
|/ /
* | Merge pull request #1519 from ReinUsesLisp/vsetpbunnei2018-10-232-75/+108
|\ \ | | | | | | gl_shader_decompiler: Implement VSETP
| * | gl_shader_decompiler: Implement VSETPReinUsesLisp2018-10-232-0/+26
| | |
| * | gl_shader_decompiler: Abstract VMAD into a video subsetReinUsesLisp2018-10-232-75/+82
| | |
* | | Merge pull request #1539 from lioncash/dmabunnei2018-10-233-19/+10
|\ \ \ | | | | | | | | maxwell_dma: Silence compilation warnings
| * | | engines/maxwell_*: Use nested namespace specifiers where applicableLioncash2018-10-203-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | These three source files are the only ones within the engines directory that don't use nested namespaces. We may as well change these over to keep things consistent.
| * | | maxwell_dma: Make variables const where applicable within HandleCopy()Lioncash2018-10-201-3/+3
| | | | | | | | | | | | | | | | These are never modified, so we can make that assumption explicit.
| * | | maxwell_dma: Make FlushAndInvalidate's size parameter a u64Lioncash2018-10-201-1/+1
| | | | | | | | | | | | | | | | This prevents truncation warnings at the lambda's usage sites.
| * | | maxwell_dma: Remove unused variables in HandleCopy()Lioncash2018-10-201-3/+0
| | |/ | |/| | | | | | | These pointer variables are never used, so we can get rid of them.
* | | Merge pull request #1470 from FernandoS27/alpha_testingbunnei2018-10-237-20/+87
|\ \ \ | | | | | | | | Implemented Alpha Test using Shader Emulation
| * | | Assert that multiple render targets are not set while alpha testingFernandoS272018-10-223-3/+17
| | | |
| * | | Use standard UBO and fix/stylize the codeFernandoS272018-10-228-91/+51
| | | |
| * | | Cache uniform locations and restructure the implementationFernandoS272018-10-223-33/+29
| | | |
| * | | Remove SyncAlphaTest and clang formatFernandoS272018-10-224-8/+9
| | | |
| * | | Added Alpha FuncFernandoS272018-10-222-3/+43
| | | |
| * | | Implemented Alpha TestingFernandoS272018-10-226-3/+59
| | | |
* | | | Merge pull request #1512 from ReinUsesLisp/brkbunnei2018-10-232-22/+43
|\ \ \ \ | |_|_|/ |/| | | gl_shader_decompiler: Implement PBK and BRK
| * | | gl_shader_decompiler: Implement PBK and BRKReinUsesLisp2018-10-182-22/+43
| | | |
* | | | Merge pull request #1550 from FernandoS27/fmul32bunnei2018-10-232-3/+8
|\ \ \ \ | | | | | | | | | | Added Saturation to FMUL32I
| * | | | Added Saturation to FMUL32IFernandoS272018-10-232-3/+8
| | |/ / | |/| |
* | | | Merge pull request #1537 from lioncash/shaderbunnei2018-10-231-6/+7
|\ \ \ \ | |/ / / |/| | | gl_shader_decompiler: Minor changes
| * | | gl_shader_decompiler: Allow std::move to function in SetPredicateLioncash2018-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | If the variable being moved is const, then std::move will always perform a copy (since it can't actually move the data).
| * | | gl_shader_decompiler: Get rid of variable shadowing warningsLioncash2018-10-201-2/+2
| | | | | | | | | | | | | | | | A variable with the same name was previously declared in an outer scope.
| * | | gl_shader_decompiler: Fix a few comment typosLioncash2018-10-201-3/+4
| | |/ | |/|
* | | Merge pull request #1547 from FernandoS27/fix-fsetbunnei2018-10-222-30/+12
|\ \ \ | | | | | | | | Fixed FSETP and FSET
| * | | Fixed FSETP and FSETFernandoS272018-10-222-30/+12
| |/ /
* / / Fixed VAOs Float types only returning GL_FLOAT in cases that they had to return GL_HALF_FLOATFernandoS272018-10-221-2/+14
|/ /
* | gl_shader_decompiler: Move position varying declaration back to gl_shader_genReinUsesLisp2018-10-203-13/+9
| | | | | | | | | | | | | | The intention of declaring them in gl_shader_decompiler was to be able to use blocks to implement geometry shaders. But that wasn't needed in the end and it caused issues when both vertex stages were being used, resulting in a redeclaration of "position".
* | Merge pull request #1501 from ReinUsesLisp/half-floatbunnei2018-10-202-0/+458
|\ \ | | | | | | gl_shader_decompiler: Implement H* instructions
| * | gl_shader_decompiler: Implement HSET2_RReinUsesLisp2018-10-152-0/+62
| | |
| * | gl_shader_decompiler: Implement HSETP2_RReinUsesLisp2018-10-152-0/+65
| | |
| * | gl_shader_decompiler: Implement HFMA2 instructionsReinUsesLisp2018-10-152-0/+85
| | |
| * | gl_shader_decompiler: Implement HADD2_IMM and HMUL2_IMMReinUsesLisp2018-10-152-0/+73
| | |
| * | gl_shader_decompiler: Implement non-immediate HADD2 and HMUL2 instructionsReinUsesLisp2018-10-152-0/+75
| | |
| * | gl_shader_decompiler: Setup base for half float unpacking and settingReinUsesLisp2018-10-152-0/+98
| | |
* | | GPU: Improved implementation of maxwell DMA (Subv).bunnei2018-10-193-17/+66
| | |
* | | decoders: Introduce functions for un/swizzling subrects.bunnei2018-10-192-0/+49
| | |
* | | GPU: Invalidate destination address of kepler_memory writes.bunnei2018-10-193-3/+17
| | |
* | | fermi_2d: Add support for more accurate surface copies.bunnei2018-10-192-3/+12
| | |
* | | Merge pull request #1505 from FernandoS27/tex-3dbunnei2018-10-184-2/+13
|\ \ \ | | | | | | | | Implemented 3D Textures
| * | | Clang format and other fixesFernandoS272018-10-181-16/+0
| | | |
| * | | Implement Reinterpret Surface, to accurately blit 3D texturesFernandoS272018-10-181-2/+4
| | | |
| * | | Implement GetInRange in the Rasterizer CacheFernandoS272018-10-181-0/+16
| | | |
| * | | Implement 3D TexturesFernandoS272018-10-184-1/+10
| | | |
* | | | Merge pull request #1489 from FernandoS27/fix-tldsbunnei2018-10-181-1/+5
|\ \ \ \ | |/ / / |/| | | shader_decompiler: Fix TLDS
| * | | Fix TLDSFernandoS272018-10-141-1/+5
| |/ /
* | | Merge pull request #1497 from bunnei/flush-framebuffersbunnei2018-10-188-174/+415
|\ \ \ | | | | | | | | Implement flushing in the rasterizer cache
| * | | gl_rasterizer_cache: Remove unnecessary block_depth=1 on Flush.bunnei2018-10-181-1/+0
| | | |
| * | | gl_rasterizer_cache: Remove unnecessary temporary buffer with unswizzle.bunnei2018-10-181-5/+2
| | | |
| * | | gl_rasterizer_cache: Use AccurateCopySurface for use_accurate_gpu_emulation.bunnei2018-10-162-2/+18
| | | |
| * | | config: Rename use_accurate_framebuffers -> use_accurate_gpu_emulation.bunnei2018-10-163-6/+6
| | | | | | | | | | | | | | | | - This will be used as a catch-all for slow-but-accurate GPU emulation paths.
| * | | rasterizer_cache: Refactor to support in-order flushing.bunnei2018-10-166-63/+116
| | | |
| * | | gl_rasterizer_cache: Refactor to only call GetRegionEnd on surface creation.bunnei2018-10-162-16/+23
| | | |
| * | | gl_rasterizer_cache: Only flush when use_accurate_framebuffers is enabled.bunnei2018-10-162-2/+13
| | | |
| * | | gl_rasterizer_cache: Separate guest and host surface size managment.bunnei2018-10-162-92/+94
| | | |
| * | | gl_rasterizer_cache: Rename GetGLBytesPerPixel to GetBytesPerPixel.bunnei2018-10-162-17/+18
| | | | | | | | | | | | | | | | - This does not really have anything to do with OpenGL.
| * | | gl_rasterizer_cache: Remove unused FlushSurface method.bunnei2018-10-162-7/+0
| | | |
| * | | gl_rasterizer: Implement flushing.bunnei2018-10-161-1/+25
| | | |
| * | | gl_rasterizer_cache: Remove usage of Memory::Read/Write functions.bunnei2018-10-161-13/+8
| | | | | | | | | | | | | | | | - These cannot be used within the cache, as they change cache state.
| * | | gl_rasterizer_cache: Clamp cached surface size to mapped GPU region size.bunnei2018-10-162-19/+37
| | | |
| * | | memory_manager: Add a method for querying the end of a mapped GPU region.bunnei2018-10-162-0/+11
| | | |
| * | | rasterizer_cache: Reintroduce method for flushing.bunnei2018-10-163-0/+23
| | | |
| * | | gl_rasterizer_cache: Reintroduce code for handling swizzle and flush to guest RAM.bunnei2018-10-162-28/+119
| | |/ | |/|
* | | Merge pull request #1496 from FernandoS27/tex-arraybunnei2018-10-181-14/+55
|\ \ \ | |/ / |/| | Implement Arrays on Tex Instruction
| * | Implement Arrays on Tex InstructionFernandoS272018-10-141-14/+55
| |/
* | shader_bytecode: Add Control Code enum 0xfReinUsesLisp2018-10-151-1/+1
| | | | | | | | | | | | Control Code 0xf means to unconditionally execute the instruction. This value is passed to most BRA, EXIT and SYNC instructions (among others) but this may not always be the case.
* | gl_shader_decompiler: Fixup style inconsistenciesReinUsesLisp2018-10-151-5/+3
| |
* | gl_rasterizer: Silence implicit cast warning in glBindBufferRangeReinUsesLisp2018-10-151-1/+2
| |
* | Merge pull request #1488 from Hexagon12/astc-typesbunnei2018-10-143-6/+32
|\ \ | | | | | | video_core: Added ASTC 5x4; 8x5 types
| * | Added ASTC 5x4; 8x5Hexagon122018-10-133-6/+32
| | |
* | | Shorten the implementation of 3D swizzle to only 3 functionsFernandoS272018-10-141-70/+27
| | |
* | | Fix a Crash on Zelda BotW and Splatoon 2, and simplified LoadGLBufferFernandoS272018-10-132-19/+2
| | |
* | | Propagate depth and depth_block on modules using decodersFernandoS272018-10-137-52/+64
| | |
* | | Remove old Swizzle algorithms and use 3d SwizzleFernandoS272018-10-131-93/+69
| | |
* | | Implement Precise 3D SwizzleFernandoS272018-10-131-3/+71
| | |
* | | Implement Fast 3D SwizzleFernandoS272018-10-131-2/+74
| |/ |/|
* | Implemented helper function to correctly calculate a texture's sizeFernandoS272018-10-122-0/+22
| |
* | gl_shader_decompiler: Implement VMADReinUsesLisp2018-10-112-0/+118
|/
* Merge pull request #1458 from FernandoS27/fix-render-target-block-settingsbunnei2018-10-115-18/+81
|\ | | | | Fixed block height settings for RenderTargets and Depth Buffers
| * Add memory Layout to Render Targets and Depth BuffersFernandoS272018-10-103-21/+33
| |
| * Fixed block height settings for RenderTargets and Depth Buffers, and added block width and block depthFernandoS272018-10-105-12/+63
| |
* | Merge pull request #1460 from FernandoS27/scissor_testbunnei2018-10-103-1/+36
|\ \ | | | | | | Implemented Scissor Testing
| * | Implement Scissor TestFernandoS272018-10-091-4/+9
| | |
| * | Assert Scissor testsFernandoS272018-10-093-1/+31
| |/
* | Merge pull request #1425 from ReinUsesLisp/geometry-shadersbunnei2018-10-1011-120/+543
|\ \ | | | | | | gl_shader_decompiler: Implement geometry shaders
| * | gl_shader_decompiler: Move position varying location from 15 to 0 and apply an offsetReinUsesLisp2018-10-071-6/+10
| | |
| * | gl_shader_decompiler: Implement geometry shadersReinUsesLisp2018-10-0710-107/+522
| | |
| * | video_core: Allow LabelGLObject to use extra info on any objectReinUsesLisp2018-10-071-10/+14
| |/
* / gl_shader_decompiler: Remove unused variables in TMML's implementationLioncash2018-10-091-7/+3
|/ | | | | Given "y" isn't always used, but "x" is, we can rearrange this to avoid unused variable warnings by changing the names of op_a and op_b
* Merge pull request #1446 from bunnei/fast_fermi_copybunnei2018-10-078-40/+117
|\ | | | | gl_rasterizer: Implement accelerated Fermi2D copies.
| * fermi_2d: Implement simple copies with AccelerateSurfaceCopy.bunnei2018-10-063-24/+36
| |
| * gl_rasterizer: Add rasterizer cache code to handle accerated fermi copies.bunnei2018-10-065-16/+60
| |
| * gl_rasterizer_cache: Implement a simpler surface copy using glCopyImageSubData.bunnei2018-10-061-0/+21
| |
* | Merge pull request #1437 from FernandoS27/tex-mode2bunnei2018-10-076-69/+265
|\ \ | | | | | | Implemented Depth Compare, Shadow Samplers and Texture Processing Modes for TEXS and TLDS
| * | Implemented Depth Compare and Shadow SamplersFernandoS272018-10-066-65/+224
| | |
| * | Implemented Texture Processing Modes in TEXS and TLDSFernandoS272018-10-031-5/+42
| | |
* | | gl_rasterizer: Fixup undefined behaviour in SetupDrawReinUsesLisp2018-10-071-0/+1
| |/ |/|
* | gl_rasterizer: Implement quads topologyReinUsesLisp2018-10-048-46/+236
|/
* gl_rasterizer: Fixup unassigned point sizesReinUsesLisp2018-10-011-1/+4
|
* Merge pull request #1330 from raven02/tldsbunnei2018-10-011-7/+15
|\ | | | | TLDS: Add 1D sampler
| * Fix trailing whitespaceraven022018-09-301-1/+4
| |
| * Merge branch 'master' into tldsraven022018-09-1924-195/+651
| |\
| * | Add 1D sampler for TLDS - TexelFetch (Mario Rabbids)raven022018-09-171-7/+12
| | |
* | | gl_rasterizer_cache: Fixes to how we do render to cubemap.bunnei2018-09-302-32/+5
| | | | | | | | | | | | - Fixes issues with Splatoon 2.
* | | gl_rasterizer_cache: Add check for array rendering to cubemap texture.bunnei2018-09-301-0/+8
| | |
* | | gl_rasterizer_cache: Implement render to cubemap.bunnei2018-09-303-119/+218
| | |
* | | gl_shader_decompiler: TEXS: Implement TextureType::TextureCube.bunnei2018-09-301-0/+8
| | |
* | | gl_rasterizer_cache: Add support for SurfaceTarget::TextureCubemap.bunnei2018-09-302-1/+36
| | |
* | | gl_rasterizer_cache: Implement LoadGLBuffer for Texture2DArray.bunnei2018-09-301-0/+8
| | |
* | | gl_rasterizer_cache: Update BlitTextures to support non-Texture2D ColorTexture surfaces.bunnei2018-09-301-23/+88
| | |
* | | gl_rasterizer_cache: Track texture target and depth in the cache.bunnei2018-09-301-2/+3
| | |
* | | gl_rasterizer_cache: Workaround for Texture2D -> Texture2DArray scenario.bunnei2018-09-303-6/+21
| | |
* | | gl_rasterizer_cache: Keep track of surface 2D size separately from total size.bunnei2018-09-302-32/+46
| | |
* | | Merge pull request #1411 from ReinUsesLisp/point-sizebunnei2018-09-295-1/+27
|\ \ \ | | | | | | | | video_core: Implement point_size and add point state sync
| * | | video_core: Implement point_size and add point state syncReinUsesLisp2018-09-285-1/+27
| | | |
* | | | Merge pull request #1406 from ReinUsesLisp/multibind-samplersbunnei2018-09-295-8/+25
|\ \ \ \ | |/ / / |/| | | gl_state: Pack sampler bindings into a single ARB_multi_bind
| * | | gl_state: Pack sampler bindings into a single ARB_multi_bindReinUsesLisp2018-09-285-8/+25
| | | |
* | | | Merge pull request #1377 from FernandoS27/faster-swizzlebunnei2018-09-271-51/+66
|\ \ \ \ | |/ / / |/| | | Improved Fast Swizzle and Legacy Swizzle
| * | | Reverse stride align restriction on FastSwizzle due to lost performanceFernandoS272018-09-211-3/+2
| | | |
| * | | Join both Swizzle methods within one interface functionFernandoS272018-09-211-11/+19
| | | |
| * | | Standarized Legacy Swizzle to look alike FastSwizzle and use a Swizzling Table insteadFernandoS272018-09-211-42/+38
| | | |
| * | | Remove same output bpp restriction on FastSwizzleFernandoS272018-09-211-4/+5
| | | |
| * | | Improved Legacy Swizzler to be better documented and work betterFernandoS272018-09-211-15/+21
| | | |
| * | | Improved fast swizzle and removed restrictions to itFernandoS272018-09-211-7/+12
| | | |
* | | | video_core: Add asserts for CS, TFB and alpha testingReinUsesLisp2018-09-265-3/+92
| | | | | | | | | | | | | | | | | | | | | | | | Add asserts for compute shader dispatching, transform feedback being enabled and alpha testing. These have in common that they'll probably break rendering without logging.
* | | | Added glObjectLabels for renderdoc for textures and shader programs (#1384)David2018-09-234-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added glObjectLabels for renderdoc for textures and shader programs * Changed hardcoded "Texture" name to reflect the texture type instead * Removed string initialize
* | | | correct BC6Hgreggameplayer2018-09-231-2/+2
| | | |
* | | | Merge pull request #1380 from lioncash/constbunnei2018-09-221-8/+19
|\ \ \ \ | | | | | | | | | | shader_bytecode: Make operator== and operator!= of IpaMode const qualified
| * | | | shader_bytecode: Lay out the Ipa-related enums betterLioncash2018-09-211-2/+12
| | | | | | | | | | | | | | | | | | | | This is more consistent with the surrounding enums.
| * | | | shader_bytecode: Make operator== and operator!= of IpaMode const qualifiedLioncash2018-09-211-6/+7
| |/ / / | | | | | | | | | | | | | | | | These don't affect the state of the struct and can be const member functions.
* | | | Merge pull request #1382 from lioncash/incbunnei2018-09-222-4/+1
|\ \ \ \ | | | | | | | | | | gl_state: Remove unused type alias
| * | | | gl_state: Remove unused type aliasLioncash2018-09-222-4/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | This isn't used anywhere within the header, so we can remove it, along with the include that was previously necessary. This also uncovers an indirect include in the cpp file for the assertion macros.
* | | | Merge pull request #1379 from lioncash/bitwisebunnei2018-09-211-1/+1
|\ \ \ \ | | | | | | | | | | gl_stream_buffer: Fix use of bitwise OR instead of logical OR in Map()
| * | | | gl_stream_buffer: Fix use of bitwise OR instead of logical OR in Map()Lioncash2018-09-211-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was very likely intended to be a logical OR based off the conditioning and testing of inversion in one case. Even if this was intentional, this is the kind of non-obvious thing one should be clarifying with a comment.
* / / / RasterizerGL: Use the correct framebuffer when clearing via the CLEAR_BUFFERS register.Subv2018-09-211-1/+1
|/ / / | | | | | | | | | | | | | | | Previously we were clearing the default backbuffer framebuffer. Found thanks to a Piglit test :)
* | / gl_rasterizer: Fix StartAddress handling with indexed draw calls.Markus Wick2018-09-191-6/+7
| |/ |/| | | | | | | We uploaded the wrong data before. So the offset on the host GPU pointer may work for the first vertices, the last ones run out bounds. Let's just offset the upload instead.
* | Merge pull request #1342 from lioncash/truncbunnei2018-09-191-4/+4
|\ \ | | | | | | gl_shader_decompiler: Avoid truncation warnings within LD_A and ST_A code
| * | gl_shader_decompiler: Avoid truncation warnings within LD_A and ST_A codeLioncash2018-09-181-4/+4
| | | | | | | | | | | | | | | | | | These are internally stored as u64 values, so using u32 here causes truncation warnings. Instead, we can just use u64 and preserve the bit width.
* | | Merge pull request #1279 from FernandoS27/csetpbunnei2018-09-192-21/+133
|\ \ \ | | | | | | | | shader_decompiler: Implemented (Partialy) Control Codes and CSETP
| * | | Implemented Internal FlagsFernandoS272018-09-181-13/+35
| | | |
| * | | Implemented I2I.CC on the NEU control code, used by SMOFernandoS272018-09-172-14/+18
| | | |
| * | | Implemented CSETPFernandoS272018-09-172-14/+49
| | | |
| * | | Implemented Control CodesFernandoS272018-09-172-0/+51
| |/ /
* | | Merge pull request #1299 from FernandoS27/texture-sanatizebunnei2018-09-192-3/+192
|\ \ \ | | | | | | | | shader_decompiler: Asserts for Texture Instructions
| * | | Added asserts for texture misc modes to texture instructionsFernandoS272018-09-171-2/+45
| | | |
| * | | Added texture misc modes to texture instructionsFernandoS272018-09-171-1/+147
| |/ /
* | | Merge pull request #1290 from FernandoS27/shader-headerbunnei2018-09-183-24/+111
|\ \ \ | |/ / |/| | Implemented (Partialy) Shader Header
| * | Replace old FragmentHeader for the new HeaderFernandoS272018-09-112-31/+18
| | |
| * | Implemented (Partialy) Shader HeaderFernandoS272018-09-113-2/+102
| | |
* | | Merge pull request #1311 from FernandoS27/fast-swizzlebunnei2018-09-171-2/+49
|\ \ \ | | | | | | | | Optimized Texture Swizzling
| * | | Optimized Texture SwizzlingFernandoS272018-09-141-2/+49
| | | |
* | | | Merge pull request #1316 from lioncash/shadowbunnei2018-09-171-2/+0
|\ \ \ \ | | | | | | | | | | gl_shader_decompiler: Get rid of variable shadowing within LEA instructions
| * | | | gl_shader_decompiler: Get rid of variable shadowing within LEA instructionsLioncash2018-09-141-2/+0
| | | | | | | | | | | | | | | | | | | | These variables are already defined within an outer scope.
* | | | | Merge pull request #1326 from FearlessTobi/port-4182bunnei2018-09-1720-133/+138
|\ \ \ \ \ | | | | | | | | | | | | Port #4182 from Citra: "Prefix all size_t with std::"
| * | | | | Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-1520-133/+138
| |/ / / /
* | | | | Merge pull request #1329 from raven02/bgr5a1ubunnei2018-09-172-0/+4
|\ \ \ \ \ | | | | | | | | | | | | Implement RenderTargetFormat::BGR5A1_UNORM
| * | | | | Implement RenderTargetFormat::BGR5A1_UNORM (Pokken Tournament DX)raven022018-09-152-0/+4
| |/ / / /
* | | | / Implement ASTC_2D_8X8 (Bayonetta 2)raven022018-09-163-6/+20
| |_|_|/ |/| | |
* | | | Merge pull request #1273 from Subv/ld_sizesbunnei2018-09-152-7/+58
|\ \ \ \ | | | | | | | | | | Shaders: Implemented multiple-word loads and stores to and from attribute memory.
| * | | | Shaders: Implemented multiple-word loads and stores to and from attribute memory.Subv2018-09-152-7/+58
| |/ / / | | | | | | | | | | | | This seems to be an optimization performed by nouveau.
* | | | Merge pull request #1271 from Subv/kepler_enginebunnei2018-09-156-0/+146
|\ \ \ \ | |/ / / |/| | | GPU: Basic implementation of the Kepler Inline Memory engine (p2mf).
| * | | GPU: Basic implementation of the Kepler Inline Memory engine (p2mf).Subv2018-09-126-0/+146
| | | | | | | | | | | | | | | | This engine writes data from a FIFO register into the configured address.
* | | | Use ARB_multi_bind for uniform buffers (#1287)ReinUsesLisp2018-09-132-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | * gl_rasterizer: use ARB_multi_bind for uniform buffers * address feedback
* | | | gl_rasterizer_cache: B5G6R5U should use GL_RGB8 as an internal format.bunnei2018-09-131-1/+1
| |/ / |/| | | | | | | | - Fixes a regression with Sonic Mania with ARB_texture_storage.
* | | Merge pull request #1263 from FernandoS27/tex-modebunnei2018-09-122-1/+43
|\ \ \ | |/ / |/| | shader_decompiler: Implemented (Partially) Texture Processing Modes
| * | Implemented Texture Processing ModesFernandoS272018-09-122-1/+43
| |/
* | Merge pull request #1278 from tech4me/bg-color-fixbunnei2018-09-123-0/+8
|\ \ | | | | | | Port Citra #4047 & #4052: add change background color support
| * | Port Citra #4047 & #4052: add change background color supporttech4me2018-09-093-0/+8
| | |
* | | Merge pull request #1295 from bunnei/accurate-copiesbunnei2018-09-122-18/+12
|\ \ \ | | | | | | | | gl_rasterizer_cache: Improve accuracy of caching and copies.
| * | | gl_rasterizer_cache: Always blit on recreate, regardless of format.bunnei2018-09-121-6/+10
| | | | | | | | | | | | | | | | - Fixes several rendering issues with Super Mario Odyssey.
| * | | gl_shader_cache: Remove cache_width/cache_height.bunnei2018-09-122-12/+2
| | |/ | |/| | | | | | | | | | - This was once an optimization, but we no longer need it with the cache reserve. - This is also inaccurate.
* | | Merge pull request #1294 from degasus/optimizationsbunnei2018-09-121-11/+8
|\ \ \ | | | | | | | | gl_rasterizer: Use ARB_texture_storage.
| * | | gl_rasterizer: Use ARB_texture_storage.Markus Wick2018-09-111-11/+8
| |/ / | | | | | | | | | | | | | | | | | | | | | It allows us to use texture views and it reduces the overhead within the GPU driver. But it disallows us to reallocate the texture, but we don't do so anyways. In the end, it is the new way to allocate textures, so there is no need to use the old way.
* | | Implemented LEA and PSETFernandoS272018-09-111-0/+91
| | |
* | | Implemented encodings for LEA and PSETFernandoS272018-09-111-0/+64
|/ /
* | Fixed renderdoc input/output textures not working due to render targetsDavid Marcec2018-09-112-2/+9
| |
* | Merge pull request #1286 from bunnei/multi-clearbunnei2018-09-112-50/+66
|\ \ | | | | | | gl_rasterizer: Implement clear for non-zero render targets.
| * | gl_rasterizer: Implement clear for non-zero render targets.bunnei2018-09-102-50/+66
| | | | | | | | | | | | - Several misc. changes to ConfigureFramebuffers in support of this.
* | | Merge pull request #1285 from bunnei/depth-fixbunnei2018-09-111-6/+22
|\ \ \ | | | | | | | | gl_rasterizer_cache: Only use depth for applicable texture formats.
| * | | gl_rasterizer_cache: Only use depth for applicable texture formats.bunnei2018-09-101-6/+22
| |/ / | | | | | | | | | - Fixes an issue with Octopath Traveler leaving stale data here.
* | | Merge pull request #1284 from bunnei/bgra8_srgbbunnei2018-09-113-0/+4
|\ \ \ | | | | | | | | gl_rasterizer_cache: Implement RenderTargetFormat::BGRA8_SRGB.
| * | | gl_rasterizer_cache: Implement RenderTargetFormat::BGRA8_SRGB.bunnei2018-09-103-0/+4
| |/ / | | | | | | | | | - Used by Octopath Traveler (with multiple render targets).
* | | video_core: Refactor command_processor.Markus Wick2018-09-102-44/+42
| | | | | | | | | | | | Inline the WriteReg helper as it is called ~20k times per frame.
* | | video_core: Move command buffer loop.Markus Wick2018-09-103-46/+72
| | | | | | | | | | | | This moves the hot loop into video_core. This refactoring shall reduce the CPU overhead of calling ProcessCommandList.
* | | rasterizer: Drop unused handler.Markus Wick2018-09-104-8/+0
|/ / | | | | | | | | | | | | | | This virtual function is called in a very hot spot, and it does nothing. If this kind of feature is required, please be more specific and add callbacks in the switch statement within Maxwell3D::WriteReg. There is no point in having another switch statement within the rasterizer.
* | gl_rasterizer: Implement multiple color attachments.bunnei2018-09-105-132/+95
| |
* | Merge pull request #1268 from FernandoS27/tmmlbunnei2018-09-102-5/+67
|\ \ | | | | | | shader_decompiler: Implemented TMML
| * | Implemented TMMLFernandoS272018-09-102-5/+67
| | |
* | | Merge pull request #1272 from Subv/dma_2dbunnei2018-09-101-2/+10
|\ \ \ | | | | | | | | GPU/DMA: Partially implemented the 'enable_2d' bit in the DMA engine.
| * | | GPU/DMA: Partially implemented the 'enable_2d' bit in the DMA engine.Subv2018-09-081-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When not set, this tells the GPU to only use the X size when performing a DMA copy. This is only implemented for linear->linear and tiled->tiled copies. Conversion copies still retain the assert. This bit is unset by some games for various purposes, and by nouveau when copying the vertex buffers.
* | | | Merge pull request #1280 from zero334/improvementsbunnei2018-09-105-89/+101
|\ \ \ \ | |_|/ / |/| | | video_core: fixed arithmetic overflow warnings & improved code style
| * | | video_core: fixed arithmetic overflow warnings & improved code stylePatrick Elsässer2018-09-095-89/+101
| | |/ | |/| | | | | | | | | | | | | | | | | | | - Fixed all warnings, for renderer_opengl items, which were indicating a possible incorrect behavior from integral promotion rules and types larger than those in which arithmetic is typically performed. - Added const for variables where possible and meaningful. - Added constexpr where possible.
* | | Implemented TXQ dimension query type, used by SMO.FernandoS272018-09-092-1/+36
| | |
* | | Change name of TEXQ to TXQ, in order to match NVIDIA's namingFernandoS272018-09-091-2/+2
|/ /
* | Merge pull request #1256 from bunnei/tex-target-supportbunnei2018-09-0811-229/+422
|\ \ | |/ |/| Initial support for non-2D textures
| * gl_rasterizer_cache: Improve accuracy of RecreateSurface for non-2D textures.bunnei2018-09-082-27/+45
| |
| * maxwell_3d: Remove assert that no longer applies.bunnei2018-09-081-4/+0
| |
| * gl_rasterizer_cache: Partially implement several non-2D texture types.bunnei2018-09-081-30/+111
| |
| * gl_shader_decompiler: Partially implement several non-2D texture types (Subv).bunnei2018-09-082-32/+143
| |
| * gl_rasterizer: Implement texture wrap mode p.bunnei2018-09-082-2/+8
| |
| * gl_rasterizer_cache: Track texture depth.bunnei2018-09-083-4/+15
| |
| * gl_rasterizer_cache: Remove impl. of FlushGLBuffer.bunnei2018-09-081-34/+1
| | | | | | | | - Will not work for non-2d textures, and was not used anyways.
| * gl_rasterizer_cache: Keep track of texture type per surface.bunnei2018-09-083-32/+84
| |
| * gl_rasterizer_cache: Remove unused DownloadGLTexture.bunnei2018-09-082-51/+0
| |
| * gl_state: Keep track of texture target.bunnei2018-09-085-26/+28
| |
* | gl_rasterizer: Use baseInstance instead of moving the buffer points.bunnei2018-09-081-21/+25
| | | | | | | | | | | | | | This hopefully helps our cache not to redundant upload the vertex buffer. # Conflicts: # src/video_core/renderer_opengl/gl_rasterizer.cpp
* | video_core: Arithmetic overflow warning fix for gl_rasterizer (#1262)Patrick Elsässer2018-09-081-12/+14
|/ | | | | | | | | | | | | | | * video_core: Arithmetic overflow fix for gl_rasterizer - Fixed warnings, which were indicating incorrect behavior from integral promotion rules and types larger than those in which arithmetic is typically performed. - Added const for variables where possible and meaningful. * Changed the casts from C to C++ style Changed the C-style casts to C++ casts as proposed. Took also care about signed / unsigned behaviour.
* Merge pull request #1252 from lioncash/headerbunnei2018-09-071-0/+1
|\ | | | | video_core/CMakeLists: Add missing gl_buffer_cache.h
| * video_core/CMakeLists: Add missing gl_buffer_cache.hLioncash2018-09-061-0/+1
| | | | | | | | | | Without this, the header file won't show up by default within IDEs such as Visual Studio.
* | Merge pull request #1253 from lioncash/explicitbunnei2018-09-072-8/+10
|\ \ | | | | | | video_core/gl_buffer_cache: Minor tidying changes
| * | gl_buffer_cache: Default initialize member variablesLioncash2018-09-061-3/+3
| | | | | | | | | | | | Ensures that the cache always has a deterministic initial state.
| * | gl_buffer_cache: Make GetHandle() a const member functionLioncash2018-09-062-2/+2
| | | | | | | | | | | | | | | GetHandle() internally calls GetHandle() on the stream_buffer instance, which is a const member function, so this can be made const as well.
| * | gl_buffer_cache: Remove unnecessary includesLioncash2018-09-062-2/+4
| | |
| * | gl_buffer_cache: Make constructor explicitLioncash2018-09-061-1/+1
| |/ | | | | | | Implicit conversions during construction isn't desirable here.
* | Merge pull request #1255 from bunnei/minor-optbunnei2018-09-071-4/+2
|\ \ | | | | | | gl_rasterizer: Call state.Apply only once on SetupShaders.
| * | gl_rasterizer: Call state.Apply only once on SetupShaders.bunnei2018-09-061-4/+2
| |/
* / gl_shader_decompiler: Implement saturate mode for IPA.bunnei2018-09-061-1/+5
|/
* gl_shader_gen: Initialize position.Markus Wick2018-09-061-0/+1
| | | | | IMO the old code is fine, but nvidia raises shader compiler warnings. Trivial fix through...
* Merge pull request #1243 from degasus/VAO_cachebunnei2018-09-063-53/+60
|\ | | | | gl_rasterizer: Implement a VAO cache.
| * gl_rasterizer: Implement a VAO cache.Markus Wick2018-09-053-53/+60
| | | | | | | | | | | | This patch caches VAO objects instead of re-emiting all pointers per draw call. Configuring this pointers is known as a fast task, but it yields too many GL calls. So for better performance, just bind the VAO instead of 16 pointers.
* | Merge pull request #1244 from FernandoS27/ipabunnei2018-09-062-47/+98
|\ \ | | | | | | shader_decompiler: Implemented IPA Properly (Stage 1)
| * | Implemented IPA ProperlyFernandoS272018-09-062-47/+98
| | |
* | | gl_rasterizer: Skip TODO log.Markus Wick2018-09-051-1/+1
| |/ |/| | | | | | | | | | | This is called ~3k times per frame in SMO ingame. My laptop spends ~3ms per frame on allocating and freeing this string. Let's just stop printing this kind of redundant information.
* | renderer_opengl: Implement a buffer cache.Markus Wick2018-09-055-86/+182
|/ | | | | | | | | The idea of this cache is to avoid redundant uploads. So we are going to cache the uploaded buffers within the stream_buffer and just reuse the old pointers. The next step is to implement a VBO cache on GPU memory, but for now, I want to check the overhead of the cache management. Fetching the buffer over PCI-E should be quite fast.
* gl_shader_cache: Use an u32 for the binding point cache.Markus Wick2018-09-044-15/+23
| | | | | | | The std::string generation with its malloc and free requirement was a noticeable overhead. Also switch to an ordered_map to avoid the std::hash call. As those maps usually have a size of two elements, the lookup time shall not matter.
* Merge pull request #1237 from degasus/optimizationsbunnei2018-09-042-4/+4
|\ | | | | Optimizations
| * command_processor: Use std::array for bound_engines.Markus Wick2018-09-042-4/+4
| | | | | | | | | | subchannel is a 3 bit field. So there must not be more than 8 bound engines. And using a hashmap for up to 8 values is a bit overpowered.
* | Merge pull request #1232 from lioncash/copybunnei2018-09-041-1/+1
|\ \ | | | | | | gl_shader_decompiler: Use used_shaders member variable directly within GenerateDeclarations()
| * | gl_shader_decompiler: Use used_shaders member variable directly within GenerateDeclarations()Lioncash2018-09-021-1/+1
| |/ | | | | | | | | Using the getter function intended for external code here makes an unnecessary copy of the already-accessible used_shaders vector.
* / Update microprofile scopes.Markus Wick2018-09-041-3/+11
|/ | | | | | Blame the subsystems which deserve the blame :) The updated list is not complete, just the ones I've spotted on random sampling the stack trace.
* Merge pull request #1213 from DarkLordZach/octopath-fsbunnei2018-09-021-2/+3
|\ | | | | filesystem/maxwell_3d: Various changes to boot Project Octopath Traveller
| * maxwell_3d: Use CoreTiming for query timestampZach Hilman2018-09-011-2/+3
| |
* | Merge pull request #1215 from ogniK5377/texs-nodep-assertbunnei2018-09-022-0/+3
|\ \ | | | | | | Added assert for TEXS nodep
| * | Added assert for TEXS nodepDavid Marcec2018-09-012-0/+3
| |/
* | Merge pull request #1214 from ogniK5377/ipa-assertbunnei2018-09-022-6/+13
|\ \ | | | | | | Added better asserts to IPA, Renamed IPA modes to match mesa
| * | Added better asserts to IPA, Renamed IPA modes to match mesaDavid Marcec2018-09-012-6/+13
| |/ | | | | | | | | | | | | | | | | | | IpaMode is changed to IpaInterpMode IpaMode is suppose to be 2 bits not 3 Added IpaSampleMode Added Saturate Renamed modes based on https://github.com/mesa3d/mesa/blob/d27c7918916cdc8092959124955f887592e37d72/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp#L2530
* | Merge pull request #1216 from ogniK5377/ffma-assertbunnei2018-09-022-0/+9
|\ \ | | | | | | Added FFMA asserts and missing fields
| * | Removed saturate assertDavid Marcec2018-09-012-2/+0
| | | | | | | | | | | | Saturate already implemented
| * | Changed tab5980_0 default from 0 -> 1David Marcec2018-09-011-2/+2
| | |
| * | Added FFMA assertsDavid Marcec2018-09-012-0/+11
| |/
* | Removed saturate assertDavid Marcec2018-09-012-2/+0
| | | | | | | | Unneeded as we already implement it
* | Added FMUL assertsDavid Marcec2018-09-012-0/+15
|/
* core/core: Replace includes with forward declarations where applicableLioncash2018-08-313-4/+4
| | | | | | | | | | | The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers.
* gl_rasterizer_cache: Use accurate framebuffer setting for accurate copies.bunnei2018-08-312-73/+54
|
* gl_rasterizer_cache: Also use reserve cache for RecreateSurface.bunnei2018-08-312-24/+18
|
* rasterizer_cache: Use boost::interval_map for a more accurate cache.bunnei2018-08-311-33/+45
|
* gl_renderer: Cache textures, framebuffers, and shaders based on CPU address.bunnei2018-08-318-100/+53
|
* gl_rasterizer: Fix issues with the rasterizer cache.bunnei2018-08-314-46/+57
| | | | | - Use a single cached page map. - Fix calculation of ending page.
* Implement BC6H_UF16 & BC6H_SF16 (#1092)greggameplayer2018-08-313-31/+55
| | | | | | | | | * Implement BC6H_UF16 & BC6H_SF16 Require by ARMS * correct coding style * correct coding style part 2
* Merge pull request #1204 from lioncash/pimplbunnei2018-08-311-3/+4
|\ | | | | core: Make the main System class use the PImpl idiom
| * core: Make the main System class use the PImpl idiomLioncash2018-08-311-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | core.h is kind of a massive header in terms what it includes within itself. It includes VFS utilities, kernel headers, file_sys header, ARM-related headers, etc. This means that changing anything in the headers included by core.h essentially requires you to rebuild almost all of core. Instead, we can modify the System class to use the PImpl idiom, which allows us to move all of those headers to the cpp file and forward declare the bulk of the types that would otherwise be included, reducing compile times. This change specifically only performs the PImpl portion.
* | Merge pull request #1207 from degasus/hotfixbunnei2018-08-311-1/+1
|\ \ | | | | | | Report correct shader size.
| * | Report correct shader size.Markus Wick2018-08-311-1/+1
| | | | | | | | | | | | | | | Seems like this was an oversee in regards to 1fd979f50a9f4c21fa8cafba7268d959e3076924 It changed GLShader::ProgramCode to a std::vector, so sizeof is wrong.
* | | Added predicate comparison GreaterEqualWithNanHexagon122018-08-312-3/+4
|/ /
* | gl_shader_decompiler: Implement POPC (#1203)Laku2018-08-312-0/+19
| | | | | | | | | | | | * Implement POPC * implement invert
* | Merge pull request #1200 from bunnei/improve-ipabunnei2018-08-302-1/+39
|\ \ | |/ |/| gl_shader_decompiler: Improve IPA for Pass mode with Position attribute.
| * gl_shader_decompiler: Improve IPA for Pass mode with Position attribute.bunnei2018-08-292-1/+39
| |
* | Shaders: Implemented IADD3tech4me2018-08-292-1/+84
|/
* Merge pull request #1193 from lioncash/privbunnei2018-08-284-16/+30
|\ | | | | gpu: Make memory_manager private
| * gpu: Make memory_manager privateLioncash2018-08-284-16/+30
| | | | | | | | | | | | | | | | | | | | Makes the class interface consistent and provides accessors for obtaining a reference to the memory manager instance. Given we also return references, this makes our more flimsy uses of const apparent, given const doesn't propagate through pointers in the way one would typically expect. This makes our mutable state more apparent in some places.
* | Merge pull request #1192 from lioncash/unusedbunnei2018-08-281-2/+0
|\ \ | | | | | | gl_rasterizer: Remove unused variables
| * | gl_rasterizer: Remove unused variablesLioncash2018-08-281-2/+0
| |/
* / gl_shader_cache: Remove unused program_code vector in GetShaderAddress()Lioncash2018-08-281-2/+1
|/ | | | | | | | Given std::vector is a type with a non-trivial destructor, this variable cannot be optimized away by the compiler, even if unused. Because of that, something that was intended to be fairly lightweight, was actually allocating 32KB and deallocating it at the end of the function.
* renderer_opengl: Implement a new shader cache.bunnei2018-08-289-285/+250
|
* gl_rasterizer_cache: Update to use RasterizerCache base class.bunnei2018-08-283-132/+20
|
* video_core: Add RasterizerCache class for common cache management code.bunnei2018-08-282-0/+117
|
* Merge pull request #1169 from Lakumakkara/selbunnei2018-08-281-1/+1
|\ | | | | shader_bytecode: fix SEL_IMM bitstring
| * fix SEL_IMM bitstringLaku2018-08-241-1/+1
| |
* | Merge pull request #1174 from lioncash/debugbunnei2018-08-272-26/+3
|\ \ | | | | | | debug_utils: Minor individual interface changes
| * | debug_utils: Remove unused includesLioncash2018-08-252-23/+0
| | | | | | | | | | | | | | | Quite a bit of these aren't necessary directly within the debug_utils header and can be removed or included where actually necessary.
| * | debug_utils: Make BreakpointObserver class' constructor explicitLioncash2018-08-251-1/+1
| | | | | | | | | | | | Avoids implicit conversions.
| * | debug_utils: Initialize active_breakpoint member of DebugContextLioncash2018-08-251-2/+2
| | | | | | | | | | | | Ensures that all class members are initialized.
* | | Merge pull request #1173 from lioncash/batchbunnei2018-08-251-4/+4
|\ \ \ | | | | | | | | maxwell3d: Move FinishedPrimitiveBatch event after AcceleratedDrawBatch()
| * | | maxwell3d: Move FinishedPrimitiveBatch event after AcceleratedDrawBatch()Lioncash2018-08-251-4/+4
| |/ / | | | | | | | | | | | | The start and finish events should likely not be right after one another like this, otherwise the batch will appear to complete immediately
* | | Merge pull request #1167 from lioncash/assertbunnei2018-08-251-1/+2
|\ \ \ | |_|/ |/| | gl_rasterizer: Correct assertion condition in SyncLogicOpState()
| * | gl_rasterizer: Correct assertion condition in SyncLogicOpState()Lioncash2018-08-241-1/+2
| |/ | | | | | | | | Previously the assert would always be hit, since it was the equivalent of: array == nullptr, which is never true.
* / Shaders: Added decodings for IADD3 instructionstech4me2018-08-231-0/+6
|/
* Merge pull request #1160 from bunnei/surface-reservebunnei2018-08-232-17/+91
|\ | | | | gl_rasterizer_cache: Several improvements
| * gl_rasterizer_cache: Blit when possible on RecreateSurface.bunnei2018-08-231-5/+12
| |
| * gl_rasterizer_cache: Reserve surfaces that have already been created for later use.bunnei2018-08-232-3/+61
| |
| * gl_rasterizer_cache: Remove assert for RecreateSurface type.bunnei2018-08-231-1/+0
| |
| * gl_rasterizer_cache: Implement compressed texture copies.bunnei2018-08-231-8/+18
| |
* | gl_rasterizer: Implement stencil test.bunnei2018-08-233-4/+58
| | | | | | | | - Used by Splatoon 2.
* | gl_rasterizer: Implement partial color clear and stencil clear.bunnei2018-08-231-12/+42
| |
* | maxwell_3d: Update to include additional stencil registers.bunnei2018-08-231-20/+50
| |
* | gl_state: Update to handle stencil front/back face separately.bunnei2018-08-232-33/+38
|/
* Merge pull request #1157 from lioncash/vecbunnei2018-08-232-11/+16
|\ | | | | gl_shader_gen: Use a std::vector to represent program code instead of std::array
| * gl_shader_gen: Make ShaderSetup's constructor explicitLioncash2018-08-221-1/+1
| | | | | | | | Prevents implicit conversions.
| * gl_shader_gen: Use a std::vector to represent program code instead of std::arrayLioncash2018-08-222-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | While convenient as a std::array, it's also quite a large set of data as well (32KB). It being an array also means data cannot be std::moved. Any situation where the code is being set or relocated means that a full copy of that 32KB data must be done. If we use a std::vector we do need to allocate on the heap, however, it does allow us to std::move the data we have within the std::vector into another std::vector instance, eliminating the need to always copy the program data (as std::move in this case would just transfer the pointers and bare necessities over to the new vector instance).
* | Merge pull request #1156 from Lakumakkara/lop3bunnei2018-08-232-0/+60
|\ \ | | | | | | gl_shader_decompiler: Implement LOP3
| * | more fixesLaku2018-08-221-6/+7
| | |
| * | fixesLaku2018-08-221-6/+12
| | |
| * | remove debug loggingLaku2018-08-221-2/+0
| | |
| * | implement lop3Laku2018-08-222-0/+55
| |/
* / renderer_opengl: Namespace OpenGL codeLioncash2018-08-2221-23/+70
|/ | | | | | | Namespaces all OpenGL code under the OpenGL namespace. Prevents polluting the global namespace and allows clear distinction between other renderers' code in the future.
* Merge pull request #840 from FearlessTobi/port-3353bunnei2018-08-221-1/+1
|\ | | | | Port #3353 from Citra: "citra-qt: Add customizable speed limit target "
| * Port #3353 from CitrafearlessTobi2018-08-211-1/+1
| |
* | Merge pull request #1154 from OatmealDome/topology-linesbunnei2018-08-221-0/+2
|\ \ | | | | | | maxwell_to_gl: Implement PrimitiveTopology::Lines
| * | maxwell_to_gl: Implement PrimitiveTopology::LinesOatmealDome2018-08-221-0/+2
| | | | | | | | | Used by Splatoon 2's debug menu.
* | | Merge pull request #1124 from Subv/logic_opsbunnei2018-08-226-7/+108
|\ \ \ | |/ / |/| | GPU: Implemented logic ops.
| * | GPU: Implemented the logic op functionality of the GPU.Subv2018-08-213-0/+61
| | | | | | | | | | | | This will ASSERT if blending is enabled at the same time as logic ops.
| * | GLState: Allow enabling/disabling GL_COLOR_LOGIC_OP independently from blending.Subv2018-08-212-6/+19
| | |
| * | GPU: Added registers for the logicop functionality.Subv2018-08-211-1/+28
| |/
* | Revert "Shader: Use the right sampler type in the TEX, TEXS and TLDS instructions."bunnei2018-08-222-153/+31
| | | | | | | | | | - This reverts commit 3ef4b3d4b445960576f10d1ba6521580d03e3da8. - This commit had broken a lot of games. We really should do a full implementation of this in one change.
* | shader_bytecode: Parenthesize conditional expression within GetTextureType()Lioncash2018-08-211-1/+1
| | | | | | | | Resolves a -Wlogical-op-parentheses warning.
* | Merge pull request #1123 from lioncash/screenbunnei2018-08-217-30/+25
|\ \ | | | | | | rasterizer_interface: Remove renderer-specific ScreenInfo type from AccelerateDraw() in RasterizerInterface
| * | rasterizer_interface: Remove ScreenInfo from AccelerateDraw()'s signatureLioncash2018-08-215-17/+14
| | | | | | | | | | | | | | | | | | This is an OpenGL renderer-specific data type. Given that, this type shouldn't be used within the base interface for the rasterizer. Instead, we can pass this information to the rasterizer via reference.
| * | renderer_base: Make creation of the rasterizer, the responsibility of the renderers themselvesLioncash2018-08-214-14/+12
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given we use a base-class type within the renderer for the rasterizer (RasterizerInterface), we want to allow renderers to perform more complex initialization if they need to do such a thing. This makes it important to reserve type information. Given the OpenGL renderer is quite simple settings-wise, this is just a simple shuffling of the initialization code. For something like Vulkan however this might involve doing something like: // Initialize and call rasterizer-specific function that requires // the full type of the instance created. auto raster = std::make_unique<VulkanRasterizer>(some, params); raster->CallSomeVulkanRasterizerSpecificFunction(); // Assign to base class variable rasterizer = std::move(raster)
* | Merge pull request #1132 from Subv/gl_FragDepthbunnei2018-08-211-1/+6
|\ \ | | | | | | Shaders: Implement depth writing in fragment shaders.
| * | Shaders: Implement depth writing in fragment shaders.Subv2018-08-211-1/+6
| | | | | | | | | | | | We'll write <last color output reg + 2> to gl_FragDepth.
* | | Merge pull request #1134 from lioncash/logbunnei2018-08-211-1/+1
|\ \ \ | | | | | | | | renderer_opengl: Use LOG_DEBUG for GL_DEBUG_SEVERITY_NOTIFICATION and GL_DEBUG_SEVERITY_LOW logs
| * | | renderer_opengl: Use LOG_DEBUG for GL_DEBUG_SEVERITY_NOTIFICATION and GL_DEBUG_SEVERITY_LOW logsLioncash2018-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | LOG_TRACE is only enabled on debug builds which can be quite slow when trying to debug graphics issues. Instead we can log the messages to the debug log, which is available on both release and debug builds.
* | | | Merge pull request #1121 from Subv/tex_reinterpretbunnei2018-08-214-16/+70
|\ \ \ \ | |/ / / |/| | | Rasterizer: Use PBOs to reinterpret texture formats when games re-use the same memory.
| * | | Rasterizer: Reinterpret the raw texture bytes instead of blitting (and thus doing format conversion) to a new texture when a game requests an old texture address with a different format.Subv2018-08-201-3/+49
| | | |
| * | | Rasterizer: Don't attempt to copy over the old texture's data when doing a format reinterpretation if we're only going to clear the framebuffer.Subv2018-08-204-13/+21
| | |/ | |/|
* | | Merge pull request #1133 from lioncash/guardbunnei2018-08-211-0/+2
|\ \ \ | |_|/ |/| | gl_stream_buffer: Add missing header guard
| * | gl_stream_buffer: Add missing header guardLioncash2018-08-211-0/+2
| |/ | | | | | | | | Prevents potential compilation errors from occuring due to multiple inclusions
* | Merge pull request #1131 from bunnei/impl-tex3d-texcubebunnei2018-08-212-2/+21
|\ \ | | | | | | gl_shader_decompiler: Implement TextureCube/Texture3D for TEX/TEXS.
| * | shader_bytecode: Replace some UNIMPLEMENTED logs.bunnei2018-08-211-2/+6
| | |
| * | gl_shader_decompiler: Implement Texture3D for TEXS.bunnei2018-08-211-0/+7
| | |
| * | gl_shader_decompiler: Implement TextureCube for TEX.bunnei2018-08-211-0/+8
| | |
* | | Merge pull request #1106 from Subv/multiple_rendertargetsbunnei2018-08-212-6/+45
|\ \ \ | |/ / |/| | Shaders: Write all the enabled color outputs when a fragment shader exits.
| * | Shaders: Write all the enabled color outputs when a fragment shader exits.Subv2018-08-212-6/+45
| | | | | | | | | | | | | | | | | | | | | We were only writing to the first render target before. Note that this is only the GLSL side of the implementation, supporting multiple render targets requires more changes in the OpenGL renderer. Dual Source blending is not implemented and stuff that uses it might not work at all.
* | | Shaders: Fixed the coords in TEX with Texture2D.Subv2018-08-211-1/+1
| | | | | | | | | | | | | | | | | | The X and Y coordinates should be in gpr8 and gpr8+1, respectively. This fixes the cutscene rendering in Sonic Mania.
* | | Shaders: Log and crash when using an unimplemented texture type in a texture sampling instruction.Subv2018-08-211-5/+14
| |/ |/|
* | Merge pull request #1104 from Subv/instanced_arraysbunnei2018-08-202-4/+30
|\ \ | | | | | | GLRasterizer: Implemented instanced vertex arrays.
| * | GLRasterizer: Implemented instanced vertex arrays.Subv2018-08-182-4/+30
| |/ | | | | | | Before each draw call, for every enabled vertex array configured as instanced, we take the current instance id and divide it by its configured divisor, then we multiply that by the corresponding stride and increment the start address by the resulting amount. This way we can simulate the vertex array being incremented once per instance without actually using OpenGL's instancing functions.
* | Merge pull request #1115 from Subv/texs_maskbunnei2018-08-201-18/+18
|\ \ | | | | | | Shaders/TEXS: Write to the correct output register when swizzling.
| * | Shaders/TEXS: Fixed the component mask in the TEXS instruction.Subv2018-08-201-18/+18
| | | | | | | | | | | | Previously we could end up with a TEXS that didn't write any outputs, this was wrong.
* | | Merge pull request #1112 from Subv/sampler_typesbunnei2018-08-203-33/+250
|\ \ \ | | | | | | | | Shaders: Use the correct shader type when sampling textures.
| * | | Shader: Implemented the TLD4 and TLD4S opcodes using GLSL's textureGather.Subv2018-08-191-0/+51
| | | | | | | | | | | | | | | | It is unknown how TLD4S determines the sampler type, more research is needed.
| * | | Shader: Use the right sampler type in the TEX, TEXS and TLDS instructions.Subv2018-08-192-29/+127
| | | | | | | | | | | | | | | | Different sampler types have their parameters in different registers.
| * | | Shader: Added bitfields for the texture type of the various sampling instructions.Subv2018-08-191-1/+65
| | | |
| * | | Shaders: Added decodings for TLD4 and TLD4SSubv2018-08-191-3/+7
| | | |
* | | | Implemented RGBA8_UINTDavid Marcec2018-08-204-45/+58
| |/ / |/| | | | | | | | Needed by kirby
* | | Merge pull request #1089 from Subv/neg_bitsbunnei2018-08-192-16/+38
|\ \ \ | | | | | | | | Shaders: Corrected the 'abs' and 'neg' bit usage in the float arithmetic instructions.
| * | | Shaders: Corrected the 'abs' and 'neg' bit usage in the float arithmetic instructions.Subv2018-08-182-16/+38
| | | | | | | | | | | | | | | | We should definitely audit our shader generator for more errors like this.
* | | | Merge pull request #1105 from Subv/convert_negbunnei2018-08-191-2/+0
|\ \ \ \ | | | | | | | | | | Shader: Remove an unneeded assert, the negate bit is implemented for conversion instructions.
| * | | | Shader: Remove an unneeded assert, the negate bit is implemented for conversion instructions.Subv2018-08-181-2/+0
| | |_|/ | |/| |
* | | | Merge pull request #1113 from Subv/texs_maskbunnei2018-08-191-6/+11
|\ \ \ \ | | | | | | | | | | Shaders/TEXS: Fixed the component mask in the TEXS instruction.
| * | | | Shaders/TEXS: Fixed the component mask in the TEXS instruction.Subv2018-08-191-6/+11
| | |_|/ | |/| | | | | | | | | | Previously we could end up with a TEXS that didn't write any outputs, this was wrong.
* | | | Merge pull request #1102 from ogniK5377/mirror-clamp-edgebunnei2018-08-191-0/+2
|\ \ \ \ | | | | | | | | | | Added WrapMode MirrorOnceClampToEdge
| * | | | Added WrapMode MirrorOnceClampToEdgeDavid Marcec2018-08-181-0/+2
| | |/ / | |/| | | | | | | | | | Used by splatoon 2
* | | | Merge pull request #1101 from Subv/ssy_stackbunnei2018-08-191-3/+36
|\ \ \ \ | |_|/ / |/| | | Shaders: Implemented a stack for the SSY/SYNC instructions.
| * | | Shaders: Implemented a stack for the SSY/SYNC instructions.Subv2018-08-181-3/+36
| |/ / | | | | | | | | | The SSY instruction pushes an address into the stack, and the SYNC instruction pops it. The current stack depth is 20, we should figure out if this is enough or not.
* | | Merge pull request #1109 from Subv/ldg_decodebunnei2018-08-191-0/+4
|\ \ \ | | | | | | | | Shaders: Added decodings for the LDG and STG instructions.
| * | | Shaders: Added decodings for the LDG and STG instructions.Subv2018-08-191-0/+4
| |/ /
* | | Merge pull request #1108 from Subv/front_facingbunnei2018-08-192-0/+7
|\ \ \ | | | | | | | | Shaders: Implemented the gl_FrontFacing input attribute (attr 63).
| * | | Shaders: Implemented the gl_FrontFacing input attribute (attr 63).Subv2018-08-192-0/+7
| |/ /
* / / Shader: Implemented the predicate and mode arguments of LOP.Subv2018-08-182-11/+39
|/ / | | | | | | | | | | The mode can be used to set the predicate to true depending on the result of the logic operation. In some cases, this means discarding the result (writing it to register 0xFF (Zero)). This is used by Super Mario Odyssey.
* | Added predcondition GreaterThanWithNanDavid Marcec2018-08-182-5/+8
| |
* | Merge pull request #1096 from bunnei/supported-blitsbunnei2018-08-181-2/+0
|\ \ | | | | | | gl_rasterizer_cache: Remove asserts for supported blits.
| * | gl_rasterizer_cache: Remove asserts for supported blits.bunnei2018-08-171-2/+0
| | |
* | | renderer_opengl: Treat OpenGL errors as critical.bunnei2018-08-171-1/+1
|/ /
* | Merge pull request #1019 from Subv/vertex_divisorbunnei2018-08-177-5/+28
|\ \ | | | | | | Rasterizer: Manually implemented instanced rendering.
| * | Rasterizer: Implemented instanced rendering.Subv2018-08-157-5/+28
| | | | | | | | | | | | | | | | | | We keep track of the current instance and update an uniform in the shaders to let them know which instance they are. Instanced vertex arrays are not yet implemented.
* | | gl_rasterizer_cache: Treat Depth formats differently from DepthStencil.bunnei2018-08-162-16/+26
| |/ |/|
* | Shader/Conversion: Implemented the negate bit in F2F and I2I instructions.Subv2018-08-151-4/+12
| |
* | Shader/I2F: Implemented the negate I2F_C instruction variant.Subv2018-08-151-7/+23
| |
* | Shader/F2I: Implemented the negate bit in the I2F instructionSubv2018-08-151-0/+4
| |
* | Shader/F2I: Implemented the F2I_C instruction variant.Subv2018-08-151-2/+10
| |
* | Shader/F2I: Implemented the negate bit in the F2I instruction.Subv2018-08-151-0/+4
| |
* | Merge pull request #1077 from bunnei/rgba16ubunnei2018-08-151-1/+9
|\ \ | | | | | | gl_rasterizer_cache: Add RGBA16U to PixelFormatFromTextureFormat.
| * | gl_rasterizer_cache: Add RGBA16U to PixelFormatFromTextureFormat.bunnei2018-08-151-1/+9
| |/ | | | | | | - Used by Breath of the Wild.
* / gl_rasterizer_cache: Cleanup some PixelFormat names and logging.bunnei2018-08-152-41/+71
|/
* Merge pull request #1069 from bunnei/vtx-szbunnei2018-08-151-5/+20
|\ | | | | maxwell_to_gl: Properly handle UnsignedInt/SignedInt sizes.
| * maxwell_to_gl: Properly handle UnsignedInt/SignedInt sizes.bunnei2018-08-151-5/+20
| |
* | Merge pull request #1070 from bunnei/cbuf-szbunnei2018-08-151-3/+3
|\ \ | | | | | | gl_rasterizer: Fix upload size for constant buffers.
| * | gl_rasterizer: Fix upload size for constant buffers.bunnei2018-08-151-3/+3
| |/
* | Merge pull request #1071 from bunnei/fix-ldcbunnei2018-08-151-13/+22
|\ \ | | | | | | gl_shader_decompiler: Several fixes for indirect constant buffer loads.
| * | gl_shader_decompiler: Several fixes for indirect constant buffer loads.bunnei2018-08-151-13/+22
| |/
* | Merge pull request #1068 from bunnei/g8r8sbunnei2018-08-152-34/+49
|\ \ | | | | | | gl_rasterizer_cache: Implement G8R8S format.
| * | gl_rasterizer_cache: Implement G8R8S format.bunnei2018-08-152-34/+49
| |/ | | | | | | - Used by Super Mario Odyssey.
* / Implement Z16_UNORM in PixelFormatFromTextureFormat functiongreggameplayer2018-08-151-0/+2
|/ | | Require by Zelda Breath Of The Wild
* Merge pull request #1058 from greggameplayer/BC7U_Fixbunnei2018-08-141-1/+1
|\ | | | | Fix BC7U
| * Fix BC7Ugreggameplayer2018-08-141-1/+1
| |
* | renderer_opengl: Implement RenderTargetFormat::RGBA16_UNORM.bunnei2018-08-144-37/+48
|/ | | | - Used by Breath of the Wild.
* Merge pull request #1052 from ogniK5377/xenobunnei2018-08-134-7/+45
|\ | | | | Implement RG32UI and R32UI
| * Implement RG32UI and R32UIDavid Marcec2018-08-134-7/+45
| | | | | | | | Needed for xenoblade
* | maxwell_to_gl: Implement VertexAttribute::Size::Size_8.bunnei2018-08-131-0/+1
|/ | | | - Used by Breath of the Wild.
* renderer_opengl: Implement RenderTargetFormat::RGBA16_UINT.bunnei2018-08-134-34/+45
| | | | - Used by Breath of the Wild.
* Merge pull request #1045 from bunnei/rg8-unormbunnei2018-08-134-26/+61
|\ | | | | renderer_opengl: Implement RenderTargetFormat::RG8_UNORM.
| * renderer_opengl: Implement RenderTargetFormat::RG8_UNORM.bunnei2018-08-134-26/+61
| | | | | | | | - Used by Breath of the Wild.
* | maxwell_to_gl: Implement PrimitiveTopology::LineStrip.bunnei2018-08-131-0/+2
|/ | | | - Used by Breath of the Wild.
* gl_shader_decompiler: Implement XMAD instruction.bunnei2018-08-132-4/+120
|
* gl_rasterizer: Use a shared helper to upload from CPU memory.Markus Wick2018-08-122-28/+33
|
* gl_state: Don't track constant buffer mappings.Markus Wick2018-08-123-41/+3
|
* gl_rasterizer: Use the stream buffer for constant buffers.Markus Wick2018-08-124-29/+32
|
* gl_rasterizer: Use the streaming buffer itself for the constant buffer.Markus Wick2018-08-122-33/+15
| | | | Don't emut copies, especially not for data, which is used once. They just end in a huge GPU overhead.
* gl_rasterizer: Use a helper for aligning the buffer.Markus Wick2018-08-122-15/+22
|
* Update the stream_buffer helper from Citra.Markus Wick2018-08-124-184/+98
| | | | Please see https://github.com/citra-emu/citra/pull/3666 for more details.
* gl_shader_decompiler: Fix SetOutputAttributeToRegister empty check.bunnei2018-08-121-2/+2
|
* gl_shader_decompiler: Fix GLSL compiler error with KIL instruction.bunnei2018-08-121-0/+8
|
* Merge pull request #1020 from lioncash/namespacebunnei2018-08-128-15/+26
|\ | | | | core: Namespace EmuWindow
| * core: Namespace EmuWindowLioncash2018-08-128-15/+26
| | | | | | | | Gets the class out of the global namespace.
* | Merge pull request #1021 from lioncash/warnbunnei2018-08-121-1/+1
|\ \ | | | | | | gl_rasterizer: Silence implicit truncation warning in SetupShaders()
| * | gl_rasterizer: Silence implicit truncation warning in SetupShaders()Lioncash2018-08-121-1/+1
| |/ | | | | | | | | | | Previously this would warn of truncating a std::size_t to a u32. This is safe because we'll obviously never have more than UINT32_MAX amount of uniform buffers.
* | Merge pull request #1024 from Subv/blend_glbunnei2018-08-122-0/+40
|\ \ | | | | | | GPU/Maxwell3D: Implemented an alternative set of blend factors.
| * | GPU/Maxwell3D: Implemented an alternative set of blend factors.Subv2018-08-122-0/+40
| |/ | | | | | | These are used by nouveau and some games like SMO.
* | Merge pull request #1023 from Subv/invalid_attribsbunnei2018-08-122-1/+11
|\ \ | | | | | | RasterizerGL: Ignore invalid/unset vertex attributes.
| * | RasterizerGL: Ignore invalid/unset vertex attributes.Subv2018-08-122-1/+11
| |/ | | | | | | This should make the es2gears example not crash anymore.
* / Implement R8_UINT RenderTargetFormat & PixelFormat (#1014)greggameplayer2018-08-124-55/+74
|/ | | | - Used by Go Vacation
* Merge pull request #1010 from bunnei/unk-vert-attrib-shaderbunnei2018-08-122-10/+11
|\ | | | | gl_shader_decompiler: Improve handling of unknown input/output attributes.
| * gl_shader_decompiler: Improve handling of unknown input/output attributes.bunnei2018-08-122-10/+11
| |
* | Merge pull request #1009 from bunnei/rg8-rgba8-snormbunnei2018-08-124-64/+93
|\ \ | | | | | | Implement render target formats RGBA8_SNORM and RG8_SNORM.
| * | gl_rasterizer: Implement render target format RG8_SNORM.bunnei2018-08-124-8/+18
| | | | | | | | | | | | - Used by Super Mario Odyssey.
| * | gl_rasterizer: Implement render target format RGBA8_SNORM.bunnei2018-08-124-64/+83
| |/ | | | | | | - Used by Super Mario Odyssey.
* | Merge pull request #1018 from Subv/ssy_syncbunnei2018-08-122-8/+38
|\ \ | |/ |/| GPU/Shader: Implemented SSY and SYNC as a set_target/jump pair.
| * GPU/Shader: Don't predicate instructions that don't have a predicate field (SSY).Subv2018-08-112-2/+13
| |
| * GPU/Shaders: Implemented SSY and SYNC as a way to modify control flow during shader execution.Subv2018-08-111-6/+25
| | | | | | | | SSY sets the target label to jump to when the SYNC instruction is executed.
* | Merge pull request #1016 from lioncash/videobunnei2018-08-116-30/+42
|\ \ | | | | | | video_core: Get rid of global variable g_toggle_framelimit_enabled
| * | video_core; Get rid of global g_toggle_framelimit_enabled variableLioncash2018-08-116-25/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead, we make a struct for renderer settings and allow the renderer to update all of these settings, getting rid of the need for global-scoped variables. This also uncovered a few indirect inclusions for certain headers, which this commit also fixes.
| * | renderer_base: Remove unused kFramebuffer enumerationLioncash2018-08-111-3/+0
| | | | | | | | | | | | This is entirely unused and can be removed.
| * | video_core: Remove unused Renderer enumerationLioncash2018-08-111-2/+0
| |/ | | | | | | | | Currently we only have an OpenGL renderer, so this is unused in code (and occupies the Renderer identifier in the VideoCore namespace).
* | Merge pull request #1003 from lioncash/varbunnei2018-08-112-4/+2
|\ \ | | | | | | video_core: Use variable template variants of type_traits interfaces where applicable
| * | video_core: Use variable template variants of type_traits interfaces where applicableLioncash2018-08-102-4/+2
| | |
* | | Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats and more (R16_UNORM needed by Fate Extella) (#848)greggameplayer2018-08-114-19/+92
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats Do a separate function in order to get Bytes Per Pixel of DepthFormat Apply the new function in gpu.h delete unneeded white space * correct merging error
* | maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8.bunnei2018-08-101-0/+1
| | | | | | | | - Used by Super Mario Odyssey.
* | maxwell_to_gl: Implement VertexAttribute::Size::Size_32_32_32.bunnei2018-08-101-0/+2
| | | | | | | | - Used by Super Mario Odyssey.
* | Merge pull request #1004 from lioncash/unusedbunnei2018-08-103-8/+6
|\ \ | | | | | | gl_rasterizer_cache: Remove unused viewport parameter of GetFramebufferSurfaces()
| * | gl_rasterizer_cache: Remove unused viewport parameter of GetFramebufferSurfaces()Lioncash2018-08-103-8/+6
| |/
* | Merge pull request #1008 from yuzu-emu/revert-697-disable-depth-cullbunnei2018-08-101-3/+1
|\ \ | | | | | | Revert "gl_state: Temporarily disable culling and depth test."
| * | Revert "gl_state: Temporarily disable culling and depth test."bunnei2018-08-101-3/+1
| | |
* | | textures: Refactor out for Texture/Depth FormatFromPixelFormat.bunnei2018-08-104-179/+27
|/ /
* | Merge pull request #995 from bunnei/gl-buff-boundsbunnei2018-08-101-10/+12
|\ \ | |/ |/| gl_rasterizer_cache: Add bounds checking for gl_buffer copies.
| * gl_rasterizer_cache: Add bounds checking for gl_buffer copies.bunnei2018-08-101-10/+12
| |
* | Merge pull request #1001 from lioncash/reservebunnei2018-08-101-0/+2
|\ \ | |/ |/| gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList()
| * gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList()Lioncash2018-08-091-0/+2
| | | | | | | | | | Avoids potentially perfoming multiple reallocations when we know the total amount of memory we need beforehand.
* | Merge pull request #991 from bunnei/ignore-macbunnei2018-08-101-4/+9
|\ \ | | | | | | maxwell_3d: Ignore macros that have not been uploaded yet.
| * | maxwell_3d: Ignore macros that have not been uploaded yet.bunnei2018-08-091-4/+9
| | | | | | | | | | | | - Used by Super Mario Odyssey (in game).
* | | Implement SNORM for BC5/DXN2 (#998)Khangaroo2018-08-102-38/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement BC5/DXN2 (#996) - Used by Kirby Star Allies. * Implement BC5/DXN2 SNORM UNORM for Kirby Star Allies SNORM for Super Mario Odyssey
* | | gl_rasterizer_cache: Avoid iterator invalidation issues within InvalidateRegion()Lioncash2018-08-091-2/+4
| |/ |/| | | | | | | A range-based for loop can't be used when the container being iterated is also being erased from.
* | Merge pull request #992 from bunnei/declr-predbunnei2018-08-091-4/+5
|\ \ | | | | | | gl_shader_decompiler: Declare predicates on use.
| * | gl_shader_decompiler: Declare predicates on use.bunnei2018-08-091-4/+5
| |/ | | | | | | - Used by Super Mario Odyssey (when going in game).
* | Merge pull request #994 from lioncash/constbunnei2018-08-091-7/+9
|\ \ | | | | | | gl_rasterizer_cache: Use std::vector::assign vs resize() then copy for the non-tiled case
| * | gl_rasterizer_cache: Invert conditional in LoadGLBuffer()Lioncash2018-08-091-5/+5
| | | | | | | | | | | | | | | | | | It's generally easier to follow code using conditionals that operate in terms of the true case followed by the false case (no chance of overlooking the exclamation mark).
| * | gl_rasterizer_cache: Use std::vector::assign in LoadGLBuffer() for the non-tiled caseLioncash2018-08-091-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | resize() causes the vector to expand and zero out the added members to the vector, however we can avoid this zeroing by using assign(). Given we have the pointer to the data we want to copy, we can calculate the end pointer and directly copy the range of data without the need to perform the resize() beforehand.
| * | gl_rasterizer_cache: Make pointer const in LoadGLBuffer()Lioncash2018-08-091-1/+1
| |/ | | | | | | | | This is only ever read from, so we can make the data it's pointing to const.
* | Merge pull request #993 from bunnei/smo-vtx-ptsbunnei2018-08-091-0/+3
|\ \ | | | | | | Implement VertexAttribute::Size::Size_16_16_16_16 and PrimitiveTopology::Points.
| * | maxwell_to_gl: Implement VertexAttribute::Size::Size_16_16_16_16.bunnei2018-08-091-0/+1
| | | | | | | | | | | | - Used by Super Mario Odyssey (in game).
| * | maxwell_to_gl: Implement PrimitiveTopology::Points.bunnei2018-08-091-0/+2
| |/ | | | | | | - Used by Super Mario Odyssey (in game).
* | Merge pull request #984 from bunnei/rt-nonebunnei2018-08-091-0/+5
|\ \ | | | | | | gl_rasterizer: Do not render when no render target is configured.
| * | gl_rasterizer: Do not render when no render target is configured.bunnei2018-08-091-0/+5
| | | | | | | | | | | | - Used by Super Mario Odyssey.
* | | Implement BC5/DXN2 (#996)Khangaroo2018-08-093-33/+45
| | | | | | | | | - Used by Kirby Star Allies.
* | | Merge pull request #977 from bunnei/bgr565bunnei2018-08-092-0/+4
|\ \ \ | |_|/ |/| | gl_rasterizer_cached: Implement RenderTargetFormat::B5G6R5_UNORM.
| * | gl_rasterizer_cached: Implement RenderTargetFormat::B5G6R5_UNORM.bunnei2018-08-082-0/+4
| | | | | | | | | | | | - Used by Super Mario Odyssey.
* | | Merge pull request #982 from bunnei/stub-unk-63bunnei2018-08-092-0/+9
|\ \ \ | | | | | | | | gl_shader_decompiler: Stub input attribute Unknown_63.
| * | | gl_shader_decompiler: Stub input attribute Unknown_63.bunnei2018-08-082-0/+9
| |/ /
* | | Merge pull request #976 from bunnei/shader-immbunnei2018-08-092-11/+6
|\ \ \ | | | | | | | | gl_shader_decompiler: Let OpenGL interpret floats.
| * | | gl_shader_decompiler: Let OpenGL interpret floats.bunnei2018-08-082-11/+6
| |/ / | | | | | | | | | | | | - Accuracy is lost in translation to string, e.g. with NaN. - Needed for Super Mario Odyssey.
* | | Merge pull request #981 from bunnei/cbuf-corruptbunnei2018-08-094-3/+12
|\ \ \ | |_|/ |/| | maxwell_3d: Use correct const buffer size and check bounds.
| * | maxwell_3d: Use correct const buffer size and check bounds.bunnei2018-08-084-3/+12
| |/ | | | | | | - Fixes mem corruption with Super Mario Odyssey and Pokkén Tournament DX.
* | Merge pull request #985 from bunnei/rt-r11g11b10bunnei2018-08-091-0/+1
|\ \ | | | | | | gpu: Add R11G11B10_FLOAT to RenderTargetBytesPerPixel.
| * | gpu: Add R11G11B10_FLOAT to RenderTargetBytesPerPixel.bunnei2018-08-081-0/+1
| |/ | | | | | | - Used by Super Mario Odyssey.
* | Merge pull request #979 from bunnei/vtx88bunnei2018-08-091-0/+1
|\ \ | | | | | | maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8.
| * | maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8.bunnei2018-08-081-0/+1
| |/
* / renderer_opengl: Use trace log in a few places.bunnei2018-08-082-2/+2
|/
* Merge pull request #964 from Hexagon12/lower-logsbunnei2018-08-081-4/+4
|\ | | | | Lowered down the logging for command processor methods
| * Lowered down the logging for methodsHexagon122018-08-071-4/+4
| |
* | Fixed the sRGB pixel format (#963)Hexagon122018-08-081-1/+2
| | | | | | | | | | | | * Changed the sRGB pixel format return * Add a message about SRGBA -> RGBA conversion
* | maxwell_3d: Remove outdated assert.bunnei2018-08-061-2/+0
| |
* | gl_rasterizer_cache: Avoid superfluous surface copies.bunnei2018-08-062-4/+21
| |
* | Merge pull request #927 from bunnei/fix-texsbunnei2018-08-051-2/+5
|\ \ | | | | | | gl_shader_decompiler: Fix TEXS mask and dest.
| * | gl_shader_decompiler: Fix TEXS mask and dest.bunnei2018-08-051-2/+5
| | |
* | | Merge pull request #912 from lioncash/global-varbunnei2018-08-0510-50/+50
|\ \ \ | |/ / |/| | video_core: Eliminate the g_renderer global variable
| * | renderer_base: Make Rasterizer() return the rasterizer by referenceLioncash2018-08-042-4/+8
| | | | | | | | | | | | | | | | | | | | | All calling code assumes that the rasterizer will be in a valid state, which is a totally fine assumption. The only way the rasterizer wouldn't be is if initialization is done incorrectly or fails, which is checked against in System::Init().
| * | video_core: Eliminate the g_renderer global variableLioncash2018-08-0410-47/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We move the initialization of the renderer to the core class, while keeping the creation of it and any other specifics in video_core. This way we can ensure that the renderer is initialized and doesn't give unfettered access to the renderer. This also makes dependencies on types more explicit. For example, the GPU class doesn't need to depend on the existence of a renderer, it only needs to care about whether or not it has a rasterizer, but since it was accessing the global variable, it was also making the renderer a part of its dependency chain. By adjusting the interface, we can get rid of this dependency.
* | | added braces for conditionsDavid Marcec2018-08-051-2/+3
| | |
* | | fix the attrib format for intsDavid Marcec2018-08-051-2/+7
| | |
* | | Merge pull request #919 from lioncash/signbunnei2018-08-041-8/+9
|\ \ \ | |/ / |/| | gl_shader_manager: Amend sign differences in an assertion comparison in SetShaderUniformBlockBinding()
| * | gl_shader_manager: Invert conditional in SetShaderUniformBlockBinding()Lioncash2018-08-041-7/+9
| | | | | | | | | | | | | | | This lets us indent the majority of the code and places the error case first.
| * | gl_shader_manager: Amend sign differences in an assertion comparison in SetShaderUniformBlockBinding()Lioncash2018-08-041-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | Ensures both operands have the same sign in the comparison. While we're at it, we can get rid of the redundant casting of ub_size to an int. This type will always be trivial and alias a built-in type (not doing so would break backwards compatibility at a standard level).
* | | Merge pull request #911 from lioncash/prototypebunnei2018-08-041-3/+0
|\ \ \ | | | | | | | | video_core: Remove unimplemented Start() function prototype
| * | | video_core: Remove unimplemented Start() function prototypeLioncash2018-08-031-3/+0
| | | | | | | | | | | | | | | | Given this has no definition, we can just remove it entirely.
* | | | Merge pull request #910 from lioncash/unusedbunnei2018-08-031-2/+0
|\ \ \ \ | |_|/ / |/| | | gl_shader_decompiler: Remove unused variable in GenerateDeclarations()
| * | | gl_shader_decompiler: Remove unused variable in GenerateDeclarations()Lioncash2018-08-031-2/+0
| |/ / | | | | | | | | | | | | This variable was being incremented, but we were never actually using it.
* / / gl_shader_manager: Make ProgramManager's GetCurrentProgramStage() a const member functionLioncash2018-08-031-1/+1
|/ / | | | | | | This function doesn't modify class state, so it can be made const.
* | Merge pull request #892 from lioncash/globalbunnei2018-08-038-51/+41
|\ \ | | | | | | video_core: Make global EmuWindow instance part of the base renderer …
| * | video_core: Make global EmuWindow instance part of the base renderer classLioncash2018-08-028-51/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes the global a member of the RendererBase class. We also change this to be a reference. Passing any form of null pointer to these functions is incorrect entirely, especially given the code itself assumes that the pointer would always be in a valid state. This also makes it easier to follow the lifecycle of instances being used, as we explicitly interact the renderer with the rasterizer, rather than it just operating on a global pointer.
* | | Merge pull request #901 from lioncash/refbunnei2018-08-031-2/+2
|\ \ \ | | | | | | | | gl_shader_manager: Take ShaderSetup instances by const reference in UseProgrammableVertexShader() and UseProgrammableFragmentShader()
| * | | gl_shader_manager: Take ShaderSetup instances by const reference in UseProgrammableVertexShader() and UseProgrammableFragmentShader()Lioncash2018-08-021-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Avoids performing unnecessary copies of 65560 byte sized ShaderSetup instances, considering it's only used as part of lookup and not modified. Given the parameters were already const, it's likely taking these parameters by reference was intended but the ampersand was forgotten.
* | | Merge pull request #902 from lioncash/arraybunnei2018-08-021-2/+3
|\ \ \ | | | | | | | | gl_state: Make texture_units a std::array
| * | | gl_state: Make texture_units a std::arrayLioncash2018-08-021-2/+3
| |/ / | | | | | | | | | Gets rid of the use of a raw C array.
* / / Implement RGB32F PixelFormat (#886) (used by Go Vacation)greggameplayer2018-08-023-9/+23
|/ /
* | Implement R32_FLOAT RenderTargetFormatUnknown2018-08-013-0/+5
| |
* | Merge pull request #869 from Subv/ubsanbunnei2018-07-312-2/+6
|\ \ | |/ |/| Corrected a few error cases detected by asan/ubsan
| * MacroInterpreter: Avoid left shifting negative values.Subv2018-07-312-2/+6
| | | | | | | | The branch target is signed, so multiply by 4 instead of left shifting by 2
* | Merge pull request #808 from lioncash/mem-dedupbunnei2018-07-261-14/+22
|\ \ | | | | | | video_core/memory_manager: Avoid repeated unnecessary page slot lookups
| * | video_core/memory_manager: Replace a loop with std::array's fill() function in PageSlot()Lioncash2018-07-241-3/+1
| | | | | | | | | | | | | | | We already have a function that does what this code was doing, so let's use that instead.
| * | video_core/memory_manager: Avoid repeated unnecessary page slot lookupsLioncash2018-07-241-11/+21
| | | | | | | | | | | | | | | | | | | | | We don't need to keep calling the same function over and over again in a loop, especially when the behavior is slightly non-trivial. We can just keep a reference to the looked up location and do all the checking and assignments based off it instead.
* | | GPU: Allow using R16F as a render target format.Subv2018-07-262-1/+4
| |/ |/|
* | Implement R16_G16Unknown2018-07-264-19/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | correct trailing white spaces Delete tabs correct placement Add RG16F & RG16UI & RG16I & RG16S PixelFormats Return correct data according to changes done previously correct PixelFormat declaration correct coding style error correct coding style error part 2 correct RG16S Declaration error correct alignment
* | Merge pull request #819 from Subv/srgbbunnei2018-07-252-9/+17
|\ \ | | | | | | GPU: Use the right texture format for sRGBA framebuffers.
| * | GPU: Use the right texture format for sRGBA framebuffers.Subv2018-07-252-9/+17
| | |
* | | GPU: Allow the use of Z24S8 as a texture format.Subv2018-07-251-0/+4
|/ /
* | Merge pull request #816 from Subv/z32_s8bunnei2018-07-254-1/+16
|\ \ | | | | | | GPU: Implemented the Z32_S8_X24 depth buffer format.
| * | GPU: Implemented the Z32_S8_X24 depth buffer format.Subv2018-07-254-1/+16
| | |
* | | Merge pull request #815 from Subv/z32f_texbunnei2018-07-251-0/+4
|\ \ \ | | | | | | | | GPU: Allow using Z32 as a texture format.
| * | | GPU: Allow using Z32 as a texture format.Subv2018-07-251-0/+4
| |/ /
* | | Merge pull request #814 from Subv/rt_r8bunnei2018-07-252-0/+4
|\ \ \ | | | | | | | | GPU: Allow the usage of R8 as a render target format.
| * | | GPU: Allow the usage of R8 as a render target format.Subv2018-07-252-0/+4
| |/ /
* | | Merge pull request #809 from lioncash/rasterizerbunnei2018-07-252-16/+13
|\ \ \ | | | | | | | | gl_rasterizer: Minor cleanup
| * | | gl_rasterizer: Replace magic number with GL_INVALID_INDEX in SetupConstBuffers()Lioncash2018-07-241-3/+5
| | | | | | | | | | | | | | | | | | | | This is just the named constant that OpenGL provides, so we can use that instead of using a literal -1
| * | | gl_rasterizer: Use std::string_view instead of std::string when checking for extensionsLioncash2018-07-241-1/+3
| | | | | | | | | | | | | | | | | | | | We can avoid heap allocations here by just using a std::string_view instead of performing unnecessary copying of the string data.
| * | | gl_rasterizer: Use in-class member initializers where applicableLioncash2018-07-242-12/+5
| | |/ | |/| | | | | | | We can just assign to the members directly in these cases.
* | | Merge pull request #811 from Subv/code_address_assertbunnei2018-07-251-8/+0
|\ \ \ | |_|/ |/| | GPU: Remove the assert that required the CODE_ADDRESS to be 0.
| * | GPU: Remove the assert that required the CODE_ADDRESS to be 0.Subv2018-07-241-8/+0
| |/ | | | | | | Games usually just leave it at 0 but nouveau sets it to something else. This already works fine, the assert is useless.
* / GPU: Implemented the R16 and R16F texture formats.Subv2018-07-243-5/+32
|/
* Merge pull request #799 from Subv/tex_r32fbunnei2018-07-243-6/+19
|\ | | | | GPU: Implement texture format R32F.
| * GPU: Implement texture format R32F.Subv2018-07-243-6/+19
| |
* | Merge pull request #796 from bunnei/gl-uintbunnei2018-07-241-0/+3
|\ \ | | | | | | maxwell_to_gl: Implement VertexAttribute::Type::UnsignedInt.
| * | maxwell_to_gl: Implement VertexAttribute::Type::UnsignedInt.bunnei2018-07-241-0/+3
| | |
* | | gl_rasterizer: Implement texture border color.bunnei2018-07-243-11/+11
| | |
* | | maxwell_to_gl: Implement Texture::WrapMode::Border.bunnei2018-07-241-0/+2
| |/ |/|
* | Merge pull request #791 from bunnei/rg32f-rgba32f-bgra8bunnei2018-07-245-12/+70
|\ \ | |/ |/| gl_rasterizer_cache: Implement formats BGRA8_UNORM/RGBA32_FLOAT/RG32_FLOAT
| * gl_rasterizer_cache: Implement RenderTargetFormat RG32_FLOAT.bunnei2018-07-245-7/+25
| |
| * gl_rasterizer_cache: Implement RenderTargetFormat RGBA32_FLOAT.bunnei2018-07-242-10/+34
| |
| * gl_rasterizer_cache: Implement RenderTargetFormat BGRA8_UNORM.bunnei2018-07-244-8/+22
| |
| * gl_rasterizer_cache: Add missing log statements.bunnei2018-07-241-0/+2
| |
* | Merge pull request #792 from lioncash/retvalbunnei2018-07-241-2/+2
|\ \ | | | | | | gl_shader_decompiler: Correct return value of WriteTexsInstruction()
| * | gl_shader_decompiler: Correct return value of WriteTexsInstruction()Lioncash2018-07-241-2/+2
| | | | | | | | | | | | This should be returning void, not a std::string
* | | Merge pull request #790 from bunnei/shader-print-instrbunnei2018-07-241-1/+2
|\ \ \ | | | | | | | | gl_shader_decompiler: Print instruction value in shader comments.
| * | | gl_shader_decompiler: Print instruction value in shader comments.bunnei2018-07-241-1/+2
| | |/ | |/|
* | | Merge pull request #788 from bunnei/shader-check-zerobunnei2018-07-241-0/+6
|\ \ \ | |_|/ |/| | gl_shader_decompiler: Check if SetRegister result is ZeroIndex.
| * | gl_shader_decompiler: Check if SetRegister result is ZeroIndex.bunnei2018-07-241-0/+6
| |/
* | gl_shader_decompiler: Implement shader instruction TLDS.bunnei2018-07-241-29/+43
| |
* | gl_shader_decompiler: Simplify GetCommonDeclarations()Lioncash2018-07-231-5/+5
|/
* Merge pull request #769 from bunnei/shader-mask-fixesbunnei2018-07-231-5/+9
|\ | | | | shader_bytecode: Implement other TEXS masks.
| * shader_bytecode: Implement other TEXS masks.bunnei2018-07-221-5/+9
| |
* | gl_shader_decompiler: Remove redundant Subroutine construction in AddSubroutine()Lioncash2018-07-221-4/+8
|/ | | | | | We don't need to toss away the Subroutine instance after the find() call and reconstruct another instance with the same data right after it. Particularly give Subroutine contains a std::set.
* Merge pull request #767 from bunnei/shader-cleanupbunnei2018-07-221-78/+15
|\ | | | | gl_shader_decompiler: Remove unused state tracking and minor cleanup.
| * gl_shader_decompiler: Remove unused state tracking and minor cleanup.bunnei2018-07-221-78/+15
| |
* | gl_shader_decompiler: Implement SEL instruction.bunnei2018-07-222-0/+20
|/
* gl_rasterizer_cache: Blit surfaces on recreation instead of flush and load.bunnei2018-07-222-2/+86
|
* gl_rasterizer_cache: Use GPUVAddr as cache key, not parameter set.bunnei2018-07-223-57/+46
|
* gl_rasterizer_cache: Use zeta_width and zeta_height registers for depth buffer.bunnei2018-07-222-11/+11
|
* gl_rasterizer: Use zeta_enable register to enable depth buffer.bunnei2018-07-221-2/+2
|
* maxwell_3d: Add depth buffer enable, width, and height registers.bunnei2018-07-221-2/+14
|
* Merge pull request #748 from lioncash/namespacebunnei2018-07-2211-48/+24
|\ | | | | video_core: Use nested namespaces where applicable
| * video_core: Use nested namespaces where applicableLioncash2018-07-2111-48/+24
| | | | | | | | Compresses a few namespace specifiers to be more compact.
* | Merge pull request #747 from lioncash/unimplementedbunnei2018-07-212-3/+3
|\ \ | | | | | | gl_shader_manager: Remove unimplemented function prototype
| * | gl_shader_manager: Replace unimplemented function prototypeLioncash2018-07-212-3/+3
| |/ | | | | | | This was just a linker error waiting to happen.
* / gpu: Rename Get3DEngine() to Maxwell3D()Lioncash2018-07-213-11/+14
|/ | | | This makes it match its const qualified equivalent.
* Merge pull request #738 from lioncash/signbunnei2018-07-201-16/+20
|\ | | | | gl_state: Get rid of mismatched sign conversions in Apply()
| * gl_state: Make references const where applicable in Apply()Lioncash2018-07-201-2/+3
| |
| * gl_state: Get rid of mismatched sign conversionsLioncash2018-07-201-14/+17
| | | | | | | | | | While we're at it, amend the loop variable type to be the same width as that returned by the .size() call.
* | Merge pull request #735 from lioncash/video-unusedbunnei2018-07-201-2/+0
|\ \ | | | | | | maxwell_3d: Remove unused variable within GetStageTextures()
| * | maxwell_3d: Remove unused variable within GetStageTextures()Lioncash2018-07-201-2/+0
| |/
* | Merge pull request #731 from lioncash/shadowbunnei2018-07-201-6/+4
|\ \ | | | | | | gl_shader_decompiler: Eliminate variable and declaration shadowing
| * | gl_shader_decompiler: Eliminate variable and declaration shadowingLioncash2018-07-201-6/+4
| |/ | | | | | | | | Ensures that no identifiers are being hidden, which also reduces compiler warnings.
* / gl_shader_decompiler: Remove unnecessary const from return valuesLioncash2018-07-201-2/+2
|/ | | | | This adds nothing from a behavioral point of view, and can inhibit the move constructor/RVO
* gl_state: Temporarily disable culling and depth test.bunnei2018-07-191-1/+3
|
* Merge pull request #687 from lioncash/instancebunnei2018-07-193-15/+15
|\ | | | | core: Don't construct instance of Core::System, just to access its live instance
| * core: Don't construct instance of Core::System, just to access its live instanceLioncash2018-07-193-15/+15
| | | | | | | | | | | | | | | | | | This would result in a lot of allocations and related object construction, just to toss it all away immediately after the call. These are definitely not intentional, and it was intended that all of these should have been accessing the static function GetInstance() through the name itself, not constructed instances.
* | decoders: Fix calc of swizzle image_width_in_gobs.bunnei2018-07-191-1/+4
|/
* Merge pull request #678 from lioncash/astcbunnei2018-07-181-78/+60
|\ | | | | astc: Minor changes
| * astc: Initialize vector size directly in DecompressLioncash2018-07-181-2/+1
| | | | | | | | There's no need to perform a separate resize.
| * astc: Mark functions as internally linked where applicableLioncash2018-07-181-17/+20
| |
| * astc: const-correctness changes where applicableLioncash2018-07-181-14/+13
| | | | | | | | | | A few member functions didn't actually modify class state, so these can be amended as necessary.
| * astc: Delete Bits' copy contstructor and assignment operatorLioncash2018-07-181-8/+6
| | | | | | | | | | This also potentially avoids warnings, considering the copy assignment operator is supposed to have a return value.
| * astc: In-class initialize member variables where appropriateLioncash2018-07-181-39/+22
| |
* | vi: Partially implement buffer crop parameters.bunnei2018-07-183-4/+20
|/
* GPU: Added register definitions for the stencil parameters.Subv2018-07-171-2/+25
|
* gl_rasterizer_cache: Implement texture format G8R8.bunnei2018-07-153-9/+40
|
* Merge pull request #665 from bunnei/fix-z24-s8bunnei2018-07-151-1/+2
|\ | | | | gl_rasterizer_cache: Fix incorrect offset in ConvertS8Z24ToZ24S8.
| * gl_rasterizer_cache: Fix incorrect offset in ConvertS8Z24ToZ24S8.bunnei2018-07-151-1/+2
| |
* | gl_rasterizer_cache: Implement depth format Z16_UNORM.bunnei2018-07-153-1/+15
|/
* Merge pull request #598 from bunnei/makedonecurrentbunnei2018-07-153-1/+27
|\ | | | | OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering.
| * OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering.bunnei2018-07-143-1/+27
| |
* | GPU: Always enable the depth write when clearing the depth buffer.Subv2018-07-141-3/+8
|/ | | | The GPU ignores that register when clearing, but OpenGL obeys the glDepthMask parameter, so we set the depth mask to GL_TRUE when clearing the depth buffer. It will be restored to the correct value automatically on the next draw call.
* gl_rasterizer: Fix check for if a shader stage is enabled.bunnei2018-07-133-35/+11
|
* gl_shader_gen: Implement dual vertex shader mode.bunnei2018-07-135-55/+139
| | | | - When VertexA shader stage is enabled, we combine with VertexB program to make a single Vertex Shader stage.
* Merge pull request #655 from bunnei/pred-lt-nanbunnei2018-07-132-5/+7
|\ | | | | gl_shader_decompiler: Implement PredCondition::LessThanWithNan.
| * gl_shader_decompiler: Implement PredCondition::LessThanWithNan.bunnei2018-07-132-5/+7
| |
* | gl_shader_decompiler: Use FlowCondition field in EXIT instruction.bunnei2018-07-132-8/+34
|/
* Merge pull request #652 from Subv/fadd32iSebastian Valle2018-07-132-0/+32
|\ | | | | GPU: Implement the FADD32I shader instruction.
| * GPU: Implement the FADD32I shader instruction.Subv2018-07-122-0/+32
| |
* | Merge pull request #651 from Subv/ffma_decodebunnei2018-07-121-1/+1
|\ \ | | | | | | GPU: Corrected the decoding of FFMA for immediate operands.
| * | GPU: Corrected the decoding of FFMA for immediate operands.Subv2018-07-121-1/+1
| |/
* | gl_rasterizer: Flip triangles when regs.viewport_transform[0].scale_y is negative.bunnei2018-07-081-1/+4
| | | | | | | | - Fixes a regression with Binding of Isaac.
* | Merge pull request #625 from Subv/imnmxbunnei2018-07-082-3/+31
|\ \ | | | | | | GPU: Implemented the IMNMX shader instruction.
| * | GPU: Implemented the IMNMX shader instruction.Subv2018-07-042-3/+31
| | | | | | | | | | | | It's similar to the FMNMX instruction but it works on integers.
* | | GPU: Implemented the BC7U texture format.Subv2018-07-073-7/+21
| |/ |/| | | | | Note: Our version of glad exports GL_COMPRESSED_RGBA_BPTC_UNORM as GL_COMPRESSED_RGBA_BPTC_UNORM_ARB, maybe it's time we update it.
* | Merge pull request #629 from Subv/depth_testbunnei2018-07-052-9/+29
|\ \ | | | | | | GPU: Allow using the old NV04 values for the depth test function.
| * | GPU: Allow using the old NV04 values for the depth test function.Subv2018-07-052-9/+29
| | | | | | | | | | | | | | | | | | These seem to be just a valid as the GL token values. Thanks @ReinUsesLisp This restores graphical output to Disgaea 5
* | | Merge pull request #626 from Subv/shader_syncbunnei2018-07-052-0/+12
|\ \ \ | |/ / |/| | GPU: Stub the shader SYNC and DEPBAR instructions.
| * | GPU: Stub the shader SYNC and DEPBAR instructions.Subv2018-07-042-0/+12
| |/ | | | | | | It is unknown at this moment if we actually need to do something with these instructions or if the GLSL compiler takes care of that for us.
* | Merge pull request #624 from Subv/f2f_roundbunnei2018-07-051-0/+3
|\ \ | | | | | | GPU: Implemented the F2F 'round' rounding mode.
| * | GPU: Implemented the F2F 'round' rounding mode.Subv2018-07-041-0/+3
| |/ | | | | | | It's implemented via the GLSL 'roundEven()' function.
* | Merge pull request #623 from Subv/vertex_typesbunnei2018-07-051-0/+8
|\ \ | | | | | | GPU: Implement the Size_16_16 and Size_10_10_10_2 vertex attribute types
| * | GPU: Implement the Size_16_16 and Size_10_10_10_2 vertex attribute types.Subv2018-07-041-0/+8
| |/ | | | | | | Both signed and unsigned variants.
* | Merge pull request #622 from Subv/unused_texbunnei2018-07-052-2/+5
|\ \ | | | | | | GPU: Ignore unused textures and corrected the TEX shader instruction decoding.
| * | GPU: Ignore textures that the GLSL compiler deemed unused when binding textures to the shaders.Subv2018-07-041-1/+4
| | |
| * | GPU: Corrected the decoding for the TEX shader instruction.Subv2018-07-041-1/+1
| |/
* | Merge pull request #621 from Subv/psetp_bunnei2018-07-052-0/+43
|\ \ | | | | | | GPU: Implemented the PSETP shader instruction.
| * | GPU: Implemented the PSETP shader instruction.Subv2018-07-042-0/+43
| |/ | | | | | | It's similar to the isetp and fsetp instructions but it works on predicates instead.
* | Merge pull request #620 from Subv/depth_z32fbunnei2018-07-053-2/+15
|\ \ | | | | | | GPU: Implemented the 32 bit float depth buffer format.
| * | GPU: Implemented the 32 bit float depth buffer format.Subv2018-07-043-2/+15
| |/
* / GPU: Flip the triangle front face winding if the GPU is configured to not flip the triangles.Subv2018-07-042-3/+29
|/ | | | | | OpenGL's default behavior is already correct when the GPU is configured to flip the triangles. This fixes 1-2 Switch's splash screen.
* GPU: Only configure the used framebuffers during clear.Subv2018-07-044-17/+48
| | | | Don't try to configure the color buffer if it is not being cleared, it may not be completely valid at this point.
* Merge pull request #609 from Subv/clear_buffersbunnei2018-07-045-16/+105
|\ | | | | GPU: Implemented the CLEAR_BUFFERS register.
| * GPU: Factor out the framebuffer configuration code for both Clear and Draw commands.Subv2018-07-032-72/+39
| |
| * GPU: Support clears that don't clear the color buffer.Subv2018-07-032-6/+17
| |
| * GPU: Bind and clear the render target when the CLEAR_BUFFERS register is written to.Subv2018-07-034-0/+86
| |
| * GPU: Added registers for the CLEAR_BUFFERS and CLEAR_COLOR methods.Subv2018-07-031-2/+27
| |
* | gl_rasterizer_cache: Implement PixelFormat S8Z24.bunnei2018-07-033-11/+83
| |
* | Merge pull request #607 from jroweboy/loggingbunnei2018-07-0313-88/+87
|\ \ | | | | | | Logging - Customizable backends
| * | Update clang formatJames Rowe2018-07-037-21/+20
| | |
| * | Rename logging macro back to LOG_*James Rowe2018-07-0313-70/+70
| |/
* | Merge pull request #612 from bunnei/fix-cullbunnei2018-07-031-2/+5
|\ \ | | | | | | gl_rasterizer: Only set cull mode and front face if enabled.
| * | gl_rasterizer: Only set cull mode and front face if enabled.bunnei2018-07-031-2/+5
| |/
* | Merge pull request #611 from Subv/enabled_depth_testbunnei2018-07-032-9/+13
|\ \ | | | | | | GPU: Don't try to parse the depth test function if the depth test is disabled and use only the least significant 3 bits in the depth test func
| * | GPU: Use only the least significant 3 bits when reading the depth test func.Subv2018-07-031-9/+9
| | | | | | | | | | | | Some games set the full GL define value here (including nouveau), but others just seem to set those last 3 bits.
| * | GPU: Don't try to parse the depth test function if the depth test is disabled.Subv2018-07-031-0/+4
| |/
* | Merge pull request #610 from Subv/mufu_8bunnei2018-07-032-0/+5
|\ \ | |/ |/| GPU: Implemented MUFU suboperation 8, sqrt.
| * GPU: Implemented MUFU suboperation 8, sqrt.Subv2018-07-032-0/+5
| |
* | Merge pull request #608 from Subv/depthbunnei2018-07-039-32/+246
|\ \ | | | | | | GPU: Implemented the depth buffer and depth test + culling
| * | GPU: Set up the culling configuration on each draw.Subv2018-07-031-6/+8
| | |
| * | GPU: Set up the depth test state on every draw.Subv2018-07-022-0/+14
| | |
| * | MaxwellToGL: Added conversion functions for depth test and cull mode.Subv2018-07-021-0/+50
| | |
| * | GPU: Added registers for depth test and cull mode.Subv2018-07-021-3/+51
| | |
| * | GPU: Implemented the Z24S8 depth format and load the depth framebuffer.Subv2018-07-027-24/+124
| |/
* | Merge pull request #606 from Subv/base_vertexSebastian Valle2018-07-022-8/+15
|\ \ | | | | | | GPU: Fixed the index offset and implement BaseVertex when doing indexed rendering.
| * | GPU: Implement offsetted rendering when using non-indexed drawing.Subv2018-07-021-1/+1
| | |
| * | GPU: Fixed the index offset rendering, and implemented the base vertex functionality.Subv2018-07-021-6/+8
| | | | | | | | | | | | This fixes Stardew Valley.
| * | GPU: Added register definitions for the vertex buffer base element.Subv2018-07-021-1/+6
| |/
* | Merge pull request #605 from Subv/dma_copySebastian Valle2018-07-021-1/+5
|\ \ | | | | | | GPU: Directly copy the pixels when performing a same-layout DMA.
| * | GPU: Directly copy the pixels when performing a same-layout DMA.Subv2018-07-021-1/+5
| | |
* | | Merge pull request #604 from Subv/invalid_texturesbunnei2018-07-023-3/+12
|\ \ \ | |_|/ |/| | GPU: Ignore invalid and disabled textures when drawing.
| * | GPU: Ignore disabled textures and textures with an invalid address.Subv2018-07-022-1/+10
| | |
| * | GPU: Allow GpuToCpuAddress to return boost::none for unmapped addresses.Subv2018-07-021-2/+2
| |/
* | Merge pull request #602 from Subv/mufu_subopbunnei2018-07-012-6/+1
|\ \ | | | | | | GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation.
| * | GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation.Subv2018-06-302-6/+1
| |/
* | Merge pull request #601 from Subv/rgba32_uibunnei2018-07-014-25/+48
|\ \ | | | | | | GPU: Implement the RGBA32_UINT rendertarget format.
| * | GPU: Implemented the RGBA32_UINT rendertarget format.Subv2018-06-304-9/+28
| | |
| * | GLCache: Specify the component type along the texture type in the format tuple.Subv2018-06-301-17/+21
| |/
* / gl_shader_decompiler: Implement predicate NotEqualWithNan.bunnei2018-06-302-17/+24
|/
* Merge pull request #595 from bunnei/raster-cachebunnei2018-06-298-1454/+404
|\ | | | | Rewrite the OpenGL rasterizer cache
| * gl_rasterizer_cache: Only dereference color_surface/depth_surface if valid.bunnei2018-06-291-2/+6
| |
| * gl_rasterizer_cache: Implement caching for texture and framebuffer surfaces.bunnei2018-06-273-16/+168
| | | | | | | | | | | | gl_rasterizer_cache: Improved cache management based on Citra's implementation. gl_surface_cache: Add some docstrings.
| * gl_rasterizer_cache: Various fixes for ASTC handling.bunnei2018-06-272-35/+39
| |
| * gl_rasterizer_cache: Use SurfaceParams as a key for surface caching.bunnei2018-06-272-43/+72
| |
| * maxwell_3d: Add a struct for RenderTargetConfig.bunnei2018-06-271-17/+19
| |
| * gl_rasterizer: Implement AccelerateDisplay to forward textures to framebuffers.bunnei2018-06-276-8/+62
| |
| * gl_rasterizer_cache: Cache size_in_bytes as a const per surface.bunnei2018-06-272-9/+13
| |
| * gl_rasterizer_cache: Refactor to make SurfaceParams members const.bunnei2018-06-272-52/+37
| |
| * gl_rasterizer_cache: Remove Citra's rasterizer cache, always load/flush surfaces.bunnei2018-06-274-1494/+210
| |
* | gl_shader_decompiler: Add a return path for unknown instructions.bunnei2018-06-271-0/+1
|/
* gl_rasterizer: Workaround for when exceeding max UBO size.bunnei2018-06-272-1/+7
|
* Merge pull request #593 from bunnei/fix-swizzlebunnei2018-06-275-12/+20
|\ | | | | gl_state: Fix state management for texture swizzle.
| * gl_state: Fix state management for texture swizzle.bunnei2018-06-265-12/+20
| |
* | Merge pull request #592 from bunnei/cleanup-gl-statebunnei2018-06-272-94/+0
|\ \ | | | | | | gl_state: Remove unused state management from 3DS.
| * | gl_state: Remove unused state management from 3DS.bunnei2018-06-262-94/+0
| |/
* / gl_rasterizer_cache: Fix inverted B5G6R5 format.bunnei2018-06-261-1/+1
|/
* Merge pull request #554 from Subv/constbuffer_ubobunnei2018-06-264-18/+39
|\ | | | | Rasterizer: Use UBOs instead of SSBOs for uploading const buffers.
| * Rasterizer: Use UBOs instead of SSBOs for uploading const buffers.Subv2018-06-104-18/+39
| | | | | | | | This should help a bit with GPU performance once we're GPU-bound.
* | Fix crash at exitmailwl2018-06-251-2/+4
| |
* | Build: Fixed some MSVC warnings in various parts of the code.Subv2018-06-207-12/+13
| |
* | Merge pull request #574 from Subv/shader_abs_negbunnei2018-06-191-7/+14
|\ \ | | | | | | GPU: Perform negation after absolute value in the float shader instructions.
| * | GPU: Perform negation after absolute value in the float shader instructions.Subv2018-06-191-7/+14
| | |
* | | GPU: Don't mark uniform buffers and registers as used for instructions which don't have them.Subv2018-06-192-14/+18
|/ / | | | | | | | | Like the MOV32I and FMUL32I instructions. This fixes a potential crash when using these instructions.
* | Merge pull request #570 from bunnei/astcbunnei2018-06-196-1/+1709
|\ \ | | | | | | gl_rasterizer: Implement texture format ASTC_2D_4X4.
| * | gl_rasterizer: Implement texture format ASTC_2D_4X4.bunnei2018-06-186-1/+1709
| | |
* | | Merge pull request #571 from Armada651/loose-blendbunnei2018-06-181-1/+1
|\ \ \ | |/ / |/| | gl_rasterizer: Get loose on independent blending.
| * | gl_rasterizer: Get loose on independent blending.Jules Blok2018-06-181-1/+1
| | |
* | | gl_rasterizer_cache: Loosen things up a bit.bunnei2018-06-181-26/+8
| | |
* | | gl_shader_decompiler: Implement LOP instructions.bunnei2018-06-172-6/+42
| | |
* | | gl_shader_decompiler: Refactor LOP32I instruction a bit in support of LOP.bunnei2018-06-172-57/+42
|/ /
* | gl_shader_decompiler: Implement integer size conversions for I2I/I2F/F2I.bunnei2018-06-162-14/+43
| |
* | Merge pull request #564 from bunnei/lop32i_passbbunnei2018-06-161-6/+12
|\ \ | | | | | | gl_shader_decompiler: Implement LOP32I LogicOperation PassB.
| * | gl_shader_decompiler: Implement LOP32I LogicOperation PassB.bunnei2018-06-161-6/+12
| | |
* | | gl_shader_gen: Set position.w to 1.bunnei2018-06-161-0/+4
|/ /
* | Merge pull request #556 from Subv/dma_enginebunnei2018-06-127-1/+237
|\ \ | | | | | | GPU: Partially implemented the Maxwell DMA engine.
| * | GPU: Partially implemented the Maxwell DMA engine.Subv2018-06-127-1/+237
| | | | | | | | | | | | Only tiled->linear and linear->tiled copies that aren't offsetted are supported for now. Queries are not supported. Swizzled copies are not supported.
* | | Merge pull request #558 from Subv/iadd32ibunnei2018-06-122-2/+31
|\ \ \ | | | | | | | | GPU: Implemented the iadd32i shader instruction.
| * | | GPU: Implemented the iadd32i shader instruction.Subv2018-06-122-2/+31
| | | |
* | | | gl_shader_decompiler: Implement saturate for float instructions.bunnei2018-06-122-39/+32
|/ / /
* / / GPU: Convert the gl_InstanceId and gl_VertexID variables to floats when reading from them.Subv2018-06-101-1/+1
|/ / | | | | | | This corrects the invalid position values in some games when doing attribute-less rendering.
* | GPU: Implement the iset family of shader instructions.Subv2018-06-092-2/+46
| |
* | GPU: Added decodings for the ISET family of instructions.Subv2018-06-091-0/+7
|/
* Merge pull request #550 from Subv/ssybunnei2018-06-092-0/+7
|\ | | | | GPU: Stub the SSY shader instruction.
| * GPU: Stub the SSY shader instruction.Subv2018-06-092-0/+7
| | | | | | | | This instruction tells the GPU where the flow reconverges in a non-uniform control flow scenario, we can ignore this when generating GLSL code.
* | Merge pull request #551 from bunnei/shrbunnei2018-06-092-0/+17
|\ \ | | | | | | gl_shader_decompiler: Implement SHR instruction.
| * | gl_shader_decompiler: Implement SHR instruction.bunnei2018-06-092-0/+17
| |/
* | gl_shader_decompiler: Implement IADD instruction.bunnei2018-06-092-11/+37
| |
* | gl_shader_decompiler: Add missing asserts for saturate_a instructions.bunnei2018-06-092-8/+18
|/
* GPU: Synchronize the blend state on every draw call.Subv2018-06-092-16/+20
| | | | | | Only independent blending on render target 0 is implemented for now. This fixes the elongated squids in Splatoon 2's boot screen.
* GPU: Added registers for normal and independent blending.Subv2018-06-092-31/+27
|
* Merge pull request #547 from Subv/compressed_alignmentbunnei2018-06-081-2/+7
|\ | | | | GLCache: Align compressed texture sizes to their compression ratio, and then align that compressed size to the block height for tiled textures.
| * GLCache: Align compressed texture sizes to their compression ratio, and then align that compressed size to the block height for tiled textures.Subv2018-06-081-2/+7
| | | | | | | | This fixes issues with retrieving non-block-aligned tiled compressed textures from the cache.
* | Rasterizer: Flush the written region when writing shader uniform data before copying it to the uniform buffers.Subv2018-06-081-0/+3
|/ | | | This fixes the flip_viewport uniform having invalid values when drawing.
* Merge pull request #543 from Subv/uniformsbunnei2018-06-071-3/+4
|\ | | | | GLRenderer: Write the shader stage configuration UBO data *before* copying it to the GPU.
| * GLRenderer: Write the shader stage configuration UBO data *before* copying it to the GPU.Subv2018-06-071-3/+4
| | | | | | | | This should fix the bug with the vs_config UBO being uninitialized during shader execution.
* | Merge pull request #542 from bunnei/bfe_immbunnei2018-06-072-7/+44
|\ \ | | | | | | gl_shader_decompiler: Implement BFE_IMM instruction.
| * | gl_shader_decompiler: Implement BFE_IMM instruction.bunnei2018-06-072-7/+44
| | |
* | | Merge pull request #541 from Subv/blittexturesbunnei2018-06-071-56/+9
|\ \ \ | |/ / |/| | GLCache: Fixed copying compressed textures in the rasterizer cache.
| * | GLCache: Use the full uncompressed size when blitting from one texture to another.Subv2018-06-071-3/+6
| | | | | | | | | | | | This avoids the problem of only copying a tiny piece of the textures when they are compressed.
| * | GLCache: Simplify the logic to copy from one texture to another in BlitTextures.Subv2018-06-071-53/+3
| |/ | | | | | | | | | | We now use glCopyImageSubData, this should avoid errors with trying to attach a compressed texture as a framebuffer's color attachment and then blitting to it. Maybe in the future we can change this to glCopyTextureSubImage which only requires GL_ARB_direct_state_access.
* | gl_shader_decompiler: F2F: Implement rounding modes.bunnei2018-06-072-10/+35
| |
* | Merge pull request #537 from bunnei/misc-shaderbunnei2018-06-072-8/+24
|\ \ | | | | | | gl_shader_decompiler: Additional decodings, remove unused stuff from TEX
| * | gl_shader_decompiler: Remove some attribute stuff that has nothing to do with TEX/TEXS.bunnei2018-06-071-8/+4
| | |
| * | shader_bytecode: Add instruction decodings for BFE, IMNMX, and XMAD.bunnei2018-06-071-0/+20
| |/
* | Merge pull request #535 from Subv/gpu_swizzlebunnei2018-06-076-0/+65
|\ \ | | | | | | GPU: Support changing the texture swizzles for Maxwell textures.
| * | GPU: Support changing the texture swizzles for Maxwell textures.Subv2018-06-073-0/+45
| | |
| * | GLState: Support changing the GL_TEXTURE_SWIZZLE parameter of each texture unit.Subv2018-06-073-0/+20
| |/
* / gl_shader_decompiler: Implement ISETP_IMM instruction.bunnei2018-06-071-8/+9
|/
* Merge pull request #534 from Subv/multitexturingbunnei2018-06-079-69/+172
|\ | | | | GPU: Implement sampling multiple textures in the generated glsl shaders.
| * GPU: Implement sampling multiple textures in the generated glsl shaders.Subv2018-06-069-69/+172
| | | | | | | | | | | | All tested games that use a single texture show no regression. Only Texture2D textures are supported right now, each shader gets its own "tex_fs/vs/gs" sampler array to maintain independent textures between shader stages, the textures themselves are reused if possible.
* | gl_shader_decompiler: Implement LD_C instruction.bunnei2018-06-072-0/+43
| |
* | gl_shader_gen: Add uniform handling for indirect const buffer access.bunnei2018-06-073-4/+40
| |
* | gl_shader_decompiler: Refactor uniform handling to allow different decodings.bunnei2018-06-062-26/+29
|/
* Merge pull request #531 from bunnei/fix-shlSebastian Valle2018-06-061-1/+1
|\ | | | | gl_shader_decompiler: Fix un/signed mismatch with SHL.
| * gl_shader_decompiler: Fix un/signed mismatch with SHL.bunnei2018-06-061-1/+1
| |
* | Merge pull request #530 from bunnei/wrap-mirrorSebastian Valle2018-06-061-0/+2
|\ \ | | | | | | maxwell_to_gl: Implement WrapMode Mirror.
| * | maxwell_to_gl: Implement WrapMode Mirror.bunnei2018-06-061-0/+2
| |/
* | Merge pull request #527 from Subv/rgba32f_texcopybunnei2018-06-062-0/+5
|\ \ | | | | | | GPU: Allow the usage of RGBA32_FLOAT and RGBA16_FLOAT in the texture copy engine.
| * | GPU: Allow the usage of RGBA16_FLOAT in the texture copy engine.Subv2018-06-061-0/+2
| | |
| * | GPU: Allow the usage of RGBA32_FLOAT in the texture copy engine.Subv2018-06-062-0/+3
| | |
* | | Merge pull request #528 from Subv/rg11b10fbunnei2018-06-064-12/+31
|\ \ \ | |_|/ |/| | GPU: Implemented the R11FG11FB10F texture and rendertarget formats.
| * | GPU: Implemented the R11FG11FB10F texture and rendertarget formats.Subv2018-06-064-11/+30
| | |
| * | GPU: Fixed the compression factor for RGBA16F textures.Subv2018-06-061-1/+1
| |/ | | | | | | They're not compressed.
* | Merge pull request #516 from Subv/f2i_rbunnei2018-06-062-7/+64
|\ \ | | | | | | GPU: Implemented the F2I_R shader instruction.
| * | GPU: Implemented the F2I_R shader instruction.Subv2018-06-052-7/+64
| | |
* | | Merge pull request #521 from Subv/brabunnei2018-06-051-4/+5
|\ \ \ | | | | | | | | GPU: Corrected the branch targets for the shader bra instruction.
| * | | GPU: Corrected the branch targets for the shader bra instruction.Subv2018-06-051-4/+5
| | |/ | |/|
* | | Merge pull request #520 from bunnei/shader-shlbunnei2018-06-052-15/+48
|\ \ \ | |/ / |/| | gl_shader_decompiler: Implement SHL instruction.
| * | gl_shader_decompiler: Fix typo with ISCADD instruction.bunnei2018-06-051-1/+1
| | |
| * | gl_shader_decompiler: Implement SHL instruction.bunnei2018-06-052-14/+47
| | |
* | | Merge pull request #518 from Subv/incomplete_shadersbunnei2018-06-051-5/+16
|\ \ \ | |/ / |/| | GPU: Implemented predicated exit instructions in the shader programs.
| * | GPU: Implement predicated exit instructions in the shader programs.Subv2018-06-051-4/+6
| | |
| * | GPU: Take into account predicated exits when performing shader control flow analysis.Subv2018-06-051-1/+10
| | |
* | | gl_shader_decompiler: Implement PredCondition::NotEqual.bunnei2018-06-051-3/+3
| | |
* | | GPU: Implement the ISCADD shader instructions.Subv2018-06-052-0/+40
| | |
* | | GPU: Added decodings for the ISCADD instructions.Subv2018-06-051-0/+7
| |/ |/|
* | Merge pull request #514 from Subv/lop32ibunnei2018-06-052-1/+58
|\ \ | | | | | | GPU: Implemented the LOP32I instruction.
| * | GPU: Implemented the LOP32I instruction.Subv2018-06-042-1/+58
| | |
* | | Merge pull request #510 from Subv/isetpbunnei2018-06-052-6/+63
|\ \ \ | | | | | | | | GPU: Implemented the ISETP_R and ISETP_C instructions
| * | | GPU: Use explicit types when retrieving the uniform values for fsetp/fset and isetp instead of the type of an invalid output register.Subv2018-06-041-9/+18
| | | |
| * | | GPU: Implemented the ISETP_R and ISETP_C shader instructions.Subv2018-06-042-0/+48
| |/ /
* | | Merge pull request #512 from Subv/fsetbunnei2018-06-052-4/+19
|\ \ \ | |_|/ |/| | GPU: Corrected the FSET and I2F instructions.
| * | GPU: Use the bf bit in FSET to determine whether to write 0xFFFFFFFF or 1.0f.Subv2018-06-042-2/+7
| | |
| * | GPU: Corrected the I2F_R implementation.Subv2018-06-041-2/+12
| |/
* | Merge pull request #501 from Subv/shader_brabunnei2018-06-052-1/+45
|\ \ | | | | | | GPU: Partially implemented the bra shader instruction
| * | GPU: Partially implemented the shader BRA instruction.Subv2018-06-042-1/+43
| | |
| * | GPU: Added decoding for the BRA instruction.Subv2018-06-041-0/+2
| |/
* | Merge pull request #515 from Subv/viewport_fixbunnei2018-06-052-14/+30
|\ \ | | | | | | GPU: Calculate the correct viewport dimensions based on the scale and translate registers.
| * | GPU: Calculate the correct viewport dimensions based on the scale and translate registers.Subv2018-06-042-14/+30
| |/ | | | | | | This is how nouveau calculates the viewport width and height. For some reason some games set 0xFFFF in the VIEWPORT_HORIZ and VIEWPORT_VERT registers, maybe those are a misnomer and actually refer to something else?
* / GLCache: Corrected a mismatch between storing compressed sizes and verifying the uncompressed alignment in GetSurface.Subv2018-06-041-1/+2
|/
* Merge pull request #500 from Subv/long_queriesbunnei2018-06-041-9/+24
|\ | | | | GPU: Partial implementation of long GPU queries.
| * GPU: Partial implementation of long GPU queries.Subv2018-06-041-9/+24
| | | | | | | | | | | | | | | | Long queries write a 128-bit result value to memory, which consists of a 64 bit query value and a 64 bit timestamp. In this implementation, only select=Zero of the Crop unit is implemented, this writes the query sequence as a 64 bit value, and a 0u64 value for the timestamp, since we emulate an infinitely fast GPU. This specific type was hwtested, but more rigorous tests should be performed in the future for the other types.
* | gl_shader_decompiler: Implement TEXS component mask.bunnei2018-06-032-9/+26
| |
* | Merge pull request #494 from bunnei/shader-texbunnei2018-06-032-2/+58
|\ \ | | | | | | gl_shader_decompiler: Implement TEX, fixes for TEXS.
| * | gl_shader_decompiler: Implement TEX instruction.bunnei2018-06-012-1/+36
| | |
| * | gl_shader_decompiler: Support multi-destination for TEXS.bunnei2018-06-012-2/+23
| |/
* | Merge pull request #495 from bunnei/improve-rrobunnei2018-06-032-9/+18
|\ \ | | | | | | gl_shader_decompiler: Implement RRO as a register move.
| * | gl_shader_decompiler: Implement RRO as a register move.bunnei2018-06-032-9/+18
| |/
* / GPU: Implemented the DXN1 (BC4) texture format.Subv2018-06-023-3/+16
|/
* gl_rasterizer_cache: Assert that component type is UNorm or format is RGBA16F.bunnei2018-05-311-1/+2
|
* gl_rasterizer_cache: Implement PixelFormat RGBA16F.bunnei2018-05-313-6/+22
|
* Merge pull request #489 from Subv/vertexidbunnei2018-05-302-1/+11
|\ | | | | Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader.
| * Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader.Subv2018-05-302-1/+11
| |
* | Merge pull request #483 from bunnei/sonicSebastian Valle2018-05-303-5/+16
|\ \ | | | | | | Several GPU fixes to boot Sonic Mania
| * | gl_shader_decompiler: F2F_R instruction: Implement abs.bunnei2018-05-301-1/+7
| | |
| * | gl_shader_decompiler: Partially implement F2F_R instruction.bunnei2018-05-302-4/+9
| | |
| * | gl_rasterize_cache: Invert order of tex format RGB565.bunnei2018-05-301-1/+1
| |/
* / GPU: Implemented the R8 texture format (0x1D)Subv2018-05-303-5/+18
|/
* add all the known TextureFormat (#474)greggameplayer2018-05-291-2/+71
|
* Merge pull request #472 from bunnei/greater-equalbunnei2018-05-271-4/+3
|\ | | | | gl_shader_decompiler: Implement GetPredicateComparison GreaterEqual.
| * gl_shader_decompiler: Implement GetPredicateComparison GreaterEqual.bunnei2018-05-261-4/+3
| |
* | Merge pull request #476 from Subv/a1bgr5bunnei2018-05-274-5/+21
|\ \ | | | | | | GPU: Implemented the A1B5G5R5 texture format (0x14)
| * | GPU: Implemented the A1B5G5R5 texture format (0x14)Subv2018-05-274-5/+21
| |/
* / shader_bytecode: Implement other variants of FMNMX.bunnei2018-05-262-4/+10
|/
* Merge pull request #468 from Subv/compound_predsbunnei2018-05-261-46/+66
|\ | | | | Shader: Implemented compound predicates in the fset and fsetp instructions
| * Shader: Implemented compound predicates in fset.Subv2018-05-251-28/+12
| | | | | | | | | | | | You can specify a predicate in the fset instruction: Result = ((Value1 Comp Value2) OP P0) ? 1.0 : 0.0;
| * Shader: Implemented compound predicates in fsetp.Subv2018-05-251-19/+55
| | | | | | | | | | | | | | You can specify three predicates in an fsetp instruction: P1 = (Value1 Comp Value2) OP P0; P2 = !(Value1 Comp Value2) OP P0;
* | GPU: Allow command lists to rebind a channel to another engine in the middle of the command list.Subv2018-05-251-1/+0
|/
* Merge pull request #456 from Subv/unmap_bufferbunnei2018-05-212-0/+20
|\ | | | | Implemented nvhost-as-gpu's UnmapBuffer and nvmap's Free ioctls.
| * GPU: Implemented nvhost-as-gpu's UnmapBuffer ioctl.Subv2018-05-202-0/+20
| | | | | | | | It removes a mapping previously created with the MapBufferEx ioctl.
* | Merge pull request #458 from Subv/fmnmxbunnei2018-05-212-6/+26
|\ \ | | | | | | Shaders: Implemented the FMNMX shader instruction.
| * | Shaders: Implemented the FMNMX shader instruction.Subv2018-05-212-6/+26
| |/
* | Merge pull request #452 from Subv/psetpSebastian Valle2018-05-211-0/+3
|\ \ | | | | | | ShadersDecompiler: Added decoding for the PSETP instruction.
| * | ShadersDecompiler: Added decoding for the PSETP instruction.Subv2018-05-191-0/+3
| |/
* | Merge pull request #451 from Subv/gl_array_sizeSebastian Valle2018-05-212-13/+3
|\ \ | | | | | | GLRenderer: Remove unused vertex buffer and increase the size of the stream buffer to 128 MB.
| * | GLRenderer: Remove unused hw_vao_enabled_attributes variable.Subv2018-05-192-4/+0
| | |
| * | GLRenderer: Remove unused vertex buffer and increase the size of the stream buffer to 128 MB.Subv2018-05-192-9/+3
| |/ | | | | | | The stream buffer is where all the vertex data is copied, some games require this to be much bigger than the 4 MB we used to have.
* / GLRenderer: Log the shader source code when program linking fails.Subv2018-05-191-0/+27
|/
* general: Make formatting of logged hex values more straightforwardLioncash2018-05-021-1/+1
| | | | | | This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on).
* Merge pull request #422 from bunnei/shader-movbunnei2018-04-304-0/+30
|\ | | | | Shader instructions MOV_C, MOV_R, and several minor GPU things
| * maxwell_3d: Reset vertex counts after drawing.bunnei2018-04-291-0/+10
| |
| * gl_shader_decompiler: Implement MOV_R.bunnei2018-04-291-1/+2
| |
| * maxwell_to_gl: Implement type SignedNorm, Size_8_8_8_8.bunnei2018-04-291-0/+12
| |
| * shader_bytecode: Add decoding for FMNMX instruction.bunnei2018-04-291-0/+2
| |
| * gl_shader_decompiler: Implement MOV_C.bunnei2018-04-291-0/+5
| |
* | Shaders: Implemented predicate condition 3 (LessEqual) in the fset and fsetp instructions.Subv2018-04-291-0/+7
|/
* Merge pull request #416 from bunnei/shader-ints-p3bunnei2018-04-292-114/+206
|\ | | | | gl_shader_decompiler: Implement MOV32I, partially implement I2I, I2F
| * gl_shader_decompiler: Partially implement I2I_R, and I2F_R.bunnei2018-04-292-8/+34
| |
| * gl_shader_decompiler: More cleanups, etc. with how we handle register types.bunnei2018-04-291-44/+120
| |
| * GLSLRegister: Simplify register declarations, etc.bunnei2018-04-291-63/+31
| |
| * shader_bytecode: Add decodings for i2i instructions.bunnei2018-04-291-3/+20
| |
| * gl_shader_decompiler: Implement MOV32_IMM instruction.bunnei2018-04-292-2/+7
| |
* | fermi_2d: Fix surface copy block height.bunnei2018-04-292-2/+7
|/
* Merge pull request #408 from bunnei/shader-ints-p2bunnei2018-04-271-154/+262
|\ | | | | gl_shader_decompiler: Add GLSLRegisterManager class to track register state.
| * gl_shader_decompiler: Add GLSLRegisterManager class to track register state.bunnei2018-04-271-154/+262
| |
* | renderer_opengl: Replace usages of LOG_GENERIC with fmt-capable equivalentsLioncash2018-04-271-6/+7
|/
* general: Convert assertion macros over to be fmt-compatibleLioncash2018-04-274-7/+7
|
* gl_shader_decompiler: Boilerplate for handling integer instructions.bunnei2018-04-262-6/+111
|
* gl_shader_decompiler: Move color output to EXIT instruction.bunnei2018-04-261-6/+12
|
* Merge pull request #396 from Subv/shader_opsbunnei2018-04-262-9/+89
|\ | | | | Shaders: Implemented the FSET instruction.
| * Shaders: Added bit decodings for the I2I instruction.Subv2018-04-251-0/+6
| |
| * Shaders: Implemented the FSET instruction.Subv2018-04-251-0/+53
| | | | | | | | This instruction is similar to the FSETP instruction, but it doesn't set a predicate, it sets the destination register to 1.0 if the condition holds, and 0 otherwise.
| * Shaders: Added decodings for the FSET instructions.Subv2018-04-252-9/+30
| |
* | GPU: Partially implemented the Fermi2D surface copy operation.Subv2018-04-252-0/+59
| | | | | | | | | | The hardware allows for some rather complicated operations to be performed on the data during the copy, this is not implemented. Only same-format same-size raw copies are implemented for now.
* | GPU: Make the Textures::CopySwizzledData function accessible from the outside of the file.Subv2018-04-252-3/+6
| |
* | GPU: Added a function to retrieve the bytes per pixel of the render target formats.Subv2018-04-252-0/+15
| |
* | GPU: Added surface copy registers to Fermi2DSubv2018-04-251-1/+57
| |
* | GPU: Added boilerplate code for the Fermi2D engineSubv2018-04-253-3/+34
| |
* | GPU: Reduce the number of registers of Maxwell3D to 0xE00.Subv2018-04-252-5/+5
| | | | | | | | The rest are just macro shim registers.
* | GPU: Move the Maxwell3D macro uploading code to the inside of the Maxwell3D processor.Subv2018-04-254-40/+23
| | | | | | | | It doesn't belong in the PFIFO handler.
* | GPU: Corrected the upper bound of the PFIFO method ids in the command processor.Subv2018-04-251-1/+1
| |
* | video-core: Move logging macros over to new fmt-capable onesLioncash2018-04-255-18/+20
|/
* renderer_opengl: Use correct byte order for framebuffer pixel format ABGR8.bunnei2018-04-251-2/+1
|
* gl_rasterizer_cache: Use CHAR_BIT for bpp conversions instead of 8.bunnei2018-04-252-4/+4
|
* gl_rasterizer_cache: Use GPU PAGE_BITS/SIZE, not CPU.bunnei2018-04-251-5/+5
|
* gl_rasterizer_cache: Use new logger.bunnei2018-04-251-4/+4
|
* gl_rasterizer_cache: Add a function for finding framebuffer GPU address.bunnei2018-04-253-0/+31
|
* gl_rasterizer_cache: Handle compressed texture sizes.bunnei2018-04-252-24/+65
|
* gl_rasterizer_cache: Update to be based on GPU addresses, not CPU addresses.bunnei2018-04-258-50/+72
|
* memory_manager: Add implement CpuToGpuAddress.bunnei2018-04-242-0/+27
|
* memory_manager: Make GpuToCpuAddress return an optional.bunnei2018-04-246-24/+33
|
* memory_manager: Use GPUVAdddr, not PAddr, for GPU addresses.bunnei2018-04-246-58/+55
|
* Merge pull request #386 from Subv/gpu_querybunnei2018-04-242-2/+53
|\ | | | | GPU: Added asserts to our code for handling the QUERY_GET GPU command.
| * GPU: Added asserts to our code for handling the QUERY_GET GPU command.Subv2018-04-242-2/+53
| | | | | | | | | | This is based on research from nouveau. Many things are currently unknown and will require hwtests in the future. This commit also stubs QueryMode::Write2 to do the same as Write. Nouveau code treats them interchangeably, it is currently unknown what the difference is.
* | renderer_opengl: Silence a -Wdangling-else warning in DrawScreenTriangles()Lioncash2018-04-241-1/+2
| |
* | Merge pull request #379 from Subv/multi_buffersbunnei2018-04-243-43/+89
|\ \ | | | | | | GPU: Support multiple enabled vertex arrays.
| * | GPU: Support multiple enabled vertex arrays.Subv2018-04-233-43/+89
| |/ | | | | | | | | | | The vertex arrays will be copied to the stream buffer one after the other, and the attributes will be set using the ARB_vertex_attrib_binding extension. yuzu now thus requires OpenGL 4.3 or the ARB_vertex_attrib_binding extension.
* | Merge pull request #383 from Subv/gpu_mmubunnei2018-04-232-34/+25
|\ \ | | | | | | GPU: Make the GPU virtual memory manager use 16 page bits and 10 pagetable bits.
| * | GPU: Make the GPU virtual memory manager use 16 page bits and 10 page table bits.Subv2018-04-232-34/+25
| |/ | | | | | | Also removed some dead code and added memory map consistency asserts.
* | GPU: Implement the RGB10_A2 RenderTarget format, it will use the same format as the A2BGR10 texture format.Subv2018-04-231-0/+2
| |
* | GPU: Implement the A2BGR10 texture format.Subv2018-04-224-6/+18
|/
* Merge pull request #376 from bunnei/shader-decoderbunnei2018-04-212-210/+249
|\ | | | | Shader opcode decoding
| * gl_shader_decompiler: Skip RRO instruction.bunnei2018-04-211-0/+4
| |
| * gl_shader_decompiler: Cleanup error logging.bunnei2018-04-211-14/+6
| |
| * shader_bytecode: Add several more instruction decodings.bunnei2018-04-211-5/+52
| |
| * shader_bytecode: Decode instructions based on bit strings.bunnei2018-04-212-205/+201
| |
* | Merge pull request #375 from lioncash/headerbunnei2018-04-214-11/+0
|\ \ | |/ |/| opengl: Remove unnecessary header inclusions
| * opengl: Remove unnecessary header inclusionsLioncash2018-04-214-11/+0
| |
* | Merge pull request #369 from Subv/shader_instr2bunnei2018-04-212-4/+179
|\ \ | | | | | | ShaderGen: Implemented fsetp/kil and predicated instruction execution.
| * | ShaderGen: Implemented the KIL instruction, which is equivalent to 'discard'.Subv2018-04-211-1/+7
| | |
| * | ShaderGen: Implemented predicated instruction execution.Subv2018-04-212-1/+40
| | | | | | | | | | | | Each predicated instruction will be wrapped in an `if (predicate) { instruction_body; }` in the GLSL, where `predicate` is one of the predicate boolean variables previously set by fsetp.
| * | ShaderGen: Implemented the fsetp instruction.Subv2018-04-212-3/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Predicate variables are now added to the generated shader code in the form of 'pX' where X is the predicate id. These predicate variables are initialized to false on shader startup and are set via the fsetp instructions. TODO: * Not all the comparison types are implemented. * Only the single-predicate version is implemented.
| * | ShaderGen: Register id 255 is special and is hardcoded to return 0 (SR_ZERO).Subv2018-04-202-0/+5
| | |
| * | ShaderGen: Ignore the 'sched' instruction when generating shaders.Subv2018-04-201-0/+16
| |/ | | | | | | The 'sched' instruction has a very convoluted encoding, but fortunately it seems to only appear on a fixed interval (once every 4 instructions).
* | Merge pull request #374 from lioncash/noexceptbunnei2018-04-211-20/+19
|\ \ | | | | | | gl_resource_manager: Add missing noexcept specifiers to move constructors and assignment operators
| * | gl_resource_manager: Add missing noexcept specifiers to move constructors and assignment operatorsLioncash2018-04-211-20/+19
| |/ | | | | | | | | | | | | | | Standard library containers may use std::move_if_noexcept to perform move operations. If a move cannot be performed under these circumstances, then a copy is attempted. Given we only intend for these types to be move-only this can be somewhat problematic. By defining these to be noexcept we prevent cases where copies may be attempted.
* / gl_rasterizer_cache: Make MatchFlags an enum classLioncash2018-04-211-4/+9
|/ | | | Prevents implicit conversions and scope pollution.
* Merge pull request #367 from lioncash/clampbunnei2018-04-202-16/+17
|\ | | | | math_util: Remove the Clamp() function
| * math_util: Remove the Clamp() functionLioncash2018-04-202-16/+17
| | | | | | | | | | C++17 adds clamp() to the standard library, so we can remove ours in favor of it.
* | Merge pull request #363 from lioncash/array-sizebunnei2018-04-201-2/+2
|\ \ | | | | | | common_funcs: Remove ARRAY_SIZE macro
| * | common_funcs: Remove ARRAY_SIZE macroLioncash2018-04-201-2/+2
| |/ | | | | | | C++17 has non-member size() which we can just call where necessary.
* / renderer_opengl: Add missing header guardsLioncash2018-04-202-0/+4
|/
* Merge pull request #356 from lioncash/shaderbunnei2018-04-201-12/+30
|\ | | | | glsl_shader_decompiler: Minor API changes to ShaderWriter
| * glsl_shader_decompiler: Use std::string_view instead of std::string for AddLine()Lioncash2018-04-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | This function doesn't need to take ownership of the string data being given to it, considering all we do is append the characters to the internal string instance. Instead, use a string view to simply reference the string data without any potential heap allocation. Now anything that is a raw const char* won't need to be converted to a std::string before appending.
| * glsl_shader_decompiler: Add AddNewLine() function to ShaderWriterLioncash2018-04-201-6/+12
| | | | | | | | Avoids constructing a std::string just to append a newline character
| * glsl_shader_decompiler: Add char overload for ShaderWriter's AddLine()Lioncash2018-04-201-4/+11
| | | | | | | | Avoids constructing a std::string just to append a character.
| * glsl_shader_decompiler: Append indentation without constructing a separate std::stringLioncash2018-04-201-1/+5
| | | | | | | | | | The interface of std::string already lets us append N copies of a character to an existing string.
* | ShaderGen: Implemented the fmul32i shader instruction.Subv2018-04-192-9/+30
| |
* | ShaderGen: Fixed a case where the TEXS instruction would use the same registers for the input and the output.Subv2018-04-191-2/+9
|/ | | | It will now save the coords before writing the outputs in a subscope.
* GPU: Add support for the DXT23 and DXT45 compressed texture formats.Subv2018-04-193-28/+35
|
* Merge pull request #351 from Subv/tex_formatsbunnei2018-04-194-8/+28
|\ | | | | GPU: Implemented the B5G6R5 format.
| * GPU: Implemented the B5G6R5 format.Subv2018-04-194-8/+28
| |
* | gl_shader_gen: Support vertical/horizontal viewport flipping. (#347)bunnei2018-04-184-5/+29
|/ | | | | | * gl_shader_gen: Support vertical/horizontal viewport flipping. * fixup! gl_shader_gen: Support vertical/horizontal viewport flipping.
* GLCache: Added boilerplate code to make supporting configurable texture component types.Subv2018-04-183-9/+69
| | | | For now only the UNORM type is supported.
* GLCache: Unify texture and framebuffer formats when converting to OpenGL.Subv2018-04-182-26/+13
|
* GPU: Texture format 8 and framebuffer format 0xD5 are actually ABGR8.Subv2018-04-182-10/+10
|
* GPU: Pitch textures are now supported, don't assert when encountering them.Subv2018-04-181-2/+3
|
* GLCache: Take into account the texture's block height when caching and unswizzling.Subv2018-04-183-43/+43
|
* GLCache: Added a function to convert cached PixelFormats back to texture formats.Subv2018-04-181-0/+12
| | | | TODO: The way we handle cached formats must change, framebuffer and texture formats are too different to keep them in the same place.
* GPU: Allow using a configurable block height when unswizzling textures.Subv2018-04-184-7/+23
|
* GPU/TIC: Added the pitch and block height fields to the TIC structure.Subv2018-04-181-1/+16
|
* Merge pull request #346 from bunnei/misc-gpu-improvementsbunnei2018-04-184-2/+11
|\ | | | | Misc gpu improvements
| * gl_rasterizer_cache: Add missing LOG statements.bunnei2018-04-181-0/+3
| |
| * texture: Add missing formats.bunnei2018-04-181-1/+3
| |
| * gpu: Add several framebuffer formats to RenderTargetFormat.bunnei2018-04-181-0/+3
| |
| * maxwell3d: Allow Texture2DNoMipmap as Texture2D.bunnei2018-04-181-1/+2
| |
* | Merge pull request #344 from bunnei/shader-decompiler-p2bunnei2018-04-183-67/+179
|\ \ | | | | | | Shader decompiler changes part 2
| * | shader_bytecode: Make ctor's constexpr and explicit.bunnei2018-04-181-7/+7
| | |
| * | gl_shader_decompiler: Fix warnings with MarkAsUsed.bunnei2018-04-171-1/+2
| | |
| * | gl_shader_decompiler: Cleanup logging, updating to NGLOG_*.bunnei2018-04-171-24/+22
| | |
| * | gl_shader_decompiler: Implement several MUFU subops and abs_d.bunnei2018-04-171-7/+21
| | |
| * | gl_shader_decompiler: Fix swizzle in GetRegister.bunnei2018-04-171-1/+1
| | |
| * | gl_shader_decompiler: Implement FMUL/FADD/FFMA immediate instructions.bunnei2018-04-172-12/+53
| | |
| * | gl_shader_decompiler: Allow vertex position to be used in fragment shader.bunnei2018-04-172-16/+18
| | |
| * | gl_shader_decompiler: Implement IPA instruction.bunnei2018-04-171-0/+11
| | |
| * | gl_shader_decompiler: Add support for TEXS instruction.bunnei2018-04-172-12/+43
| | |
| * | gl_shader_decompiler: Use fragment output color for GPR 0-3.bunnei2018-04-171-0/+5
| | |
| * | gl_shader_decompiler: Partially implement MUFU.bunnei2018-04-171-2/+11
| |/
* / renderer_opengl: Implement BlendEquation and BlendFunc.bunnei2018-04-186-7/+140
|/
* Merge pull request #343 from Subv/tex_wrap_4bunnei2018-04-171-0/+7
|\ | | | | GPU: Implement some wrap modes
| * MaxwellToGL: Implemented tex wrap mode 1 (Wrap, GL_REPEAT).Subv2018-04-171-0/+2
| |
| * MaxwellToGL: Added a TODO and partial implementation of maxwell wrap mode 4 (Clamp, GL_CLAMP).Subv2018-04-171-0/+5
| | | | | | | | This clamp mode was removed from OpenGL as of 3.1, we can emulate it by using GL_CLAMP_TO_BORDER to get the border color of the texture, and then manually sampling the edge to mix them in the fragment shader.
* | gl_rendering: Use NGLOG* for changed code.bunnei2018-04-172-10/+11
| |
* | gl_rasterizer: Implement indexed vertex mode.bunnei2018-04-175-23/+92
|/
* GPU: Use the same buffer names in the generated GLSL and the buffer uploading code.Subv2018-04-154-17/+24
|
* GPU: Don't use explicit binding points when uploading the constbuffers to opengl.Subv2018-04-153-7/+47
| | | | The bindpoints will now be dynamically calculated based on the number of buffers used by the previous shader stage.
* GPU: Don't use GetPointer when uploading the constbuffer data to the GPU.Subv2018-04-151-3/+4
|
* GPU: Use the buffer hints from the shader decompiler to upload only the necessary const buffers for each shader stage.Subv2018-04-153-31/+41
|
* shaders: Expose hints about used const buffers.bunnei2018-04-155-31/+146
|
* GPU: Upload the entirety of each constbuffer for each shader stage as SSBOs.Subv2018-04-154-14/+48
| | | | We're going to need the shader generator to give us a mapping of the actual used const buffers to properly bind them to the shader.
* GPU: Allow configuring ssbos in the opengl state manager.Subv2018-04-154-0/+30
|
* GPU: Added a function to determine whether a shader stage is enabled or not.Subv2018-04-153-3/+27
|
* shaders: Add NumTextureSamplers const, remove unused #pragma.bunnei2018-04-154-4/+5
|
* shaders: Address PR review feedback.bunnei2018-04-142-7/+9
|
* gl_shader_decompiler: Cleanup log statements.bunnei2018-04-141-15/+15
|
* shaders: Fix GCC and clang build issues.bunnei2018-04-143-5/+5
|
* gl_shader_decompiler: Implement negate, abs, etc. and lots of cleanup.bunnei2018-04-142-40/+96
|
* shader_bytecode: Add FSETP and KIL to GetInfo.bunnei2018-04-141-0/+3
|
* shader_bytecode: Add SubOp decoding.bunnei2018-04-141-0/+10
|
* gl_shader_decompiler: Add shader stage hint.bunnei2018-04-142-5/+12
|
* renderer_opengl: Fix Morton copy byteswap, etc.bunnei2018-04-142-6/+6
|
* gl_shader_manager: Implement SetShaderSamplerBindings.bunnei2018-04-141-0/+8
|
* gl_rasterizer: Generate shaders and upload uniforms.bunnei2018-04-142-32/+77
|
* gl_shader_decompiler: Basic impl. for very simple vertex shaders.bunnei2018-04-142-16/+311
| | | | - Tested with Puyo Puyo Tetris and Cave Story+
* gl_shader_manager: Cleanup and consolidate uniform handling.bunnei2018-04-142-26/+24
|
* maxwell_3d: Make memory_manager public.bunnei2018-04-141-2/+1
|
* maxwell_3d: Fix shader_config decodings.bunnei2018-04-141-6/+3
|
* gl_rasterizer: Use shader program manager, remove test shader.bunnei2018-04-142-196/+31
|
* renderer_opengl: Add gl_shader_manager class.bunnei2018-04-143-0/+209
|
* maxwell_to_gl: Add a few types, etc.bunnei2018-04-141-0/+10
|
* gl_shader_gen: Add hashable setup/config structs.bunnei2018-04-142-29/+50
|
* gl_shader_util: Add missing includes.bunnei2018-04-141-0/+2
|
* renderer_opengl: Use OGLProgram instead of OGLShader.bunnei2018-04-146-6/+6
|
* gl_shader_util: Grab latest upstream.bunnei2018-04-142-149/+74
|
* gl_resource_manager: Grab latest upstream.bunnei2018-04-141-30/+86
|
* gl_shader_decompiler: Add skeleton code from Citra for shader analysis.bunnei2018-04-142-44/+142
|
* shader_bytecode: Add initial module for shader decoding.bunnei2018-04-142-0/+298
|
* Fix clang format issuesJames Rowe2018-04-071-1/+1
|
* GPU: Assert when finding a texture with a format type other than UNORM.Subv2018-04-072-4/+16
|
* GL: Set up the textures used for each draw call.Subv2018-04-072-2/+39
| | | | | Each Maxwell shader stage can have an arbitrary number of textures, but we're limited to a certain number in OpenGL. We try to only use the minimum amount of host textures by not keeping a 1:1 relation between guest texture ids and host texture ids, ie, guest texture id 8 can be host texture id 0 if it's the only texture used in the guest shader program. This mapping will have to be passed to the shader decompiler so it can rewrite the texture accesses.
* GL: Bind the textures to the shaders used for drawing.Subv2018-04-071-2/+11
|
* GLCache: Specialize the MortonCopy function for the DXT1 texture format.Subv2018-04-071-1/+15
| | | | It will now use the UnswizzleTexture function instead of the MortonCopyPixels128, which doesn't seem to work for textures.
* GLCache: Implemented GetTextureSurface.Subv2018-04-071-3/+28
|
* GLCache: Support uploading compressed textures to the GPU.Subv2018-04-071-5/+17
| | | | Compressed texture formats like DXT1, DXT2, DXT3, etc will use this to ease the load on the CPU.
* GL: Remove remaining references to 3DS-specific pixel formatsSubv2018-04-071-83/+22
|
* RasterizerCache: Remove 3DS-specific pixel formats.Subv2018-04-072-71/+32
| | | | We're only left with RGB8 and DXT1 for now. More will be added as they are needed.
* GL: Create the sampler objects when starting up the GL rasterizer.Subv2018-04-071-0/+6
|
* GL: Ported the SamplerInfo struct from citra.Subv2018-04-072-1/+59
|
* GL: Rename PicaTexture to MaxwellTexture.Subv2018-04-072-2/+2
|
* GL: Added functions to convert Maxwell tex filters and wrap modes to OpenGL.Subv2018-04-071-0/+23
|
* Textures: Added a helper function to know if a texture is blocklinear or pitch.Subv2018-04-071-0/+5
|
* rasterizer_interface.h: Update from citra to yuzuN00byKing2018-04-041-3/+3
|
* gl_rasterizer_cache.cpp: Update from citra to yuzuN00byKing2018-04-041-1/+1
|
* gl_rasterizer_cache.h: Update from citra to yuzuN00byKing2018-04-041-3/+3
|
* renderer_opengl.h: Update from citra to yuzuN00byKing2018-04-041-2/+2
|
* GPU: Use the MacroInterpreter class to execute the GPU macros instead of HLEing them.Subv2018-04-012-121/+13
|
* GPU: Implemented a gpu macro interpreter.Subv2018-04-015-0/+431
| | | | | | The Ryujinx macro interpreter and envydis were used as reference. Macros are programs that are uploaded by the games during boot and can later be called by writing to their method id in a GPU command buffer.
* renderer_opengl: Use better naming for DrawScreens and DrawSingleScreen.bunnei2018-03-272-8/+8
|
* gl_rasterizer: Move code to bind framebuffer surfaces before draw to its own function.bunnei2018-03-272-22/+31
|
* gl_rasterizer: Add a SyncViewport method.bunnei2018-03-273-18/+30
|
* gl_rasterizer: Move PrimitiveTopology check to MaxwellToGL.bunnei2018-03-272-11/+12
|
* graphics_surface: Fix merge conflicts.bunnei2018-03-271-0/+1
|
* gl_rasterizer: Use ReadBlock instead of GetPointer for SetupVertexArray.bunnei2018-03-271-1/+1
|
* gl_rasterizer: Normalize vertex array data as appropriate.bunnei2018-03-272-1/+5
|
* maxwel_to_gl: Fix string formatting in log statements.bunnei2018-03-271-2/+2
|
* rasterizer: Rename DrawTriangles to DrawArrays.bunnei2018-03-273-5/+5
|
* gl_rasterizer: Use passthrough shader for SetupVertexShader.bunnei2018-03-271-1/+2
|
* renderer_opengl: Logging, etc. cleanup.bunnei2018-03-276-33/+34
|
* renderer_opengl: Remove framebuffer RasterizerFlushVirtualRegion hack.bunnei2018-03-271-5/+0
|
* gl_rasterizer_cache: Implement UpdatePagesCachedCount.bunnei2018-03-272-8/+37
|
* gl_rasterizer: Implement SetupVertexArray.bunnei2018-03-271-20/+38
|
* gl_rasterizer_cache: Fix an ASSERT_MSG.bunnei2018-03-271-1/+1
|
* maxwell_to_gl: Add module and function for decoding VertexType.bunnei2018-03-272-0/+41
|
* maxwell_3d: Use names that match envytools for VertexType.bunnei2018-03-271-8/+8
|
* maxwell_3d: Add VertexAttribute struct and cleanup.bunnei2018-03-271-121/+160
|
* gl_rasterizer: Use 32 texture units instead of 3.bunnei2018-03-273-2/+3
|
* gl_rasterizer: Implement DrawTriangles.bunnei2018-03-271-1/+194
|
* Maxwell3D: Call AccelerateDrawBatch on DrawArrays.bunnei2018-03-271-1/+8
|
* gl_rasterizer: Implement AnalyzeVertexArray.bunnei2018-03-272-1/+56
|
* gl_rasterizer_cache: MortonCopy Switch-style.bunnei2018-03-271-72/+32
|
* gl_rasterizer_cache: Implement GetFramebufferSurfaces.bunnei2018-03-272-4/+104
|
* maxwell: Add RenderTargetFormat enum.bunnei2018-03-272-4/+5
|
* renderer_opengl: Only draw the screen if a framebuffer is specified.bunnei2018-03-271-6/+7
|
* GPU: Load the sampler info (TSC) when retrieving active textures.Subv2018-03-262-21/+67
|
* GPU: Added the TSC structure. It contains information about the sampler.Subv2018-03-261-0/+50
|
* GPU: Added more fields to the TIC structure.Subv2018-03-261-4/+30
|
* GPU: Make the debug_context variable a member of the frontend instead of a global.Subv2018-03-253-15/+13
|
* GPU: Added a function to retrieve the active textures for a shader stage.Subv2018-03-242-50/+59
| | | | TODO: A shader may not use all of these textures at the same time, shader analysis should be performed to determine which textures are actually sampled.
* Frontend: Updated the surface view debug widget to work with Maxwell surfaces.Subv2018-03-242-0/+15
|
* GPU: Implement the Incoming/FinishedPrimitiveBatch debug breakpoints.Subv2018-03-241-0/+7
|
* GPU: Implement the MaxwellCommandLoaded/Processed debug breakpoints.Subv2018-03-241-0/+10
|
* Frontend: Ported the GPU breakpoints and surface viewer widgets from citra.Subv2018-03-245-0/+242
|
* GPU: Added a method to unswizzle a texture without decoding it.Subv2018-03-244-5/+95
| | | | Allow unswizzling of DXT1 textures.
* GPU: Preliminary work for texture decoding.Subv2018-03-245-0/+139
|
* GPU: Added viewport registers to Maxwell3D's reg structure.Subv2018-03-241-1/+18
|
* gl_rasterizer: Fake render in green, because it's cooler.bunnei2018-03-241-1/+1
|
* gl_rasterizer: Log warning instead of sync'ing unimplemented funcs.bunnei2018-03-241-7/+1
|
* gl_rasterizer_cache: Add missing include for vm_manager.bunnei2018-03-231-0/+1
|
* renderer_opengl: Only invalidate the framebuffer region, not flush.bunnei2018-03-231-4/+3
|
* renderer_opengl: Fixes for properly flushing & rendering the framebuffer.bunnei2018-03-231-6/+12
|
* RasterizerCacheOpenGL: FlushAll should flush full memory region.bunnei2018-03-231-1/+1
|
* rasterizer: Flush and invalidate regions should be 64-bit.bunnei2018-03-233-9/+9
|
* renderer_opengl: Add framebuffer_transform_flags member variable.bunnei2018-03-231-2/+2
|
* renderer_opengl: Better handling of framebuffer transform flags.bunnei2018-03-232-3/+20
|
* renderer_opengl: Use accelerated framebuffer load with LoadFBToScreenInfo.bunnei2018-03-231-31/+25
|
* gl_rasterizer: Implement AccelerateDisplay method from Citra.bunnei2018-03-232-2/+44
|
* LoadGLBuffer: Use bytes_per_pixel, not bits.bunnei2018-03-231-1/+2
|
* gl_rasterizer_cache: LoadGLBuffer should do a morton copy.bunnei2018-03-231-16/+5
|
* video_core: Move MortonCopyPixels128 to utils header.bunnei2018-03-232-111/+113
|
* video_core: Remove usage of PAddr and replace with VAddr.bunnei2018-03-235-39/+39
|
* video_core: Move FramebufferInfo to FramebufferConfig in GPU.bunnei2018-03-237-66/+74
|
* gl_rasterizer: Replace a bunch of UNIMPLEMENTED with ASSERT.bunnei2018-03-232-20/+20
|
* gl_rasterizer: Add a simple passthrough shader in lieu of shader generation.bunnei2018-03-232-5/+68
|
* gpu: Expose Maxwell3D engine.bunnei2018-03-231-0/+4
|
* maxwell_3d: Add some format decodings and string helper functions.bunnei2018-03-231-3/+107
|
* renderer: Create rasterizer and cleanup.bunnei2018-03-234-4/+16
|
* GPU: Added vertex attribute format registers.Subv2018-03-211-1/+14
|
* GPU: Added registers for the number of vertices to render.Subv2018-03-211-2/+13
|
* Merge pull request #254 from bunnei/port-citra-rendererbunnei2018-03-2118-101/+2905
|\ | | | | Port Citra OpenGL rasterizer code
| * renderer_gl: Port boilerplate rasterizer code over from Citra.bunnei2018-03-205-1/+495
| |
| * gl_shader_util: Sync latest version with Citra.bunnei2018-03-203-46/+116
| |
| * renderer_gl: Port over gl_shader_gen module from Citra.bunnei2018-03-203-0/+88
| |
| * renderer_gl: Port over gl_shader_decompiler module from Citra.bunnei2018-03-203-0/+87
| |
| * renderer_gl: Port over gl_rasterizer_cache module from Citra.bunnei2018-03-203-0/+1714
| |
| * gl_resource_manager: Sync latest version with Citra.bunnei2018-03-201-8/+77
| |
| * renderer_gl: Port over gl_stream_buffer module from Citra.bunnei2018-03-203-0/+218
| |
| * gl_state: Sync latest version with Citra.bunnei2018-03-202-47/+111
| |
* | Merge pull request #253 from Subv/rt_depthMat M2018-03-201-1/+48
|\ \ | |/ |/| GPU: Added registers for color and Z buffers.
| * GPU: Added Z buffer registers to Maxwell3D's reg structure.Subv2018-03-191-1/+17
| |
| * GPU: Added the render target (RT) registers to Maxwell3D's reg structure.Subv2018-03-191-1/+32
| |
* | Clang FixesN00byKing2018-03-191-1/+2
| |
* | Clean Warnings (?)N00byKing2018-03-191-1/+1
|/
* GPU: Added the TSC registers to the Maxwell3D register structure.Subv2018-03-191-1/+15
|
* GPU: Added the TIC registers to the Maxwell3D register structure.Subv2018-03-191-1/+16
|
* GPU: Implement macro 0xE1A BindTextureInfoBuffer in HLE.Subv2018-03-192-1/+29
| | | | This macro simply sets the current CB_ADDRESS to the texture buffer address for the input shader stage.
* GPU: Implement the BindStorageBuffer macro method in HLE.Subv2018-03-182-1/+36
| | | | | | This macro binds the SSBO Info Buffer as the current ConstBuffer. This buffer is usually bound to c0 during shader execution. Games seem to use this macro instead of directly writing the address for some reason.
* GPU: Handle writes to the CB_DATA method.Subv2018-03-182-0/+39
| | | | | | Writing to this method will cause the written value to be stored in the currently-set ConstBuffer plus CB_POS. This method is usually used to upload uniforms or other shader-visible data.
* GPU: Move the GPU's class constructor and destructors to a cpp file.Subv2018-03-183-10/+30
| | | | This should reduce recompile times when editing the Maxwell3D register structure.
* GPU: Store uploaded GPU macros and keep track of the number of method parameters.Subv2018-03-184-27/+74
|
* GPU: Macros are specific to the Maxwell3D engine, so handle them internally.Subv2018-03-188-63/+55
|
* GPU: Renamed ShaderType to ShaderStage as that is less confusing.Subv2018-03-182-19/+19
|
* GPU: Store shader constbuffer bindings in the GPU state.Subv2018-03-182-5/+61
|
* GPU: Corrected some register offsets and removed superfluous macro registers.Subv2018-03-181-9/+3
|
* GPU: Make the SetShader macro call do the same as the real macro's code.Subv2018-03-182-3/+44
| | | | | | It'll now set the CB_SIZE, CB_ADDRESS and CB_BIND registers when it's called. Presumably this SetShader function is binding the constant shader uniforms to buffer 1 (c1[]).
* GPU: Corrected the parameter documentation for the SetShader macro call.Subv2018-03-172-11/+12
| | | | | | Register 0xE24 is actually a macro that sets some shader parameters in the register structure. Macros are uploaded to the GPU at startup and have their own ISA, we'll probably write an interpreter for this in the future.
* Merge pull request #242 from Subv/set_shaderbunnei2018-03-172-4/+38
|\ | | | | GPU: Handle the SetShader method call (0xE24) and store the shader config.
| * GPU: Handle the SetShader method call (0xE24) and store the shader config.Subv2018-03-172-4/+38
| |
* | GPU: Added the vertex array registers.Subv2018-03-171-2/+33
|/
* Merge pull request #241 from Subv/gpu_method_callbunnei2018-03-179-8/+97
|\ | | | | GPU: Process command mode 5 (IncreaseOnce) differently from other commands
| * GPU: Process command mode 5 (IncreaseOnce) differently from other commands.Subv2018-03-179-8/+97
| | | | | | | | | | | | Accumulate all arguments before calling the desired method. Note: Maybe we should do the same for the NonIncreasing mode?
* | GPU: Assert that we get a 0 CODE_ADDRESS register in the 3D engine.Subv2018-03-171-0/+8
| | | | | | | | Shader address calculation depends on this value to some extent, we do not currently know what it being 0 entails.
* | GPU: Added Maxwell registers for Shader Program control.Subv2018-03-171-2/+55
|/
* GPU: Intercept writes to the VERTEX_END_GL register.Subv2018-03-052-1/+18
| | | | | | This is the register that gets written after a game calls DrawArrays(). We should collect all GPU state and draw using our graphics API here.
* maxwell_3d: Make constructor explicitLioncash2018-02-141-1/+1
|
* Merge pull request #187 from Subv/maxwell3d_querybunnei2018-02-143-3/+95
|\ | | | | GPU: Partially implemented the QUERY_* registers in the Maxwell3D engine.
| * GPU: Partially implemented the QUERY_* registers in the Maxwell3D engine.Subv2018-02-123-3/+95
| | | | | | | | Only QueryMode::Write is supported at the moment.
* | Merge pull request #178 from Subv/command_buffersbunnei2018-02-1212-0/+488
|\| | | | | GPU: Added a command processor to decode the GPU pushbuffers and forward the commands to their respective engines
| * Make a GPU class in VideoCore to contain the GPU state.Subv2018-02-1212-44/+252
| | | | | | | | Also moved the GPU MemoryManager class to video_core since it makes more sense for it to be there.
| * GPU: Added a command processor to decode the GPU pushbuffers and forward the commands to their respective engines.Subv2018-02-129-0/+280
| |
* | renderer_opengl: Support framebuffer flip vertical.bunnei2018-02-123-5/+13
|/
* memory: Replace all memory hooking with Special regionsMerryMage2018-01-271-1/+1
|
* Format: Run the new clang format on everythingJames Rowe2018-01-214-4/+4
|
* CMakeLists: Derive the source directory grouping from targets themselvesLioncash2018-01-181-19/+15
| | | | | Removes the need to store to separate SRC and HEADER variables, and then construct the target in most cases.
* clang-formatMerryMage2018-01-161-1/+2
|
* renderer_gl: Clear screen to black before rendering framebuffer.bunnei2018-01-152-5/+8
|
* renderer: Render previous frame when no new one is available.bunnei2018-01-153-16/+18
|
* Fix build on macOS and linuxMerryMage2018-01-131-0/+1
|
* Remove gpu debugger and get yuzu qt to compileJames Rowe2018-01-132-5/+0
|
* Remove references to PICA and rasterizers in video_coreJames Rowe2018-01-1364-14952/+3
|
* renderer_opengl: Fix LOG_TRACE in LoadFBToScreenInfo.bunnei2018-01-121-1/+1
|
* renderer_opengl: Support rendering Switch framebuffer.bunnei2018-01-113-138/+83
|
* render_base: Add a struct describing framebuffer metadata.bunnei2018-01-111-0/+26
|
* renderer_opengl: Add MortonCopyPixels function for Switch framebuffer.bunnei2018-01-111-0/+111
|
* renderer_opengl: Update DrawScreens for Switch.bunnei2018-01-112-23/+11
|
* core/video_core: Fix a bunch of u64 -> u32 warnings.bunnei2018-01-014-8/+8
|
* hle: Initial implementation of NX service framework and IPC.bunnei2017-10-151-1/+1
|
* Extracted the attribute setup and draw commands into their own functionsHuw Pascoe2017-10-041-217/+222
|
* Fixed type conversion ambiguityHuw Pascoe2017-09-302-3/+3
|
* Disable unary operator- on Math::Vec2/Vec3/Vec4 for unsigned types.Subv2017-09-271-1/+1
| | | | | It is unlikely we will ever use this without first doing a Cast to a signed type. Fixes 9 "unary minus operator applied to unsigned type, result still unsigned" warnings on MSVC2017.3
* Merge pull request #2951 from huwpascoe/perf-4B3n302017-09-251-10/+4
|\ | | | | Optimized Morton
| * Optimized MortonHuw Pascoe2017-09-241-10/+4
| |
* | Optimized Float<M,E> multiplicationHuw Pascoe2017-09-251-11/+7
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: ucomiss xmm1, xmm1 jp .L9 pxor xmm2, xmm2 mov edx, 1 ucomiss xmm0, xmm2 setp al cmovne eax, edx test al, al jne .L9 .L3: movaps xmm0, xmm2 ret .L9: ucomiss xmm0, xmm0 jp .L10 pxor xmm2, xmm2 mov edx, 1 ucomiss xmm1, xmm2 setp al cmovne eax, edx test al, al je .L3 After: movaps xmm2, xmm1 mulss xmm2, xmm0 ucomiss xmm2, xmm2 jnp .L3 ucomiss xmm1, xmm0 jnp .L11 .L3: movaps xmm0, xmm2 ret .L11: pxor xmm2, xmm2 jmp .L3
* Merge pull request #2921 from jroweboy/batch-fix-2James Rowe2017-09-241-12/+17
|\ | | | | GPU: Add draw for immediate and batch modes
| * Remove pipeline.gpu_mode and fix minor issuesJames Rowe2017-09-231-12/+2
| |
| * GPU: Add draw for immediate and batch modesJames Rowe2017-09-111-2/+17
| | | | | | | | | | | | | | | | PR #1461 introduced a regression where some games would change configuration even while in the poorly named "drawing" mode, which broke the heuristic citra was using to determine when to draw the batch. This change adds back in a draw call for batching, and also adds in a draw call in immediate mode each time it adds a triangle.
* | Merge pull request #2928 from huwpascoe/masterYuri Kunde Schlesner2017-09-221-7/+18
|\ \ | | | | | | Fixed framebuffer warning
| * | Fixed framebuffer warningHuw Pascoe2017-09-171-7/+18
| | |
* | | Improved performance of FromAttributeBufferHuw Pascoe2017-09-171-1/+2
|/ / | | | | | | | | | | | | Ternary operator is optimized by the compiler whereas std::min() is meant to return a value. I've noticed a 5%-10% emulation speed increase.
* | Merge pull request #2900 from wwylele/clip-2Yuri Kunde Schlesner2017-09-165-46/+116
|\ \ | |/ |/| PICA: implement custom clip plane
| * SwRasterizer/Clipper: flip the sign convention to match PICA and OpenGLwwylele2017-08-251-9/+9
| |
| * gl_rasterizer: implement custom clip planewwylele2017-08-253-34/+83
| |
| * SwRasterizer: implement custom clip planewwylele2017-08-242-4/+25
| |
* | Merge pull request #2865 from wwylele/gs++bunnei2017-09-0815-37/+594
|\ \ | | | | | | PICA: implemented geometry shader
| * | pica/command_processor: build geometry pipeline and run geometry shaderwwylele2017-08-196-28/+383
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The geometry pipeline manages data transfer between VS, GS and primitive assembler. It has known four modes: - no GS mode: sends VS output directly to the primitive assembler (what citra currently does) - GS mode 0: sends VS output to GS input registers, and sends GS output to primitive assembler - GS mode 1: sends VS output to GS uniform registers, and sends GS output to primitive assembler. It also takes an index from the index buffer at the beginning of each primitive for determine the primitive size. - GS mode 2: similar to mode 1, but doesn't take the index and uses a fixed primitive size. hwtest shows that immediate mode also supports GS (at least for mode 0), so the geometry pipeline gets refactored into its own class for supporting both drawing mode. In the immediate mode, some games don't set the pipeline registers to a valid value until the first attribute input, so a geometry pipeline reset flag is set in `pipeline.vs_default_attributes_setup.index` trigger, and the actual pipeline reconfigure is triggered in the first attribute input. In the normal drawing mode with index buffer, the vertex cache is a little bit modified to support the geometry pipeline. Instead of OutputVertex, it now holds AttributeBuffer, which is the input to the geometry pipeline. The AttributeBuffer->OutputVertex conversion is done inside the pipeline vertex handler. The actual hardware vertex cache is believed to be implemented in a similar way (because this is the only way that makes sense). Both geometry pipeline and GS unit rely on states preservation across drawing call, so they are put into the global state. In the future, the other three vertex shader units should be also placed in the global state, and a scheduler should be implemented on top of the four units. Note that the current gs_unit already allows running VS on it in the future.
| * | pica/shader/jit: implement SETEMIT and EMITwwylele2017-08-192-2/+49
| | |
| * | pica/primitive_assembly: Handle winding for GS primitivewwylele2017-08-192-3/+19
| | | | | | | | | | | | hwtest shows that, although GS always emit a group of three vertices as one primitive, it still respects to the topology type, as if the three vertices are input into the primitive assembler independently and sequentially. It is also shown that the winding flag in SETEMIT only takes effect for Shader topology type, which is believed to be the actual difference between List and Shader (hence removed the TODO). However, only Shader topology type is observed in official games when GS is in use, so the other mode seems to be just unintended usage.
| * | correct constnesswwylele2017-08-192-2/+4
| | |
| * | pica/shader/interpreter: implement SETEMIT and EMITwwylele2017-08-191-0/+16
| | |
| * | pica/shader: extend UnitState for GSwwylele2017-08-192-0/+84
| | | | | | | | | | | | | | | Among four shader units in pica, a special unit can be configured to run both VS and GS program. GSUnitState represents this unit, which extends UnitState (which represents the other three normal units) with extra state for primitive emitting. It uses lots of raw pointers to represent internal structure in order to keep it standard layout type for JIT to access. This unit doesn't handle triangle winding (inverting) itself; instead, it calls a WindingSetter handler. This will be explained in the following commits
| * | pica/regs: layout geometry shader configuration regswwylele2017-08-102-2/+39
| | | | | | | | | | | | All the register meanings are derived from ctrulib (3dbrew is outdated for most of them)
* | | Merge pull request #2914 from wwylele/fresnel-fixbunnei2017-09-052-7/+9
|\ \ \ | | | | | | | | pica/lighting: only apply Fresnel factor for the last light
| * | | pica/lighting: only apply Fresnel factor for the last lightwwylele2017-09-032-7/+9
| | | |
* | | | video_core: report telemetry for gas modewwylele2017-08-311-0/+6
|/ / /
* | | Merge pull request #2891 from wwylele/sw-bumpbunnei2017-08-314-10/+40
|\ \ \ | | | | | | | | SwRasterizer/Lighting: implement bump mapping
| * | | gl_rasterizer/lighting: more accurate CP formulawwylele2017-08-221-2/+2
| | | |
| * | | SwRasterizer/Lighting: implement LUT input CPwwylele2017-08-221-0/+11
| | | |
| * | | SwRasterizer/Lighting: implement bump mappingwwylele2017-08-223-8/+27
| | | |
* | | | Merge pull request #2892 from Subv/warnings2Weiyi Wang2017-08-283-6/+10
|\ \ \ \ | |_|_|/ |/| | | Warnings: Fixed a few missing-return warnings in video_core.
| * | | Warnings: Fixed a few missing-return warnings in video_core.Subv2017-08-263-6/+10
| |/ /
* | | swrasterizer: remove invalid TODOwwylele2017-08-211-4/+2
| | | | | | | | | | | | This function is called in clipping, before the pespective divide, and is not used in later rasterization. Thus it doesn't need perspective correction.
* | | swrasterizer/clipper: remove tested TODOwwylele2017-08-211-4/+0
| | | | | | | | | | | | hwtested. Current implementation is the correct behavior
* | | gl_shader_gen: simplify and clarify the depth transformation between vertex shader and fragment shaderwwylele2017-08-211-2/+5
| | |
* | | gl_rasterizer: add clipping plane z<=0 defined in PICAwwylele2017-08-214-0/+21
|/ /
* | Merge pull request #2872 from wwylele/sw-geo-factorYuri Kunde Schlesner2017-08-211-4/+16
|\ \ | | | | | | SwRasterizer/Lighting: implement geometric factor
| * | SwRasterizer/Lighting: implement geometric factorwwylele2017-08-111-4/+16
| | |
* | | Merge pull request #2871 from wwylele/sw-spotlightJames Rowe2017-08-201-3/+19
|\ \ \ | | | | | | | | SwRasterizer/Lighting: implement spot light
| * | | SwRasterizer/Lighting: implement spot lightwwylele2017-08-111-3/+19
| |/ /
* / / gl_shader_gen: don't call SampleTexture when bump map is not usedwwylele2017-08-111-4/+5
|/ /
* / SwRasterizer/Lighting: use make_tuple instead of constructorwwylele2017-08-101-1/+1
|/ | | | implicit tuple constructor is a c++17 thing, which is not supported by some not-so-old libraries. Play safe for now
* Merge pull request #2822 from wwylele/sw_lighting-2Weiyi Wang2017-08-096-5/+307
|\ | | | | Implement fragment lighting in the sw renderer (take 2)
| * SwRasterizer/Lighting: shorten file namewwylele2017-08-034-4/+4
| |
| * SwRasterizer/Lighting: move to its own filewwylele2017-08-024-240/+271
| |
| * SwRasterizer/Lighting: reduce confusionwwylele2017-08-021-1/+1
| |
| * SwRasterizer/Lighting: move quaternion normalization to the callerwwylele2017-08-021-3/+3
| |
| * SwRasterizer/Lighting: dist atten lut input need to be clampwwylele2017-07-111-1/+1
| |
| * SwRasterizer/Lighting: unify float suffixwwylele2017-07-111-11/+13
| |
| * SwRasterizer/Lighting: get rid of nested returnwwylele2017-07-111-10/+11
| |
| * SwRasterizer/Lighting: refactor GetLutValue into a function.wwylele2017-07-111-83/+27
| | | | | | | | merging similar pattern. Also makes the code more similar to the gl one
| * SwRasterizer: only interpolate quat and view when lighting is enabledwwylele2017-07-111-14/+14
| |
| * SwRasterizer/Lighting: pass lighting state as parameterwwylele2017-07-111-13/+13
| |
| * SwRasterizer/Lighting: Move the clamp highlight calculation to the end of the per-light loop body.Subv2017-07-111-17/+17
| |
| * SwRasterizer/Lighting: Move the lighting enable check outside the ComputeFragmentsColors function.Subv2017-07-111-7/+6
| |
| * SwRasterizer/Lighting: Do not use global registers state in ComputeFragmentsColors.Subv2017-07-111-3/+3
| |
| * SwRasterizer/Lighting: Do not use global state in LookupLightingLut.Subv2017-07-112-13/+22
| |
| * SwRasterizer/Lighting: Fixed a bug where the distance attenuation bias was being set to the dist atten scale.Subv2017-07-111-3/+2
| |
| * SwRasterizer: Fixed a few conversion warnings and moved per-light values into the per-light loop.Subv2017-07-111-5/+6
| |
| * SwRasterizer: Run clang-formatSubv2017-07-111-45/+83
| |
| * SwRasterizer: Flip the vertex quaternions before clipping (if necessary).Subv2017-07-112-20/+15
| |
| * SwRasterizer: Corrected the light LUT lookups.Subv2017-07-111-6/+7
| |
| * SwRasterizer: Corrected the light LUT lookups.Subv2017-07-111-33/+43
| |
| * SwRasterizer: Fixed the lighting lut lookup function.Subv2017-07-111-2/+4
| |
| * SwRasterizer: Calculate fresnel for fragment lighting.Subv2017-07-111-1/+25
| |
| * SwRasterizer: Calculate specular_1 for fragment lighting.Subv2017-07-111-3/+59
| |
| * SwRasterizer: Calculate specular_0 for fragment lighting.Subv2017-07-111-13/+94
| |
| * SwRasterizer: Implement primary fragment color.Subv2017-07-111-4/+113
| |
* | pica: upload shared shader code to both unitwwylele2017-08-072-26/+45
| |
* | pica/shader_interpreter: fix off-by-one in LOOPwwylele2017-07-271-1/+1
| |
* | Merge pull request #2816 from wwylele/proctex-lutlutlutSebastian Valle2017-07-235-70/+80
|\ \ | | | | | | gl_rasterizer: use texture buffer for proctex LUT
| * | gl_rasterizer: use texture buffer for proctex LUTwwylele2017-07-015-70/+80
| |/
* | Merge pull request #2834 from wwylele/depth-enable-fixSebastian Valle2017-07-231-4/+5
|\ \ | | | | | | gl_rasterizer_cache: fix using_depth_fb
| * | gl_rasterizer_cache: depth write is disabled if allow_depth_stencil_write is falsewwylele2017-06-101-4/+5
| | |
* | | telemetry: Log performance, configuration, and system data.bunnei2017-07-182-6/+16
| |/ |/|
* | gl_rasterizer: use texture buffer for fog LUTwwylele2017-06-227-29/+32
| |
* | gl_rasterizer: create the texture before applying the statewwylele2017-06-221-2/+2
| | | | | | | | this is a rebasing error from #2792. It doesn't affect much though, because the later more Apply() call fixes/hides it
* | gl_state: reset 1d textureswwylele2017-06-211-0/+14
| |
* | gl_rasterizer: fix glGetUniformLocation typewwylele2017-06-211-8/+8
| |
* | gl_rasterizer: manage texture ids in one placewwylele2017-06-213-31/+55
| |
* | gl_rasterizer/lighting: fix LUT interpolationwwylele2017-06-217-116/+102
| |
* | Merge pull request #2776 from wwylele/geo-factorYuri Kunde Schlesner2017-06-183-7/+26
|\ \ | | | | | | Fragment lighting: implement geometric factor
| * | gl_rasterizer/lighting: use the formula from the paper for germetic factorwwylele2017-06-181-8/+8
| | |
| * | gl_rasterizer/lighting: implement geometric factorwwylele2017-06-153-1/+20
| | |
* | | Stop using reserved operator names (and/or/xor) with XbyakYuri Kunde Schlesner2017-06-171-13/+13
|/ / | | | | | | Also has the Dynarmic upgrade with the same change
* | Merge pull request #2762 from wwylele/light-cp-tangentYuri Kunde Schlesner2017-06-152-10/+38
|\ \ | | | | | | Fragment lighting: implement lut input 5 (CP) and tangent mapping
| * | gl_rasterizer/lighting: Implement tangent mappingwwylele2017-06-111-7/+12
| | |
| * | gl_rasterizer/lighting: implement lut input 5 (CP)wwylele2017-06-112-3/+26
| | |
* | | Merge pull request #2743 from wwylele/wrap-fixYuri Kunde Schlesner2017-06-144-12/+48
|\ \ \ | | | | | | | | pica/rasterizer: implement/stub texture wrap mode 4-7
| * | | pica/rasterizer: implement/stub texture wrap mode 4-7wwylele2017-06-044-12/+48
| | | |
* | | | Merge pull request #2767 from yuriks/quaternion-flip-commentYuri Kunde Schlesner2017-06-131-8/+11
|\ \ \ \ | |_|/ / |/| | | OpenGL: Update comment on AreQuaternionsOpposite with new information
| * | | OpenGL: Update comment on AreQuaternionsOpposite with new informationYuri Kunde Schlesner2017-06-101-8/+11
| | |/ | |/| | | | | | | | | | | | | | | | While debugging the software renderer implementation, it was noticed that this is actually exactly what the hardware does, upgrading the status of this "hack" to being a proper implementation. And there was much rejoicing.
* | | Merge pull request #2727 from wwylele/spot-lightSebastian Valle2017-06-115-28/+128
|\ \ \ | |/ / |/| | Fragment lighting: implement spot light
| * | gl_rasterizer: implement spot lightwwylele2017-05-301-6/+24
| | |
| * | gl_rasterizer: sync spot light statuswwylele2017-05-304-2/+61
| | |
| * | pica: prepare registers for spotlightwwylele2017-05-301-20/+43
| | |
* | | Merge pull request #2721 from wwylele/texture-cubebunnei2017-05-302-3/+77
|\ \ \ | |_|/ |/| | swrasterizer: implemented TextureCube
| * | swrasterizer: implement TextureCubewwylele2017-05-291-2/+51
| | |
| * | pica: add registers for texture cubewwylele2017-05-291-1/+26
| | |
* | | Merge pull request #2734 from yuriks/cmake-imported-libsYuri Kunde Schlesner2017-05-301-4/+3
|\ \ \ | | | | | | | | CMake: Use CMake target properties for all libraries
| * | | CMake: Create INTERFACE targets for microprofile and nihstroYuri Kunde Schlesner2017-05-281-1/+1
| | | |
| * | | CMake: Use IMPORTED target for libpngYuri Kunde Schlesner2017-05-281-3/+2
| | | |
* | | | Merge pull request #2729 from yuriks/quaternion-fixYuri Kunde Schlesner2017-05-281-3/+5
|\ \ \ \ | |/ / / |/| | | OpenGL: Improve accuracy of quaternion interpolation
| * | | OpenGL: Improve accuracy of quaternion interpolationYuri Kunde Schlesner2017-05-271-3/+5
| | |/ | |/| | | | | | | | | | | | | | | | Current order of operations (rotate then normalize) seems to produce a lot more distortion than normalizing and then rotating. This makes Citra results match pretty closesly with hardware, and indicates that hardware may also be using lerp instead of slerp to interpolate the quaternions.
* | | CMake: Correct inter-module dependencies and library visibilityYuri Kunde Schlesner2017-05-281-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modules didn't correctly define their dependencies before, which relied on the frontends implicitly including every module for linking to succeed. Also changed every target_link_libraries call to specify visibility of dependencies to avoid leaking definitions to dependents when not necessary.
* | | Move screen size constants from video_core to coreYuri Kunde Schlesner2017-05-282-27/+8
| | | | | | | | | | | | | | | video_core didn't even properly use them, and they were the source of many otherwise-unnecessary dependencies from core to video_core.
* | | OpenGL: Remove unused RendererOpenGL fieldsYuri Kunde Schlesner2017-05-282-11/+2
| |/ |/|
* | gl_shader: refactor texture sampler into its own functionwwylele2017-05-271-40/+39
|/
* Merge pull request #2697 from wwylele/proctexYuri Kunde Schlesner2017-05-2514-11/+1038
|\ | | | | Implemented Procedural Texture (Texture Unit 3)
| * gl_rasterizer: implement procedural texturewwylele2017-05-206-7/+600
| |
| * pica/swrasterizer: implement procedural texturewwylele2017-05-208-4/+438
| |
* | swrasterizer: add missing tc0_w and fragment lighting attribute processingwwylele2017-05-212-5/+8
| |
* | pica: use correct register value for shader bool_uniformswwylele2017-05-171-2/+2
| | | | | | | | variable value is not masked. the masked and combined register value should be used instead
* | Merge pull request #2703 from wwylele/pica-reg-reviseYuri Kunde Schlesner2017-05-164-17/+25
|\ \ | | | | | | pica: correct bit field length for some registers
| * | pica: correct bit field length for some registerswwylele2017-05-164-17/+25
| |/
* | Pica: Write GS registersJannik Vogel2017-05-121-0/+52
| | | | | | | | This adds the handlers for the geometry shader register writes which will call the functions from the previous commit to update registers for the GS.
* | Pica: Write shader registers in functionsJannik Vogel2017-05-121-57/+103
| | | | | | | | The commit after this one adds GS register writes, so this moves the VS handlers into functions so they can be re-used and extended more easily.
* | Pica: Set program code / swizzle data limit to 4096Jannik Vogel2017-05-115-13/+16
|/ | | | | | | | | | | | | One of the later commits will enable writing to GS regs. It turns out that on startup, most games will write 4096 GS program words. The current limit of 1024 would hence result in 3072 (4096 - 1024) error messages: ``` HW.GPU <Error> video_core/shader/shader.cpp:WriteProgramCode:229: Invalid GS program offset 1024 ``` New constants have been introduced to represent these limits. The swizzle data size has also been raised. This matches the given field sizes of [GPUREG_SH_OPDESCS_INDEX](https://3dbrew.org/wiki/GPU/Internal_Registers#GPUREG_SH_OPDESCS_INDEX) and [GPUREG_SH_CODETRANSFER_INDEX](https://www.3dbrew.org/wiki/GPU/Internal_Registers#GPUREG_SH_CODETRANSFER_INDEX) (12 bit = [0; 4095]).
* pica: shader_dirty if texture2 coord changedwwylele2017-05-055-7/+12
|
* pica: use correct coordinates for texture 2wwylele2017-05-034-5/+22
|
* Merge pull request #2671 from wwylele/dot3-rgbabunnei2017-04-214-22/+39
|\ | | | | rasterizer: implement combiner operation 7 (Dot3_RGBA)
| * gl_shader_gen: remove TODO about Lerp behaviour verification. The implementation is verified against hardwarewwylele2017-04-201-2/+0
| |
| * rasterizer: implement combiner operation 7 (Dot3_RGBA)wwylele2017-04-194-20/+39
| |
* | OpenGL: Pass Pica regs via parameterYuri Kunde Schlesner2017-04-173-7/+5
| |
* | OpenGL: Move PicaShaderConfig to gl_shader_gen.hYuri Kunde Schlesner2017-04-174-202/+206
| | | | | | | | Also move the implementation of CurrentConfig to the cpp file.
* | OpenGL: Move Attributes enum to a more appropriate fileYuri Kunde Schlesner2017-04-173-12/+11
|/
* Pica/Regs: Correct bit width for blend-equationsJannik Vogel2017-04-081-2/+2
|
* Input: remove unused stuff & clean upwwylele2017-03-011-0/+1
| | | | | | | 1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID 2. removed button handling in EmuWindow 3. removed key_map 4. cleanup #include
* Doxygen: Amend minor issues (#2593)Mat M2017-02-273-3/+5
| | | | | | | | | Corrects a few issues with regards to Doxygen documentation, for example: - Incorrect parameter referencing. - Missing @param tags. - Typos in @param tags. and a few minor other issues.
* Core: Re-write frame limiterYuri Kunde Schlesner2017-02-271-3/+3
| | | | | | | | | Now based on std::chrono, and also works in terms of emulated time instead of frames, so we can in the future frame-limit even when the display is disabled, etc. The frame limiter can also be enabled along with v-sync now, which should be useful for those with displays running at more than 60 Hz.
* Core: Make PerfStats internally lockedYuri Kunde Schlesner2017-02-271-8/+2
| | | | More ergonomic to use and will be required for upcoming changes.
* Remove built-in (non-Microprofile) profilerYuri Kunde Schlesner2017-02-271-8/+0
|
* Add performance statistics to status barYuri Kunde Schlesner2017-02-271-0/+9
|
* OpenGL: Check if uniform block exists before updating it (#2581)Jannik Vogel2017-02-181-29/+30
|
* video_core: remove #pragma once in cpp file (#2570)Weiyi Wang2017-02-152-4/+0
|
* SWRasterizer: Move more framebuffer functions to fileYuri Kunde Schlesner2017-02-133-100/+105
|
* SWRasterizer: Move texturing functions to their own fileYuri Kunde Schlesner2017-02-134-210/+259
|
* SWRasterizer: Convert large no-capture lambdas to standalone functionsYuri Kunde Schlesner2017-02-131-315/+310
|
* SWRasterizer: Move framebuffer operation functions to their own fileYuri Kunde Schlesner2017-02-134-236/+285
|
* VideoCore: Move software rasterizer files to sub-directoryYuri Kunde Schlesner2017-02-138-12/+12
|
* video_core/shader: Document sanitized MUL operationYuri Kunde Schlesner2017-02-121-0/+8
|
* Merge pull request #2550 from yuriks/pica-refactor2Yuri Kunde Schlesner2017-02-1217-138/+130
|\ | | | | Small VideoCore cleanups
| * VideoCore: Split u64 Pica reg unions into 2 separate u32 unionsYuri Kunde Schlesner2017-02-091-36/+42
| | | | | | | | | | This eliminates UB when aliasing it with the array of u32 regs, and is compatible with non-LE architectures.
| * VideoCore: Force enum sizes to u32 in LightingRegsYuri Kunde Schlesner2017-02-091-4/+4
| | | | | | | | | | All enums that are used with BitField must have their type forced to u32 to ensure correctness.
| * OpenGL: Remove unused duplicate of IsPassThroughTevStageYuri Kunde Schlesner2017-02-091-12/+0
| | | | | | | | | | This copy was left behind when the shader generation code was moved to a separate file.
| * VideoCore: Split regs.h inclusionsYuri Kunde Schlesner2017-02-0913-24/+45
| |
| * Pica/Regs: Use binary search to look up reg namesYuri Kunde Schlesner2017-02-092-15/+10
| | | | | | | | | | | | This gets rid of the static unordered_map. Also changes the return type const char*, avoiding unnecessary allocations (the result was only used by calling .c_str() on it.)
| * VideoCore: Use union to index into Regs structYuri Kunde Schlesner2017-02-092-46/+28
| | | | | | | | Also remove some unused members.
* | video_core: Fix benign out-of-bounds indexing of array (#2553)Yuri Kunde Schlesner2017-02-111-2/+1
|/ | | | | | The resulting pointer wasn't written to unless the index was verified as valid, but that's still UB and triggered debug checks in MSVC. Reported by garrettboast on IRC
* Merge pull request #2482 from yuriks/pica-refactorYuri Kunde Schlesner2017-02-0933-2397/+2604
|\ | | | | Split up monolithic Regs struct
| * VideoCore: Move Regs to its own fileYuri Kunde Schlesner2017-02-0422-658/+679
| |
| * VideoCore: Split shader regs from Regs structYuri Kunde Schlesner2017-02-049-102/+116
| |
| * VideoCore: Split geometry pipeline regs from Regs structYuri Kunde Schlesner2017-02-049-264/+292
| |
| * VideoCore: Split lighting regs from Regs structYuri Kunde Schlesner2017-02-046-312/+341
| |
| * VideoCore: Split framebuffer regs from Regs structYuri Kunde Schlesner2017-02-0410-445/+491
| |
| * VideoCore: Split texturing regs from Regs structYuri Kunde Schlesner2017-02-0415-494/+532
| |
| * VideoCore: Split rasterizer regs from Regs structYuri Kunde Schlesner2017-02-0413-187/+218
| |
* | Use std::array<u8,2> instead of u8[2] to fix MSVC buildLectem2017-02-051-1/+1
|/
* Merge pull request #2476 from yuriks/shader-refactor3Yuri Kunde Schlesner2017-02-0416-161/+160
|\ | | | | Oh No! More shader changes!
| * VideoCore: Make PrimitiveAssembler const-correctYuri Kunde Schlesner2017-01-302-3/+4
| |
| * VideoCore: Extract swrast-specific data from OutputVertexYuri Kunde Schlesner2017-01-305-58/+64
| |
| * VideoCore/Shader: Clean up OutputVertex::FromAttributeBufferYuri Kunde Schlesner2017-01-302-10/+16
| | | | | | | | | | | | This also fixes a long-standing but neverthless harmless memory corruption bug, whech the padding of the OutputVertex struct would get corrupted by unused attributes.
| * VideoCore: Split shader output writing from semantic loadingYuri Kunde Schlesner2017-01-303-24/+24
| |
| * VideoCore: Consistently use shader configuration to load attributesYuri Kunde Schlesner2017-01-306-44/+23
| |
| * VideoCore: Use correct register for immediate mode attribute countYuri Kunde Schlesner2017-01-302-7/+13
| |
| * VideoCore: Rename some types to more accurate namesYuri Kunde Schlesner2017-01-308-18/+18
| |
| * VideoCore: Change misleading register namesYuri Kunde Schlesner2017-01-304-8/+9
| | | | | | | | | | | | A few registers had names such as "count" or "number" when they actually contained the maximum (that is, count - 1). This can easily lead to hard to notice off by one errors.
* | Pica/Texture: Move part of ETC1 decoding to new file and cleanupsYuri Kunde Schlesner2017-02-044-110/+159
| |
* | Pica/Texture: Simplify/cleanup texture tile addressingYuri Kunde Schlesner2017-02-044-37/+111
| |
* | VideoCore: Move LookupTexture out of debug_utils.hYuri Kunde Schlesner2017-02-047-301/+340
| |
* | ShaderJIT: add 16 dummy bytes at the bottom of the stackwwylele2017-02-031-2/+5
| |
* | Common/x64: remove legacy emitter and abi (#2504)Weiyi Wang2017-01-311-1/+0
| | | | | | These are not used any more since we moved shader JIT to xbyak.
* | shader_jit_x64_compiler: esi and edi should be persistent (#2500)Merry2017-01-311-0/+2
| |
* | video_core: gl_rasterizer_cache.cpp removed unused type aliasKloen2017-01-301-1/+0
| |
* | video_core: gl_rasterizer.cpp removed unused type aliasKloen2017-01-301-2/+0
|/
* video_core: silence unused-local-typedef boost related warning on GCCKloen2017-01-291-0/+7
|
* VideoCore/Shader: Move entry_point to SetupBatchYuri Kunde Schlesner2017-01-266-26/+27
|
* VideoCore/Shader: Move per-batch ShaderEngine state into ShaderSetupYuri Kunde Schlesner2017-01-266-44/+40
|
* Shader: Remove OutputRegisters structYuri Kunde Schlesner2017-01-264-22/+17
|
* Shader: Initialize conditional_code in interpreterYuri Kunde Schlesner2017-01-262-3/+3
| | | | | | | This doesn't belong in LoadInputVertex because it also happens for non-VS invocations. Since it's not used by the JIT it seems adequate to initialize it in the interpreter which is the only thing that cares about them.
* Shader: Don't read ShaderSetup from global stateYuri Kunde Schlesner2017-01-261-3/+3
|
* shader_jit_x64: Don't read program from global stateYuri Kunde Schlesner2017-01-263-22/+22
|
* VideoCore/Shader: Move ProduceDebugInfo to InterpreterEngineYuri Kunde Schlesner2017-01-264-19/+10
|
* VideoCore/Shader: Split interpreter and JIT into separate ShaderEnginesYuri Kunde Schlesner2017-01-268-97/+153
|
* VideoCore/Shader: Rename shader_jit_x64{ => _compiler}.{cpp,h}Yuri Kunde Schlesner2017-01-264-4/+4
|
* VideoCore/Shader: Split shader uniform state and shader engineYuri Kunde Schlesner2017-01-264-21/+54
| | | | | Currently there's only a single dummy implementation, which will be split in a following commit.
* VideoCore/Shader: Add constness to methodsYuri Kunde Schlesner2017-01-262-4/+4
|
* VideoCore/Shader: Use only entry_point as ShaderSetup paramYuri Kunde Schlesner2017-01-263-11/+13
| | | | | This removes all implicit dependency of ShaderState on global PICA state.
* VideoCore/Shader: Use self instead of g_state.vs in ShaderSetupYuri Kunde Schlesner2017-01-262-11/+8
|
* VideoCore/Shader: Extract input vertex loading code into functionYuri Kunde Schlesner2017-01-263-22/+26
|
* video_core: fix shader.cpp signed / unsigned warningKloen2017-01-231-2/+2
|
* video_core: gl_rasterizer float to int warningKloen2017-01-231-1/+2
|
* video_core: fix gl_rasterizer warning on MSVCKloen2017-01-231-1/+1
|
* config: Add option for specifying screen resolution scale factor.bunnei2017-01-073-5/+10
|
* Fix some warnings (#2399)Jonathan Hao2017-01-041-2/+0
|
* Merge pull request #2367 from JayFoxRox/lighting-lut-quickfixbunnei2016-12-291-10/+9
|\ | | | | Lighting LUT Quickfix
| * Minor cleanup in GLSL codeJannik Vogel2016-12-251-3/+2
| |
| * Offset lighting LUT samples correctlyJannik Vogel2016-12-251-7/+7
| |
* | core: Move emu_window and key_map into coreMerryMage2016-12-232-2/+2
|/ | | | * Removes circular dependences (common should not depend on core)
* Merge pull request #2319 from yuriks/profile-scopesbunnei2016-12-212-0/+15
|\ | | | | VideoCore: Make profiling scope more representative
| * VideoCore: Make profiling scope more representativeYuri Kunde Schlesner2016-12-152-0/+15
| |
* | Use GL_TRUE when setting color_maskAlbin Bernhardsson2016-12-191-4/+4
| |
* | Merge pull request #2318 from yuriks/trace-optbunnei2016-12-193-16/+15
|\ \ | | | | | | VideoCore: Inline IsPicaTracing
| * | VideoCore: Inline IsPicaTracingYuri Kunde Schlesner2016-12-153-16/+15
| |/ | | | | | | Speeds up ALBW main menu slightly (~3%)
* | VideoCore/Shader: Extract DebugData out from UnitStateYuri Kunde Schlesner2016-12-168-103/+99
| |
* | Remove unnecessary castYuri Kunde Schlesner2016-12-161-3/+1
| |
* | VideoCore/Shader: Extract evaluate_condition lambda to function scopeYuri Kunde Schlesner2016-12-161-26/+24
| |
* | VideoCore/Shader: Extract call lambda up a scope and remove unused paramYuri Kunde Schlesner2016-12-161-21/+17
| |
* | VideoCore/Shader: Remove dynamic control flow in (Get)UniformOffsetYuri Kunde Schlesner2016-12-162-18/+11
| |
* | VideoCore/Shader: Move DebugData to a separate fileYuri Kunde Schlesner2016-12-164-172/+189
| |
* | shader_jit_x64: Use LOOPCOUNT_REG as a 64-bit reg when indexingYuri Kunde Schlesner2016-12-151-1/+1
|/
* VideoCore: Eliminate an unnecessary copy in the drawcall loopYuri Kunde Schlesner2016-12-153-5/+3
|
* shader_jit_x64: Use Reg32 for LOOP* registers, eliminating castsYuri Kunde Schlesner2016-12-151-16/+16
|
* VideoCore: Convert x64 shader JIT to use Xbyak for assemblyYuri Kunde Schlesner2016-12-153-223/+228
|
* Add all services to the Service namespaceLioncash2016-12-112-6/+7
| | | | | Previously there was a split where some of the services were in the Service namespace and others were not.
* OpenGL: Drop framebuffer completeness check.Markus Wick2016-12-075-47/+8
| | | | | | | This OpenGL call synchronize the worker thread of the nvidia blob. It can be verified on linux with the __GL_THREADED_OPTIMIZATIONS=1 environment variable. Those errors should not happen on tested drivers. It was used as a workaround for https://bugs.freedesktop.org/show_bug.cgi?id=94148
* Implement Frame rate limiter (#2223)emmauss2016-12-062-0/+2
| | | | | | * implement frame limiter * fixes
* ASSERT that shader was linked successfullyJannik Vogel2016-12-051-0/+2
|
* Report shader uniform block size in case of mismatchJannik Vogel2016-12-051-1/+3
|
* Print broken shader code to logJannik Vogel2016-12-051-3/+9
|
* OpenGL: Non-zero stride only makes sense for linear buffersYuri Kunde Schlesner2016-12-043-7/+11
|
* OpenGL: Ensure framebuffer binding is restored if completion check failsYuri Kunde Schlesner2016-12-041-10/+7
|
* OpenGL: Fix DisplayTransfer accel when input width != output widthYuri Kunde Schlesner2016-12-041-1/+10
| | | | Fixes #2246, #2261
* Merge pull request #2259 from JayFoxRox/fix-fallbackYuri Kunde Schlesner2016-12-041-1/+1
|\ | | | | shader_jit: Fix non-SSE4.1 path where FLR would not truncate
| * shader_jit: Fix non-SSE4.1 path where FLR would not truncateJannik Vogel2016-12-041-1/+1
| |
* | clang-format: Fix coding styleYuri Kunde Schlesner2016-12-031-1/+1
|/
* shader_jit: Load LOOPCOUNT_REG and LOOPINC 4 bit left-shiftedJannik Vogel2016-12-021-6/+9
|
* ClangFormat: Fixed the clang-format errorsSubv2016-11-302-6/+10
|
* Build: Fixed a few warnings.Subv2016-11-292-7/+7
|
* Merge pull request #2222 from linkmauve/die-frameskip-dieYuri Kunde Schlesner2016-11-281-4/+0
|\ | | | | Remove the broken frame_skip option
| * GPU: Remove the broken frame_skip option.Emmanuel Gil Peyrot2016-11-271-4/+0
| | | | | | | | Fixes #1960.
* | RasterizerGL: Use GL_TRUE and 0xFF in the stencil and depth masks instead of simply true and -1Subv2016-11-272-4/+4
| |
* | Rasterizer/Memfill: Set the correct stencil write mask when clearing the stencil buffer.Subv2016-11-271-1/+1
|/
* Cache Vertices instead of Output registers (#2165)jphalimi2016-11-241-6/+7
| | | | This patch brings +3% performance improvement on average. It removes ToVertex() as an important hotspot of the emulator.
* Fix format error from #2195wwylele2016-11-221-1/+1
|
* Merge pull request #2195 from Subv/factor_checkbunnei2016-11-201-6/+5
|\ | | | | GPU/CiTrace: Avoid calling GetTextures() when not necessary.
| * GPU/CiTrace: Avoid calling GetTextures() when not necessary.Subv2016-11-201-6/+5
| |
* | Merge pull request #2194 from jroweboy/extremely-minor-clangformat-changeJames Rowe2016-11-191-1/+1
|\ \ | |/ |/| Minor formatting change
| * Minor formatting changeJames Rowe2016-11-191-1/+1
| |
* | Add default hotkey to swap primary screens.James Rowe2016-11-051-3/+2
| | | | | | | | Also minor style changes
* | Support additional screen layouts.James Rowe2016-11-051-6/+12
|/ | | | | Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen.
* Fix typosRicardo de Almeida Gonzaga2016-10-201-1/+1
|
* Merge pull request #2082 from yuriks/shader-interp-crashbunnei2016-10-072-35/+43
|\ | | | | Fix/mask crash in shader debugger in Mii Maker
| * VideoCore: Shader interpreter cleanupsYuri Kunde Schlesner2016-09-301-32/+42
| |
| * VideoCore: Fix out-of-bounds read in ShaderSetup::ProduceDebugInfoYuri Kunde Schlesner2016-09-301-3/+1
| | | | | | | | | | | | As far as I can tell, memset was replaced by a fill without correcting the parameter type, causing an out-of-bounds array read in the Vec4 constructor.
* | Merge pull request #2103 from wwylele/gpu-reg-cleanupbunnei2016-10-043-6/+12
|\ \ | |/ |/| GPU: DisplayTransfer & MemoryFill cleanup and param check
| * rasterizer: separate TextureCopy from DisplayTransferwwylele2016-09-293-6/+12
| |
* | OpenGL: Take cached viewport sub-rect into account for scissorYuri Kunde Schlesner2016-09-303-29/+25
|/ | | | Fixes #1938
* Remove special rules for Windows.h and library includesYuri Kunde Schlesner2016-09-211-1/+1
|
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-2118-18/+18
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-2135-105/+17
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-1923-125/+119
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-1842-2532/+2943
|
* VideoCore: Fix dangling lambda context in shader interpreterYuri Kunde Schlesner2016-09-161-1/+1
| | | | | | The static meant that after the first execution, these lambda context would be pointing to a random location on the stack. Fixes a random crash when using the interpreter.
* Merge pull request #2032 from bunnei/qt-graphicsbunnei2016-09-011-0/+1
|\ | | | | Qt graphics configure & V-Sync option
| * config: Add a setting for graphics V-Sync.bunnei2016-08-301-0/+1
| |
* | OpenGL: Avoid error on unsupported lighting LUTJannik Vogel2016-08-301-0/+1
|/
* OpenGL: Add scaled resolution support to scissorYuri Kunde Schlesner2016-06-284-3/+16
|
* PICA: Scissor fixes and cleanupsYuri Kunde Schlesner2016-06-285-45/+39
|
* PICA: Implement scissor testSubv2016-06-285-3/+105
|
* Remove superfluous std::move in return std::move(local_var)scurest2016-06-251-1/+1
|
* OpenGL: Implement fogJannik Vogel2016-06-075-7/+124
|
* Rasterizer: Implement fogJannik Vogel2016-06-071-21/+52
|
* Pica: Add fog stateJannik Vogel2016-06-073-14/+69
|
* OpenGL: Avoid undefined behaviour for UNIFORM_BLOCK_DATA_SIZEJannik Vogel2016-06-072-6/+8
|
* gsp::gpu: Reset g_thread_id in UnregisterInterruptRelayQueuemailwl2016-06-011-1/+1
|
* Merge pull request #1812 from JayFoxRox/refactor-shaderbunnei2016-06-014-64/+81
|\ | | | | Retrieve shader result from new OutputRegisters-type
| * Retrieve shader result from new OutputRegisters-typeJannik Vogel2016-05-164-64/+81
| |
* | Merge pull request #1846 from JayFoxRox/missing-dirty-lightingbunnei2016-05-264-43/+140
|\ \ | | | | | | OpenGL: Set shader_dirty on lighting changes
| * | OpenGL: Set shader_dirty on lighting changesJannik Vogel2016-05-231-0/+23
| | |
| * | Pica: Name LightSrc.config registerJannik Vogel2016-05-232-17/+15
| | |
| * | Pica: Name lighting.config0 and .config1 registersJannik Vogel2016-05-232-18/+18
| | |
| * | OpenGL: Use uniforms for dist_atten_bias and dist_atten_scaleJannik Vogel2016-05-233-8/+84
| | |
* | | Merge pull request #1733 from lioncash/vert_loaderbunnei2016-05-243-11/+23
|\ \ \ | |/ / |/| | VertexLoader: Minor changes
| * | vertex_loader: Correct forward declaration of InputVertexLioncash2016-05-091-1/+1
| | | | | | | | | | | | It's actually a struct, not a class.
| * | vertex_loader: Provide an assertion for ensuring the loader has been setupLioncash2016-05-092-0/+7
| | | | | | | | | | | | | | | Also adds an assert to ensure that Setup is not called more than once during a VertexLoader's lifetime.
| * | vertex_loader: Add constructors to facilitate immediate and two-step initializationLioncash2016-05-092-2/+6
| | |
| * | vertex_loader: initialize_num_total_attributes.Lioncash2016-05-091-1/+1
| | | | | | | | | | | | Keeps the public API sane.
| * | vertex_loader: Use std::array instead of raw C arraysLioncash2016-05-091-6/+7
| | |
| * | vertex_loader: Correct header orderingLioncash2016-05-091-1/+1
| | |
* | | Refactor Tev stage dumperJannik Vogel2016-05-212-115/+114
| | |
* | | Extend Tev stage dumperJannik Vogel2016-05-211-14/+38
| | |
* | | Merge pull request #1786 from JayFoxRox/blend-equationbunnei2016-05-174-0/+31
|\ \ \ | |_|/ |/| | OpenGL: Support blend equation
| * | OpenGL: Support blend equationJannik Vogel2016-05-124-0/+31
| | |
* | | Merge pull request #1787 from JayFoxRox/refactor-jitlinkmauve2016-05-166-32/+50
|\ \ \ | | | | | | | | Refactor JIT
| * | | Use new shader-jit signature for interpreterJannik Vogel2016-05-133-8/+8
| | | |
| * | | Refactor access to state in shader-jitJannik Vogel2016-05-134-24/+42
| | | |
* | | | OpenGL: Only update depth uniforms if the depth changedJannik Vogel2016-05-142-9/+22
| | | |
* | | | OpenGL: value-initialize variables which cause uninitialised access otherwiseJannik Vogel2016-05-141-2/+2
|/ / /
* | | Move program_counter and call_stack from UnitState to interpreterJannik Vogel2016-05-123-45/+42
| | |
* | | Move default_attributes into Pica stateJannik Vogel2016-05-124-4/+4
|/ /
* | Merge pull request #1690 from JayFoxRox/tex-type-3bunnei2016-05-127-38/+106
|\ \ | | | | | | Pica: Implement texture type 3 (Projection2D)
| * | OpenGL: Implement texture type 3Jannik Vogel2016-05-114-35/+67
| | |
| * | Rasterizer: Implement texture type 3Jannik Vogel2016-05-111-2/+27
| | |
| * | Pica: Add tc0.w to OutputVertexJannik Vogel2016-05-111-1/+2
| | |
| * | Pica: Add texture type to stateJannik Vogel2016-05-111-0/+10
| | |
* | | Turn ShaderSetup into structJannik Vogel2016-05-114-57/+58
|/ /
* | Merge pull request #1621 from JayFoxRox/w-bufferbunnei2016-05-116-14/+65
|\ \ | | | | | | Implement W-buffer and fix depth-mapping
| * | OpenGL: Implement W-Buffers and fix depth-mappingJannik Vogel2016-05-103-4/+23
| | |
| * | Pica: Implement W-Buffer in SW rasterizerJannik Vogel2016-05-104-11/+43
| | |
* | | gl_rasterizer: Fix compilation for debug buildsLioncash2016-05-101-1/+1
|/ /
* | Merge pull request #1704 from JayFoxRox/pod-configlinkmauve2016-05-103-122/+164
|\ \ | |/ |/| Pica: PicaShaderConfig is TC and cleared before use
| * Pica: Use a union for PicaShaderConfigJannik Vogel2016-05-033-125/+139
| |
| * Pica: Add TevStageConfigRaw to PicaShaderConfig (MSVC workaround)Jannik Vogel2016-05-032-2/+23
| |
| * Pica: Make PicaShaderConfig trivially_copyable and clear it before useJannik Vogel2016-05-031-21/+28
| |
* | fixup simple type conversions where possibleAlexander Laties2016-05-074-7/+8
| |
* | Frontends, VideoCore: Move glad initialisation to the frontendEmmanuel Gil Peyrot2016-05-061-6/+0
| | | | | | | | | | | | | | | | | | | | On SDL2 this allows it to use SDL_GL_GetProcAddress() instead of the default function loader, and fixes a crash when using apitrace with an EGL context. On Qt we will need to migrate from QGLWidget to QOpenGLWidget and QOpenGLContext before we can use gladLoadGLLoader() instead of gladLoadGL(), since the former doesn’t expose a function loader.
* | Pica: Rename VertexLoaded breakpoint to VertexShaderInvocationJannik Vogel2016-05-042-7/+5
|/
* OpenGL: Don't copy const_color (Reverts #1745)Jannik Vogel2016-05-031-2/+3
|
* Pica: Replace logic in shader.cpp with loopJannik Vogel2016-05-031-34/+4
|
* Merge pull request #1741 from linkmauve/iwyu-video_corebunnei2016-05-0134-79/+212
|\ | | | | Fix video_core includes (and dependencies) using include-what-you-use
| * VideoCore: Run include-what-you-use and fix most includes.Emmanuel Gil Peyrot2016-04-3034-79/+212
| |
* | OpenGL: Copy TevStageConfig using a loop. Fixes bug: const_color not copiedJannik Vogel2016-05-011-30/+11
| |
* | OpenGL: border_color was never set. Fixed. (#1740)Jannik Vogel2016-04-301-0/+1
|/
* Remove TGA dumperJannik Vogel2016-04-303-62/+0
|
* Merge pull request #1730 from hrydgard/vertex-loaderbunnei2016-04-296-121/+210
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove late accesses to attribute_config * Refactor: Extract VertexLoader from command_processor.cpp. Preparation for a similar concept to Dolphin or PPSSPP. These can be JIT-ed and cached. * Move "&" to their proper place, add missing includes and make some properly relative. * Don't keep base_address in the loader, it doesn't belong there (with it, the loader can't be cached). * Optimize the vertex loader, nearly doubling its speed. * Debugger fix * Move and rename the MemoryAccesses class to MemoryAccessTracker.
| * Move and rename the MemoryAccesses class to MemoryAccessTracker.Henrik Rydgard2016-04-294-32/+35
| |
| * Debugger fixHenrik Rydgard2016-04-281-2/+2
| |
| * Optimize the vertex loader, nearly doubling its speed.Henrik Rydgard2016-04-282-32/+54
| |
| * Don't keep base_address in the loader, it doesn't belong there (with it, the loader can't be cached).Henrik Rydgard2016-04-283-11/+10
| |
| * Move "&" to their proper place, add missing includes and make some properly relative.Henrik Rydgard2016-04-282-8/+11
| |
| * Refactor: Extract VertexLoader from command_processor.cpp.Henrik Rydgard2016-04-285-125/+185
| | | | | | | | Preparation for a similar concept to Dolphin or PPSSPP. These can be JIT-ed and cached.
| * Remove late accesses to attribute_configHenrik Rydgard2016-04-281-5/+7
| |
* | Common: Remove section measurement from profiler (#1731)Yuri Kunde Schlesner2016-04-294-11/+0
| | | | | | | | This has been entirely superseded by MicroProfile. The rest of the code can go when a simpler frametime/FPS meter is added to the GUI.
* | Merge pull request #1710 from hrydgard/optimize-event-breakpointsbunnei2016-04-262-7/+14
|\ \ | | | | | | Replace std::map with std::array for graphics event breakpoints
| * | Replace std::map with std::array for graphics event breakpoints, and allow the compiler to inline. Saves 1%+ in vertex heavy situations.Henrik Rydgard2016-04-242-7/+14
| |/
* | shader: Shader size is long uint, not uint.Sam Spilsbury2016-04-241-1/+1
| |
* | shader: Handle non-CALL opcodes with a breakSam Spilsbury2016-04-241-0/+2
| |
* | shader: Format string must be provided inline and not as a variableSam Spilsbury2016-04-241-1/+1
|/
* pica: Handle default lighting caseSam Spilsbury2016-04-231-1/+6
|
* HWRasterizer: reorder declarations to match defstfarley2016-04-221-9/+9
|
* HWRasterizer: sync specular uniform for new shaderstfarley2016-04-221-0/+2
|
* Merge pull request #1436 from tfarley/hw-tex-forwardingbunnei2016-04-2215-759/+1373
|\ | | | | Hardware Renderer Texture Forwarding
| * HWRasterizer: Texture forwardingtfarley2016-04-2113-759/+1371
| |
| * Config: Add scaled resolution optiontfarley2016-04-212-0/+2
| |
* | Merge pull request #1655 from JayFoxRox/hw-dot3bunnei2016-04-211-0/+3
|\ \ | |/ |/| OpenGL: Implement color combiner Operation::Dot3_RGB
| * OpenGL: Implement color combiner Operation::Dot3_RGBJannik Vogel2016-04-101-0/+3
| |
* | Merge pull request #1625 from JayFoxRox/sw-blend-funcbunnei2016-04-181-57/+42
|\ \ | | | | | | Rasterizer: Allow all blend factors for alpha blend-func
| * | Rasterizer: Allow all blend factors for alpha blend-funcJannik Vogel2016-04-171-57/+42
| | |
* | | debug_utils: use std::make_unique for initializing PicaTraceLioncash2016-04-151-1/+1
| | |
* | | Merge pull request #1665 from lioncash/filebunnei2016-04-141-1/+16
|\ \ \ | | | | | | | | IOFile: Minor API changes
| * | | file_util: Don't expose IOFile internals through the APILioncash2016-04-141-1/+16
| |/ /
* | | shader_jit_x64: Rename RuntimeAssert to Compile_Assert.bunnei2016-04-142-5/+5
| | |
* | | shader_jit_x64.cpp: Rename JitCompiler to JitShader.bunnei2016-04-143-92/+92
| | |
* | | shader_jit_x64: Free memory that's no longer needed after compilation.bunnei2016-04-141-0/+6
| | |
* | | shader_jit_x64: Use a sorted vector instead of a set for keeping track of return addresses.bunnei2016-04-142-5/+8
| | |
* | | shader_jit_x64: Use CALL/RET instead of JMP for subroutines.bunnei2016-04-141-17/+7
| | |
* | | shader_jit_x64: Separate initialization and code generation for readability.bunnei2016-04-141-9/+8
| | |
* | | shader_jit_x64: Get rid of unnecessary last_program_counter variable.bunnei2016-04-142-6/+2
| | |
* | | shader_jit_x64: Execute certain asserts at runtime.bunnei2016-04-142-5/+19
| | | | | | | | | | | | - This is because we compile the full shader code space, and therefore its common to compile malformed instructions.
* | | shader: Remove unused 'state' argument from 'Setup' function.bunnei2016-04-143-5/+4
| | |
* | | shader_jit_x64: Specify shader main offset at runtime.bunnei2016-04-143-10/+6
| | |
* | | shader_jit_x64: Allocate each program independently and persist for emu session.bunnei2016-04-143-38/+28
| | |
* | | shader_jit_x64: Rewrite flow control to support arbitrary CALL and JMP instructions.bunnei2016-04-142-35/+119
| | |
* | | shader_jit_x64: Fix strict memory aliasing issues.bunnei2016-04-141-1/+3
|/ /
* / Pica: Remove geometry dumper (PICA_DUMP_GEOMETRY)Jannik Vogel2016-04-104-71/+0
|/
* OpenGL: Respect buffer-write allow registersJannik Vogel2016-04-081-6/+28
|
* OpenGL: Split buffer-write mask sync into seperate functionsJannik Vogel2016-04-082-8/+39
|
* Rasterizer: Respect buffer-write allow registersJannik Vogel2016-04-082-4/+16
|
* OpenGL: Keep stencil-test and framebuffer.depth_format in syncJannik Vogel2016-04-081-0/+1
|
* Merge pull request #1639 from linkmauve/fix-double-framebuffer-checkbunnei2016-04-081-4/+6
|\ | | | | OpenGL: Fix a double framebuffer completeness checks.
| * OpenGL: Fix a double framebuffer completeness checks.Emmanuel Gil Peyrot2016-04-031-4/+6
| |
* | Merge pull request #1643 from MerryMage/make_uniqueMathew Maidment2016-04-065-11/+7
|\ \ | |/ |/| Common: Remove Common::make_unique, use std::make_unique
| * Common: Remove Common::make_unique, use std::make_uniqueMerryMage2016-04-055-11/+7
| |
* | OpenGL: Check for framebuffer completenessJannik Vogel2016-04-031-0/+3
| |
* | Avoid warnings by casting to size_t for ARRAY_SIZE() comparisonsJannik Vogel2016-04-011-6/+6
| |
* | Pica: Improve accuracy of immediate-mode supportYuri Kunde Schlesner2016-03-245-29/+56
| | | | | | | | This partially fixes Etrian Odyssey IV.
* | OpenGL: Don't attempt to draw empty triangle batchesYuri Kunde Schlesner2016-03-241-0/+3
| | | | | | | | | | Our code did not handle this well, causing random crashes in some situations.
* | Merge pull request #1508 from JayFoxRox/vs-output-mapbunnei2016-03-222-7/+19
|\ \ | |/ |/| Respect vs output map
| * Respect vs output mapJannik Vogel2016-03-142-7/+19
| |
* | Merge pull request #1538 from lioncash/dotbunnei2016-03-201-5/+3
|\ \ | | | | | | shader_interpreter: use std::inner_product for the dot product
| * | shader_interpreter: use std::inner_product for the dot productLioncash2016-03-171-5/+3
| | | | | | | | | | | | Same thing, less code.
* | | Merge pull request #1535 from JayFoxRox/fix-alignbunnei2016-03-181-6/+6
|\ \ \ | | | | | | | | PICA: Alignment happens locally in vertex
| * | | PICA: Alignment happens locally in vertexJannik Vogel2016-03-171-6/+6
| | | |
* | | | video_core: Don't cast away constLioncash2016-03-173-18/+19
| |/ / |/| |
* | | core/video_core: Make NumIds functions constexprLioncash2016-03-171-1/+1
| | |
* | | core/video_core: Don't cast away const in subscript operatorsLioncash2016-03-171-3/+3
|/ / | | | | | | Not to say these subscript operators aren't totally ugly as is.
* | Merge pull request #1519 from JayFoxRox/vp-offset-fixbunnei2016-03-161-2/+2
|\ \ | | | | | | PICA: Fix viewport offset
| * | PICA: Fix viewport offsetJannik Vogel2016-03-141-2/+2
| |/
* | Merge pull request #1503 from bunnei/clear-jit-cachebunnei2016-03-163-7/+27
|\ \ | | | | | | Clear JIT cache
| * | shader_jit_x64: Clear cache after code space fills up.bunnei2016-03-123-2/+19
| | |
| * | shader_jit_x64: Make assert outputs more useful & cleanup formatting.bunnei2016-03-121-4/+7
| | |
| * | shader: Update log message to use proper log class.bunnei2016-03-121-1/+1
| | |
* | | PICA: Fix MAD/MADI encodingJannik Vogel2016-03-152-29/+33
| |/ |/|
* | PICA: Align vertex attributesJannik Vogel2016-03-131-1/+5
|/
* Merge pull request #1475 from lioncash/alignYuri Kunde Schlesner2016-03-101-4/+4
|\ | | | | Common: Get rid of alignment macros
| * Common: Get rid of alignment macrosLioncash2016-03-091-4/+4
| | | | | | | | | | The gl rasterizer already uses alignas, so we may as well move everything over.
* | Merge pull request #1474 from lioncash/rendererbunnei2016-03-093-15/+15
|\ \ | | | | | | renderer_base: Minor changes
| * | renderer_base: In-class initialize variablesLioncash2016-03-091-5/+2
| | |
| * | render_base: Clarify/normalize getter functionsLioncash2016-03-091-2/+2
| | |
| * | renderer_base: Don't directly expose the rasterizer unique_ptrLioncash2016-03-093-8/+11
| |/ | | | | | | | | There's no reason to allow direct access to the unique_ptr instance. Only its contained pointer.
* | Merge pull request #1344 from LittleWhite-tb/error-outputbunnei2016-03-095-8/+18
|\ \ | |/ |/| Output errors in GUI
| * Improve error report from Init() functionsLittleWhite2016-03-085-8/+18
| | | | | | | | Add error popup when citra initialization failed
* | Pica: Write depth value even when depth test is disabledYuri Kunde Schlesner2016-03-062-10/+12
|/ | | | This has been confirmed on hardware. Fixes Etrian Odyssey IV.
* Add immediate mode vertex submissionDwayne Slater2016-03-0317-60/+172
|
* Merge pull request #1424 from MerryMage/lut_initbunnei2016-02-261-0/+4
|\ | | | | renderer_opengl: Initalise fragment shader LUT textures
| * renderer_opengl: Initalise fragment shader LUT texturesMerryMage2016-02-261-0/+4
| |
* | Merge pull request #1395 from ds84182/padding-attributesbunnei2016-02-251-7/+17
|\ \ | |/ |/| Add support for padding vertex attributes
| * Fix out of bounds array access when loading a component >= 12Dwayne Slater2016-02-211-1/+4
| |
| * Add support for padding vertex attributesDwayne Slater2016-02-211-6/+13
| |
* | BitField: Make trivially copyable and remove assignment operatorMerryMage2016-02-122-6/+6
| |
* | pica: Cleanup lighting register definitions and documentation.bunnei2016-02-052-48/+51
| |
* | gl_rasterizer: Use alignas(16) instead of explicit padding.bunnei2016-02-051-13/+6
| |
* | renderer_opengl: Use GLvec3/GLvec4 aliases for commonly used types.bunnei2016-02-054-14/+18
| |
* | gl_rasterizer: Fix issue with interpolation of opposite quaternions.bunnei2016-02-052-4/+32
| |
* | pica_types: Fix typo in docstring.bunnei2016-02-051-1/+1
| |
* | pica_types: Replace float24/20/16 with a template class.bunnei2016-02-055-116/+82
| |
* | command_processor: Add an assertion to ensure LUTs are not written past their boundaries.bunnei2016-02-051-0/+3
| |
* | gl_rasterizer: Remove unnecessary casts.bunnei2016-02-051-6/+6
| |
* | gl_rasterizer: Fix PicaShaderConfig on GCC.bunnei2016-02-051-29/+27
| |
* | gl_rasterizer: Initial implementation of bump mapping.bunnei2016-02-053-5/+42
| |
* | gl_shader_gen: Fix bug in LUT range (should within range [0, 255] not [0, 256]).bunnei2016-02-051-3/+3
| |
* | gl_shader_gen: Implement lighting red, green, and blue reflection.bunnei2016-02-053-21/+77
| |
* | gl_shader_gen: View should be normalized.bunnei2016-02-051-2/+2
| |
* | gl_shader_gen: Implement fragment lighting fresnel effect.bunnei2016-02-053-9/+38
| |
* | gl_shader_gen: Implement fragment lighting specular 1 component.bunnei2016-02-053-11/+41
| |
* | gl_shader_gen: Add support for D0 LUT scaling.bunnei2016-02-053-3/+71
| |
* | gl_shader_gen: Refactor lighting config to match Pica register naming.bunnei2016-02-053-42/+50
| | | | | | | | - Also implement D0 LUT enable.
* | pica: Cleanup and add some comments to lighting registers.bunnei2016-02-052-19/+19
| |
* | gl_rasterizer: Minor naming refactor on Pica register naming.bunnei2016-02-052-20/+23
| |
* | gl_shader_gen: Reorganize and cleanup lighting code.bunnei2016-02-051-100/+107
| | | | | | | | - No functional difference.
* | gl_shader_gen: Fix directional lights.bunnei2016-02-051-1/+1
| |
* | gl_shader_gen: Fix bug with lighting where clamp highlights was only applied to last light.bunnei2016-02-051-6/+6
| |
* | gl_shader_gen: View vector needs to be normalized when computing half angle vector.bunnei2016-02-051-3/+4
| |
* | renderer_opengl: Use textures for fragment shader LUTs instead of UBOs.bunnei2016-02-055-27/+64
| | | | | | | | | | - Gets us LUT interpolation for free. - Some older Intel GPU drivers did not support the big UBOs needed to store the LUTs.
* | renderer_opengl: Initial implementation of basic specular lighting.bunnei2016-02-054-13/+165
| |
* | renderer_opengl: Implement HW fragment lighting distance attenuation.bunnei2016-02-052-17/+38
| |
* | renderer_opengl: Implement HW fragment lighting LUTs within our default UBO.bunnei2016-02-054-16/+67
| |
* | renderer_opengl: Implement diffuse component of HW fragment lighting.bunnei2016-02-056-15/+270
| |
* | pica: Implement decoding of basic fragment lighting components.bunnei2016-02-055-15/+120
| | | | | | | | | | | | | | - Diffuse - Distance attenuation - float16/float20 types - Vertex Shader 'view' output
* | pica: Implement fragment lighting LUTs.bunnei2016-02-052-0/+34
| |
* | pica: Add decodings for distance attenuation and LUT registers.bunnei2016-02-051-1/+104
| |
* | pica: Add pica_types module and move float24 definition.bunnei2016-02-053-112/+127
|/
* hwrasterizer: Use proper cached fb addr/sizetfarley2016-02-032-42/+34
|
* OpenGL: Downgrade GL_DEBUG_SEVERITY_NOTIFICATION to Debug logging levelYuri Kunde Schlesner2016-02-031-2/+0
| | | | | | The nVidia driver is *extremely* spammy on this category, sending a message on every buffer or texture upload, slowing down the emulator and making the log useless.
* Merge pull request #1367 from yuriks/jit-jmpbunnei2016-01-272-6/+6
|\ | | | | Shader JIT: Fix off-by-one error when compiling JMPs
| * Shader JIT: Fix off-by-one error when compiling JMPsYuri Kunde Schlesner2016-01-242-6/+6
| | | | | | | | | | | | | | There was a mistake in the JMP code which meant that one instruction at the destination would be skipped when the jump was taken. This commit also changes the meaning of the culprit parameter to make it less confusing and avoid similar mistakes in the future.
* | Merge pull request #1369 from yuriks/jmpu-invertedbunnei2016-01-262-2/+5
|\ \ | | | | | | Shader: Implement "invert condition" feature of IFU instruction
| * | Shader: Implement "invert condition" feature of IFU instructionYuri Kunde Schlesner2016-01-252-2/+5
| |/ | | | | | | | | | | If the bit 0 of the JMPU instruction is set, then the jump condition will be inverted. That is, a jump will happen when the boolean is false instead of when it is true.
* / Debugger: Use 3dbrew names for GPU registersYuri Kunde Schlesner2016-01-251-57/+465
|/ | | | | This list was imported from the 3dbrew wiki page and is pretty much complete.
* Merge pull request #1334 from tfarley/hw-depth-modifiersbunnei2016-01-213-2/+24
|\ | | | | hwrasterizer: Use depth offset
| * hwrasterizer: Use depth offsettfarley2016-01-213-2/+24
| |
* | command_processor: Get rid of variable shadowingLioncash2016-01-171-2/+1
|/
* Merge pull request #1196 from linkmauve/khr_debugbunnei2016-01-131-0/+57
|\ | | | | Add optional GL_KHR_debug support
| * OpenGL: Log GL_KHR_debug messages we receiveEmmanuel Gil Peyrot2015-10-241-0/+57
| | | | | | | | | | This allows the driver to communicate errors, warnings and improvement suggestions about our usage of the API.
* | video_core: Make the renderer global a unique_ptrLioncash2015-12-302-6/+10
| |
* | swrasterizer: Add missing override specifierLioncash2015-12-301-1/+1
| |
* | VideoCore: Sync state after changing rasterizersYuri Kunde Schlesner2015-12-211-0/+1
| | | | | | | | | | This fixes various bugs that appear in the HW rasterizer after switching between it and the SW one during emulation.
* | Merge pull request #1267 from yuriks/flipped-framebufferYuri Kunde Schlesner2015-12-104-12/+17
|\ \ | | | | | | OpenGL: Flip framebuffers during transfer rather than when rendering
| * | OpenGL: Flip framebuffers during transfer rather than when renderingYuri Kunde Schlesner2015-12-052-12/+11
| | |
| * | OpenGL: Add support for glFrontFace in the state trackerYuri Kunde Schlesner2015-12-052-0/+6
| | |
* | | Merge pull request #1269 from Subv/triangle_fanbunnei2015-12-081-5/+4
|\ \ \ | | | | | | | | GPU/PrimitiveAssembler: Fixed drawing triangle fans.
| * | | GPU/PrimitiveAssembler: Fixed drawing triangle fans.Subv2015-12-061-5/+4
| |/ / | | | | | | | | | It was skipping the second vertex assignment and using uninitialized garbage when assembling the corresponding triangle.
* | | VideoCore: Unify interface to OpenGL and SW rasterizersYuri Kunde Schlesner2015-12-0813-67/+105
| | | | | | | | | | | | | | | | | | This removes explicit checks sprinkled all over the codebase to instead just have the SW rasterizer expose an implementation with no-ops for most operations.
* | | VideoCore: Rename HWRasterizer methods to be less confusingYuri Kunde Schlesner2015-12-074-12/+12
| | |
* | | OpenGL: Rename cache functions to better match what they actually doYuri Kunde Schlesner2015-12-073-12/+11
|/ /
* | PICA: Properly emulate 1-stage delay in the combiner bufferYuri Kunde Schlesner2015-12-012-12/+19
| | | | | | | | | | | | | | | | | | This was discovered and verified by @fincs. The tev combiner buffer actually lags behind by one stage, meaning stage 1 reads the initial color, stage 2 reads stage 0's output, and so on. Fixes character portraits in Fire Emblem: Awakening and world textures in Zelda: ALBW. Closes #1140.
* | renderer_opengl: Fix uniform issues introduced with kemenaran/avoid-explicit-uniform-location.bunnei2015-11-262-6/+8
| |
* | Use regular uniform locationPierre de La Morinerie2015-11-253-15/+5
| | | | | | | | | | | | The support for GL_ARB_explicit_uniform_location is not that good (53% according to http://feedback.wildfiregames.com/report/opengl/feature/GL_ARB_explicit_uniform_location). This fix the shader compilation on Intel HD 4000 (#1222).
* | FragShader: Use an UBO instead of several individual uniformsSubv2015-11-196-13/+67
| |
* | GPU/Loaders: Log an error when a loader tries to load from a component beyond the available ones (12).Subv2015-11-101-0/+2
| | | | | | | | Related to #1170
* | gl_shader_gen: Use explicit locations for vertex shader attributes.bunnei2015-10-222-15/+9
| |
* | gl_shader_gen: Optimize code for AppendAlphaTestCondition.bunnei2015-10-221-16/+11
| | | | | | | | - Also add a comment to AppendColorCombiner.
* | gl_rasterizer: Define enum types for each vertex texcoord attribute.bunnei2015-10-223-12/+14
| |
* | gl_shader_gen: Various cleanups to shader generation.bunnei2015-10-223-48/+52
| |
* | gl_rasterizer: Use MMH3 hash for shader cache hey.bunnei2015-10-224-83/+63
| | | | | | | | - Includes a check to confirm no hash collisions.
* | gl_shader_gen: Require explicit uniform locations.bunnei2015-10-223-56/+34
| | | | | | | | - Fixes uniform issue on AMD.
* | gl_shader_gen: Rename 'o' to 'attr' in vertex/fragment shaders.bunnei2015-10-221-11/+11
| |
* | gl_shader_gen: AppendAlphaModifier default should be 0.0, not vec4(0.0).bunnei2015-10-221-1/+1
| |
* | gl_shader_gen: Fix bug where TEV stage outputs should be clamped.bunnei2015-10-221-3/+3
| |
* | gl_rasterizer: Add documentation to ShaderCacheKey.bunnei2015-10-221-0/+16
| |
* | gl_shader_gen: Add additional function documentation.bunnei2015-10-222-0/+18
| |
* | gl_shader_util: Cleanup header file + add docstring.bunnei2015-10-221-1/+7
| |
* | gl_shader_gen: Various cleanups + moved TEV stage generation to its own function.bunnei2015-10-221-161/+170
| |
* | renderer_opengl: Refactor shader generation/caching to be more organized + various cleanups.bunnei2015-10-2210-788/+509
| |
* | gl_rasterizer: Move logic for creating ShaderCacheKey to a static function.bunnei2015-10-223-22/+50
| |
* | gl_shader_util: Use vec3 constants for AppendColorCombiner.bunnei2015-10-221-6/+6
| |
* | gl_rasterizer: Fix typo in uploading TEV const color uniforms.bunnei2015-10-221-5/+5
| |
* | gl_shader_util: Fix precision bug with alpha testing.bunnei2015-10-222-9/+9
| | | | | | | | - Alpha testing is not done with float32 precision, this makes the HW renderer match the SW renderer.
* | Initial implementation of fragment shader generation with caching.Subv2015-10-227-261/+568
| |
* | CitraQt, SkyEye, Loader, VideoCore: Remove newlines in LOG_* calls.Emmanuel Gil Peyrot2015-10-092-7/+7
|/ | | | The LOG_* function itself already appends one.
* Silence -Wsign-compare warnings.Rohit Nirmal2015-10-071-3/+3
|
* fix some xcode 7.0 warningsMartin Lindhe2015-09-293-2/+4
|
* general: Silence some warnings when using clangLioncash2015-09-163-7/+7
|
* video_core: Reorganize headersLioncash2015-09-1119-62/+56
|
* video_core: Remove unnecessary includes from headersLioncash2015-09-115-13/+3
|
* Merge pull request #1133 from lioncash/emplace-backbunnei2015-09-101-3/+3
|\ | | | | gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle
| * gl_rasterizer: Replace push_back calls with emplace_back in AddTriangleLioncash2015-09-101-3/+3
| |
* | Merge pull request #1136 from lioncash/protobunnei2015-09-101-3/+0
|\ \ | | | | | | renderer_opengl: Remove unimplemented function declaration
| * | renderer_opengl: Remove unimplemented function declarationLioncash2015-09-101-3/+0
| |/
* / video_core: Remove unused variablesLioncash2015-09-103-4/+0
|/
* Shader JIT: Use SCALE constant from emitteraroulin2015-09-071-4/+4
|
* Shader: Fix size_t to int casts of register offsetsaroulin2015-09-072-15/+21
|
* OpenGL: Use Sampler Objects to decouple sampler config from texturesYuri Kunde Schlesner2015-09-034-21/+76
| | | | Fixes #978
* OpenGL: Remove ugly and endian-unsafe color pointer castsYuri Kunde Schlesner2015-09-034-9/+13
|
* OpenGL: Add support for Sampler Objects to state trackerYuri Kunde Schlesner2015-09-033-4/+42
|
* Merge pull request #1087 from yuriks/opengl-gladYuri Kunde Schlesner2015-09-0311-2812/+12
|\ | | | | Replace the previous OpenGL loader with a glad-generated 3.3 one
| * Replace the previous OpenGL loader with a glad-generated 3.3 oneYuri Kunde Schlesner2015-08-3011-2812/+12
| | | | | | | | | | | | The main advantage of switching to glad from glLoadGen is that, apart from being actively maintained, it supports a customizable entrypoint loader function, which makes it possible to also support OpenGL ES.
* | Merge pull request #1088 from aroulin/x64-emitter-abi-callbunnei2015-09-022-28/+18
|\ \ | | | | | | x64: Proper stack alignment in shader JIT function calls
| * | x64: Proper stack alignment in shader JIT function callsaroulin2015-09-012-28/+18
| | | | | | | | | | | | | | | Import Dolphin stack handling and register saving routines Also removes the x86 parts from abi files
* | | video_core: Fix format specifiers warningsaroulin2015-09-022-2/+3
|/ /
* | Merge pull request #1092 from Subv/vertex_offsetTony Wasserka2015-08-312-1/+7
|\ \ | | | | | | Pica: Add the vertex_offset register to the Pica registers map.
| * | Pica: Added the primitive_restart register (0x25f) to the registers map.Subv2015-08-312-1/+5
| | |
| * | Pica: Add the vertex_offset register to the Pica registers map.Subv2015-08-312-0/+2
| | |
* | | Shader JIT: Fix SGE/SGEI NaN behavioraroulin2015-08-311-3/+3
|/ / | | | | | | | | SGE was incorrectly emulated w.r.t. NaN behavior as the CMPSS SSE instruction was used with NLT
* | Merge pull request #1059 from Subv/vertex_offsetbunnei2015-08-302-2/+8
|\ \ | |/ |/| GPU: Implemented register 0x22A PICA_REG_DRAW_VERTEX_OFFSET
| * GPU: Implemented register 0x22A.Subv2015-08-302-2/+8
| | | | | | | | | | | | This is the equivalent of the "first" parameter in glDrawArrays, it tells the GPU the vertex index at which to start rendering. Register 0x22A doesn't affect indexed rendering.
* | Merge pull request #1049 from Subv/stencilbunnei2015-08-306-28/+111
|\ \ | | | | | | Rasterizer: Corrected the stencil implementation.
| * | HWRenderer: Added a workaround for the Intel Windows driver bug that causes glTexSubImage2D to not change the stencil buffer.Subv2015-08-241-2/+9
| | | | | | | | | | | | Reported here https://communities.intel.com/message/324464
| * | HWRasterizer: Implemented stencil ops 6 and 7.Subv2015-08-211-1/+3
| | |
| * | SWRasterizer: Implemented stencil ops 6 and 7.Subv2015-08-212-6/+14
| | | | | | | | | | | | IncrementWrap and DecrementWrap, verified with hwtests.
| * | HWRasterizer: Implemented stencil op 1 (GL_ZERO)Subv2015-08-211-1/+1
| | |
| * | SWRasterizer: Implemented stencil action 1 (GL_ZERO).Subv2015-08-212-1/+4
| | | | | | | | | | | | Verified with hwtests.
| * | SWRasterizer: Removed a todo. Verified with hwtests.Subv2015-08-211-1/+0
| | |
| * | SWRenderer: The stencil depth_pass action is executed even if depth testing is disabled.Subv2015-08-211-7/+5
| | | | | | | | | | | | The HW renderer already did this.
| * | Rasterizer: Abstract duplicated stencil code into a lambda.Subv2015-08-211-6/+9
| | |
| * | GLRasterizer: Implemented stencil testing in the hw renderer.Subv2015-08-204-2/+44
| | |
| * | GPU/Rasterizer: Corrected the stencil implementation.Subv2015-08-202-18/+39
| |/ | | | | | | Verified the behavior with hardware tests.
* | Merge pull request #1065 from yuriks/shader-fpYuri Kunde Schlesner2015-08-284-57/+100
|\ \ | | | | | | Shader FP compliance fixes
| * | fixup! Shaders: Fix multiplications between 0.0 and infYuri Kunde Schlesner2015-08-241-4/+4
| | |
| * | Shader JIT: Tiny micro-optimization in DPHYuri Kunde Schlesner2015-08-241-4/+4
| | |
| * | Shaders: Fix multiplications between 0.0 and infYuri Kunde Schlesner2015-08-243-40/+58
| | | | | | | | | | | | | | | | | | | | | | | | The PICA200 semantics for multiplication are so that when multiplying inf by exactly 0.0, the result is 0.0, instead of NaN, as defined by IEEE. This is relied upon by games. Fixes #1024 (missing OoT interface items)
| * | Shaders: Explicitly conform to PICA semantics in MAX/MINYuri Kunde Schlesner2015-08-242-2/+10
| | |
| * | Shader JIT: Add name to second scratch register (XMM4)Yuri Kunde Schlesner2015-08-241-3/+5
| | |
| * | Shader JIT: Fix CMP NaN behavior to match hardwareYuri Kunde Schlesner2015-08-241-8/+23
| | |
* | | gl_rasterizer_cache: Detect and ignore unnecessary texture flushes.bunnei2015-08-283-8/+18
| | |
* | | Shader JIT: Fix float to integer rounding in MOVAaroulin2015-08-271-2/+2
| | | | | | | | | | | | MOVA converts new address register values from floats to integers using truncation
* | | Shader JIT: ifdef out reference to ifdef'd out shader_maparchshift2015-08-271-0/+2
| | | | | | | | | | | | | | | shader_map was only defined on x86 architectures, but was cleared on shutdown with no ifdef protection. Ifdef this out so non-x86 architectures can be built.
* | | Integrate the MicroProfile profiling libraryYuri Kunde Schlesner2015-08-255-0/+25
| | | | | | | | | | | | | | | This brings goodies such as a configurable user interface and multi-threaded timeline view.
* | | Merge pull request #1063 from Subv/hw_renderer_debug_fbbunnei2015-08-241-2/+6
|\ \ \ | | | | | | | | HWRenderer: Only reload the framebuffer from gpu memory if the hw renderer is in use during a breakpoint
| * | | HWRenderer: Only reload the framebuffer from gpu memory if the hw renderer is in use during a breakpoint.Subv2015-08-231-2/+6
| | |/ | |/|
* | | shader_jit: Replace two MDisp usages with MatRLioncash2015-08-241-2/+2
| |/ |/|
* | Merge pull request #1062 from aroulin/shader-rcp-rsqbunnei2015-08-232-10/+10
|\ \ | | | | | | Shader: RCP and RSQ computes only the 1st component
| * | Shader: Use std::sqrt for float instead of sqrtaroulin2015-08-231-1/+1
| | |
| * | Shader: RCP and RSQ computes only the 1st componentaroulin2015-08-232-10/+10
| | |
* | | Shader: implement DPH/DPHI in JITaroulin2015-08-222-2/+36
| | |
* | | Shader: implement DPH/DPHI in interpreteraroulin2015-08-221-1/+8
|/ / | | | | | | | | Tests revealed that the component with w=1 is SRC1 and not SRC2, it is now fixed on 3dbrew.
* | Shader: implement SGE, SGEI and SLT in JITaroulin2015-08-192-15/+36
| |
* | Shader: implement SGE, SGEI in interpreteraroulin2015-08-191-0/+14
| |
* | Merge pull request #1047 from aroulin/shader-ex2-lg2bunnei2015-08-192-0/+33
|\ \ | | | | | | Shader: Save caller-saved registers in JIT before a CALL
| * | Shader: Save caller-saved registers in JIT before a CALLaroulin2015-08-192-0/+33
| | |
* | | Merge pull request #1037 from aroulin/shader-ex2-lg2bunnei2015-08-193-2/+58
|\| | | |/ |/| Shader: Implement EX2 and LG2 in interpreter/JIT
| * Shader: implement EX2 and LG2 in JITaroulin2015-08-172-2/+22
| |
| * Shader: implement EX2 and LG2 in interpreteraroulin2015-08-161-0/+36
| |
* | Merge pull request #1034 from yuriks/rg8-texturesbunnei2015-08-172-1/+8
|\ \ | | | | | | videocore: Added RG8 texture support
| * | videocore: Added RG8 texture supportPatrick Martin2015-08-162-1/+8
| | |
* | | Fix Linux GCC 4.9 build (complaining about undeclared memset)LittleWhite2015-08-161-1/+2
| |/ |/|
* | Build fix for Debug configurations.Tony Wasserka2015-08-161-1/+1
| |
* | Merge pull request #997 from Lectem/cmdlist_full_debugTony Wasserka2015-08-163-31/+29
|\ \ | | | | | | citra-qt: Improve pica command list widget (add mask, fix some issues)
| * | citra-qt/debug_utils: Use lock_guard everywhereLectem2015-07-261-6/+5
| | | | | | | | | | | | | | | unique_lock were being used as lock_guards. Also replaced manual lock/unlock by lock_guard for harmonization.
| * | citra-qt/command list: Add mask columnLectem2015-07-263-25/+24
| | |
* | | Introduce a shader tracer to allow inspection of input/output values for each processed instruction.Tony Wasserka2015-08-168-41/+326
| | |
* | | Pica/DebugUtils: Include uniform information into shader dumps.Tony Wasserka2015-08-162-11/+51
| | |
* | | citra-qt: Improve shader debugger.Tony Wasserka2015-08-164-13/+28
| |/ |/| | | | | Now supports dumping the current shader and recognizes a larger number of output semantics.
* | Shader: Use a POD struct for registers.bunnei2015-08-165-40/+43
| |
* | Rename ARCHITECTURE_X64 definition to ARCHITECTURE_x86_64.bunnei2015-08-162-7/+6
| |
* | Common: Cleanup CPU capability detection code.bunnei2015-08-161-5/+5
| |
* | Common: Move cpu_detect to x64 directory.bunnei2015-08-161-2/+1
| |
* | x64: Refactor to remove fake interfaces and general cleanups.bunnei2015-08-166-150/+26
| |
* | JIT: Support negative address offsets.bunnei2015-08-161-26/+25
| |
* | Shader: Initial implementation of x86_x64 JIT compiler for Pica vertex shaders.bunnei2015-08-1610-3/+940
| | | | | | | | | | - Config: Add an option for selecting to use shader JIT or interpreter. - Qt: Add a menu option for enabling/disabling the shader JIT.
* | Common: Added MurmurHash3 hash function for general-purpose use.bunnei2015-08-151-1/+1
| |
* | Shader: Define a common interface for running vertex shader programs.bunnei2015-08-157-186/+289
| |
* | Shader: Move shader code to its own subdirectory, "shader".bunnei2015-08-159-12/+12
| |
* | GPU: Refactor "VertexShader" namespace to "Shader".bunnei2015-08-1513-50/+48
| | | | | | | | - Also renames "vertex_shader.*" to "shader_interpreter.*"
* | Merge pull request #893 from linkmauve/remove-uint._t-int._tbunnei2015-08-111-1/+2
|\ \ | | | | | | Replace standard uint*_t and int*_t with CommonTypes’ u* and s* types
| * | ARM Core, Video Core, CitraQt, Citrace: Use CommonTypes types instead of the standard u?int*_t types.Emmanuel Gil Peyrot2015-08-111-1/+2
| | |
* | | OpenGL: Fix state tracking in situations with reused object handlesYuri Kunde Schlesner2015-08-064-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an OpenGL object is created, bound to a binding using the state tracker, and then destroyed, a newly created object can be assigned the same numeric handle by OpenGL. However, even though it is a new object, and thus needs to be bound to the binding again, the state tracker compared the current and previous handles and concluded that no change needed to be made, leading to failure to bind objects in certain cases. This manifested as broken text in VVVVVV, which this commit fixes along with similar texturing problems in other games.
* | | OpenGL: Remove redundant texture.enable_2d field from OpenGLStateYuri Kunde Schlesner2015-08-064-26/+3
|/ / | | | | | | | | All uses of this field where it's false can just set the texture id to 0 instead.
* | Videocore: Implement simple vertex cachingYuri Kunde Schlesner2015-08-051-62/+89
| | | | | | | | | | | | This gives a ~2/3 reduction in the amount of vertices that need to be processed through the vertex loaders and the vertex shader, yielding a good speedup.
* | Merge pull request #1006 from yuriks/fb-commit-profilebunnei2015-07-301-0/+7
|\ \ | | | | | | OpenGL: Add a profiler category measuring framebuffer readback
| * | OpenGL: Add a profiler category measuring framebuffer readbackYuri Kunde Schlesner2015-07-281-0/+7
| | |
* | | Merge pull request #963 from yuriks/gpu-fixesbunnei2015-07-292-42/+44
|\ \ \ | |/ / |/| | Misc. GPU vertex loading fixes
| * | VideoCore: Fix values of unset components in input attribute arraysYuri Kunde Schlesner2015-07-231-42/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an input attribute array had a field with less than 4 components, the remaining components were left unset if not specified by a default vertex attribute. If neither mechanism would set a component, it would assume a garbage value. It has been verified that the hardware behavior is to instead to set the missing components from the fixed default of (0 0 0 1). The default vertex attribute values aren't used at all if a vertex array is specified for that attribute. Fixes UI graphics on Fire Emblem: Awakening, a small texturing glitch when selecting a character in Cubic Ninja, as well as eliminating the unset-W hack which was required for Ocarina of Time to not have garbled triangles. This change has been tested against hardware.
| * | VideoCore: Saturate vertex colors before interpolatingYuri Kunde Schlesner2015-07-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During testing, it was discovered that hardware does not interpolate colors output by the vertex shader as-is. Rather, it drops the sign and saturates the value to 1.0. This is done before interpolation, such that (e.g.) interpolating outputs 1.5 and -0.5 is equivalent to as if the shader had output the values 1.0 and 0.5 instead, with the interpolated value never crossing 0.0. This change has been tested against hardware.
* | | Merge pull request #991 from yuriks/globjectsbunnei2015-07-263-143/+79
|\ \ \ | | | | | | | | OpenGL: Make OpenGL object resource wrappers fully inline
| * | | OpenGL: Make OpenGL object resource wrappers fully inlineYuri Kunde Schlesner2015-07-263-143/+79
| | | | | | | | | | | | | | | | | | | | The functions are so simple that having them separate only bloats the code and hinders optimization.
* | | | Merge pull request #992 from yuriks/hot-path-debugbunnei2015-07-265-13/+18
|\ \ \ \ | | | | | | | | | | VideoCore: #ifdef out some debugging routines
| * | | | VideoCore: #ifdef out some debugging routinesYuri Kunde Schlesner2015-07-265-13/+18
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Some disabled debugging functionality was being called from rendering routines in VideoCore. Although disabled, many of them still allocated memory or did some extra work that was enough to show up in a profiler. Gives a slight (~2ms) speedup.
* | | | Merge pull request #987 from yuriks/regnamesTony Wasserka2015-07-262-65/+72
|\ \ \ \ | |_|_|/ |/| | | Videocore: Don't reinitialize register name map on every query.
| * | | Videocore: Don't reinitialize register name map on every queryYuri Kunde Schlesner2015-07-262-65/+72
| |/ / | | | | | | | | | This greatly speeds up the command list debug widget.
* | | Videocore: Simplify variables in vertex shader interpreterYuri Kunde Schlesner2015-07-261-24/+21
| | | | | | | | | | | | Simplifies the code and gives a tiny speed-up.
* | | Videocore: Replace std::stack in shader interpreter with static_vectorYuri Kunde Schlesner2015-07-261-6/+6
|/ / | | | | | | Shaves off 1/3rd of the vertex shader time in Fire Emblem
* | Address error that remained in last mergeYuri Kunde Schlesner2015-07-251-1/+1
| |
* | Merge pull request #892 from zawata/another-warning-fixesYuri Kunde Schlesner2015-07-253-18/+18
|\ \ | | | | | | Yet More Warning Fixes
| * | Vertex Shader : Undo castingzawata2015-07-191-1/+1
| | |
| * | Video_Core : Type fixeszawata2015-07-192-2/+2
| | |
| * | Video_Core: Finally fix pesky warningzawata2015-07-191-1/+1
| | |
| * | Video_Core : Change Tabs to Spaceszawata2015-07-191-0/+15
| | | | | | | | | | | | | | | | | | | | | This really should be universalized, I keep getting errors creating commits because lines I've edited use tabs instead of spaces(and yes I did read the contributing guide and i know they are supposed to be spaces)
| * | Video_Core : Fix Conversion Warningszawata2015-07-193-18/+3
| | |
* | | Merge pull request #980 from Subv/more_breakpointsTony Wasserka2015-07-242-4/+7
|\ \ \ | |_|/ |/| | Qt/GPU Breakpoints: Added three more breakpoint types.
| * | Qt/GPU Breakpoints: Added three more breakpoint types:Subv2015-07-232-4/+7
| | | | | | | | | | | | | | | | | | * IncomingDisplayTransfer: Triggered just before a display transfer is performed. * GSPCommandProcessed: Triggered right after a GSP command is processed. * BufferSwapped: Triggered when the frames flip
* | | Merge pull request #977 from yuriks/glenable-tex2dbunnei2015-07-231-8/+5
|\ \ \ | | | | | | | | GL Renderer: Remove erroneous glEnable(GL_TEXTURE_2D) calls
| * | | GL Renderer: Remove erroneous glEnable(GL_TEXTURE_2D) callsYuri Kunde Schlesner2015-07-221-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In OpenGL 3, texturing is always enabled, and this call is invalid. While it produced no effect in the rest of the execution, it wouldn't have the intended effect of disabling texturing for that unit. Instead bind a null texture to the unit.
* | | | Rasterizer/GL: Set the border color when binding a texture.Subv2015-07-231-2/+9
| |/ / |/| |
* | | Merge pull request #968 from Subv/texture_filteringbunnei2015-07-224-3/+37
|\ \ \ | |/ / |/| | GPU: Added registers for min and mag texture filters
| * | GPU: Added registers for min and mag texture filters and implemented them in the hw renderer.Subv2015-07-214-3/+37
| | |
* | | Merge pull request #929 from neobrain/geoshader_definitionsTony Wasserka2015-07-215-149/+162
|\ \ \ | |/ / |/| | Pica/Shader: Add geometry shader definitions.
| * | Pica/Shader: Add geometry shader definitions.Tony Wasserka2015-07-155-149/+162
| | |
* | | Merge pull request #944 from Subv/spambunnei2015-07-201-3/+7
|\ \ \ | | | | | | | | GLRasterizer: Don't try to get a pointer to the depth buffer if it doesn't exist.
| * | | GLRasterizer: Don't try to get a pointer to the depth buffer if it doesn't exist.Subv2015-07-191-3/+7
| | | |
* | | | Pica: Correct switched S/T texture wrapping registersYuri Kunde Schlesner2015-07-201-2/+2
| | | | | | | | | | | | | | | | This was found and hwtested by Lectem
* | | | Pica: Fix DP3 instruction, which wasn't assigning to the w componentYuri Kunde Schlesner2015-07-201-1/+1
|/ / /
* | / Rasterizer/Textures: Fixed a bug where the I4 format would get twice the real stride.Subv2015-07-191-0/+1
| |/ |/| | | | | Also added its name to the texture viewer widget
* | Merge pull request #931 from neobrain/move_default_attr_handlerTony Wasserka2015-07-151-40/+40
|\ \ | | | | | | Pica/CommandProcessor: Move default attribute setup to the proper position.
| * | Pica/CommandProcessor: Move default attribute setup to the proper position.Tony Wasserka2015-07-151-40/+40
| |/
* / Pica/Clipper: Output proper number of triangles in debugging logs.Tony Wasserka2015-07-151-1/+1
|/
* VideoCore: Implement the DOT3_RGB combinerLectem2015-07-142-1/+13
|
* Pica: Implement stencil testing.Tony Wasserka2015-07-132-12/+173
|
* Clean up command_processor.cpp.Tony Wasserka2015-07-131-22/+27
|
* Add CiTrace recording support.Tony Wasserka2015-07-133-2/+63
| | | | | | This is exposed in the GUI as a new "CiTrace Recording" widget. Playback is implemented by a standalone 3DS homebrew application (which only runs reliably within Citra currently; on an actual 3DS it will often crash still).
* Merge pull request #907 from Lectem/clamp_to_borderTony Wasserka2015-07-123-13/+28
|\ | | | | Add GL_CLAMP_TO_BORDER support.
| * Added GL_CLAMP_TO_BORDER supportLectem2015-07-093-13/+28
| |
* | Core: Cleanup hw includes.Emmanuel Gil Peyrot2015-06-285-4/+13
| |
* | Core, VideoCore: Replace or fix exit() calls.Emmanuel Gil Peyrot2015-06-281-6/+9
| |
* | CitraQt: Cleanup includes.Emmanuel Gil Peyrot2015-06-283-5/+10
| |
* | Common: Cleanup emu_window includes.Emmanuel Gil Peyrot2015-06-283-10/+8
| |
* | Common: Cleanup key_map includes.Emmanuel Gil Peyrot2015-06-282-3/+9
|/
* VideoCore: Fix floating point warningzawata2015-06-271-1/+1
|
* VideoCore: Log the GL driver’s vendor and renderer.Emmanuel Gil Peyrot2015-06-161-0/+2
|
* video_core: add extra braces around initializerYuri Kunde Schlesner2015-06-141-3/+3
| | | | Trivial change and fixes several warnings in the clang build.
* Renderer formatting editstfarley2015-06-092-26/+29
|
* Render-to-texture flush, interval math fixtfarley2015-06-091-1/+13
|
* Liberal texture unbind (clout menu)tfarley2015-06-092-4/+40
|
* Depth format fix (crush3d intro/black screens)tfarley2015-06-091-46/+46
|
* Implemented glColorMasktfarley2015-06-093-0/+24
|
* Merge pull request #811 from archshift/commonifyarchshift2015-05-319-865/+9
|\ | | | | Commonify video_core utility headers
| * Move video_core/color.h to common/color.harchshift2015-05-305-218/+4
| |
| * Move video_core/math.h to common/vector_math.harchshift2015-05-307-648/+6
| | | | | | | | The file only contained vector manipulation code, and such widely-useable code doesn't belong in video_core.
* | Pica: Use zero for the SecondaryFragmentColor source.bunnei2015-05-313-11/+21
| | | | | | | | - This is a workaround until we support fragment lighting.
* | rasterizer: Remove unnecessary 'using' for BlendEquation.bunnei2015-05-311-2/+1
| |
* | Pica: Implement LogicOp function.bunnei2015-05-317-8/+135
| |
* | rasterizer: Implement AddSigned combiner function for alpha channel.bunnei2015-05-311-0/+7
| |
* | vertex_shader: Use address offset on src2 in inverted mode.bunnei2015-05-311-3/+3
| |
* | Pica: Implement command buffer execution registers.bunnei2015-05-312-44/+76
| |
* | vertex_shader: Implement SLT/SLTI instructions.bunnei2015-05-311-4/+10
| |
* | vertex_shader: Implement MIN instruction.bunnei2015-05-311-0/+9
|/
* Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot2015-05-2911-25/+25
|
* gl_state: Remove unnecessary const specifier on ApplyLioncash2015-05-232-2/+2
|
* video_core/utils: Remove unused variables in GetMortonOffsetLioncash2015-05-231-3/+0
|
* Pica: Create 'State' structure and move state memory there.bunnei2015-05-2312-428/+451
|
* gl_state: Fix a condition typo in ApplyLioncash2015-05-231-1/+1
|
* OpenGL renderertfarley2015-05-2321-44/+2196
|
* Merge pull request #772 from lioncash/warnbunnei2015-05-181-1/+1
|\ | | | | core/video_core: Fix a few warnings when compiling on MSVC.
| * pica: Add the ULL specifier in IsDefaultAttributeLioncash2015-05-141-1/+1
| | | | | | | | This is necessary otherwise there are warnings about a 32-bit result being casted to a 64-bit value.
* | GPU/DefaultAttributes: Clear up a comment in command_processorSubv2015-05-171-2/+2
| |
* | GPU/DefaultAttributes: Let the attribute data from the loaders overwrite the default attributes, if set.Subv2015-05-171-21/+23
| | | | | | | | closes #735
* | Memmap: Re-organize memory function in two filesYuri Kunde Schlesner2015-05-154-5/+3
|/ | | | | | | memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory.
* GPU: Add more fine grained profiling for vertex shader and rasterizationYuri Kunde Schlesner2015-05-122-0/+10
|
* Implement I4 texture formatarchshift2015-05-112-1/+12
| | | | | | @neobrain, could you confirm that this is correct? It's been tested with various different games and fixes different textures, including in Animal Crossing, Kirby Triple Deluxe, and SMB3D.
* rasterizer: Implemented combiner output scaling.bunnei2015-05-102-2/+16
|
* rasterizer: Implemented AddSigned combiner op.bunnei2015-05-101-0/+10
|
* rasterizer: Fixed a depth testing bug.bunnei2015-05-102-6/+19
|
* rasterizer: Implement combiner buffer input.bunnei2015-05-102-4/+53
|
* rasterizer: Return zero'd vectors on error conditions.bunnei2015-05-101-3/+3
|
* vertex_shader: Implement FLR instruction.bunnei2015-05-101-0/+9
|
* vertex_shader: Implement MADI instruction.bunnei2015-05-101-4/+7
| | | | nihstro: Update submodule to latest upstream/master to support MADI instruction decoding.
* Memory: Add GetPhysicalPointer helper functionYuri Kunde Schlesner2015-05-093-11/+11
|
* Memory: Support more regions in the VAddr-PAddr translation functionsYuri Kunde Schlesner2015-05-093-18/+7
| | | | | Also adds better documentation and removes the one-off reimplementation of the function in pica.h.
* Memory: Re-organize and rename memory area address constantsYuri Kunde Schlesner2015-05-091-1/+1
|
* Merge pull request #721 from yuriks/more-cleanupsYuri Kunde Schlesner2015-05-076-3/+8
|\ | | | | More cleanups
| * Common: Remove common.hYuri Kunde Schlesner2015-05-076-3/+8
| |
* | Merge pull request #695 from Subv/crash_fbunnei2015-05-074-68/+137
|\ \ | |/ |/| GPU: Implemented default vertex shader attributes.
| * GPU: Implemented default vertex shader attributes.Subv2015-05-074-68/+137
| | | | | | | | Fixes some games crashing.
* | VideoCore: Remove a superfluous auto variable declaration in debug_utils.Emmanuel Gil Peyrot2015-04-291-1/+1
| |
* | Silence some -Wsign-compare warnings.Rohit Nirmal2015-04-101-2/+2
|/
* Changed occurences of colour to color for consistencyGareth Higgins2015-04-052-4/+4
|
* Allow the user to set the background clear color during emulationarchshift2015-04-041-1/+2
| | | | The background color can be seen at the sides of the bottom screen or when the window is wider than normal.
* Merge pull request #652 from neobrain/shader_output_fixbunnei2015-03-161-20/+24
|\ | | | | Pica/VertexShader: Fix a bug caused due to incorrect assumptions of consecutive output register tables.
| * Pica/VertexShader: Fix a bug caused due to incorrect assumptions of consecutive output register tables.Tony Wasserka2015-03-121-20/+24
| | | | | | | | We now write create a temporary buffer for output registers and copy all of them to the actual output vertex structure after the shader has run. This is technically not necessary, but it's easier to vectorize in the future.
* | VideoCore: Add static_cast around expressions where the compiler doesn’t deduce the right type.Emmanuel Gil Peyrot2015-03-162-4/+4
|/
* Merge pull request #629 from archshift/lcdfbbunnei2015-03-102-11/+48
|\ | | | | Implement SetLcdForceBlack and add implementation for color filling in the GPU code
| * Added LCD registers, and implementation for color filling in OGL code.archshift2015-03-092-11/+48
| |
* | Merge pull request #643 from Subv/dem_feelsbunnei2015-03-103-13/+134
|\ \ | | | | | | GPU: Implemented more depth buffer formats.
| * | GPU: Added the stencil test structure to the Pica Regs struct.Subv2015-03-103-50/+65
| | |
| * | GPU: Implemented more depth buffer formats.Subv2015-03-103-9/+115
| | | | | | | | | | | | This fixes the horizontal lines in Picross E, Cubic Ninja, Cave Story 3D and possibly others
* | | Pica/PrimitiveAssembly: Fix triangle strips and fans being generated with incorrect winding order.Tony Wasserka2015-03-091-6/+3
| | |
* | | Update nihstro submodule to the initial release version.archshift2015-03-081-37/+38
| | | | | | | | | | | | Includes more opcodes to implement in the future.
* | | Merge pull request #636 from bunnei/refactor-screen-winbunnei2015-03-083-43/+9
|\ \ \ | |/ / |/| | Set framebuffer layout from EmuWindow.
| * | Set framebuffer layout from EmuWindow.bunnei2015-03-073-43/+9
| |/
* | GPU/Textures: Fixed ETC texture decoding.Subv2015-03-071-1/+1
| |
* | Merge pull request #538 from yuriks/perf-statTony Wasserka2015-03-072-0/+18
|\ \ | |/ |/| Add profiling infrastructure and widget
| * Add profiling infrastructure and widgetYuri Kunde Schlesner2015-03-022-0/+18
| |
* | GPU: Added RGB565/RGB8 framebuffer support and various cleanups.bunnei2015-03-045-85/+155
|/ | | | | | - Centralizes color format encode/decode functions. - Fixes endianness issues. - Implements remaining framebuffer formats in the debugger.
* Added RGBA5551 compatibility in the rasterizerarchshift2015-02-283-2/+41
| | | | This allows Virtual Console games to display properly.
* GPU: Implemented bits 3 and 1 from the display transfer flags.Subv2015-02-273-54/+91
| | | | | Bit 3 is used to specify a raw copy, where no processing is done to the data, seems to behave exactly as a DMA. Bit 1 is used to specify whether to convert from a tiled format to a linear format or viceversa.
* Video core: Fix A4 texture decodingYuri Kunde Schlesner2015-02-261-2/+2
| | | | | | | | | It was trying to take the LSB from `coarse_x`, which would always be 0 and thus would always return the same texel from each byte. To add insult to the injury, the conditional was actually the wrong way around too. Fixes blocky text in OoT.
* Video core: Fix pixelation/blockiness in textures.Yuri Kunde Schlesner2015-02-261-3/+3
| | | | | | This was caused during morton decoding by me not masking the bits of each coordinate before merging them, so the bits from x could set bits in y if it was >255.
* Rasterizer: Add support for RGBA4 framebuffer format.bunnei2015-02-251-0/+21
|
* Rasterize with the correct color component order.bunnei2015-02-221-11/+24
| | | | - Fixes a regression with #594.
* Merge pull request #593 from Subv/search_problemTony Wasserka2015-02-221-1/+4
|\ | | | | Pica/VertexShader: Fixed LOOP with more than one iteration.
| * Pica/VertexShader: Fixed LOOP with more than one iteration.Subv2015-02-211-1/+4
| | | | | | | | | | Previously it wouldn't jump back to the start of the loop code once it reached the end of the block. Fixes the texture problems in a lot of games.
* | Merge pull request #588 from archshift/somebranchbunnei2015-02-201-11/+0
|\ \ | |/ |/| Sweeping cleanup of Common
| * Remove duplication of INSERT_PADDING_WORDS between pica.h and gpu.harchshift2015-02-201-11/+0
| |
* | Rasterizer: Fixed a warning in GetWrappedTexCoord.Subv2015-02-191-4/+4
|/ | | | Redeclaring the variable inside the switch was causing weird behavior.
* Merge pull request #580 from lioncash/emplacebunnei2015-02-182-4/+4
|\ | | | | core/video_core: Use in-place construction where possible
| * core/video_core: Use in-place construction where possibleLioncash2015-02-172-4/+4
| |
* | Pica/Rasterizer: Replace exit() calls with UNIMPLEMENTED().Tony Wasserka2015-02-181-5/+5
| |
* | Pica/Rasterizer: Make some local lambdas static.Tony Wasserka2015-02-181-8/+8
| |
* | Pica/BlendUnit: Implement separate color/alpha blend equations.Tony Wasserka2015-02-182-65/+59
| |
* | Pica/TextureEnvironment: Add a note.Tony Wasserka2015-02-181-0/+4
| |
* | Pica/TextureEnvironment: Treat texture combiner source 1 as the PrimaryColor.Tony Wasserka2015-02-182-0/+4
| | | | | | | | Not really sure where the difference is, but some applications seem to use this 1:1 the same way...
* | Pica/TextureEnvironment: Add support for the MAD-like texture combiners and clean up texture environment logic.Tony Wasserka2015-02-182-0/+28
| |
* | Pica/OutputMerger: Fix flipped framebuffers.Tony Wasserka2015-02-181-0/+10
| |
* | Pica/TextureUnit: Implement mirrored repeating texture wrapping.Tony Wasserka2015-02-182-3/+12
| |
* | Pica: Fix a bug in the register definitions, relating to texture wrapping.Tony Wasserka2015-02-182-2/+2
| |
* | Pica/OutputMerger: Implement color format checking.Tony Wasserka2015-02-182-4/+13
| |
* | Pica/Rasterizer: Rasterize actual pixel centers instead of pixel corners.Tony Wasserka2015-02-181-2/+3
| |
* | Pica/Rasterizer: Fix garbage pixels at triangle borders.Tony Wasserka2015-02-181-1/+3
| |
* | Pica/Rasterizer: Clean up and fix backface culling.Tony Wasserka2015-02-181-11/+27
| |
* | Pica: Cleanup clipping code and change screenspace z to range from -1..0.Tony Wasserka2015-02-182-53/+42
| | | | | | | | The change in depth range seems to reflect better to what applications are expecting, and makes for cleaner code overall (hence is more likely to reflect hardware behavior).
* | Pica/VertexShader: Implement the LOOP instruction.Tony Wasserka2015-02-181-14/+36
| |
* | Pica/CommandProcessor: Properly implement shader load destination offset registers.Tony Wasserka2015-02-182-20/+10
| |
* | Pica/CommandProcessor: Work around initialized vertex attributes some more.Tony Wasserka2015-02-181-2/+8
| |
* | VideoCore: Fix a typo in Vec4 MakeVec(T, Vec3<T>), where the second argument was Vec2<T> instead.Emmanuel Gil Peyrot2015-02-161-1/+1
| |
* | video_core: Implement the remaining framebuffer formats in the OpenGL renderer.Emmanuel Gil Peyrot2015-02-152-12/+67
|/
* Merge pull request #529 from Subv/masterbunnei2015-02-142-3/+3
|\ | | | | Build: Fixed some warnings
| * Build: Fixed some warningsSubv2015-02-122-3/+3
| |
* | Fix Min and Max blend equationsDarius Goad2015-02-111-6/+8
|/
* Asserts: break/crash program, fit to style guide; log.h->assert.harchshift2015-02-118-23/+18
| | | | | | | Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft.
* Add more blend equations from 3dbrewDarius Goad2015-02-102-2/+49
|
* Rasterizer: Implement the other color and alpha modifiers.bunnei2015-02-052-58/+69
|
* VideoCore: Added same-component swizzlers to math utility functions.bunnei2015-02-051-16/+35
|
* Pica: Implement blend factors.bunnei2015-01-312-10/+67
|
* Pica: Implement color/alpha channel enable.bunnei2015-01-282-1/+12
|
* Rasterizer: Implemented alpha testing.bunnei2015-01-272-7/+52
|
* GPU: Implement the remaining depth testing functions.bunnei2015-01-262-3/+28
|
* GSP: Update framebuffer info on all interruptsYuri Kunde Schlesner2015-01-141-3/+1
| | | | | | | | | | Hardware testing determined that the GSP processes shared memory framebuffer update info even when no memory transfer or filling GX commands are used. They are now updated on every interrupt, which isn't confirmed correct but matches hardware behaviour more closely. This also reverts the hack introduced in #404. It made a few games behave better, but I believe it's incorrect and also breaks other games.
* Merge pull request #473 from archshift/pp3portsbunnei2015-01-142-14/+142
|\ | | | | Pica/Rasterizer: Add ETC1 texture decompression support.
| * Pica/Rasterizer: Add ETC1 texture decompression support.Tony Wasserka2015-01-132-14/+142
| |
* | Merge pull request #478 from archshift/pp3ports4bunnei2015-01-131-0/+69
|\ \ | | | | | | Pica/VertexShader: Implement the MAD instruction.
| * | Pica/VertexShader: Implement the MAD instruction.Tony Wasserka2015-01-131-0/+69
| |/
* / Pica/VertexShader: Implement JMPC/JMPU/CALLC/CALLU.Tony Wasserka2015-01-131-23/+52
|/
* GSP: Toggle active framebuffer each framebunnei2015-01-081-1/+4
|
* Pica/Rasterizer: Remove some redundant casts.Tony Wasserka2014-12-311-3/+3
|
* Pica/Rasterizer: Make orient2d a free function and rename it to SignedArea.Tony Wasserka2014-12-311-31/+38
|
* Pica: Cleanup color conversion.Tony Wasserka2014-12-312-18/+46
|
* VideoCore: Remove some unused functions.Tony Wasserka2014-12-311-26/+0
|
* Pica/Rasterizer: Fix a bug related to multitexturing and texture wrapping.Tony Wasserka2014-12-311-2/+2
|
* Pica/Rasterizer: Clean up long code lines.Tony Wasserka2014-12-311-4/+8
|
* Pica/VertexShader: Coding style fixes.Tony Wasserka2014-12-311-16/+8
|
* Pica/CommandProcessor: Cleanups.Tony Wasserka2014-12-311-3/+4
|
* Pica/CommandProcessor: Workaround games not setting the input position's w component.Tony Wasserka2014-12-311-0/+14
|
* Pica/Rasterizer: Implement backface culling.Tony Wasserka2014-12-312-10/+36
|
* Pica/Rasterizer: Textures seem to be laid out flipped vertically.Tony Wasserka2014-12-311-1/+1
| | | | Not sure if this is a correct fix. Probably should instead change the decoding logic itself.
* Pica/DebugUtils: Fix a bug in RGBA4 texture decoding.Tony Wasserka2014-12-311-2/+2
|
* Pica/Rasterizer: Implement alpha blending.Tony Wasserka2014-12-311-0/+84
|
* Pica/Rasterizer: Implement depth testing.Tony Wasserka2014-12-312-6/+34
|
* Pica/Rasterizer: Further enhance Tev support.Tony Wasserka2014-12-311-4/+19
|
* Pica: Add output merger definitions.Tony Wasserka2014-12-311-1/+56
|
* Pica: Fix A4, IA4 and IA8 texture formats.Tony Wasserka2014-12-311-13/+7
| | | | Both IA4 and IA8 had their component order mixed up. Additionally, IA4 used the wrong number of nibbles per texel. A4 skipped every second texel.
* Pica/CommandProcessor: Add support for integer uniforms.Tony Wasserka2014-12-314-1/+30
|
* Rasterizer: Pre-divide vertex attributes by WYuri Kunde Schlesner2014-12-293-8/+32
| | | | | Execute the division-by-W for perspective-correct interpolation of values in the clipper, moving them out of the rasterization inner loop.
* GPU: Bitwise texture swizzlingYuri Kunde Schlesner2014-12-291-27/+24
| | | | | | Replace the loop-based texture address swizzling code by a bit-twiddling implementation, providing a very small speed up. Also simplify addressing code.
* Rasterizer: Common sub-expression eliminationYuri Kunde Schlesner2014-12-291-14/+17
| | | | | Move the computation of some values out of loops so that they're not constantly recalculated even when they don't change.
* Clipper: Compact buffers on each clipping passYuri Kunde Schlesner2014-12-291-28/+27
| | | | | | Use a new buffer management scheme in the clipper that allows using a bounded minimal amount of buffer space. Even though it copies more data it is still slightly faster likely due to using less cache.
* Clipper: Avoid dynamic allocationsYuri Kunde Schlesner2014-12-291-10/+7
| | | | | | The triangle clipper was allocating its temporary input, output and work buffers using a std::vector. Since this is a hot path, it's desirable to use stack allocation instead.
* Vertex Shader: Zero OutputVertex to avoid denormalsYuri Kunde Schlesner2014-12-291-0/+4
| | | | | | | | | Unused OutputVertex attributes were being left un-initialized. The leftover garbage sometimes decoded as floating-point denormalized values, causing fallbacks to microcode and massive slowdowns in the rest of the rasterization pipeline even though the results were unused. By zeroing the structure we ensure these attributes only contain harmless zeros.
* GPU: Implement frameskip and remove forced framebuffer swap hack.bunnei2014-12-291-0/+5
|
* Merge pull request #327 from Apology11/masterbunnei2014-12-271-4/+4
|\ | | | | Fix visual studio ambiguous symbol error
| * Fix visual studio ambiguous symbol errorApology112014-12-211-4/+4
| |
* | Merge pull request #322 from chinhodado/masterbunnei2014-12-222-7/+7
|\ \ | | | | | | More warning cleanups
| * | More warning cleanupsChin2014-12-212-7/+7
| |/
* | Merge pull request #291 from purpasmart96/licensebunnei2014-12-2123-23/+23
|\ \ | |/ |/| License change
| * License changepurpasmart962014-12-2123-23/+23
| |
* | Pica/VertexShader: Promote a log message to critical status.Tony Wasserka2014-12-201-1/+1
| |
* | Pica/VertexShader: Small optimization.Tony Wasserka2014-12-201-7/+7
| |
* | Pica/VertexShader: Be robust against invalid inputs.Tony Wasserka2014-12-201-2/+9
| | | | | | | | More specifically, this also fixes crashes by Citra trying to load a src2 register even if the current instruction does not use that.
* | Pica/VertexShader: Clarify a comment.Tony Wasserka2014-12-201-1/+3
| |
* | Pica/DebugUtils: Further cleanups to LookupTexture.Tony Wasserka2014-12-201-7/+7
| |
* | Pica/DebugUtils: Fix two warnings.Tony Wasserka2014-12-201-2/+2
| |
* | Pica/DebugUtils: Better document LookupTexture.Tony Wasserka2014-12-202-7/+16
| |
* | Pica/Rasterizer: Get rid of C-style casts.Tony Wasserka2014-12-201-4/+4
| |
* | Pica/DebugUtils: Make a number of variables static.Tony Wasserka2014-12-201-13/+13
| | | | | | | | Makes for cleaner and faster code.
* | Pica/VertexShader: Cleanup flow control logic and implement CMP/IFU instructions.Tony Wasserka2014-12-201-50/+56
| |
* | Pica/VertexShader: Run instruction handlers according to the effective opcode.Tony Wasserka2014-12-201-1/+1
| | | | | | | | This allows for proper emulation of the different CMP/LRP/MAD instructions.
* | Pica/VertexShader: Implement MAX instructions.Tony Wasserka2014-12-201-0/+9
| |
* | Pica: Add support for boolean uniforms.Tony Wasserka2014-12-204-2/+21
| |
* | Pica/VertexShader: Add support for MOVA, CMP and IFC.Tony Wasserka2014-12-202-7/+138
| |
* | Pica/VertexShader: Move code around a bit.Tony Wasserka2014-12-201-42/+58
| |
* | Pica/VertexShader: Some cleanups using std::array.Tony Wasserka2014-12-202-5/+19
| |
* | Pica/VertexShader: Support negating src2.Tony Wasserka2014-12-202-3/+9
| |
* | Pica/DebugUtils: Replace duplicated SHBIN structures in favor of nihstro's ones.Tony Wasserka2014-12-201-61/+8
| |
* | Pica/VertexShader: Remove (now) duplicated shader bytecode definitions in favor of nihstro's ones.Tony Wasserka2014-12-202-222/+30
| |
* | Pica/DebugUtils: Add an event triggered after loading a vertex.Tony Wasserka2014-12-202-0/+4
| |
* | Pica/PrimitiveAssembly: Implement triangle strips.Tony Wasserka2014-12-202-8/+16
| |
* | Pica/CommandProcessor: Add a safety check for invalid (?) GPU configurations.Tony Wasserka2014-12-201-0/+7
| |
* | Pica/CommandProcessor: Fix vertex decoding if multiple memory areas are accessed for different attributes.Tony Wasserka2014-12-201-7/+8
| |
* | Add support for a ridiculous number of texture formats.Tony Wasserka2014-12-202-7/+80
| |
* | Pica: Unify ugly address translation hacks.Tony Wasserka2014-12-205-16/+25
| |
* | Pica: Further improve Tev emulation.Tony Wasserka2014-12-203-12/+51
| |
* | Pica: Merge texture lookup logic for DebugUtils and Rasterizer.Tony Wasserka2014-12-203-55/+41
| | | | | | | | This effectively adds support for a lot texture formats in the rasterizer.
* | Pica: Implement texture wrapping.Tony Wasserka2014-12-202-2/+31
| |
* | Pica/DebugUtils: Add support for RGBA8, RGBA5551, RGBA4 and A8 texture formats.Tony Wasserka2014-12-202-3/+48
| |
* | Pica: Initial support for multitexturing.Tony Wasserka2014-12-203-24/+83
| |
* | Clean up some warningsChin2014-12-201-2/+2
| |
* | Properly erase/remove an observerchinhodado2014-12-191-1/+1
|/
* Convert old logging calls to new logging macrosYuri Kunde Schlesner2014-12-1310-38/+50
|
* Merge pull request #267 from bunnei/apt-shared-fontbunnei2014-12-131-2/+2
|\ | | | | APT shared font loading
| * MemMap: Renamed "GSP" heap to "linear", as this is not specific to GSP.bunnei2014-12-121-2/+2
| | | | | | | | - Linear simply indicates that the mapped physical address is always MappedVAddr+0x0C000000, thus this memory can be used for hardware devices' DMA (such as the GPU).
* | Merge pull request #261 from neobrain/boostTony Wasserka2014-12-121-6/+10
|\ \ | |/ |/| Add Boost as a submodule and add some minor cleanups using Boost.Range
| * Integrate Boost into build system and perform a trivial cleanup in vertex_shader.cpp.Tony Wasserka2014-12-071-6/+10
| |
* | GSP: Trigger GPU interrupts at more accurate locations.bunnei2014-12-102-1/+15
| |
* | GPU: Fixed bug in command list size decoding.bunnei2014-12-101-1/+2
| |
* | Pica: Re-enable command names on MSVC.Tony Wasserka2014-12-091-5/+0
| | | | | | | | The affected code is no longer limited by compiler support on that platform.
* | More coding style fixes.Tony Wasserka2014-12-091-6/+12
| |
* | Some code cleanup.Tony Wasserka2014-12-091-3/+1
| |
* | citra_qt: Add enhanced texture debugging widgets.Tony Wasserka2014-12-093-1/+30
| | | | | | | | Double-clicking a texture parameter command in the pica command lists will spawn these as a new tab in the pica command list dock area.
* | citra-qt: Add texture viewer to Pica command list.Tony Wasserka2014-12-092-21/+45
| | | | | | | | The texture viewer is enabled when selecting a write command to one of the texture config registers.
* | Pica/DebugUtils: Add breakpoint functionality.Tony Wasserka2014-12-093-0/+189
| |
* | Build fix for something which shouldn't have compiled successfully to begin with.Tony Wasserka2014-12-091-1/+1
|/
* Change NULLs to nullptrs.Rohit Nirmal2014-12-032-7/+7
|
* Merge pull request #236 from rohit-n/sign-comparebunnei2014-12-033-6/+6
|\ | | | | Silence a few -Wsign-compare warnings.
| * Silence a few -Wsign-compare warnings.Rohit Nirmal2014-12-013-6/+6
| |
* | Fixed viewport error caused by roundingvaguilar2014-11-301-2/+2
|/
* Remove tabs in all files except in skyeye imports and in generated GL codeEmmanuel Gil Peyrot2014-11-194-14/+14
|
* Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generatedEmmanuel Gil Peyrot2014-11-192-3/+3
|
* OpenGL Renderer: Cleanup viewport extent calculation.Tony Wasserka2014-11-182-44/+29
|
* Fixup EmuWindow interface and implementations thereof.Tony Wasserka2014-11-181-3/+3
|
* Viewport scaling and display density independenceKevin Hartman2014-11-182-1/+50
| | | | | The view is scaled to be as large as possible, without changing the aspect, within the bounds of the window. On "retina" displays, or other displays where window units != pixels, the view should no longer draw incorrectly.
* Merge pull request #195 from lioncash/controlTony Wasserka2014-11-161-1/+1
|\ | | | | vertex_shader: Fix control reaches end of function warning
| * vertex_shader: Fix control reaches end of function warningLioncash2014-11-161-1/+1
| |
* | Fix two format strings.Lioncash2014-11-141-2/+2
|/
* Merge pull request #162 from SeannyM/warning-fixesbunnei2014-10-302-3/+3
|\ | | | | Fix some warnings
| * Fix some warningsSean2014-10-302-3/+3
| |
* | Renamed souce files of services to match port namesGareth Poole2014-10-291-1/+1
|/
* Add `override` keyword through the code.Yuri Kunde Schlesner2014-10-261-4/+4
| | | | This was automated using `clang-modernize`.
* Only check OpenGL shader log if size is >1.Yuri Kunde Schlesner2014-10-211-9/+6
| | | | | | | | This prevents a crash when the buffer size returned by the driver is 0, in which case no space is allocated to store even the NULL byte and glGetShaderInfoLog errors out. Thanks to @Relys for the bug report.
* Rework OpenGL renderer.Yuri Kunde Schlesner2014-10-124-233/+193
| | | | | | | | | The OpenGL renderer has been revised, with the following changes: - Initialization and rendering have been refactored to reduce the number of redundant objects used. - Framebuffer rotation is now done directly, using texture mapping. - Vertex coordinates are now given in pixels, and the projection matrix isn't hardcoded anymore.
* OpenGL renderer: Shuffle initialization code around and rename functions.Yuri Kunde Schlesner2014-10-122-25/+18
|
* Remove virtual inheritance from RendererOpenGLYuri Kunde Schlesner2014-10-122-3/+3
| | | | Also make destructor virtual so that instances are properly destructed.
* Fix warnings in video_coreLioncash2014-10-087-23/+23
|
* Common: Rename the File namespace to FileUtil, to match the filename and prevent collisions.Emmanuel Gil Peyrot2014-09-171-1/+1
|
* Merge pull request #110 from lioncash/warningsbunnei2014-09-151-1/+1
|\ | | | | Core: Fix warnings in gpu.cpp
| * Core: Fix warnings in gpu.cppLioncash2014-09-141-1/+1
| |
* | Merge pull request #97 from archshift/cleanupbunnei2014-09-144-44/+29
|\ \ | |/ |/| Small, general code cleanup
| * renderer_opengl.cpp: improved alignment for readabilityarchshift2014-09-071-16/+16
| |
| * Dead code removal: video_core.cpp, load_symbol_map.cpparchshift2014-09-071-7/+0
| |
| * utils: cleaned up DumpTGA, removing redundanciesarchshift2014-09-072-21/+13
| |
* | Added support for multiple input device types for KeyMap and connected Qt.Kevin Hartman2014-09-121-0/+1
| |
* | Moved common_types::Rect from common to Common namespacearchshift2014-09-092-3/+3
|/
* Remove hand-crafted Visual Studio solution.Yuri Kunde Schlesner2014-09-012-217/+0
|
* CMake cleanupYuri Kunde Schlesner2014-09-011-13/+26
| | | | | | | | Several cleanups to the buildsystem: - Do better factoring of common libs between platforms. - Add support to building on Windows. - Remove Qt4 support. - Re-sort file lists and add missing headers.
* Replace GLEW with a glLoadGen loader.Yuri Kunde Schlesner2014-09-0110-13/+2819
| | | | | | | | | This should fix the GL loading errors that occur in some drivers due to the use of deprecated functions by GLEW. Side benefits are more accurate auto-completion (deprecated function and symbols don't exist) and faster pointer loading (less entrypoints to load). In addition it removes an external library depency, simplifying the build system a bit and eliminating one set of binary libraries for Windows.
* Downgrade GLSL version to 1.50 (compatible with GL 3.2)Yuri Kunde Schlesner2014-08-283-10/+15
|
* VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size.bunnei2014-08-264-8/+15
|
* Rewrite of OpenGL renderer, including OS X supportKevin Hartman2014-08-268-211/+340
| | | | | | Screen contents are now displayed using textured quads. This can be updated to expose an FBO once an OpenGL backend for when Pica rendering is being worked on. That FBO's texture can then be applied to the quads. Previously, FBO blitting was used in order to display screen contents, which did not work on OS X. The new textured quad approach is less of a compatibility risk.
* Pica/Rasterizer: Clarify a TODO.Tony Wasserka2014-08-251-1/+3
|
* Pica/VertexShader: Fix a bug in the call stack handling.Tony Wasserka2014-08-251-2/+3
|
* Math: Warning fixes.Tony Wasserka2014-08-251-14/+23
|
* Pica: Consolidate the primitive assembly code in PrimitiveAssembly and GeometryDumper.Tony Wasserka2014-08-255-46/+74
|
* Pica/Rasterizer: Add texturing support.Tony Wasserka2014-08-253-18/+69
|
* Pica/DebugUtils: Add convenient tev setup printer.Tony Wasserka2014-08-253-0/+101
|
* Pica/Rasterizer: Add initial implementation of texture combiners.Tony Wasserka2014-08-252-2/+225
|
* Pica: Add support for dumping textures.Tony Wasserka2014-08-253-1/+177
|
* Pica/Math: Improved the design of the Vec2/Vec3/Vec4 classes and simplified rasterizer code accordingly.Tony Wasserka2014-08-253-98/+133
| | | | | | - Swizzlers now return const objects so that things like "first_vec4.xyz() = some_vec3" now will fail to compile (ideally we should support some vector holding references to make this actually work). - The methods "InsertBeforeX/Y/Z" and "Append" have been replaced by more versions of MakeVec, which now also supports building new vectors from vectors. - Vector library now follows C++ type promotion rules (hence, the result of Vec2<u8> with another Vec2<u8> is now a Vec2<int>).
* Pica/VertexShader: Fix a bug in the bitfield definitions and add the "negate" field for swizzlers.Tony Wasserka2014-08-252-14/+92
|
* Pica/citra-qt: Replace command list view and command list debugging code with something more sophisticated.Tony Wasserka2014-08-254-63/+78
|
* Pica/CommandProcessor: Implement parameter masking.Tony Wasserka2014-08-252-6/+25
|
* Pica: Add debug utilities for dumping shaders.Tony Wasserka2014-08-254-1/+227
|
* Pica: Add debug utility functions for dumping geometry data.Tony Wasserka2014-08-256-4/+123
|
* Fix the threading for GL Context in Qt5.Sacha2014-08-241-1/+0
| | | | Connect the emu_thread start/finish to a moveContext slot.
* Merge pull request #42 from archshift/glexpbunnei2014-08-131-3/+2
|\ | | | | Use glewExperimental to fix crashes with citra-glfw
| * Use glewExperimental on Linux in order to fix GLFW-modearchshift2014-08-121-3/+2
| |
* | float24: Remove private default constructorarchshift2014-08-131-2/+0
|/ | | | Fixes building with clang.
* Pica: Add basic rasterizer.Tony Wasserka2014-08-127-2/+260
|
* Pica: Add triangle clipper.Tony Wasserka2014-08-127-8/+230
|
* Pica: Add primitive assembly stage.Tony Wasserka2014-08-127-2/+95
|
* Pica: Add vertex shader implementation.Tony Wasserka2014-08-127-10/+722
|
* Pica: Implement vertex loading.Tony Wasserka2014-08-122-8/+102
|
* Pica: Add register definition for vertex loading and rendering.Tony Wasserka2014-08-121-33/+128
|
* Pica: Add command processor.Tony Wasserka2014-08-127-5/+107
|
* Pica: Add float24 structure.Tony Wasserka2014-08-121-0/+75
| | | | | 24-bit floating points are used internally for calculations on the GPU, however the current code will still emulate that with 32-bit floating points. In the future we might want to accurately perform the calculations with correct bitness in the future, but for now we just wrap the calculations around this class.
* Video core: Add utility class for vector operations.Tony Wasserka2014-08-124-1/+582
| | | | | I wrote most of this for ppsspp, so I hold full copyright over it. In addition to the original release in ppsspp, this provides functionality to easily extend e.g. two-dimensional vectors to three-dimensional vectors.
* Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones.Tony Wasserka2014-08-122-8/+8
| | | | | This cleans up the mess that address reading/writing had become and makes the code a *lot* more sensible. This adds a physical<->virtual address converter to mem_map.h. For further accuracy, we will want to properly extend this to support a wider range of address regions. For now, this makes simply homebrew applications work in a good manner though.
* Remove the fancy RegisterSet class introduced in 4c2bff61e.Tony Wasserka2014-08-122-100/+146
| | | | | While it was some nice and fancy template usage, it ultimately had many practical issues regarding length of involved expressions under regular usage as well as common code completion tools not being able to handle the structures. Instead, we now use a more conventional approach which is a lot more clean to use.
* GSP: Removed dumb GX prefixes to functions/structs in GSP namespace.bunnei2014-08-061-6/+6
| | | | - Various other cleanups.
* Use uniform formatting when printing hexadecimal numbers.Tony Wasserka2014-07-231-1/+1
|
* GSP: Clean up GX command processing a lot and treat command id as a u8 rather than a u32.Tony Wasserka2014-07-231-3/+2
| | | | Anonymous structs are not standard C++, hence don't use them.
* RegisterSet: Simplify code by using structs for register definition instead of unions.Tony Wasserka2014-07-231-9/+9
|
* GPU: Make use of RegisterSet.Tony Wasserka2014-07-231-26/+28
|
* Renderer: Fix component order in bottom framebuffer.Tony Wasserka2014-07-232-5/+4
|
* Renderer: Respect the active_fb GPU register.Tony Wasserka2014-07-231-2/+9
|
* Renderer: Add a few TODOs.Tony Wasserka2014-07-231-3/+10
|
* GPU debugger: Don't keep track of debugging data if no debugger views are active.Tony Wasserka2014-07-221-0/+6
|
* GPU debugger: Const correctness and build fix.Tony Wasserka2014-06-121-3/+3
|
* Preprocessor: #if's out OSX-specific GL changes on other platformsarchshift2014-06-121-0/+3
|
* Pica: Use some template magic to define register structures efficiently.Tony Wasserka2014-06-121-25/+102
|
* Further refine GPU command list debugging.Tony Wasserka2014-06-122-0/+17
|
* Refine command list debugging functionality and its qt interface.Tony Wasserka2014-06-122-8/+17
|
* citra-qt: Add command list view.Tony Wasserka2014-06-121-2/+2
|
* GPU debugger: Add functionality to inspect command lists.Tony Wasserka2014-06-121-1/+53
|
* video core: added PICA definitions file.Tony Wasserka2014-06-123-0/+37
|
* Rename LCD to GPU.Tony Wasserka2014-06-121-3/+3
|
* Add initial graphics debugger interface.Tony Wasserka2014-06-123-3/+102
|
* common_types: Changed BasicRect back to Rect, in the common namespacearchshift2014-05-202-3/+3
| | | | Only Rect is in the namespace for now; the rest of common should be added in the future
* Improved clarity and whitespacearchshift2014-05-202-3/+4
| | | | Changed QGL version to 3,2 in order to be less restrictive, yet it should still change up to 4,1 on OSX on Qt5.
* CMakeLists: rename HEADS, improved commentsarchshift2014-05-201-2/+2
| | | | Changes for clarity of comments, removed redundant compiler flags.
* Indent fixesarchshift2014-05-191-31/+31
|
* Merge remote-tracking branch 'upstream/master' into issue-7-fixarchshift2014-05-171-7/+6
|\
| * Update FlipFramebufferSethpaien2014-05-081-7/+6
| | | | | | Less calculations + fix
* | Fixed indentsarchshift2014-05-012-37/+35
| |
* | Reverse debugging changesarchshift2014-05-011-2/+0
| |
* | TGA dumps work, courtesy of @bunneiarchshift2014-05-012-36/+38
| |
* | OpenGL 3+ on OSX with GLFWarchshift2014-05-011-0/+2
| |
* | IT'S ALIVE!archshift2014-04-291-1/+6
| |
* | Xcode complains that the class name is redundant.archshift2014-04-281-1/+1
| |
* | Rect to BasicRectarchshift2014-04-282-3/+3
|/ | | | Somewhere along the line an OSX header had already taken the name Rect.
* removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable classbunnei2014-04-282-4/+1
|
* fixed renderer to use correct framebuffer locationbunnei2014-04-272-8/+7
|
* fixed GL context acquire (applies to Qt GUI only)bunnei2014-04-221-0/+2
|
* renamed hw_lcd module to just lcdbunnei2014-04-181-1/+1
|
* fixed framebuffer color orderbunnei2014-04-171-1/+1
|
* removed hard-coded framebuffer addresses from renderer_opengl.cppbunnei2014-04-171-2/+4
|
* cleaned up some logging messagesbunnei2014-04-111-1/+2
|
* fixed a bunch of errors in CMakeListsbunnei2014-04-101-3/+3
|
* updated CMakeListsbunnei2014-04-101-16/+2
|
* fixed project includes to use new directory structurebunnei2014-04-099-38/+39
|
* got rid of 'src' folders in each sub-projectbunnei2014-04-097-0/+0
|
* fixed license header in video_corebunnei2014-04-097-182/+23
|
* - removed lots of unused code from gekkobunnei2014-04-093-367/+110
| | | | - updated code style/naming conventions
* added support for renderering the external framebuffersbunnei2014-04-072-20/+147
|
* added external framebuffer GL handlesbunnei2014-04-071-2/+11
|
* added initial renderer codebunnei2014-04-067-19/+534
|
* added video_core project to solutionbunnei2014-04-058-0/+567