summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-06-19buffer_cache: Eliminate local variable shadowingLioncash
We can just make use of the instance in the scope above this one.
2020-06-19Merge pull request #4080 from ogniK5377/audren-RendererInfobunnei
audren: Implement RendererInfo
2020-06-18Merge pull request #4090 from MerryMage/macrojit-bugsbunnei
macro_jit_x64: Optimization correctness
2020-06-18Merge pull request #4081 from Morph1984/maxwell-to-gl-vkRodrigo Locatti
maxwell_to_gl/vk: Miscellaneous changes
2020-06-18arm_dynarmic_32: Fix implicit conversion error in SetTPIDR_EL0ReinUsesLisp
On MSVC builds we treat conversion warnings as errors.
2020-06-18vk_sampler_cache: Emulate GL_LINEAR/NEAREST minification filtersMorph
Emulate GL_LINEAR/NEAREST minification filters using minLod = 0 and maxLod = 0.25 during sampler creation
2020-06-18maxwell_to_vk: Reorder filter cases and correct mipmap_filter=NoneMorph
maxwell_to_vk: Reorder filtering modes to start with None, then Nearest, then Linear. maxwell_to_vk: Logs filter modes under UNREACHABLE_MSG instead of UNIMPLEMENTED_MSG, since any unknown filter modes are invalid and not unimplemented. maxwell_to_vk: Return VK_SAMPLER_MIPMAP_MODE_NEAREST instead of VK_SAMPLER_MIPMAP_MODE_LINEAR when mipmap_filter is None with the description from the VkSamplerCreateInfo(3) man page.
2020-06-18maxwell_to_gl: Miscellaneous changesMorph
maxwell_to_gl: Log unimplemented features under UNIMPLEMENTED_MSG instead of LOG_ERROR to bring into parity with maxwell_to_vk maxwell_to_gl: Deduplicate logging in VertexType(), merging them into one. maxwell_to_gl: Return GL_NEAREST instead of GL_LINEAR if an unknown texture filter mode is encountered. maxwell_to_gl: Log the mipmap filter mode if an unknown value is passed in. maxwell_to_gl: Reorder filtering modes to start with None, then Nearest, then Linear.
2020-06-18Merge pull request #4092 from Morph1984/image-bindingsRodrigo Locatti
gl_device: Reserve 4 image bindings for fragment stage
2020-06-17arm_dynarmic_cp15: Implement CNTPCTMerryMage
2020-06-17arm_dynarmic_cp15: Update CP15MerryMage
2020-06-17arm_dynarmic_32: InterpreterFallback should never happenMerryMage
2020-06-17Merge pull request #4086 from MerryMage/abibunnei
xbyak_abi: Cleanup
2020-06-17macro_jit_x64: Optimization implicitly assumes same destinationMerryMage
2020-06-17macro_jit_x64: Should not skip zero registers for certain ALU opsMerryMage
The code generated for these ALU ops assume src_a and src_b are always valid.
2020-06-16Merge pull request #4089 from MerryMage/macrojit-cleanup-1bunnei
macro_jit_x64: Cleanup
2020-06-16Merge pull request #4041 from ReinUsesLisp/arb-decompbunnei
gl_arb_decompiler: Implement an assembly shader decompiler
2020-06-16Merge pull request #3966 from Morph1984/hide-internal-resolution-uibunnei
yuzu/frontend: Remove internal resolution option
2020-06-16gl_device: Reserve at least 4 image bindings for fragment stageMorph
Due to the limitation of GL_MAX_IMAGE_UNITS being low (8) on Intel's and Nvidia's proprietary drivers, we have to reserve an appropriate amount of image bindings for each of the stages. So far games have been observed to use 4 image bindings on the fragment stage (Kirby Star Allies) and 1 on the vertex stage (TWD series). No games thus far in my limited testing used more than 4 images concurrently and across all currently active programs. This fixes shader compilation errors on Kirby Star Allies on OpenGL (GLSL/GLASM)
2020-06-15Merge pull request #4066 from ReinUsesLisp/shared-ptr-bufRodrigo Locatti
buffer_cache: Avoid passing references of shared pointers and misc style changes
2020-06-15macro_jit_x64: Remove NEXT_PARAMETERMerryMage
Not required, as PARAMETERS can just be incremented directly.
2020-06-15macro_jit_x64: Remove unused function Compile_WriteCarryMerryMage
2020-06-15macro_jit_x64: Select better registersMerryMage
All registers are now callee-save registers. RBX and RBP selected for STATE and RESULT because these are most commonly accessed; this is to avoid the REX prefix. RBP not used for STATE because there are some SIB restrictions, RBX emits smaller code.
2020-06-15macro_jit_x64: Remove REGISTERSMerryMage
Unnecessary since this is just an offset from STATE.
2020-06-15macro_jit_x64: Remove JITState::parametersMerryMage
This can be passed in as an argument instead.
2020-06-15macro_jit_x64: Remove METHOD_ADDRESS_64MerryMage
Unnecessary variable.
2020-06-15macro_jit_x64: Remove RESULT_64MerryMage
This Reg64 codepath has the exact same behaviour as the Reg32 one.
2020-06-15xbyak_abi: Prefer returning a struct to using out parameters in ↵MerryMage
ABI_CalculateFrameSize
2020-06-15xbyak_abi: Register indexes should be unsignedMerryMage
2020-06-15xbyak_abi: Remove *GPS variants of stack manipulation functionsMerryMage
2020-06-15xbyak_abi: Fix ABI_PushRegistersAndAdjustStackMerryMage
Pushing GPRs twice.
2020-06-15video_core/macro_jit_x64: Remove initializer in member variableReinUsesLisp
Fix build time issues on gcc. Confirmed through asan that avoiding this initialization is safe.
2020-06-14Merge pull request #4070 from ogniK5377/GetTPCMasks-fixbunnei
nvdrv: Fix GetTPCMasks for ioctl3
2020-06-14Merge pull request #4069 from ogniK5377/total-phys-membunnei
kernel: Account for system resource size for memory usage
2020-06-14Merge pull request #4064 from ReinUsesLisp/invalidate-buffersbunnei
gl_rasterizer: Mark vertex buffers as dirty after buffer cache invalidation
2020-06-13Merge pull request #4049 from ReinUsesLisp/separate-samplersbunnei
shader/texture: Join separate image and sampler pairs offline
2020-06-13audren: Implement RendererInfoDavid Marcec
Fixes ZLA softlock
2020-06-12Merge pull request #3986 from ReinUsesLisp/shader-cachebunnei
shader_cache: Implement a generic runtime shader cache
2020-06-12Merge pull request #4010 from ogniK5377/reserve-always-breakbunnei
kernel: ResourceLimit::Reserve remove useless while loop
2020-06-11gl_arb_decompiler: Implement FSwizzleAddReinUsesLisp
2020-06-11gl_arb_decompiler: Implement an assembly shader decompilerReinUsesLisp
Emit code compatible with NV_gpu_program5. This should emit code compatible with Fermi, but it wasn't tested on that architecture. Pascal has some issues not present on Turing GPUs.
2020-06-10yuzu/configuration: Show assembly shaders check boxReinUsesLisp
2020-06-10nvdrv: Fix GetTPCMasks for ioctl3David Marcec
Fixes animal crossing svcBreak on launch
2020-06-10kernel: Account for system resource size for memory usageDavid Marcec
GetTotalPhysicalMemoryAvailableWithoutSystemResource & GetTotalPhysicalMemoryUsedWithoutSystemResource seem to subtract the resource size from the usage.
2020-06-09Merge pull request #4027 from ReinUsesLisp/3d-slicesbunnei
texture_cache: Implement rendering to 3D textures
2020-06-09buffer_cache: Avoid passing references of shared pointers and misc style changesReinUsesLisp
Instead of using as template argument a shared pointer, use the underlying type and manage shared pointers explicitly. This can make removing shared pointers from the cache more easy. While we are at it, make some misc style changes and general improvements (like insert_or_assign instead of operator[] + operator=).
2020-06-08gl_rasterizer: Mark vertex buffers as dirty after buffer cache invalidationReinUsesLisp
Vertex buffers bindings become invalid after the stream buffer is invalidated. We were originally doing this, but it got lost at some point. - Fixes Animal Crossing: New Horizons, but it affects everything.
2020-06-08buffer_cache: Return stream buffer invalidation in Map instead of UnmapReinUsesLisp
We have to invalidate whatever cache is being used before uploading the data, hence it makes more sense to return this on Map instead of Unmap.
2020-06-08Merge pull request #4040 from ReinUsesLisp/nv-transform-feedbackbunnei
gl_rasterizer: Use NV_transform_feedback for XFB on assembly shaders
2020-06-08Merge pull request #4052 from ReinUsesLisp/debug-outputbunnei
renderer_opengl: Only enable DEBUG_OUTPUT when graphics debugging is enabled