Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |