summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/maxwell_to_vk.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* video_core: Implement other missing vulkan topologyFengChen2022-12-261-3/+16
|
* video_core: Implement vulkan QuadStrip topologyFengChen2022-12-261-1/+3
|
* vulkan_common: clean up extension usageLiam2022-12-041-1/+1
|
* Merge pull request #9307 from Morph1984/not-used-correctlyliamwhite2022-11-261-3/+3
|\ | | | | maxwell_to_vk: Fix format usage bits and add R16_SINT
| * maxwell_to_vk: Add R16_SINTMorph2022-11-241-1/+1
| | | | | | | | This was somehow missed when the format was added to GL
| * maxwell_to_vk: Fix format usage bitsMorph2022-11-241-2/+2
| | | | | | | | | | - VK_FORMAT_B8G8R8A8_UNORM supports the STORAGE_IMAGE_BIT - VK_FORMAT_R4G4B4A4_UNORM_PACK16 does not support the COLOR_ATTACHMENT_BIT
* | GPU: Implement additional render target formats.Fernando Sahmkow2022-11-241-0/+1
|/
* Update 3D regsKelebek12022-10-071-158/+179
|
* VideoCore: Implement formats needed for N64 emulation.Fernando Sahmkow2022-10-061-1/+1
|
* Texture Cache: Add ASTC 10x5 Format.Fernando Sahmkow2022-10-061-0/+2
|
* video_core: implement R16G16B16X16 texture formatLiam2022-08-191-1/+1
|
* renderer_vulkan: add format fallbacks for R16G16B16_SFLOAT, R16G16B16_SSCALED, R8G8B8_SSCALEDLiam2022-08-031-180/+189
|
* renderer_(gl/vk): Implement ASTC_10x6_UNORMMorph2022-07-061-0/+1
| | | | - Used by Monster Hunter Rise Update 10.0.2
* common: Change semantics of UNREACHABLE to unconditionally crashLiam2022-06-141-6/+6
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-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 emulationFernando Sahmkow2022-04-141-0/+2
|
* maxwell_to_(gl/vk): Add 11_11_10 float vertex formatMorph2022-02-251-0/+2
| | | | - Used by パワプロクンポケットR
* maxwell_to_vk: Add ASTC_2D_5X4_UNORMMorph2021-12-111-1/+1
|
* maxwell_to_vk: Add ASTC_2D_8X5_UNORMMorph2021-12-091-1/+1
| | | | - Used by Lego City Undercover
* renderer_vulkan: Add R16G16_UINTMorph2021-12-081-1/+1
| | | | - Used by Immortals Fenyx Rising
* renderer_vulkan: Implement S8_UINT stencil formatMorph2021-11-181-0/+3
| | | | It should be noted that on Windows, only nvidia gpus support this format natively as of this commit.
* maxwell_to_vk: Add R16_SNORMReinUsesLisp2021-07-231-1/+1
|
* shader: Unify shader stage typesReinUsesLisp2021-07-231-7/+8
|
* shader: Implement tessellation shaders, polygon mode and invocation idReinUsesLisp2021-07-231-0/+13
|
* shader: Add partial rasterizer integrationReinUsesLisp2021-07-231-0/+24
|
* renderer_vulkan: Accelerate ASTC decodingameerj2021-03-131-1/+1
| | | | Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
* video_core: Reimplement the buffer cacheReinUsesLisp2021-02-131-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.
* Merge pull request #5807 from ReinUsesLisp/vc-warningsLC2021-01-241-1/+1
|\ | | | | video_core: Silence the remaining gcc warnings and enforce them
| * maxwell_to_vk: Silence -Wextra warnings about using different enum typesReinUsesLisp2021-01-241-1/+1
| |
* | vk_texture_cache: Support image store on sRGB images with VkImageViewUsageCreateInfoReinUsesLisp2021-01-241-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.
* renderer_vulkan: Move device abstraction to vulkan_commonReinUsesLisp2021-01-041-1/+1
|
* renderer_vulkan: Rename VKDevice to DeviceReinUsesLisp2021-01-031-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.hReinUsesLisp2020-12-311-1/+1
| | | | Allows sharing Vulkan wrapper code between different rendering backends.
* maxwell_to_vk: Initialize usage variable in SurfaceFormat()Lioncash2020-12-301-1/+1
| | | | Silences a -Wmaybe-uninitialized warning
* video_core: Rewrite the texture cacheReinUsesLisp2020-12-301-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.
* video_core: Remove unnecessary enum class casting in logging messagesLioncash2020-12-071-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.
* video_core: Enforce -Werror=switchReinUsesLisp2020-09-161-4/+20
| | | | This forces us to fix all -Wswitch warnings in video_core.
* video_core: Rearrange pixel format namesReinUsesLisp2020-07-131-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.
* video_core: Fix DXT4 and RGB565ReinUsesLisp2020-07-131-1/+3
|
* video_core: Fix B5G6R5_UNORM render target formatReinUsesLisp2020-07-131-0/+1
|
* video_core: Fix B5G6R5UReinUsesLisp2020-07-131-1/+1
|
* video_core: Implement RGBA32_SINT render targetReinUsesLisp2020-07-131-0/+1
|
* video_core: Implement RGBA32_SINT render targetReinUsesLisp2020-07-131-0/+1
|
* video_core: Implement RGBA16_SINT render targetReinUsesLisp2020-07-131-0/+1
|
* video_core: Implement RGBA8_SINT render targetReinUsesLisp2020-07-131-0/+1
|
* video_core: Implement RG32_SINT render targetReinUsesLisp2020-07-131-0/+1
|
* video_core: Implement RG8_SINT render target and fix RG8_UINTReinUsesLisp2020-07-131-0/+1
|
* video_core: Implement R8_SINT render targetReinUsesLisp2020-07-131-0/+1
|
* video_core: Implement R8_SNORM render targetReinUsesLisp2020-07-131-0/+1
|
* maxwell_to_vk: Reorder vertex formats and add A2B10G10R10 for all types except floatMorph2020-06-281-75/+69
|
* maxwell_to_vk: Reorder filter cases and correct mipmap_filter=NoneMorph2020-06-181-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.
* maxwell_to_vk: Add R16UI image formatReinUsesLisp2020-06-021-1/+1
| | | | - Used by Octopath Traveler
* maxwell_to_vk: Add format B8G8R8A8_SRGBMorph2020-05-181-2/+2
| | | | | Add format B8G8R8A8_SRGB and add Attachable capability for B8G8R8A8_UNORM Used by Bravely Default II
* Merge pull request #3839 from Morph1984/r8g8uiRodrigo Locatti2020-05-091-0/+1
|\ | | | | texture: Implement R8G8UI
| * texture: Implement R8G8UIMorph2020-04-301-0/+1
| | | | | | | | - Used by The Walking Dead: The Final Season
* | Merge pull request #3842 from makigumo/maxwell_to_vk_vertexattribute_signed_intbunnei2020-05-091-2/+14
|\ \ | | | | | | maxwell_to_vk: implement missing signed int formats
| * | maxwell_to_vk: implement missing signed int formatsDan2020-04-301-2/+14
| |/
* / vk_graphics_pipeline: Implement viewport swizzles with NV_viewport_swizzleReinUsesLisp2020-05-041-0/+23
|/
* maxwell_to_vk: Add uint16 vertex formatsReinUsesLisp2020-04-151-0/+8
|
* maxwell_to_vk: Add missing breaksReinUsesLisp2020-04-151-0/+2
| | | | Avoid invalid fallbacks.
* renderer_vulkan: Drop Vulkan-HppReinUsesLisp2020-04-111-260/+263
|
* maxwell_to_vk: implement signedscaled vertex formatsDan2020-03-271-0/+20
|
* maxwell_to_vk: Sielence -Wswitch warningReinUsesLisp2020-03-191-0/+2
|
* Merge pull request #3519 from ReinUsesLisp/int-formatsMat M2020-03-171-0/+4
|\ | | | | maxwell_to_vk: Implement RG32 and RGB32 integer vertex formats
| * maxwell_to_vk: Implement RG32 and RGB32 integer vertex formatsReinUsesLisp2020-03-151-0/+4
| |
* | Merge pull request #3501 from ReinUsesLisp/rgba16-snormRodrigo Locatti2020-03-161-0/+1
|\ \ | | | | | | video_core: Implement RGBA16_SNORM
| * | video_core: Implement RGBA16_SNORMReinUsesLisp2020-03-131-0/+1
| |/ | | | | | | Implement RGBA16_SNORM with the current API. Nothing special here.
* | fix formattingmakigumo2020-03-131-1/+1
| |
* | maxwell_to_vk: add vertex format eA2B10G10R10UnormPack32makigumo2020-03-131-1/+3
|/
* Merge pull request #3301 from ReinUsesLisp/state-trackerRodrigo Locatti2020-03-091-7/+7
|\ | | | | video_core: Remove gl_state and use a state tracker based on dirty flags
| * maxwell_3d: Flatten cull and front face registersReinUsesLisp2020-02-281-7/+7
| |
* | maxwell_to_vk: Remove Storage capability for A1B5G5R5UReinUsesLisp2020-03-061-1/+1
| |
* | Merge pull request #3455 from ReinUsesLisp/attr-scaledbunnei2020-03-041-0/+14
|\ \ | |/ |/| video_core: Implement more scaled attribute formats
| * video_core: Implement more scaler attribute formatsReinUsesLisp2020-02-241-0/+14
| | | | | | | | | | While changing this, fix assert in vk_shader_decompiler. We now know scaled formats are expected to be float in shaders attributes.
* | Merge pull request #3417 from ReinUsesLisp/r32ibunnei2020-02-251-0/+1
|\ \ | |/ |/| texture: Implement R32I
| * texture: Implement R32IReinUsesLisp2020-02-151-0/+1
| |
* | add vertex UnsignedInt size RGBANguyen Dac Nam2020-02-181-0/+2
| |
* | vulkan: add DXT23_SRGBNguyen Dac Nam2020-02-181-1/+1
|/
* maxwell_to_vk: Implement GL_CLAMP hacking Nvidia's driverReinUsesLisp2020-01-101-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.
* maxwell_to_vk: Improve image format table and add more formatsReinUsesLisp2019-12-131-86/+120
| | | | | | A1B5G5R5 uses A1R5G5B5. This is flipped with image view swizzles; flushing is still not properly implemented on Vulkan for this particular format.
* maxwell_to_vk: Implement more vertex formatsReinUsesLisp2019-12-131-7/+81
|
* maxwell_to_vk: Implement more primitive topologiesReinUsesLisp2019-12-131-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.
* maxwell_to_vk: Approach GL_CLAMP closer to the GL specReinUsesLisp2019-12-131-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.
* maxwell_to_vk: Use VK_EXT_index_type_uint8 when availableReinUsesLisp2019-12-131-3/+6
|
* video_core: Unify ProgramType and ShaderStage into ShaderTypeReinUsesLisp2019-11-231-6/+8
|
* texture_cache: Drop abstracted ComponentTypeReinUsesLisp2019-11-141-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.
* video_core: Implement RGBX16F PixelFormatFearlessTobi2019-09-221-0/+1
|
* maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap modeReinUsesLisp2019-05-301-1/+1
|
* video_core: Silent -Wswitch warningsReinUsesLisp2019-04-181-4/+6
|
* maxwell_to_vk: Initial implementationReinUsesLisp2019-03-041-0/+483