diff options
| author | 2023-04-05 03:02:24 +0200 | |
|---|---|---|
| committer | 2023-04-08 16:12:44 +0200 | |
| commit | fe91066f4673f7a3ee87235f08b72db4910eb01c (patch) | |
| tree | 7228ef7eb04f1f0ceb289d54daeba42d0d2719c8 /src/video_core/vulkan_common | |
| parent | shader_recompiler: Add subpixel offset for correct rounding at `ImageGather` (diff) | |
| download | yuzu-fe91066f4673f7a3ee87235f08b72db4910eb01c.tar.gz yuzu-fe91066f4673f7a3ee87235f08b72db4910eb01c.tar.xz yuzu-fe91066f4673f7a3ee87235f08b72db4910eb01c.zip | |
video_core: Enable ImageGather with subpixel offset on Intel
Diffstat (limited to 'src/video_core/vulkan_common')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 1 | ||||
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 0939b62c9..6f288b3f8 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -431,7 +431,6 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR | |||
| 431 | "AMD GCN4 and earlier have broken VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT"); | 431 | "AMD GCN4 and earlier have broken VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT"); |
| 432 | has_broken_cube_compatibility = true; | 432 | has_broken_cube_compatibility = true; |
| 433 | } | 433 | } |
| 434 | need_gather_subpixel_offset = true; | ||
| 435 | } | 434 | } |
| 436 | if (extensions.sampler_filter_minmax && is_amd) { | 435 | if (extensions.sampler_filter_minmax && is_amd) { |
| 437 | // Disable ext_sampler_filter_minmax on AMD GCN4 and lower as it is broken. | 436 | // Disable ext_sampler_filter_minmax on AMD GCN4 and lower as it is broken. |
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index 50e95bcca..41b5da18a 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h | |||
| @@ -554,10 +554,6 @@ public: | |||
| 554 | return features.robustness2.nullDescriptor; | 554 | return features.robustness2.nullDescriptor; |
| 555 | } | 555 | } |
| 556 | 556 | ||
| 557 | bool NeedsGatherSubpixelOffset() const { | ||
| 558 | return need_gather_subpixel_offset; | ||
| 559 | } | ||
| 560 | |||
| 561 | u32 GetMaxVertexInputAttributes() const { | 557 | u32 GetMaxVertexInputAttributes() const { |
| 562 | return properties.properties.limits.maxVertexInputAttributes; | 558 | return properties.properties.limits.maxVertexInputAttributes; |
| 563 | } | 559 | } |
| @@ -668,7 +664,6 @@ private: | |||
| 668 | bool must_emulate_bgr565{}; ///< Emulates BGR565 by swizzling RGB565 format. | 664 | bool must_emulate_bgr565{}; ///< Emulates BGR565 by swizzling RGB565 format. |
| 669 | bool dynamic_state3_blending{}; ///< Has all blending features of dynamic_state3. | 665 | bool dynamic_state3_blending{}; ///< Has all blending features of dynamic_state3. |
| 670 | bool dynamic_state3_enables{}; ///< Has all enables features of dynamic_state3. | 666 | bool dynamic_state3_enables{}; ///< Has all enables features of dynamic_state3. |
| 671 | bool need_gather_subpixel_offset{}; ///< Needs offset at ImageGather for correct rounding. | ||
| 672 | u64 device_access_memory{}; ///< Total size of device local memory in bytes. | 667 | u64 device_access_memory{}; ///< Total size of device local memory in bytes. |
| 673 | u32 sets_per_pool{}; ///< Sets per Description Pool | 668 | u32 sets_per_pool{}; ///< Sets per Description Pool |
| 674 | 669 | ||