diff options
| author | 2022-06-25 23:51:37 -0500 | |
|---|---|---|
| committer | 2022-06-26 20:21:45 -0500 | |
| commit | c34a95fa25effc4e3967d9d2b1909af2d9c6975e (patch) | |
| tree | 6c67dec9d03cd61592b7ee1382984ebfc0b359e5 /src | |
| parent | video_core: Replace VKSwapchain with Swapchain (diff) | |
| download | yuzu-c34a95fa25effc4e3967d9d2b1909af2d9c6975e.tar.gz yuzu-c34a95fa25effc4e3967d9d2b1909af2d9c6975e.tar.xz yuzu-c34a95fa25effc4e3967d9d2b1909af2d9c6975e.zip | |
video_core: Replace VKUpdateDescriptorQueue with UpdateDescriptorQueue
Diffstat (limited to 'src')
14 files changed, 33 insertions, 33 deletions
diff --git a/src/video_core/renderer_vulkan/pipeline_helper.h b/src/video_core/renderer_vulkan/pipeline_helper.h index 9d676612c..b24f3424a 100644 --- a/src/video_core/renderer_vulkan/pipeline_helper.h +++ b/src/video_core/renderer_vulkan/pipeline_helper.h | |||
| @@ -168,7 +168,7 @@ private: | |||
| 168 | }; | 168 | }; |
| 169 | 169 | ||
| 170 | inline void PushImageDescriptors(TextureCache& texture_cache, | 170 | inline void PushImageDescriptors(TextureCache& texture_cache, |
| 171 | VKUpdateDescriptorQueue& update_descriptor_queue, | 171 | UpdateDescriptorQueue& update_descriptor_queue, |
| 172 | const Shader::Info& info, RescalingPushConstant& rescaling, | 172 | const Shader::Info& info, RescalingPushConstant& rescaling, |
| 173 | const VkSampler*& samplers, | 173 | const VkSampler*& samplers, |
| 174 | const VideoCommon::ImageViewInOut*& views) { | 174 | const VideoCommon::ImageViewInOut*& views) { |
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp index 2e7f3e595..558b8db56 100644 --- a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp | |||
| @@ -125,7 +125,7 @@ VkBufferView Buffer::View(u32 offset, u32 size, VideoCore::Surface::PixelFormat | |||
| 125 | 125 | ||
| 126 | BufferCacheRuntime::BufferCacheRuntime(const Device& device_, MemoryAllocator& memory_allocator_, | 126 | BufferCacheRuntime::BufferCacheRuntime(const Device& device_, MemoryAllocator& memory_allocator_, |
| 127 | Scheduler& scheduler_, StagingBufferPool& staging_pool_, | 127 | Scheduler& scheduler_, StagingBufferPool& staging_pool_, |
| 128 | VKUpdateDescriptorQueue& update_descriptor_queue_, | 128 | UpdateDescriptorQueue& update_descriptor_queue_, |
| 129 | DescriptorPool& descriptor_pool) | 129 | DescriptorPool& descriptor_pool) |
| 130 | : device{device_}, memory_allocator{memory_allocator_}, scheduler{scheduler_}, | 130 | : device{device_}, memory_allocator{memory_allocator_}, scheduler{scheduler_}, |
| 131 | staging_pool{staging_pool_}, update_descriptor_queue{update_descriptor_queue_}, | 131 | staging_pool{staging_pool_}, update_descriptor_queue{update_descriptor_queue_}, |
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.h b/src/video_core/renderer_vulkan/vk_buffer_cache.h index a1e56940e..a15c8b39b 100644 --- a/src/video_core/renderer_vulkan/vk_buffer_cache.h +++ b/src/video_core/renderer_vulkan/vk_buffer_cache.h | |||
| @@ -59,7 +59,7 @@ class BufferCacheRuntime { | |||
| 59 | public: | 59 | public: |
| 60 | explicit BufferCacheRuntime(const Device& device_, MemoryAllocator& memory_manager_, | 60 | explicit BufferCacheRuntime(const Device& device_, MemoryAllocator& memory_manager_, |
| 61 | Scheduler& scheduler_, StagingBufferPool& staging_pool_, | 61 | Scheduler& scheduler_, StagingBufferPool& staging_pool_, |
| 62 | VKUpdateDescriptorQueue& update_descriptor_queue_, | 62 | UpdateDescriptorQueue& update_descriptor_queue_, |
| 63 | DescriptorPool& descriptor_pool); | 63 | DescriptorPool& descriptor_pool); |
| 64 | 64 | ||
| 65 | void Finish(); | 65 | void Finish(); |
| @@ -126,7 +126,7 @@ private: | |||
| 126 | MemoryAllocator& memory_allocator; | 126 | MemoryAllocator& memory_allocator; |
| 127 | Scheduler& scheduler; | 127 | Scheduler& scheduler; |
| 128 | StagingBufferPool& staging_pool; | 128 | StagingBufferPool& staging_pool; |
| 129 | VKUpdateDescriptorQueue& update_descriptor_queue; | 129 | UpdateDescriptorQueue& update_descriptor_queue; |
| 130 | 130 | ||
| 131 | vk::Buffer quad_array_lut; | 131 | vk::Buffer quad_array_lut; |
| 132 | MemoryCommit quad_array_lut_commit; | 132 | MemoryCommit quad_array_lut_commit; |
diff --git a/src/video_core/renderer_vulkan/vk_compute_pass.cpp b/src/video_core/renderer_vulkan/vk_compute_pass.cpp index 22a6cf316..f17a5ccd6 100644 --- a/src/video_core/renderer_vulkan/vk_compute_pass.cpp +++ b/src/video_core/renderer_vulkan/vk_compute_pass.cpp | |||
| @@ -202,7 +202,7 @@ ComputePass::~ComputePass() = default; | |||
| 202 | 202 | ||
| 203 | Uint8Pass::Uint8Pass(const Device& device_, Scheduler& scheduler_, DescriptorPool& descriptor_pool, | 203 | Uint8Pass::Uint8Pass(const Device& device_, Scheduler& scheduler_, DescriptorPool& descriptor_pool, |
| 204 | StagingBufferPool& staging_buffer_pool_, | 204 | StagingBufferPool& staging_buffer_pool_, |
| 205 | VKUpdateDescriptorQueue& update_descriptor_queue_) | 205 | UpdateDescriptorQueue& update_descriptor_queue_) |
| 206 | : ComputePass(device_, descriptor_pool, INPUT_OUTPUT_DESCRIPTOR_SET_BINDINGS, | 206 | : ComputePass(device_, descriptor_pool, INPUT_OUTPUT_DESCRIPTOR_SET_BINDINGS, |
| 207 | INPUT_OUTPUT_DESCRIPTOR_UPDATE_TEMPLATE, INPUT_OUTPUT_BANK_INFO, {}, | 207 | INPUT_OUTPUT_DESCRIPTOR_UPDATE_TEMPLATE, INPUT_OUTPUT_BANK_INFO, {}, |
| 208 | VULKAN_UINT8_COMP_SPV), | 208 | VULKAN_UINT8_COMP_SPV), |
| @@ -244,7 +244,7 @@ std::pair<VkBuffer, VkDeviceSize> Uint8Pass::Assemble(u32 num_vertices, VkBuffer | |||
| 244 | QuadIndexedPass::QuadIndexedPass(const Device& device_, Scheduler& scheduler_, | 244 | QuadIndexedPass::QuadIndexedPass(const Device& device_, Scheduler& scheduler_, |
| 245 | DescriptorPool& descriptor_pool_, | 245 | DescriptorPool& descriptor_pool_, |
| 246 | StagingBufferPool& staging_buffer_pool_, | 246 | StagingBufferPool& staging_buffer_pool_, |
| 247 | VKUpdateDescriptorQueue& update_descriptor_queue_) | 247 | UpdateDescriptorQueue& update_descriptor_queue_) |
| 248 | : ComputePass(device_, descriptor_pool_, INPUT_OUTPUT_DESCRIPTOR_SET_BINDINGS, | 248 | : ComputePass(device_, descriptor_pool_, INPUT_OUTPUT_DESCRIPTOR_SET_BINDINGS, |
| 249 | INPUT_OUTPUT_DESCRIPTOR_UPDATE_TEMPLATE, INPUT_OUTPUT_BANK_INFO, | 249 | INPUT_OUTPUT_DESCRIPTOR_UPDATE_TEMPLATE, INPUT_OUTPUT_BANK_INFO, |
| 250 | COMPUTE_PUSH_CONSTANT_RANGE<sizeof(u32) * 2>, VULKAN_QUAD_INDEXED_COMP_SPV), | 250 | COMPUTE_PUSH_CONSTANT_RANGE<sizeof(u32) * 2>, VULKAN_QUAD_INDEXED_COMP_SPV), |
| @@ -306,7 +306,7 @@ std::pair<VkBuffer, VkDeviceSize> QuadIndexedPass::Assemble( | |||
| 306 | ASTCDecoderPass::ASTCDecoderPass(const Device& device_, Scheduler& scheduler_, | 306 | ASTCDecoderPass::ASTCDecoderPass(const Device& device_, Scheduler& scheduler_, |
| 307 | DescriptorPool& descriptor_pool_, | 307 | DescriptorPool& descriptor_pool_, |
| 308 | StagingBufferPool& staging_buffer_pool_, | 308 | StagingBufferPool& staging_buffer_pool_, |
| 309 | VKUpdateDescriptorQueue& update_descriptor_queue_, | 309 | UpdateDescriptorQueue& update_descriptor_queue_, |
| 310 | MemoryAllocator& memory_allocator_) | 310 | MemoryAllocator& memory_allocator_) |
| 311 | : ComputePass(device_, descriptor_pool_, ASTC_DESCRIPTOR_SET_BINDINGS, | 311 | : ComputePass(device_, descriptor_pool_, ASTC_DESCRIPTOR_SET_BINDINGS, |
| 312 | ASTC_PASS_DESCRIPTOR_UPDATE_TEMPLATE_ENTRY, ASTC_BANK_INFO, | 312 | ASTC_PASS_DESCRIPTOR_UPDATE_TEMPLATE_ENTRY, ASTC_BANK_INFO, |
diff --git a/src/video_core/renderer_vulkan/vk_compute_pass.h b/src/video_core/renderer_vulkan/vk_compute_pass.h index 930c45496..dcc691a8e 100644 --- a/src/video_core/renderer_vulkan/vk_compute_pass.h +++ b/src/video_core/renderer_vulkan/vk_compute_pass.h | |||
| @@ -21,7 +21,7 @@ namespace Vulkan { | |||
| 21 | class Device; | 21 | class Device; |
| 22 | class StagingBufferPool; | 22 | class StagingBufferPool; |
| 23 | class Scheduler; | 23 | class Scheduler; |
| 24 | class VKUpdateDescriptorQueue; | 24 | class UpdateDescriptorQueue; |
| 25 | class Image; | 25 | class Image; |
| 26 | struct StagingBufferRef; | 26 | struct StagingBufferRef; |
| 27 | 27 | ||
| @@ -50,7 +50,7 @@ class Uint8Pass final : public ComputePass { | |||
| 50 | public: | 50 | public: |
| 51 | explicit Uint8Pass(const Device& device_, Scheduler& scheduler_, | 51 | explicit Uint8Pass(const Device& device_, Scheduler& scheduler_, |
| 52 | DescriptorPool& descriptor_pool_, StagingBufferPool& staging_buffer_pool_, | 52 | DescriptorPool& descriptor_pool_, StagingBufferPool& staging_buffer_pool_, |
| 53 | VKUpdateDescriptorQueue& update_descriptor_queue_); | 53 | UpdateDescriptorQueue& update_descriptor_queue_); |
| 54 | ~Uint8Pass(); | 54 | ~Uint8Pass(); |
| 55 | 55 | ||
| 56 | /// Assemble uint8 indices into an uint16 index buffer | 56 | /// Assemble uint8 indices into an uint16 index buffer |
| @@ -61,7 +61,7 @@ public: | |||
| 61 | private: | 61 | private: |
| 62 | Scheduler& scheduler; | 62 | Scheduler& scheduler; |
| 63 | StagingBufferPool& staging_buffer_pool; | 63 | StagingBufferPool& staging_buffer_pool; |
| 64 | VKUpdateDescriptorQueue& update_descriptor_queue; | 64 | UpdateDescriptorQueue& update_descriptor_queue; |
| 65 | }; | 65 | }; |
| 66 | 66 | ||
| 67 | class QuadIndexedPass final : public ComputePass { | 67 | class QuadIndexedPass final : public ComputePass { |
| @@ -69,7 +69,7 @@ public: | |||
| 69 | explicit QuadIndexedPass(const Device& device_, Scheduler& scheduler_, | 69 | explicit QuadIndexedPass(const Device& device_, Scheduler& scheduler_, |
| 70 | DescriptorPool& descriptor_pool_, | 70 | DescriptorPool& descriptor_pool_, |
| 71 | StagingBufferPool& staging_buffer_pool_, | 71 | StagingBufferPool& staging_buffer_pool_, |
| 72 | VKUpdateDescriptorQueue& update_descriptor_queue_); | 72 | UpdateDescriptorQueue& update_descriptor_queue_); |
| 73 | ~QuadIndexedPass(); | 73 | ~QuadIndexedPass(); |
| 74 | 74 | ||
| 75 | std::pair<VkBuffer, VkDeviceSize> Assemble( | 75 | std::pair<VkBuffer, VkDeviceSize> Assemble( |
| @@ -79,7 +79,7 @@ public: | |||
| 79 | private: | 79 | private: |
| 80 | Scheduler& scheduler; | 80 | Scheduler& scheduler; |
| 81 | StagingBufferPool& staging_buffer_pool; | 81 | StagingBufferPool& staging_buffer_pool; |
| 82 | VKUpdateDescriptorQueue& update_descriptor_queue; | 82 | UpdateDescriptorQueue& update_descriptor_queue; |
| 83 | }; | 83 | }; |
| 84 | 84 | ||
| 85 | class ASTCDecoderPass final : public ComputePass { | 85 | class ASTCDecoderPass final : public ComputePass { |
| @@ -87,7 +87,7 @@ public: | |||
| 87 | explicit ASTCDecoderPass(const Device& device_, Scheduler& scheduler_, | 87 | explicit ASTCDecoderPass(const Device& device_, Scheduler& scheduler_, |
| 88 | DescriptorPool& descriptor_pool_, | 88 | DescriptorPool& descriptor_pool_, |
| 89 | StagingBufferPool& staging_buffer_pool_, | 89 | StagingBufferPool& staging_buffer_pool_, |
| 90 | VKUpdateDescriptorQueue& update_descriptor_queue_, | 90 | UpdateDescriptorQueue& update_descriptor_queue_, |
| 91 | MemoryAllocator& memory_allocator_); | 91 | MemoryAllocator& memory_allocator_); |
| 92 | ~ASTCDecoderPass(); | 92 | ~ASTCDecoderPass(); |
| 93 | 93 | ||
| @@ -97,7 +97,7 @@ public: | |||
| 97 | private: | 97 | private: |
| 98 | Scheduler& scheduler; | 98 | Scheduler& scheduler; |
| 99 | StagingBufferPool& staging_buffer_pool; | 99 | StagingBufferPool& staging_buffer_pool; |
| 100 | VKUpdateDescriptorQueue& update_descriptor_queue; | 100 | UpdateDescriptorQueue& update_descriptor_queue; |
| 101 | MemoryAllocator& memory_allocator; | 101 | MemoryAllocator& memory_allocator; |
| 102 | }; | 102 | }; |
| 103 | 103 | ||
diff --git a/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp b/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp index c9e551231..6447210e2 100644 --- a/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp | |||
| @@ -25,7 +25,7 @@ using Shader::Backend::SPIRV::RESCALING_LAYOUT_WORDS_OFFSET; | |||
| 25 | using Tegra::Texture::TexturePair; | 25 | using Tegra::Texture::TexturePair; |
| 26 | 26 | ||
| 27 | ComputePipeline::ComputePipeline(const Device& device_, DescriptorPool& descriptor_pool, | 27 | ComputePipeline::ComputePipeline(const Device& device_, DescriptorPool& descriptor_pool, |
| 28 | VKUpdateDescriptorQueue& update_descriptor_queue_, | 28 | UpdateDescriptorQueue& update_descriptor_queue_, |
| 29 | Common::ThreadWorker* thread_worker, | 29 | Common::ThreadWorker* thread_worker, |
| 30 | PipelineStatistics* pipeline_statistics, | 30 | PipelineStatistics* pipeline_statistics, |
| 31 | VideoCore::ShaderNotify* shader_notify, const Shader::Info& info_, | 31 | VideoCore::ShaderNotify* shader_notify, const Shader::Info& info_, |
diff --git a/src/video_core/renderer_vulkan/vk_compute_pipeline.h b/src/video_core/renderer_vulkan/vk_compute_pipeline.h index 3f9cb6b9f..9879735fe 100644 --- a/src/video_core/renderer_vulkan/vk_compute_pipeline.h +++ b/src/video_core/renderer_vulkan/vk_compute_pipeline.h | |||
| @@ -29,7 +29,7 @@ class Scheduler; | |||
| 29 | class ComputePipeline { | 29 | class ComputePipeline { |
| 30 | public: | 30 | public: |
| 31 | explicit ComputePipeline(const Device& device, DescriptorPool& descriptor_pool, | 31 | explicit ComputePipeline(const Device& device, DescriptorPool& descriptor_pool, |
| 32 | VKUpdateDescriptorQueue& update_descriptor_queue, | 32 | UpdateDescriptorQueue& update_descriptor_queue, |
| 33 | Common::ThreadWorker* thread_worker, | 33 | Common::ThreadWorker* thread_worker, |
| 34 | PipelineStatistics* pipeline_statistics, | 34 | PipelineStatistics* pipeline_statistics, |
| 35 | VideoCore::ShaderNotify* shader_notify, const Shader::Info& info, | 35 | VideoCore::ShaderNotify* shader_notify, const Shader::Info& info, |
| @@ -46,7 +46,7 @@ public: | |||
| 46 | 46 | ||
| 47 | private: | 47 | private: |
| 48 | const Device& device; | 48 | const Device& device; |
| 49 | VKUpdateDescriptorQueue& update_descriptor_queue; | 49 | UpdateDescriptorQueue& update_descriptor_queue; |
| 50 | Shader::Info info; | 50 | Shader::Info info; |
| 51 | 51 | ||
| 52 | VideoCommon::ComputeUniformBufferSizes uniform_buffer_sizes{}; | 52 | VideoCommon::ComputeUniformBufferSizes uniform_buffer_sizes{}; |
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index e2c51fe6f..682f05335 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | |||
| @@ -218,7 +218,7 @@ GraphicsPipeline::GraphicsPipeline( | |||
| 218 | Tegra::Engines::Maxwell3D& maxwell3d_, Tegra::MemoryManager& gpu_memory_, Scheduler& scheduler_, | 218 | Tegra::Engines::Maxwell3D& maxwell3d_, Tegra::MemoryManager& gpu_memory_, Scheduler& scheduler_, |
| 219 | BufferCache& buffer_cache_, TextureCache& texture_cache_, | 219 | BufferCache& buffer_cache_, TextureCache& texture_cache_, |
| 220 | VideoCore::ShaderNotify* shader_notify, const Device& device_, DescriptorPool& descriptor_pool, | 220 | VideoCore::ShaderNotify* shader_notify, const Device& device_, DescriptorPool& descriptor_pool, |
| 221 | VKUpdateDescriptorQueue& update_descriptor_queue_, Common::ThreadWorker* worker_thread, | 221 | UpdateDescriptorQueue& update_descriptor_queue_, Common::ThreadWorker* worker_thread, |
| 222 | PipelineStatistics* pipeline_statistics, RenderPassCache& render_pass_cache, | 222 | PipelineStatistics* pipeline_statistics, RenderPassCache& render_pass_cache, |
| 223 | const GraphicsPipelineCacheKey& key_, std::array<vk::ShaderModule, NUM_STAGES> stages, | 223 | const GraphicsPipelineCacheKey& key_, std::array<vk::ShaderModule, NUM_STAGES> stages, |
| 224 | const std::array<const Shader::Info*, NUM_STAGES>& infos) | 224 | const std::array<const Shader::Info*, NUM_STAGES>& infos) |
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.h b/src/video_core/renderer_vulkan/vk_graphics_pipeline.h index 79746c638..e8949a9ab 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.h +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.h | |||
| @@ -63,7 +63,7 @@ class PipelineStatistics; | |||
| 63 | class RenderPassCache; | 63 | class RenderPassCache; |
| 64 | class RescalingPushConstant; | 64 | class RescalingPushConstant; |
| 65 | class Scheduler; | 65 | class Scheduler; |
| 66 | class VKUpdateDescriptorQueue; | 66 | class UpdateDescriptorQueue; |
| 67 | 67 | ||
| 68 | class GraphicsPipeline { | 68 | class GraphicsPipeline { |
| 69 | static constexpr size_t NUM_STAGES = Tegra::Engines::Maxwell3D::Regs::MaxShaderStage; | 69 | static constexpr size_t NUM_STAGES = Tegra::Engines::Maxwell3D::Regs::MaxShaderStage; |
| @@ -73,7 +73,7 @@ public: | |||
| 73 | Tegra::Engines::Maxwell3D& maxwell3d, Tegra::MemoryManager& gpu_memory, | 73 | Tegra::Engines::Maxwell3D& maxwell3d, Tegra::MemoryManager& gpu_memory, |
| 74 | Scheduler& scheduler, BufferCache& buffer_cache, TextureCache& texture_cache, | 74 | Scheduler& scheduler, BufferCache& buffer_cache, TextureCache& texture_cache, |
| 75 | VideoCore::ShaderNotify* shader_notify, const Device& device, | 75 | VideoCore::ShaderNotify* shader_notify, const Device& device, |
| 76 | DescriptorPool& descriptor_pool, VKUpdateDescriptorQueue& update_descriptor_queue, | 76 | DescriptorPool& descriptor_pool, UpdateDescriptorQueue& update_descriptor_queue, |
| 77 | Common::ThreadWorker* worker_thread, PipelineStatistics* pipeline_statistics, | 77 | Common::ThreadWorker* worker_thread, PipelineStatistics* pipeline_statistics, |
| 78 | RenderPassCache& render_pass_cache, const GraphicsPipelineCacheKey& key, | 78 | RenderPassCache& render_pass_cache, const GraphicsPipelineCacheKey& key, |
| 79 | std::array<vk::ShaderModule, NUM_STAGES> stages, | 79 | std::array<vk::ShaderModule, NUM_STAGES> stages, |
| @@ -126,7 +126,7 @@ private: | |||
| 126 | TextureCache& texture_cache; | 126 | TextureCache& texture_cache; |
| 127 | BufferCache& buffer_cache; | 127 | BufferCache& buffer_cache; |
| 128 | Scheduler& scheduler; | 128 | Scheduler& scheduler; |
| 129 | VKUpdateDescriptorQueue& update_descriptor_queue; | 129 | UpdateDescriptorQueue& update_descriptor_queue; |
| 130 | 130 | ||
| 131 | void (*configure_func)(GraphicsPipeline*, bool){}; | 131 | void (*configure_func)(GraphicsPipeline*, bool){}; |
| 132 | 132 | ||
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index b5966be13..09e035799 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | |||
| @@ -263,7 +263,7 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, Tegra::Engines::Maxw | |||
| 263 | Tegra::Engines::KeplerCompute& kepler_compute_, | 263 | Tegra::Engines::KeplerCompute& kepler_compute_, |
| 264 | Tegra::MemoryManager& gpu_memory_, const Device& device_, | 264 | Tegra::MemoryManager& gpu_memory_, const Device& device_, |
| 265 | Scheduler& scheduler_, DescriptorPool& descriptor_pool_, | 265 | Scheduler& scheduler_, DescriptorPool& descriptor_pool_, |
| 266 | VKUpdateDescriptorQueue& update_descriptor_queue_, | 266 | UpdateDescriptorQueue& update_descriptor_queue_, |
| 267 | RenderPassCache& render_pass_cache_, BufferCache& buffer_cache_, | 267 | RenderPassCache& render_pass_cache_, BufferCache& buffer_cache_, |
| 268 | TextureCache& texture_cache_, VideoCore::ShaderNotify& shader_notify_) | 268 | TextureCache& texture_cache_, VideoCore::ShaderNotify& shader_notify_) |
| 269 | : VideoCommon::ShaderCache{rasterizer_, gpu_memory_, maxwell3d_, kepler_compute_}, | 269 | : VideoCommon::ShaderCache{rasterizer_, gpu_memory_, maxwell3d_, kepler_compute_}, |
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.h b/src/video_core/renderer_vulkan/vk_pipeline_cache.h index 9e0f8bb0e..127957dbf 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.h +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.h | |||
| @@ -82,7 +82,7 @@ class PipelineStatistics; | |||
| 82 | class RasterizerVulkan; | 82 | class RasterizerVulkan; |
| 83 | class RenderPassCache; | 83 | class RenderPassCache; |
| 84 | class Scheduler; | 84 | class Scheduler; |
| 85 | class VKUpdateDescriptorQueue; | 85 | class UpdateDescriptorQueue; |
| 86 | 86 | ||
| 87 | using VideoCommon::ShaderInfo; | 87 | using VideoCommon::ShaderInfo; |
| 88 | 88 | ||
| @@ -104,7 +104,7 @@ public: | |||
| 104 | Tegra::Engines::KeplerCompute& kepler_compute, | 104 | Tegra::Engines::KeplerCompute& kepler_compute, |
| 105 | Tegra::MemoryManager& gpu_memory, const Device& device, | 105 | Tegra::MemoryManager& gpu_memory, const Device& device, |
| 106 | Scheduler& scheduler, DescriptorPool& descriptor_pool, | 106 | Scheduler& scheduler, DescriptorPool& descriptor_pool, |
| 107 | VKUpdateDescriptorQueue& update_descriptor_queue, | 107 | UpdateDescriptorQueue& update_descriptor_queue, |
| 108 | RenderPassCache& render_pass_cache, BufferCache& buffer_cache, | 108 | RenderPassCache& render_pass_cache, BufferCache& buffer_cache, |
| 109 | TextureCache& texture_cache, VideoCore::ShaderNotify& shader_notify_); | 109 | TextureCache& texture_cache, VideoCore::ShaderNotify& shader_notify_); |
| 110 | ~PipelineCache(); | 110 | ~PipelineCache(); |
| @@ -140,7 +140,7 @@ private: | |||
| 140 | const Device& device; | 140 | const Device& device; |
| 141 | Scheduler& scheduler; | 141 | Scheduler& scheduler; |
| 142 | DescriptorPool& descriptor_pool; | 142 | DescriptorPool& descriptor_pool; |
| 143 | VKUpdateDescriptorQueue& update_descriptor_queue; | 143 | UpdateDescriptorQueue& update_descriptor_queue; |
| 144 | RenderPassCache& render_pass_cache; | 144 | RenderPassCache& render_pass_cache; |
| 145 | BufferCache& buffer_cache; | 145 | BufferCache& buffer_cache; |
| 146 | TextureCache& texture_cache; | 146 | TextureCache& texture_cache; |
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.h b/src/video_core/renderer_vulkan/vk_rasterizer.h index 29faaac50..0370ea39b 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.h +++ b/src/video_core/renderer_vulkan/vk_rasterizer.h | |||
| @@ -146,7 +146,7 @@ private: | |||
| 146 | 146 | ||
| 147 | StagingBufferPool staging_pool; | 147 | StagingBufferPool staging_pool; |
| 148 | DescriptorPool descriptor_pool; | 148 | DescriptorPool descriptor_pool; |
| 149 | VKUpdateDescriptorQueue update_descriptor_queue; | 149 | UpdateDescriptorQueue update_descriptor_queue; |
| 150 | BlitImageHelper blit_image; | 150 | BlitImageHelper blit_image; |
| 151 | ASTCDecoderPass astc_decoder_pass; | 151 | ASTCDecoderPass astc_decoder_pass; |
| 152 | RenderPassCache render_pass_cache; | 152 | RenderPassCache render_pass_cache; |
diff --git a/src/video_core/renderer_vulkan/vk_update_descriptor.cpp b/src/video_core/renderer_vulkan/vk_update_descriptor.cpp index 739ed7256..4d4a6753b 100644 --- a/src/video_core/renderer_vulkan/vk_update_descriptor.cpp +++ b/src/video_core/renderer_vulkan/vk_update_descriptor.cpp | |||
| @@ -12,18 +12,18 @@ | |||
| 12 | 12 | ||
| 13 | namespace Vulkan { | 13 | namespace Vulkan { |
| 14 | 14 | ||
| 15 | VKUpdateDescriptorQueue::VKUpdateDescriptorQueue(const Device& device_, Scheduler& scheduler_) | 15 | UpdateDescriptorQueue::UpdateDescriptorQueue(const Device& device_, Scheduler& scheduler_) |
| 16 | : device{device_}, scheduler{scheduler_} { | 16 | : device{device_}, scheduler{scheduler_} { |
| 17 | payload_cursor = payload.data(); | 17 | payload_cursor = payload.data(); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | VKUpdateDescriptorQueue::~VKUpdateDescriptorQueue() = default; | 20 | UpdateDescriptorQueue::~UpdateDescriptorQueue() = default; |
| 21 | 21 | ||
| 22 | void VKUpdateDescriptorQueue::TickFrame() { | 22 | void UpdateDescriptorQueue::TickFrame() { |
| 23 | payload_cursor = payload.data(); | 23 | payload_cursor = payload.data(); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | void VKUpdateDescriptorQueue::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 migth use. |
| 29 | static constexpr size_t MIN_ENTRIES = 0x400; | 29 | static constexpr size_t MIN_ENTRIES = 0x400; |
diff --git a/src/video_core/renderer_vulkan/vk_update_descriptor.h b/src/video_core/renderer_vulkan/vk_update_descriptor.h index 88b82b0cb..625bcc809 100644 --- a/src/video_core/renderer_vulkan/vk_update_descriptor.h +++ b/src/video_core/renderer_vulkan/vk_update_descriptor.h | |||
| @@ -28,10 +28,10 @@ struct DescriptorUpdateEntry { | |||
| 28 | }; | 28 | }; |
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | class VKUpdateDescriptorQueue final { | 31 | class UpdateDescriptorQueue final { |
| 32 | public: | 32 | public: |
| 33 | explicit VKUpdateDescriptorQueue(const Device& device_, Scheduler& scheduler_); | 33 | explicit UpdateDescriptorQueue(const Device& device_, Scheduler& scheduler_); |
| 34 | ~VKUpdateDescriptorQueue(); | 34 | ~UpdateDescriptorQueue(); |
| 35 | 35 | ||
| 36 | void TickFrame(); | 36 | void TickFrame(); |
| 37 | 37 | ||