aboutsummaryrefslogtreecommitdiff
path: root/src/video_core
AgeCommit message (Collapse)Author
2021-01-27vulkan_device: Blacklist Intel from float16 math (#5798)Rodrigo Locatti
Astral Chain crashes Intel's SPIR-V compiler when using fp16. Disable this while the vendor works on a fix.
2021-01-27Merge pull request #5778 from ReinUsesLisp/shader-dirbunnei
renderer_opengl: Avoid precompiled cache and force NV GL cache directory
2021-01-24Merge pull request #5785 from ReinUsesLisp/buffer-dmabunnei
video_core/memory_manager: Flush destination buffer on CopyBlock
2021-01-25Revert "Start of Integer flags implementation"ReinUsesLisp
This reverts #4713. The implementation in that PR is not accurate. It does not reflect the behavior seen in hardware.
2021-01-24vk_graphics_pipeline: Fix narrowing conversion on MSVCReinUsesLisp
2021-01-24Merge pull request #5807 from ReinUsesLisp/vc-warningsLC
video_core: Silence the remaining gcc warnings and enforce them
2021-01-24Merge pull request #5363 from ReinUsesLisp/vk-image-usageRodrigo Locatti
vk_texture_cache: Support image store on sRGB images with VkImageViewUsageCreateInfo
2021-01-24vk_texture_cache: Support image store on sRGB images with ↵ReinUsesLisp
VkImageViewUsageCreateInfo Vulkan 1.0 didn't support creating sRGB image views on an ABGR8 VkImage with storage usage bits. VK_KHR_maintenance2 addressed this allowing to reduce the usage bits on a VkImageView. To allow image store on non-sRGB image views when the VkImage is created with sRGB, always create VkImages without sRGB and add the sRGB format on the view.
2021-01-24vulkan_device: Lift VK_EXT_extended_dynamic_state blacklist on RDNAReinUsesLisp
It seems to be safe to use this on new drivers.
2021-01-24cmake: Enforce -Warray-bounds and -Wmissing-field-initializers globallyReinUsesLisp
2021-01-24Merge pull request #5796 from ReinUsesLisp/vertex-a-bypass-vkbunnei
vk_pipeline_cache: Properly bypass VertexA shaders
2021-01-24host_shaders/cmake: Pass --quiet to glslang to keep it quietReinUsesLisp
Silences noisy builds on toolchains.
2021-01-24video_core/cmake: Enforce -Warray-bounds and -Wmissing-field-initializersReinUsesLisp
2021-01-24video_core: Silence -Wmissing-field-initializers warningsReinUsesLisp
2021-01-24maxwell_3d: Silence array bounds warningsReinUsesLisp
2021-01-24maxwell_to_vk: Silence -Wextra warnings about using different enum typesReinUsesLisp
2021-01-23shader_ir: Fix comment typoLevi Behunin
2021-01-23video_core/cmake: Properly generate fatal errors on AftermathReinUsesLisp
Fix "message(ERROR ..." to "message(FATAL_ERROR ..." to properly stop cmake when Nsight Aftermath can't be configured.
2021-01-23nsight_aftermath_tracker: Fix build issues when enabledReinUsesLisp
Fixes a bunch of build errors when Nsight Aftermath is properly enabled.
2021-01-23vk_pipeline_cache: Properly bypass VertexA shadersReinUsesLisp
The VertexA stage is not yet implemented, but Vulkan is adding its descriptors, causing a discrepancy in the pushed descriptors and the template. This generally ends up in a driver side crash. Bypass the VertexA stage for now.
2021-01-22Merge pull request #4713 from behunin/int-flagsbunnei
Start of Integer flags implementation
2021-01-22video_core/memory_manager: Add BytesToMapEndReinUsesLisp
Track map address sizes in a flat ordered map and add a method to query the number of bytes until the end of a map in a given address.
2021-01-21gl_shader_decompiler: Fix constant buffer size calculationReinUsesLisp
The divide logic was wrong and can cause an uniform buffer size overflow.
2021-01-21video_core/memory_manager: Remove unused CopyBlockUnsafeReinUsesLisp
This function was not being used.
2021-01-21video_core/memory_manager: Flush destination buffer on CopyBlockReinUsesLisp
When we copy into a buffer, it might contain data modified from the GPU on the same pages. Because of this, we have to flush the contents before writing new data. An alternative approach would be to write the data in place, but games can also write data in other ways, invalidating our contents. Fixes geometry in Zombie Panic in Wonderland DX.
2021-01-21video_core/memory_manager: Add GPU address based flush methodReinUsesLisp
Allow flushing rasterizer contents based on a GPU address.
2021-01-20Merge pull request #5361 from ReinUsesLisp/vk-shader-commentbunnei
vk_shader_decompiler: Show comments as OpUndef with a type
2021-01-21renderer_opengl: Avoid precompiled cache and force NV GL cache directoryReinUsesLisp
Setting __GL_SHADER_DISK_CACHE_PATH we can force the cache directory to be in yuzu's user directory to stop commonly distributed malware from deleting our driver shader cache. And by setting __GL_SHADER_DISK_CACHE_SKIP_CLEANUP we can have an unbounded shader cache size. This has only been implemented on Windows, mostly because previous tests didn't seem to work on Linux. Disable the precompiled cache on Nvidia's driver. There's no need to hide information the driver already has in its own cache.
2021-01-18Merge pull request #5746 from lioncash/sign-compareRodrigo Locatti
texture_cache/util: Resolve -Wsign-compare warning
2021-01-17Merge pull request #5745 from lioncash/documentationRodrigo Locatti
video_core: Resolve -Wdocumentation warnings
2021-01-17texture_cache/util: Resolve -Wsign-compare warningLioncash
Resolves a -Wsign-compare warning on Clang.
2021-01-17video_core: Resolve -Wdocumentation warningsLioncash
Silences some -Wdocumentation warnings on Clang.
2021-01-17vulkan_debug_callback: Add missing header guardLioncash
Prevents inclusion issues from occurring.
2021-01-16Merge pull request #5262 from ReinUsesLisp/buffer-baseRodrigo Locatti
buffer_cache/buffer_base: Add a range tracking buffer container and tests
2021-01-15Merge pull request #5297 from ReinUsesLisp/vulkan-allocator-commonRodrigo Locatti
vulkan_memory_allocator: Improvements to the memory allocator
2021-01-15vk_shader_decompiler: Show comments as OpUndef with a typeReinUsesLisp
Silence the new validation layer error about SPIR-V not allowing OpUndef on a OpTypeVoid, even when the SPIR-V spec doesn't say anything against it. They will be inserted as an undefined int to avoid SPIRV-Cross and validation errors, but only when a debugging tool is attached.
2021-01-15Merge pull request #5358 from ReinUsesLisp/rename-insert-paddingLC
common/common_funcs: Rename INSERT_UNION_PADDING_{BYTES,WORDS} to _NOINIT
2021-01-15common/common_funcs: Rename INSERT_UNION_PADDING_{BYTES,WORDS} to _NOINITReinUsesLisp
INSERT_PADDING_BYTES_NOINIT is more descriptive of the underlying behavior.
2021-01-15vulkan_memory_allocator: Remove unnecesary 'device' memory from commitsReinUsesLisp
2021-01-15vk_texture_cache: Use Download memory types for texture flushesReinUsesLisp
Use the Download memory type where it matters.
2021-01-15vulkan_memory_allocator: Add allocation support for download typesReinUsesLisp
Implements the allocator logic to handle download memory types. This will try to use HOST_CACHED_BIT when available.
2021-01-15vulkan_memory_allocator: Add "download" memory usage hintReinUsesLisp
Allow users of the allocator to hint memory usage for downloads. This removes the non-descriptive boolean passed for "host visible" or not host visible memory commits, and uses an enum to hint device local, upload and download usages.
2021-01-15vulkan_common: Move allocator to the common directoryReinUsesLisp
Allow using the abstraction from the OpenGL backend.
2021-01-15renderer_vulkan: Rename Vulkan memory manager to memory allocatorReinUsesLisp
"Memory manager" collides with the guest GPU memory manager, and a memory allocator sounds closer to what the abstraction aims to be.
2021-01-15vk_memory_manager: Improve memory manager and its APIReinUsesLisp
Fix a bug where the memory allocator could leave gaps between commits. To fix this the allocation algorithm was reworked, although it's still short in number of lines of code. Rework the allocation API to self-contained movable objects instead of naively using an unique_ptr to do the job for us. Remove the VK prefix.
2021-01-15Merge pull request #5357 from ReinUsesLisp/alignment-log2LC
common/alignment: Rename AlignBits to AlignUpLog2 and use constraints
2021-01-15common/bit_util: Replace CLZ/CTZ operations with standardized onesLioncash
Makes for less code that we need to maintain.
2021-01-15common/alignment: Rename AlignBits to AlignUpLog2ReinUsesLisp
AlignUpLog2 describes what the function does better than AlignBits.
2021-01-15video_core/cmake: Remove Werror flags already defined code-base wideReinUsesLisp
These flags are already defined in src/cmake.
2021-01-15Merge pull request #5351 from ReinUsesLisp/vc-unused-functionsLC
cmake: Enforce -Wunused-function code-base wise