Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Correctly track RT indexes for image aspect lookup during clears | Kelebek1 | 2023-05-12 | 1 | -0/+1 |
| | |||||
* | renderer_vulkan: separate guest and host compute descriptor queues | Liam | 2023-05-10 | 1 | -2/+2 |
| | |||||
* | Texture Cache: Fix ASTC textures | Fernando Sahmkow | 2023-05-09 | 1 | -1/+1 |
| | |||||
* | Log object names with debug renderer, add a GPU address to ImageViews | Kelebek1 | 2023-05-06 | 1 | -4/+5 |
| | |||||
* | Texture Cache: Release stagging buffers on tick frame | Fernando Sahmkow | 2023-04-29 | 1 | -1/+12 |
| | |||||
* | Accelerate DMA: Use texture cache async downloads to perform the copies | Fernando Sahmkow | 2023-04-29 | 1 | -8/+13 |
| | | | | | | to host. WIP | ||||
* | TextureCache: refactor DMA downloads to allow multiple buffers. | Fernando Sahmkow | 2023-04-29 | 1 | -15/+28 |
| | |||||
* | Merge pull request #9913 from ameerj/acc-dma-refactor | Fernando S | 2023-03-11 | 1 | -6/+16 |
|\ | | | | | AccelerateDMA: Refactor Buffer/Image copy code and implement for OGL | ||||
| * | Refactor AccelerateDMA code | ameerj | 2023-03-07 | 1 | -6/+16 |
| | | |||||
* | | Merge pull request #9896 from Kelebek1/d24s8 | liamwhite | 2023-03-08 | 1 | -4/+7 |
|\ \ | |/ |/| | Check all swizzle components for red, not just [0] | ||||
| * | Check all swizzle components for red, not just [0], pass float border color rather than int | Kelebek1 | 2023-03-04 | 1 | -4/+7 |
| | | |||||
* | | Engines: Implement Accelerate DMA Texture. | Fernando Sahmkow | 2023-03-05 | 1 | -4/+10 |
|/ | |||||
* | configuration: Add async ASTC decode setting | ameerj | 2023-02-23 | 1 | -3/+4 |
| | |||||
* | texture_cache: OpenGL: Implement MSAA uploads and copies | ameerj | 2023-02-11 | 1 | -0/+5 |
| | |||||
* | Texture Cache: Implement async texture downloads. | Fernando Sahmkow | 2023-01-04 | 1 | -2/+6 |
| | |||||
* | Add break for default cases | Kyle Kienapfel | 2022-11-14 | 1 | -0/+1 |
| | | | | | | | | | | | Visual Studio has an option to search all files in a solution, so I did a search in there for "default:" looking for any missing break statements. I've left out default statements that return something, and that throw something, even if via ThrowInvalidType. UNREACHABLE leads towards throw R_THROW macro leads towards a return | ||||
* | Merge pull request #9097 from liamwhite/intel-spv-compiler | Morph | 2022-11-04 | 1 | -5/+10 |
|\ | | | | | video_core: don't build ASTC decoder shader unless requested | ||||
| * | video_core: don't build ASTC decoder shader unless requested | Liam | 2022-10-20 | 1 | -5/+10 |
| | | |||||
* | | Vulkan: Fix regression caused by limiting render area to width/height of rendef targets. | Fernando Sahmkow | 2022-10-30 | 1 | -6/+6 |
|/ | |||||
* | Vulkan Texture Cache: Limit render area to the max width/height of the targets. | Fernando Sahmkow | 2022-10-06 | 1 | -7/+23 |
| | |||||
* | VideoCore: Implement formats needed for N64 emulation. | Fernando Sahmkow | 2022-10-06 | 1 | -1/+1 |
| | |||||
* | video_code: support rectangle texture | FengChen | 2022-08-25 | 1 | -6/+3 |
| | |||||
* | vk_texture_cache: return VK_NULL_HANDLE for views of null images | Liam | 2022-08-02 | 1 | -0/+12 |
| | |||||
* | video_core: Replace VKScheduler with Scheduler | german77 | 2022-06-27 | 1 | -2/+2 |
| | |||||
* | common: Change semantics of UNREACHABLE to unconditionally crash | Liam | 2022-06-14 | 1 | -12/+12 |
| | |||||
* | general: Convert source file copyright comments over to SPDX | Morph | 2022-04-23 | 1 | -3/+2 |
| | | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later. | ||||
* | video_core: implement formats for N64 emulation | Fernando Sahmkow | 2022-04-14 | 1 | -7/+42 |
| | |||||
* | Merge pull request #8076 from ameerj/nv-vk-msaa-scale | bunnei | 2022-03-31 | 1 | -2/+1 |
|\ | | | | | Vulkan: Use 3D helpers for MSAA scaling on NV drivers 510+ | ||||
| * | Vulkan: Use 3D helpers for MSAA scaling on NV drivers 510+ | ameerj | 2022-03-24 | 1 | -2/+1 |
| | | | | | | | | Nvidia Vulkan drivers 510+ crash when blitting MSAA images. Fall-back to 3D scale helpers for MSAA image scaling. | ||||
* | | Garbage Collection: Final tuning. | Fernando Sahmkow | 2022-03-25 | 1 | -1/+1 |
| | | |||||
* | | Garbage Collection: Redesign the algorithm to do a better use of memory. | Fernando Sahmkow | 2022-03-25 | 1 | -0/+9 |
|/ | |||||
* | vk_texture_cache: Do not reinterpret DepthStencil source images | ameerj | 2022-03-18 | 1 | -5/+0 |
| | | | | | | Fixes star pointer interactions in Super Mario Galaxy on some drivers, notably Nvidia. Co-Authored-By: Fernando S. <1731197+fernandos27@users.noreply.github.com> | ||||
* | Vulkan: convert S8D24 <-> ABGR8 | Liam | 2022-03-16 | 1 | -2/+4 |
| | |||||
* | TextureCacheRuntime: allow converting D24S8 to ABGR8 | Liam | 2022-03-11 | 1 | -1/+2 |
| | | | | I can't see how this would be useful, but Galaxy uses it. | ||||
* | vulkan_device: fix missing format in ANV | voidanix | 2022-02-21 | 1 | -2/+4 |
| | | | | | Currently Mesa's ANV driver does not support VK_FORMAT_B5G6R5_UNORM_PACK16, implement an alternative for it. | ||||
* | Merge pull request #7624 from ameerj/intel-msaa-scale | Fernando S | 2022-01-03 | 1 | -18/+21 |
|\ | | | | | vk_texture_cache: Use 3D scale helpers for MSAA texture scaling on Intel Windows drivers | ||||
| * | vk_texture_cache: Use 3D scale helpers for MSAA texture scaling on Intel Windows drivers | ameerj | 2021-12-24 | 1 | -18/+21 |
| | | | | | | | | Fixes a crash when scaling MSAA textures in titles such as Sonic Colors Ultimate. | ||||
* | | vk_texture_cache: Fix invalidated pointer access | ameerj | 2021-12-24 | 1 | -4/+11 |
|/ | | | | | The vulkan ImageView held a reference to its source image for rescale status checking. This pointer is sometimes invalidated when the texture cache slot_images container is resized. To avoid an invalid pointer dereference, the ImageView now holds a reference to the container itself. | ||||
* | vk_texture_cache: Add ABGR src format check for D24S8 conversions | ameerj | 2021-12-05 | 1 | -1/+5 |
| | |||||
* | blit_image: Refactor upscale factors usage | ameerj | 2021-12-05 | 1 | -11/+7 |
| | | | | The image view itself can be queried to see if it is being rescaled or not, removing the need to pass the upscale/down shift factors from the texture cache. | ||||
* | vk_texture_cache: Add a function to ImageView to check if src image is rescaled | ameerj | 2021-12-05 | 1 | -4/+16 |
| | |||||
* | Revert "Merge pull request #7395 from Morph1984/resolve-comments" | ameerj | 2021-12-05 | 1 | -3/+3 |
| | | | | | This reverts commit d20f91da11fe7c5d5f1bd4f63cc3b4d221be67a4, reversing changes made to 5082712b4e44ebfe48bd587ea2fa38767b7339cb. | ||||
* | Merge pull request #7396 from FernandoS27/blit-this-mf | Fernando S | 2021-11-28 | 1 | -23/+21 |
|\ | | | | | TextureCache: Eliminate format deduction as full depth conversion has been supported. | ||||
| * | Texture Cache: Always copy on NVIDIA. | Fernando Sahmkow | 2021-11-22 | 1 | -0/+5 |
| | | |||||
| * | TextureCache: Simplify blitting of D24S8 formats and fix bugs. | Fernando Sahmkow | 2021-11-22 | 1 | -21/+9 |
| | | |||||
| * | VulkanTexturECache: Use reinterpret on D32_S8 formats. | Fernando Sahmkow | 2021-11-21 | 1 | -2/+7 |
| | | |||||
* | | vk_texture_cache: Mark VkBufferUsageFlags as static constexpr | Morph | 2021-11-21 | 1 | -3/+3 |
|/ | |||||
* | Merge pull request #7368 from FernandoS27/vulkan-conv | bunnei | 2021-11-21 | 1 | -0/+199 |
|\ | | | | | Fix ART Blit detection regression and add D24S8 <-> RGBA8 conv to Vulkan | ||||
| * | TextureCache: Refactor and fix linux compiling. | Fernando Sahmkow | 2021-11-20 | 1 | -5/+2 |
| | | |||||
| * | TextureCache: Implement buffer copies on Vulkan. | Fernando Sahmkow | 2021-11-20 | 1 | -0/+174 |
| | | |||||
| * | TextureCache: Add R16G16 to D24S8 converter. | Fernando Sahmkow | 2021-11-20 | 1 | -0/+3 |
| | | |||||
| * | TextureCache: Add B10G11R11 to D24S8 converter. | Fernando Sahmkow | 2021-11-19 | 1 | -0/+3 |
| | | |||||
| * | TextureCache: Implement additional D24S8 convertions. | Fernando Sahmkow | 2021-11-19 | 1 | -0/+10 |
| | | |||||
| * | Vulkan: implement D24S8 <-> RGBA8 convertions. | Fernando Sahmkow | 2021-11-19 | 1 | -0/+12 |
| | | |||||
* | | renderer_vulkan: Implement S8_UINT stencil format | Morph | 2021-11-18 | 1 | -0/+5 |
|/ | | | | It should be noted that on Windows, only nvidia gpus support this format natively as of this commit. | ||||
* | TextureCache: Fix OGL cleaning | Fernando Sahmkow | 2021-11-17 | 1 | -0/+4 |
| | |||||
* | TextureCache: Add automatic anisotropic filtering and refactor code. | Fernando Sahmkow | 2021-11-16 | 1 | -7/+1 |
| | |||||
* | TextureCache: Make a better Anisotropic setter. | Fernando Sahmkow | 2021-11-16 | 1 | -1/+8 |
| | |||||
* | Vulkan: fix regression. | FernandoS27 | 2021-11-16 | 1 | -14/+17 |
| | |||||
* | vk_texture_cache: Refactor 3D scaling helpers | ameerj | 2021-11-16 | 1 | -113/+72 |
| | |||||
* | Video Core: fix building for GCC. | Fernando Sahmkow | 2021-11-16 | 1 | -2/+0 |
| | |||||
* | Texture cache: fix Intel with rescaler. | FernandoS27 | 2021-11-16 | 1 | -2/+2 |
| | |||||
* | TextureCache: Fix blitting filter in Vulkan and correct viewport/scissor calculation when downscaling. | FernandoS27 | 2021-11-16 | 1 | -15/+25 |
| | |||||
* | Texture Cache: fix memory managment and optimize scaled downloads, uploads. | Fernando Sahmkow | 2021-11-16 | 1 | -4/+19 |
| | |||||
* | Texture Cache: Fix downscaling and correct memory comsumption. | Fernando Sahmkow | 2021-11-16 | 1 | -10/+83 |
| | |||||
* | Texture Cache: Rescale conversions between depth and color | FernandoS27 | 2021-11-16 | 1 | -5/+8 |
| | |||||
* | Texture cache: Fix memory consumption and ignore rating when a depth texture is rendered. | Fernando Sahmkow | 2021-11-16 | 1 | -2/+7 |
| | |||||
* | vk_texture_cache: Use 3D to scale images when blit is unsupported | ameerj | 2021-11-16 | 1 | -25/+75 |
| | |||||
* | vk_texture_cache: Fix BlitScale of non-2D images | ameerj | 2021-11-16 | 1 | -10/+9 |
| | |||||
* | video_core: Refactor resolution scale function | ameerj | 2021-11-16 | 1 | -13/+6 |
| | |||||
* | vk_texture_cache: Fix unsupported blit format error checking | ameerj | 2021-11-16 | 1 | -5/+5 |
| | |||||
* | vk_texture_cache: Fix early returns on unsupported scales | ameerj | 2021-11-16 | 1 | -18/+10 |
| | |||||
* | video_core: Misc resolution scaling related refactoring | ameerj | 2021-11-16 | 1 | -13/+18 |
| | |||||
* | Texture Cache: Fix Rescaling on Multisample | Fernando Sahmkow | 2021-11-16 | 1 | -2/+6 |
| | |||||
* | vk_texture_cache: Simplify scaled image management | ameerj | 2021-11-16 | 1 | -87/+24 |
| | |||||
* | vk_texture_cache: Use nearest neighbor scaling when available | ameerj | 2021-11-16 | 1 | -2/+7 |
| | |||||
* | vk_texture_cache: Minor cleanup | ameerj | 2021-11-16 | 1 | -10/+8 |
| | |||||
* | Texture Cache: fix scaling on upload and stop scaling on base resolution. | Fernando Sahmkow | 2021-11-16 | 1 | -14/+32 |
| | |||||
* | texture_cache: Simplify image view queries and blacklisting | ReinUsesLisp | 2021-11-16 | 1 | -7/+15 |
| | |||||
* | Vulkan: Fix downscaling Blit. | Fernando Sahmkow | 2021-11-16 | 1 | -14/+18 |
| | |||||
* | vk_texture_cache: Properly scale blit source images | ReinUsesLisp | 2021-11-16 | 1 | -2/+2 |
| | |||||
* | vk_texture_cache: Simplify and optimize scaling blits | ReinUsesLisp | 2021-11-16 | 1 | -106/+62 |
| | |||||
* | vk_texture_cache: Fix scaling blit validation errors | ReinUsesLisp | 2021-11-16 | 1 | -81/+78 |
| | |||||
* | Fix blits with mips | ReinUsesLisp | 2021-11-16 | 1 | -12/+16 |
| | |||||
* | Fix blits | ReinUsesLisp | 2021-11-16 | 1 | -10/+10 |
| | |||||
* | TextureCache: Fix rescaling of ImageCopies | Fernando Sahmkow | 2021-11-16 | 1 | -13/+27 |
| | |||||
* | Texture Cache: More rescaling fixes. | Fernando Sahmkow | 2021-11-16 | 1 | -0/+8 |
| | |||||
* | Texture Cache: Implement Vulkan UpScaling & DownScaling | Fernando Sahmkow | 2021-11-16 | 1 | -22/+237 |
| | |||||
* | VideoCore: Initial Setup for the Resolution Scaler. | Fernando Sahmkow | 2021-11-16 | 1 | -15/+66 |
| | |||||
* | gpu: Migrate implementation to the cpp file | ameerj | 2021-10-03 | 1 | -0/+1 |
| | |||||
* | vk_texture_cache: Disable cube compatibility flag on non-mesa AMD GCN4 and earlier | ameerj | 2021-09-24 | 1 | -1/+1 |
| | | | | Fixes rainbow textures on BOTW. | ||||
* | vk_rasterizer: Only clear depth and stencil buffers when set in attachment aspect mask | ameerj | 2021-08-21 | 1 | -1/+4 |
| | | | | Silences validation errors for clearing the depth/stencil buffers of framebuffer attachments that were not specified to have depth/stencil usage. | ||||
* | texture_cache: Address ameerj's review | yzct12345 | 2021-08-07 | 1 | -0/+2 |
| | |||||
* | texture_cache: Don't change copyright year | yzct12345 | 2021-08-05 | 1 | -1/+1 |
| | |||||
* | texture_cache: Split templates out | yzct12345 | 2021-08-05 | 1 | -1/+1 |
| | |||||
* | shader: Implement SULD and SUST | ReinUsesLisp | 2021-07-23 | 1 | -22/+90 |
| | |||||
* | shader_recompiler,video_core: Cleanup some GCC and Clang errors | lat9nq | 2021-07-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | Mostly fixing unused *, implicit conversion, braced scalar init, fpermissive, and some others. Some Clang errors likely remain in video_core, and std::ranges is still a pertinent issue in shader_recompiler shader_recompiler: cmake: Force bracket depth to 1024 on Clang Increases the maximum fold expression depth thread_worker: Include condition_variable Don't use list initializers in control flow Co-authored-by: ReinUsesLisp <reinuseslisp@airmail.cc> | ||||
* | shader: Interact texture buffers with buffer cache | ReinUsesLisp | 2021-07-23 | 1 | -53/+10 |
| | |||||
* | shader: Add partial rasterizer integration | ReinUsesLisp | 2021-07-23 | 1 | -64/+4 |
| | |||||
* | vk_texture_cache: Use VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL when possible | ReinUsesLisp | 2021-07-20 | 1 | -21/+35 |
| | | | | Silences performance warnings generated from validation layers on each frame. | ||||
* | Merge pull request #6679 from yzct12345/fix-lets-go | Fernando S | 2021-07-19 | 1 | -1/+4 |
|\ | | | | | Fix Pokemon Let's Go on Vulkan | ||||
| * | Update src/video_core/renderer_vulkan/vk_texture_cache.cpp | yzct12345 | 2021-07-19 | 1 | -1/+1 |
| | | | | | | Co-authored-by: Vitor K <vitor-kiguchi@hotmail.com> | ||||
| * | Update src/video_core/renderer_vulkan/vk_texture_cache.cpp | yzct12345 | 2021-07-19 | 1 | -1/+1 |
| | | | | | | Co-authored-by: Vitor K <vitor-kiguchi@hotmail.com> | ||||
| * | Ignore wrong blit format | yzct12345 | 2021-07-18 | 1 | -1/+4 |
| | | |||||
* | | vk_texture_cache: Finalize renderpass when downloading images | ReinUsesLisp | 2021-07-18 | 1 | -0/+1 |
|/ | |||||
* | Reaper: Guarantee correct deletion. | Fernando Sahmkow | 2021-06-20 | 1 | -0/+2 |
| | |||||
* | Reaper: Change memory restrictions on TC depending on host memory on VK. | Fernando Sahmkow | 2021-06-17 | 1 | -0/+4 |
| | |||||
* | configure_graphics: Add Accelerate ASTC decoding setting | ameerj | 2021-06-16 | 1 | -1/+6 |
| | |||||
* | texture_cache: Handle out of bound texture blits | ameerj | 2021-05-08 | 1 | -20/+18 |
| | | | | Some games interleave a texture blit using regions which are out-of-bounds. This addresses the interleaving to avoid oob reads from the src texture. | ||||
* | vk_texture_cache: Swap R and B channels of color flipped format | ameerj | 2021-04-25 | 1 | -1/+24 |
| | | | | Swaps the Red and Blue channels of the A1B5G5R5_UNORM texture format, which was being incorrectly rendered. | ||||
* | vk_texture_cache: Make use of Common::BitCast where applicable | Lioncash | 2021-04-12 | 1 | -5/+6 |
| | | | | | Also clarify the TODO comment a little more on the lacking implementations for std::bit_cast. | ||||
* | astc_decoder: Reimplement Layers | Rodrigo Locatti | 2021-03-13 | 1 | -21/+25 |
| | | | | Reimplements the approach to decoding layers in the compute shader. Fixes multilayer astc decoding when using Vulkan. | ||||
* | renderer_vulkan: Accelerate ASTC decoding | ameerj | 2021-03-13 | 1 | -4/+41 |
| | | | | Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc> | ||||
* | vk_staging_buffer_pool: Add stream buffer for small uploads | ReinUsesLisp | 2021-02-13 | 1 | -8/+6 |
| | | | | | | | | This uses a ring buffer similar to OpenGL's stream buffer for small uploads. This stops us from allocating several small buffers, reducing memory fragmentation and cache locality. It uses dedicated allocations when possible. | ||||
* | video_core: Reimplement the buffer cache | ReinUsesLisp | 2021-02-13 | 1 | -48/+83 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reimplement the buffer cache using cached bindings and page level granularity for modification tracking. This also drops the usage of shared pointers and virtual functions from the cache. - Bindings are cached, allowing to skip work when the game changes few bits between draws. - OpenGL Assembly shaders no longer copy when a region has been modified from the GPU to emulate constant buffers, instead GL_EXT_memory_object is used to alias sub-buffers within the same allocation. - OpenGL Assembly shaders stream constant buffer data using glProgramBufferParametersIuivNV, from NV_parameter_buffer_object. In theory this should save one hash table resolve inside the driver compared to glBufferSubData. - A new OpenGL stream buffer is implemented based on fences for drivers that are not Nvidia's proprietary, due to their low performance on partial glBufferSubData calls synchronized with 3D rendering (that some games use a lot). - Most optimizations are shared between APIs now, allowing Vulkan to cache more bindings than before, skipping unnecesarry work. This commit adds the necessary infrastructure to use Vulkan object from OpenGL. Overall, it improves performance and fixes some bugs present on the old cache. There are still some edge cases hit by some games that harm performance on some vendors, this are planned to be fixed in later commits. | ||||
* | Merge pull request #5363 from ReinUsesLisp/vk-image-usage | Rodrigo Locatti | 2021-01-24 | 1 | -26/+47 |
|\ | | | | | vk_texture_cache: Support image store on sRGB images with VkImageViewUsageCreateInfo | ||||
| * | vk_texture_cache: Support image store on sRGB images with VkImageViewUsageCreateInfo | ReinUsesLisp | 2021-01-24 | 1 | -26/+47 |
| | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | vk_texture_cache: Use Download memory types for texture flushes | ReinUsesLisp | 2021-01-15 | 1 | -1/+9 |
| | | | | | | | | Use the Download memory type where it matters. | ||||
* | | vulkan_memory_allocator: Add "download" memory usage hint | ReinUsesLisp | 2021-01-15 | 1 | -3/+3 |
| | | | | | | | | | | | | | | 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. | ||||
* | | vulkan_common: Move allocator to the common directory | ReinUsesLisp | 2021-01-15 | 1 | -1/+1 |
| | | | | | | | | Allow using the abstraction from the OpenGL backend. | ||||
* | | renderer_vulkan: Rename Vulkan memory manager to memory allocator | ReinUsesLisp | 2021-01-15 | 1 | -2/+2 |
| | | | | | | | | | | "Memory manager" collides with the guest GPU memory manager, and a memory allocator sounds closer to what the abstraction aims to be. | ||||
* | | vk_memory_manager: Improve memory manager and its API | ReinUsesLisp | 2021-01-15 | 1 | -3/+3 |
|/ | | | | | | | | | 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. | ||||
* | renderer_vulkan: Move device abstraction to vulkan_common | ReinUsesLisp | 2021-01-04 | 1 | -1/+3 |
| | |||||
* | renderer_vulkan: Rename VKDevice to Device | ReinUsesLisp | 2021-01-03 | 1 | -4/+4 |
| | | | | | | | The "VK" prefix predates the "Vulkan" namespace. It was carried around the codebase for consistency. "VKDevice" currently is a bad alias with "VkDevice" (only an upcase character of difference) that can cause confusion. Rename all instances of it. | ||||
* | vulkan_common: Rename renderer_vulkan/wrapper.h to vulkan_common/vulkan_wrapper.h | ReinUsesLisp | 2020-12-31 | 1 | -1/+1 |
| | | | | Allows sharing Vulkan wrapper code between different rendering backends. | ||||
* | video_core: Rewrite the texture cache | ReinUsesLisp | 2020-12-30 | 1 | -492/+981 |
| | | | | | | | | | | | | | | The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues. | ||||
* | video_core: Remove unnecessary enum class casting in logging messages | Lioncash | 2020-12-07 | 1 | -2/+2 |
| | | | | | | | fmt now automatically prints the numeric value of an enum class member by default, so we don't need to use casts any more. Reduces the line noise a bit. | ||||
* | video_core: Resolve more variable shadowing scenarios pt.3 | Lioncash | 2020-12-05 | 1 | -4/+4 |
| | | | | | Cleans out the rest of the occurrences of variable shadowing and makes any further occurrences of shadowing compiler errors. | ||||
* | video_core: Resolve more variable shadowing scenarios pt.2 | Lioncash | 2020-12-05 | 1 | -30/+31 |
| | | | | | | | Migrates the video core code closer to enabling variable shadowing warnings as errors. This primarily sorts out shadowing occurrences within the Vulkan code. | ||||
* | renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore | ReinUsesLisp | 2020-09-19 | 1 | -11/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | This reworks how host<->device synchronization works on the Vulkan backend. Instead of "protecting" resources with a fence and signalling these as free when the fence is known to be signalled by the host GPU, use timeline semaphores. Vulkan timeline semaphores allow use to work on a subset of D3D12 fences. As far as we are concerned, timeline semaphores are a value set by the host or the device that can be waited by either of them. Taking advantange of this, we can have a monolithically increasing atomic value for each submission to the graphics queue. Instead of protecting resources with a fence, we simply store the current logical tick (the atomic value stored in CPU memory). When we want to know if a resource is free, it can be compared to the current GPU tick. This greatly simplifies resource management code and the free status of resources should have less false negatives. To workaround bugs in validation layers, when these are attached there's a thread waiting for timeline semaphores. | ||||
* | video_core: Remove all Core::System references in renderer | ReinUsesLisp | 2020-09-06 | 1 | -16/+18 |
| | | | | | | | | | Now that the GPU is initialized when video backends are initialized, it's no longer needed to query components once the game is running: it can be done when yuzu is booting. This allows us to pass components between constructors and in the process remove all Core::System references in the video backend. | ||||
* | vulkan: Silence more -Wmissing-field-initializer warnings | Lioncash | 2020-08-03 | 1 | -0/+2 |
| | |||||
* | vulkan: Resolve -Wmissing-field-initializer warnings | Lioncash | 2020-07-25 | 1 | -0/+2 |
| | |||||
* | Merge pull request #4324 from ReinUsesLisp/formats | bunnei | 2020-07-21 | 1 | -5/+5 |
|\ | | | | | video_core: Fix, add and rename pixel formats | ||||
| * | video_core: Rearrange pixel format names | ReinUsesLisp | 2020-07-13 | 1 | -5/+5 |
| | | | | | | | | | | | | Normalizes pixel format names to match Vulkan names. Previous to this commit pixel formats had no convention, leading to confusion and potential bugs. | ||||
* | | Merge pull request #4364 from lioncash/desig5 | bunnei | 2020-07-18 | 1 | -96/+135 |
|\ \ | | | | | | | vulkan: Make use of designated initializers where applicable | ||||
| * | | vk_texture_cache: Make use of designated initializers where applicable | Lioncash | 2020-07-17 | 1 | -96/+135 |
| |/ | |||||
* / | vk_texture_cache: Amend mismatched access masks and indices in UploadBuffer | Lioncash | 2020-07-17 | 1 | -6/+4 |
|/ | | | | | Discovered while converting relevant parts of the codebase over to designated initializers. | ||||
* | texture_cache: Implement rendering to 3D textures | ReinUsesLisp | 2020-06-08 | 1 | -14/+62 |
| | | | | | | | | | | | | | | This allows rendering to 3D textures with more than one slice. Applications are allowed to render to more than one slice of a texture using gl_Layer from a VTG shader. This also requires reworking how 3D texture collisions are handled, for now, this commit allows rendering to slices but not to miplevels. When a render target attempts to write to a mipmap, we fallback to the previous implementation (copying or flushing as needed). - Fixes color correction 3D textures on UE4 games (rainbow effects). - Allows Xenoblade games to render to 3D textures directly. | ||||
* | vk_rasterizer: Implement storage texels | ReinUsesLisp | 2020-06-02 | 1 | -2/+2 |
| | | | | | | This is the equivalent of an image buffer on OpenGL. - Used by Octopath Traveler | ||||
* | texture_cache: Implement depth stencil texture swizzles | ReinUsesLisp | 2020-05-26 | 1 | -16/+13 |
| | | | | | | | | Stop ignoring image swizzles on depth and stencil images. This doesn't fix a known issue on Xenoblade Chronicles 2 where an OpenGL texture changes swizzles twice before being used. A proper fix would be having a small texture view cache for this like we do on Vulkan. | ||||
* | vulkan: Remove unnecessary includes | Lioncash | 2020-04-29 | 1 | -3/+0 |
| | | | | | | | Reduces some header churn and reduces rebuilds when some header internals change. While we're at it we can also resolve a missing include in buffer_cache. | ||||
* | renderer_vulkan: Drop Vulkan-Hpp | ReinUsesLisp | 2020-04-11 | 1 | -152/+210 |
| | |||||
* | video_core: Use native ASTC when available | ReinUsesLisp | 2020-04-01 | 1 | -17/+17 |
| | |||||
* | vk_texture_cache: Silence misc warnings | ReinUsesLisp | 2020-03-19 | 1 | -3/+3 |
| | |||||
* | vk_state_tracker: Initial implementation | ReinUsesLisp | 2020-02-28 | 1 | -0/+1 |
| | | | | Add support for render targets and viewports. | ||||
* | vk_texture_cache: Address feedback | ReinUsesLisp | 2020-01-16 | 1 | -13/+4 |
| | |||||
* | vk_texture_cache: Fix typo in commentary | Rodrigo Locatti | 2020-01-16 | 1 | -1/+1 |
| | | | Co-Authored-By: MysticExile <30736337+MysticExile@users.noreply.github.com> | ||||
* | vk_texture_cache: Implement generic texture cache on Vulkan | ReinUsesLisp | 2020-01-14 | 1 | -0/+484 |
It currently ignores PBO linearizations since these should be dropped as soon as possible on OpenGL. |