diff options
| author | 2023-03-11 22:10:38 -0500 | |
|---|---|---|
| committer | 2023-03-12 11:33:01 -0400 | |
| commit | 600f325d87e42f856da58c42a5280f098ebb6e8c (patch) | |
| tree | 75c4fe48af55186a4e420e94a1d7e1bfd92e4ec0 /src/video_core/renderer_vulkan | |
| parent | general: use codespell to identify spelling mistakes (diff) | |
| download | yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.gz yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.xz yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.zip | |
general: fix spelling mistakes
Diffstat (limited to 'src/video_core/renderer_vulkan')
6 files changed, 10 insertions, 10 deletions
diff --git a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp index f8398b511..e7df32d84 100644 --- a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp +++ b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp | |||
| @@ -271,7 +271,7 @@ bool FixedPipelineState::operator==(const FixedPipelineState& rhs) const noexcep | |||
| 271 | 271 | ||
| 272 | u32 FixedPipelineState::PackComparisonOp(Maxwell::ComparisonOp op) noexcept { | 272 | u32 FixedPipelineState::PackComparisonOp(Maxwell::ComparisonOp op) noexcept { |
| 273 | // OpenGL enums go from 0x200 to 0x207 and the others from 1 to 8 | 273 | // OpenGL enums go from 0x200 to 0x207 and the others from 1 to 8 |
| 274 | // If we substract 0x200 to OpenGL enums and 1 to the others we get a 0-7 range. | 274 | // If we subtract 0x200 to OpenGL enums and 1 to the others we get a 0-7 range. |
| 275 | // Perfect for a hash. | 275 | // Perfect for a hash. |
| 276 | const u32 value = static_cast<u32>(op); | 276 | const u32 value = static_cast<u32>(op); |
| 277 | return value - (value >= 0x200 ? 0x200 : 1); | 277 | return value - (value >= 0x200 ? 0x200 : 1); |
| @@ -322,8 +322,8 @@ Maxwell::StencilOp::Op FixedPipelineState::UnpackStencilOp(u32 packed) noexcept | |||
| 322 | } | 322 | } |
| 323 | 323 | ||
| 324 | u32 FixedPipelineState::PackCullFace(Maxwell::CullFace cull) noexcept { | 324 | u32 FixedPipelineState::PackCullFace(Maxwell::CullFace cull) noexcept { |
| 325 | // FrontAndBack is 0x408, by substracting 0x406 in it we get 2. | 325 | // FrontAndBack is 0x408, by subtracting 0x406 in it we get 2. |
| 326 | // Individual cull faces are in 0x404 and 0x405, substracting 0x404 we get 0 and 1. | 326 | // Individual cull faces are in 0x404 and 0x405, subtracting 0x404 we get 0 and 1. |
| 327 | const u32 value = static_cast<u32>(cull); | 327 | const u32 value = static_cast<u32>(cull); |
| 328 | return value - (value == 0x408 ? 0x406 : 0x404); | 328 | return value - (value == 0x408 ? 0x406 : 0x404); |
| 329 | } | 329 | } |
diff --git a/src/video_core/renderer_vulkan/vk_command_pool.cpp b/src/video_core/renderer_vulkan/vk_command_pool.cpp index 2f09de1c1..d0dbf7ca5 100644 --- a/src/video_core/renderer_vulkan/vk_command_pool.cpp +++ b/src/video_core/renderer_vulkan/vk_command_pool.cpp | |||
| @@ -22,8 +22,8 @@ CommandPool::CommandPool(MasterSemaphore& master_semaphore_, const Device& devic | |||
| 22 | CommandPool::~CommandPool() = default; | 22 | CommandPool::~CommandPool() = default; |
| 23 | 23 | ||
| 24 | void CommandPool::Allocate(size_t begin, size_t end) { | 24 | void CommandPool::Allocate(size_t begin, size_t end) { |
| 25 | // Command buffers are going to be commited, recorded, executed every single usage cycle. | 25 | // Command buffers are going to be committed, recorded, executed every single usage cycle. |
| 26 | // They are also going to be reseted when commited. | 26 | // They are also going to be reset when committed. |
| 27 | Pool& pool = pools.emplace_back(); | 27 | Pool& pool = pools.emplace_back(); |
| 28 | pool.handle = device.GetLogical().CreateCommandPool({ | 28 | pool.handle = device.GetLogical().CreateCommandPool({ |
| 29 | .sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, | 29 | .sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, |
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 855488ead..673ab478e 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp | |||
| @@ -671,7 +671,7 @@ bool RasterizerVulkan::AccelerateConditionalRendering() { | |||
| 671 | // TODO(Blinkhawk): Reimplement Host conditional rendering. | 671 | // TODO(Blinkhawk): Reimplement Host conditional rendering. |
| 672 | return false; | 672 | return false; |
| 673 | } | 673 | } |
| 674 | // Medium / Low Hack: stub any checks on queries writen into the buffer cache. | 674 | // Medium / Low Hack: stub any checks on queries written into the buffer cache. |
| 675 | const GPUVAddr condition_address{maxwell3d->regs.render_enable.Address()}; | 675 | const GPUVAddr condition_address{maxwell3d->regs.render_enable.Address()}; |
| 676 | Maxwell::ReportSemaphore::Compare cmp; | 676 | Maxwell::ReportSemaphore::Compare cmp; |
| 677 | if (gpu_memory->IsMemoryDirty(condition_address, sizeof(cmp), | 677 | if (gpu_memory->IsMemoryDirty(condition_address, sizeof(cmp), |
diff --git a/src/video_core/renderer_vulkan/vk_resource_pool.cpp b/src/video_core/renderer_vulkan/vk_resource_pool.cpp index 6c8ac22f4..6572f82ba 100644 --- a/src/video_core/renderer_vulkan/vk_resource_pool.cpp +++ b/src/video_core/renderer_vulkan/vk_resource_pool.cpp | |||
| @@ -37,7 +37,7 @@ size_t ResourcePool::CommitResource() { | |||
| 37 | found = free_resource; | 37 | found = free_resource; |
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| 40 | // Free iterator is hinted to the resource after the one that's been commited. | 40 | // Free iterator is hinted to the resource after the one that's been committed. |
| 41 | hint_iterator = (*found + 1) % ticks.size(); | 41 | hint_iterator = (*found + 1) % ticks.size(); |
| 42 | return *found; | 42 | return *found; |
| 43 | } | 43 | } |
| @@ -46,7 +46,7 @@ size_t ResourcePool::ManageOverflow() { | |||
| 46 | const size_t old_capacity = ticks.size(); | 46 | const size_t old_capacity = ticks.size(); |
| 47 | Grow(); | 47 | Grow(); |
| 48 | 48 | ||
| 49 | // The last entry is guaranted to be free, since it's the first element of the freshly | 49 | // The last entry is guaranteed to be free, since it's the first element of the freshly |
| 50 | // allocated resources. | 50 | // allocated resources. |
| 51 | return old_capacity; | 51 | return old_capacity; |
| 52 | } | 52 | } |
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cpp index b6810eef9..85fdce6e5 100644 --- a/src/video_core/renderer_vulkan/vk_swapchain.cpp +++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp | |||
| @@ -159,7 +159,7 @@ void Swapchain::CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities, bo | |||
| 159 | present_mode = ChooseSwapPresentMode(present_modes); | 159 | present_mode = ChooseSwapPresentMode(present_modes); |
| 160 | 160 | ||
| 161 | u32 requested_image_count{capabilities.minImageCount + 1}; | 161 | u32 requested_image_count{capabilities.minImageCount + 1}; |
| 162 | // Ensure Tripple buffering if possible. | 162 | // Ensure Triple buffering if possible. |
| 163 | if (capabilities.maxImageCount > 0) { | 163 | if (capabilities.maxImageCount > 0) { |
| 164 | if (requested_image_count > capabilities.maxImageCount) { | 164 | if (requested_image_count > capabilities.maxImageCount) { |
| 165 | requested_image_count = capabilities.maxImageCount; | 165 | requested_image_count = capabilities.maxImageCount; |
diff --git a/src/video_core/renderer_vulkan/vk_update_descriptor.cpp b/src/video_core/renderer_vulkan/vk_update_descriptor.cpp index 4d4a6753b..009dab0b6 100644 --- a/src/video_core/renderer_vulkan/vk_update_descriptor.cpp +++ b/src/video_core/renderer_vulkan/vk_update_descriptor.cpp | |||
| @@ -25,7 +25,7 @@ void UpdateDescriptorQueue::TickFrame() { | |||
| 25 | 25 | ||
| 26 | void UpdateDescriptorQueue::Acquire() { | 26 | void UpdateDescriptorQueue::Acquire() { |
| 27 | // Minimum number of entries required. | 27 | // Minimum number of entries required. |
| 28 | // This is the maximum number of entries a single draw call migth use. | 28 | // This is the maximum number of entries a single draw call might use. |
| 29 | static constexpr size_t MIN_ENTRIES = 0x400; | 29 | static constexpr size_t MIN_ENTRIES = 0x400; |
| 30 | 30 | ||
| 31 | if (std::distance(payload.data(), payload_cursor) + MIN_ENTRIES >= payload.max_size()) { | 31 | if (std::distance(payload.data(), payload_cursor) + MIN_ENTRIES >= payload.max_size()) { |