Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | vulkan_common: clean up extension usage | Liam | 2022-12-04 | 1 | -1/+1 |
| | |||||
* | Merge pull request #9307 from Morph1984/not-used-correctly | liamwhite | 2022-11-26 | 1 | -3/+3 |
|\ | | | | | maxwell_to_vk: Fix format usage bits and add R16_SINT | ||||
| * | maxwell_to_vk: Add R16_SINT | Morph | 2022-11-24 | 1 | -1/+1 |
| | | | | | | | | This was somehow missed when the format was added to GL | ||||
| * | maxwell_to_vk: Fix format usage bits | Morph | 2022-11-24 | 1 | -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 Sahmkow | 2022-11-24 | 1 | -0/+1 |
|/ | |||||
* | Update 3D regs | Kelebek1 | 2022-10-07 | 1 | -158/+179 |
| | |||||
* | VideoCore: Implement formats needed for N64 emulation. | Fernando Sahmkow | 2022-10-06 | 1 | -1/+1 |
| | |||||
* | Texture Cache: Add ASTC 10x5 Format. | Fernando Sahmkow | 2022-10-06 | 1 | -0/+2 |
| | |||||
* | video_core: implement R16G16B16X16 texture format | Liam | 2022-08-19 | 1 | -1/+1 |
| | |||||
* | renderer_vulkan: add format fallbacks for R16G16B16_SFLOAT, R16G16B16_SSCALED, R8G8B8_SSCALED | Liam | 2022-08-03 | 1 | -180/+189 |
| | |||||
* | renderer_(gl/vk): Implement ASTC_10x6_UNORM | Morph | 2022-07-06 | 1 | -0/+1 |
| | | | | - Used by Monster Hunter Rise Update 10.0.2 | ||||
* | common: Change semantics of UNREACHABLE to unconditionally crash | Liam | 2022-06-14 | 1 | -6/+6 |
| | |||||
* | 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 | -0/+2 |
| | |||||
* | maxwell_to_(gl/vk): Add 11_11_10 float vertex format | Morph | 2022-02-25 | 1 | -0/+2 |
| | | | | - Used by パワプロクンポケットR | ||||
* | maxwell_to_vk: Add ASTC_2D_5X4_UNORM | Morph | 2021-12-11 | 1 | -1/+1 |
| | |||||
* | maxwell_to_vk: Add ASTC_2D_8X5_UNORM | Morph | 2021-12-09 | 1 | -1/+1 |
| | | | | - Used by Lego City Undercover | ||||
* | renderer_vulkan: Add R16G16_UINT | Morph | 2021-12-08 | 1 | -1/+1 |
| | | | | - Used by Immortals Fenyx Rising | ||||
* | renderer_vulkan: Implement S8_UINT stencil format | Morph | 2021-11-18 | 1 | -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_SNORM | ReinUsesLisp | 2021-07-23 | 1 | -1/+1 |
| | |||||
* | shader: Unify shader stage types | ReinUsesLisp | 2021-07-23 | 1 | -7/+8 |
| | |||||
* | shader: Implement tessellation shaders, polygon mode and invocation id | ReinUsesLisp | 2021-07-23 | 1 | -0/+13 |
| | |||||
* | shader: Add partial rasterizer integration | ReinUsesLisp | 2021-07-23 | 1 | -0/+24 |
| | |||||
* | renderer_vulkan: Accelerate ASTC decoding | ameerj | 2021-03-13 | 1 | -1/+1 |
| | | | | Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc> | ||||
* | video_core: Reimplement the buffer cache | ReinUsesLisp | 2021-02-13 | 1 | -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-warnings | LC | 2021-01-24 | 1 | -1/+1 |
|\ | | | | | video_core: Silence the remaining gcc warnings and enforce them | ||||
| * | maxwell_to_vk: Silence -Wextra warnings about using different enum types | ReinUsesLisp | 2021-01-24 | 1 | -1/+1 |
| | | |||||
* | | vk_texture_cache: Support image store on sRGB images with VkImageViewUsageCreateInfo | ReinUsesLisp | 2021-01-24 | 1 | -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_common | ReinUsesLisp | 2021-01-04 | 1 | -1/+1 |
| | |||||
* | 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. | ||||
* | maxwell_to_vk: Initialize usage variable in SurfaceFormat() | Lioncash | 2020-12-30 | 1 | -1/+1 |
| | | | | Silences a -Wmaybe-uninitialized warning | ||||
* | video_core: Rewrite the texture cache | ReinUsesLisp | 2020-12-30 | 1 | -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 messages | Lioncash | 2020-12-07 | 1 | -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=switch | ReinUsesLisp | 2020-09-16 | 1 | -4/+20 |
| | | | | This forces us to fix all -Wswitch warnings in video_core. | ||||
* | video_core: Rearrange pixel format names | ReinUsesLisp | 2020-07-13 | 1 | -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 RGB565 | ReinUsesLisp | 2020-07-13 | 1 | -1/+3 |
| | |||||
* | video_core: Fix B5G6R5_UNORM render target format | ReinUsesLisp | 2020-07-13 | 1 | -0/+1 |
| | |||||
* | video_core: Fix B5G6R5U | ReinUsesLisp | 2020-07-13 | 1 | -1/+1 |
| | |||||
* | video_core: Implement RGBA32_SINT render target | ReinUsesLisp | 2020-07-13 | 1 | -0/+1 |
| | |||||
* | video_core: Implement RGBA32_SINT render target | ReinUsesLisp | 2020-07-13 | 1 | -0/+1 |
| | |||||
* | video_core: Implement RGBA16_SINT render target | ReinUsesLisp | 2020-07-13 | 1 | -0/+1 |
| | |||||
* | video_core: Implement RGBA8_SINT render target | ReinUsesLisp | 2020-07-13 | 1 | -0/+1 |
| | |||||
* | video_core: Implement RG32_SINT render target | ReinUsesLisp | 2020-07-13 | 1 | -0/+1 |
| | |||||
* | video_core: Implement RG8_SINT render target and fix RG8_UINT | ReinUsesLisp | 2020-07-13 | 1 | -0/+1 |
| | |||||
* | video_core: Implement R8_SINT render target | ReinUsesLisp | 2020-07-13 | 1 | -0/+1 |
| | |||||
* | video_core: Implement R8_SNORM render target | ReinUsesLisp | 2020-07-13 | 1 | -0/+1 |
| | |||||
* | maxwell_to_vk: Reorder vertex formats and add A2B10G10R10 for all types except float | Morph | 2020-06-28 | 1 | -75/+69 |
| | |||||
* | maxwell_to_vk: Reorder filter cases and correct mipmap_filter=None | Morph | 2020-06-18 | 1 | -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 format | ReinUsesLisp | 2020-06-02 | 1 | -1/+1 |
| | | | | - Used by Octopath Traveler | ||||
* | maxwell_to_vk: Add format B8G8R8A8_SRGB | Morph | 2020-05-18 | 1 | -2/+2 |
| | | | | | Add format B8G8R8A8_SRGB and add Attachable capability for B8G8R8A8_UNORM Used by Bravely Default II | ||||
* | Merge pull request #3839 from Morph1984/r8g8ui | Rodrigo Locatti | 2020-05-09 | 1 | -0/+1 |
|\ | | | | | texture: Implement R8G8UI | ||||
| * | texture: Implement R8G8UI | Morph | 2020-04-30 | 1 | -0/+1 |
| | | | | | | | | - Used by The Walking Dead: The Final Season | ||||
* | | Merge pull request #3842 from makigumo/maxwell_to_vk_vertexattribute_signed_int | bunnei | 2020-05-09 | 1 | -2/+14 |
|\ \ | | | | | | | maxwell_to_vk: implement missing signed int formats | ||||
| * | | maxwell_to_vk: implement missing signed int formats | Dan | 2020-04-30 | 1 | -2/+14 |
| |/ | |||||
* / | vk_graphics_pipeline: Implement viewport swizzles with NV_viewport_swizzle | ReinUsesLisp | 2020-05-04 | 1 | -0/+23 |
|/ | |||||
* | maxwell_to_vk: Add uint16 vertex formats | ReinUsesLisp | 2020-04-15 | 1 | -0/+8 |
| | |||||
* | maxwell_to_vk: Add missing breaks | ReinUsesLisp | 2020-04-15 | 1 | -0/+2 |
| | | | | Avoid invalid fallbacks. | ||||
* | renderer_vulkan: Drop Vulkan-Hpp | ReinUsesLisp | 2020-04-11 | 1 | -260/+263 |
| | |||||
* | maxwell_to_vk: implement signedscaled vertex formats | Dan | 2020-03-27 | 1 | -0/+20 |
| | |||||
* | maxwell_to_vk: Sielence -Wswitch warning | ReinUsesLisp | 2020-03-19 | 1 | -0/+2 |
| | |||||
* | Merge pull request #3519 from ReinUsesLisp/int-formats | Mat M | 2020-03-17 | 1 | -0/+4 |
|\ | | | | | maxwell_to_vk: Implement RG32 and RGB32 integer vertex formats | ||||
| * | maxwell_to_vk: Implement RG32 and RGB32 integer vertex formats | ReinUsesLisp | 2020-03-15 | 1 | -0/+4 |
| | | |||||
* | | Merge pull request #3501 from ReinUsesLisp/rgba16-snorm | Rodrigo Locatti | 2020-03-16 | 1 | -0/+1 |
|\ \ | | | | | | | video_core: Implement RGBA16_SNORM | ||||
| * | | video_core: Implement RGBA16_SNORM | ReinUsesLisp | 2020-03-13 | 1 | -0/+1 |
| |/ | | | | | | | Implement RGBA16_SNORM with the current API. Nothing special here. | ||||
* | | fix formatting | makigumo | 2020-03-13 | 1 | -1/+1 |
| | | |||||
* | | maxwell_to_vk: add vertex format eA2B10G10R10UnormPack32 | makigumo | 2020-03-13 | 1 | -1/+3 |
|/ | |||||
* | Merge pull request #3301 from ReinUsesLisp/state-tracker | Rodrigo Locatti | 2020-03-09 | 1 | -7/+7 |
|\ | | | | | video_core: Remove gl_state and use a state tracker based on dirty flags | ||||
| * | maxwell_3d: Flatten cull and front face registers | ReinUsesLisp | 2020-02-28 | 1 | -7/+7 |
| | | |||||
* | | maxwell_to_vk: Remove Storage capability for A1B5G5R5U | ReinUsesLisp | 2020-03-06 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #3455 from ReinUsesLisp/attr-scaled | bunnei | 2020-03-04 | 1 | -0/+14 |
|\ \ | |/ |/| | video_core: Implement more scaled attribute formats | ||||
| * | video_core: Implement more scaler attribute formats | ReinUsesLisp | 2020-02-24 | 1 | -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/r32i | bunnei | 2020-02-25 | 1 | -0/+1 |
|\ \ | |/ |/| | texture: Implement R32I | ||||
| * | texture: Implement R32I | ReinUsesLisp | 2020-02-15 | 1 | -0/+1 |
| | | |||||
* | | add vertex UnsignedInt size RGBA | Nguyen Dac Nam | 2020-02-18 | 1 | -0/+2 |
| | | |||||
* | | vulkan: add DXT23_SRGB | Nguyen Dac Nam | 2020-02-18 | 1 | -1/+1 |
|/ | |||||
* | maxwell_to_vk: Implement GL_CLAMP hacking Nvidia's driver | ReinUsesLisp | 2020-01-10 | 1 | -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 formats | ReinUsesLisp | 2019-12-13 | 1 | -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 formats | ReinUsesLisp | 2019-12-13 | 1 | -7/+81 |
| | |||||
* | maxwell_to_vk: Implement more primitive topologies | ReinUsesLisp | 2019-12-13 | 1 | -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 spec | ReinUsesLisp | 2019-12-13 | 1 | -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 available | ReinUsesLisp | 2019-12-13 | 1 | -3/+6 |
| | |||||
* | video_core: Unify ProgramType and ShaderStage into ShaderType | ReinUsesLisp | 2019-11-23 | 1 | -6/+8 |
| | |||||
* | texture_cache: Drop abstracted ComponentType | ReinUsesLisp | 2019-11-14 | 1 | -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 PixelFormat | FearlessTobi | 2019-09-22 | 1 | -0/+1 |
| | |||||
* | maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap mode | ReinUsesLisp | 2019-05-30 | 1 | -1/+1 |
| | |||||
* | video_core: Silent -Wswitch warnings | ReinUsesLisp | 2019-04-18 | 1 | -4/+6 |
| | |||||
* | maxwell_to_vk: Initial implementation | ReinUsesLisp | 2019-03-04 | 1 | -0/+483 |