summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/maxwell_to_vk.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-07Update 3D regsKelebek11-158/+179
2022-10-06VideoCore: Implement formats needed for N64 emulation.Fernando Sahmkow1-1/+1
2022-10-06Texture Cache: Add ASTC 10x5 Format.Fernando Sahmkow1-0/+2
2022-08-19video_core: implement R16G16B16X16 texture formatLiam1-1/+1
2022-08-03renderer_vulkan: add format fallbacks for R16G16B16_SFLOAT, R16G16B16_SSCALED, R8G8B8_SSCALEDLiam1-180/+189
2022-07-06renderer_(gl/vk): Implement ASTC_10x6_UNORMMorph1-0/+1
- Used by Monster Hunter Rise Update 10.0.2
2022-06-14common: Change semantics of UNREACHABLE to unconditionally crashLiam1-6/+6
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-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.
2022-04-14video_core: implement formats for N64 emulationFernando Sahmkow1-0/+2
2022-02-25maxwell_to_(gl/vk): Add 11_11_10 float vertex formatMorph1-0/+2
- Used by パワプロクンポケットR
2021-12-11maxwell_to_vk: Add ASTC_2D_5X4_UNORMMorph1-1/+1
2021-12-09maxwell_to_vk: Add ASTC_2D_8X5_UNORMMorph1-1/+1
- Used by Lego City Undercover
2021-12-08renderer_vulkan: Add R16G16_UINTMorph1-1/+1
- Used by Immortals Fenyx Rising
2021-11-18renderer_vulkan: Implement S8_UINT stencil formatMorph1-0/+3
It should be noted that on Windows, only nvidia gpus support this format natively as of this commit.
2021-07-23maxwell_to_vk: Add R16_SNORMReinUsesLisp1-1/+1
2021-07-23shader: Unify shader stage typesReinUsesLisp1-7/+8
2021-07-23shader: Implement tessellation shaders, polygon mode and invocation idReinUsesLisp1-0/+13
2021-07-23shader: Add partial rasterizer integrationReinUsesLisp1-0/+24
2021-03-13renderer_vulkan: Accelerate ASTC decodingameerj1-1/+1
Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
2021-02-13video_core: Reimplement the buffer cacheReinUsesLisp1-5/+1
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.
2021-01-24vk_texture_cache: Support image store on sRGB images with VkImageViewUsageCreateInfoReinUsesLisp1-11/+16
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-24maxwell_to_vk: Silence -Wextra warnings about using different enum typesReinUsesLisp1-1/+1
2021-01-04renderer_vulkan: Move device abstraction to vulkan_commonReinUsesLisp1-1/+1
2021-01-03renderer_vulkan: Rename VKDevice to DeviceReinUsesLisp1-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.
2020-12-31vulkan_common: Rename renderer_vulkan/wrapper.h to vulkan_common/vulkan_wrapper.hReinUsesLisp1-1/+1
Allows sharing Vulkan wrapper code between different rendering backends.
2020-12-30maxwell_to_vk: Initialize usage variable in SurfaceFormat()Lioncash1-1/+1
Silences a -Wmaybe-uninitialized warning
2020-12-30video_core: Rewrite the texture cacheReinUsesLisp1-7/+23
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.
2020-12-07video_core: Remove unnecessary enum class casting in logging messagesLioncash1-20/+17
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.
2020-09-16video_core: Enforce -Werror=switchReinUsesLisp1-4/+20
This forces us to fix all -Wswitch warnings in video_core.
2020-07-13video_core: Rearrange pixel format namesReinUsesLisp1-92/+92
Normalizes pixel format names to match Vulkan names. Previous to this commit pixel formats had no convention, leading to confusion and potential bugs.
2020-07-13video_core: Fix DXT4 and RGB565ReinUsesLisp1-1/+3
2020-07-13video_core: Fix B5G6R5_UNORM render target formatReinUsesLisp1-0/+1
2020-07-13video_core: Fix B5G6R5UReinUsesLisp1-1/+1
2020-07-13video_core: Implement RGBA32_SINT render targetReinUsesLisp1-0/+1
2020-07-13video_core: Implement RGBA32_SINT render targetReinUsesLisp1-0/+1
2020-07-13video_core: Implement RGBA16_SINT render targetReinUsesLisp1-0/+1
2020-07-13video_core: Implement RGBA8_SINT render targetReinUsesLisp1-0/+1
2020-07-13video_core: Implement RG32_SINT render targetReinUsesLisp1-0/+1
2020-07-13video_core: Implement RG8_SINT render target and fix RG8_UINTReinUsesLisp1-0/+1
2020-07-13video_core: Implement R8_SINT render targetReinUsesLisp1-0/+1
2020-07-13video_core: Implement R8_SNORM render targetReinUsesLisp1-0/+1
2020-06-28maxwell_to_vk: Reorder vertex formats and add A2B10G10R10 for all types except floatMorph1-75/+69
2020-06-18maxwell_to_vk: Reorder filter cases and correct mipmap_filter=NoneMorph1-17/+15
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-02maxwell_to_vk: Add R16UI image formatReinUsesLisp1-1/+1
- Used by Octopath Traveler
2020-05-18maxwell_to_vk: Add format B8G8R8A8_SRGBMorph1-2/+2
Add format B8G8R8A8_SRGB and add Attachable capability for B8G8R8A8_UNORM Used by Bravely Default II
2020-05-04vk_graphics_pipeline: Implement viewport swizzles with NV_viewport_swizzleReinUsesLisp1-0/+23
2020-04-30maxwell_to_vk: implement missing signed int formatsDan1-2/+14
2020-04-30texture: Implement R8G8UIMorph1-0/+1
- Used by The Walking Dead: The Final Season
2020-04-15maxwell_to_vk: Add uint16 vertex formatsReinUsesLisp1-0/+8
2020-04-15maxwell_to_vk: Add missing breaksReinUsesLisp1-0/+2
Avoid invalid fallbacks.
2020-04-11renderer_vulkan: Drop Vulkan-HppReinUsesLisp1-260/+263
2020-03-27maxwell_to_vk: implement signedscaled vertex formatsDan1-0/+20
2020-03-19maxwell_to_vk: Sielence -Wswitch warningReinUsesLisp1-0/+2
2020-03-15maxwell_to_vk: Implement RG32 and RGB32 integer vertex formatsReinUsesLisp1-0/+4
2020-03-13fix formattingmakigumo1-1/+1
2020-03-13maxwell_to_vk: add vertex format eA2B10G10R10UnormPack32makigumo1-1/+3
2020-03-13video_core: Implement RGBA16_SNORMReinUsesLisp1-0/+1
Implement RGBA16_SNORM with the current API. Nothing special here.
2020-03-06maxwell_to_vk: Remove Storage capability for A1B5G5R5UReinUsesLisp1-1/+1
2020-02-28maxwell_3d: Flatten cull and front face registersReinUsesLisp1-7/+7
2020-02-24video_core: Implement more scaler attribute formatsReinUsesLisp1-0/+14
While changing this, fix assert in vk_shader_decompiler. We now know scaled formats are expected to be float in shaders attributes.
2020-02-18add vertex UnsignedInt size RGBANguyen Dac Nam1-0/+2
2020-02-18vulkan: add DXT23_SRGBNguyen Dac Nam1-1/+1
2020-02-15texture: Implement R32IReinUsesLisp1-0/+1
2020-01-10maxwell_to_vk: Implement GL_CLAMP hacking Nvidia's driverReinUsesLisp1-2/+7
Nvidia's driver defaults invalid enumerations to GL_CLAMP. Vulkan doesn't expose GL_CLAMP through its API, but we can hack it on Nvidia's driver using the internal driver defaults.
2019-12-13maxwell_to_vk: Improve image format table and add more formatsReinUsesLisp1-86/+120
A1B5G5R5 uses A1R5G5B5. This is flipped with image view swizzles; flushing is still not properly implemented on Vulkan for this particular format.
2019-12-13maxwell_to_vk: Implement more vertex formatsReinUsesLisp1-7/+81
2019-12-13maxwell_to_vk: Implement more primitive topologiesReinUsesLisp1-1/+9
Add an extra argument to query device capabilities in the future. The intention behind this is to use native quads, quad strips, line loops and polygons if these are released for Vulkan.
2019-12-13maxwell_to_vk: Approach GL_CLAMP closer to the GL specReinUsesLisp1-5/+11
The OpenGL spec defines GL_CLAMP's formula similarly to CLAMP_TO_EDGE and CLAMP_TO_BORDER depending on the filter mode used. It doesn't exactly behave like this, but it's the closest we can get with what Vulkan offers without emulating it by injecting shader code.
2019-12-13maxwell_to_vk: Use VK_EXT_index_type_uint8 when availableReinUsesLisp1-3/+6
2019-11-23video_core: Unify ProgramType and ShaderStage into ShaderTypeReinUsesLisp1-6/+8
2019-11-14texture_cache: Drop abstracted ComponentTypeReinUsesLisp1-72/+70
Abstracted ComponentType was not being used in a meaningful way. This commit drops its usage. There is one place where it was being used to test compatibility between two cached surfaces, but this one is implied in the pixel format. Removing the component type test doesn't change the behaviour.
2019-09-22video_core: Implement RGBX16F PixelFormatFearlessTobi1-0/+1
2019-05-30maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap modeReinUsesLisp1-1/+1
2019-04-18video_core: Silent -Wswitch warningsReinUsesLisp1-4/+6
2019-03-04maxwell_to_vk: Initial implementationReinUsesLisp1-0/+483