diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/audio_core/cubeb_sink.cpp | 20 | ||||
| -rw-r--r-- | src/core/frontend/framebuffer_layout.cpp | 4 | ||||
| -rw-r--r-- | src/core/frontend/framebuffer_layout.h | 16 | ||||
| -rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 5 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_manager.cpp | 31 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_manager.h | 29 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 3 | ||||
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 9 | ||||
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp | 3 |
10 files changed, 78 insertions, 46 deletions
diff --git a/src/audio_core/cubeb_sink.cpp b/src/audio_core/cubeb_sink.cpp index 7047ed9cf..c4e0e30fe 100644 --- a/src/audio_core/cubeb_sink.cpp +++ b/src/audio_core/cubeb_sink.cpp | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | #include "audio_core/cubeb_sink.h" | 8 | #include "audio_core/cubeb_sink.h" |
| 9 | #include "audio_core/stream.h" | 9 | #include "audio_core/stream.h" |
| 10 | #include "audio_core/time_stretch.h" | 10 | #include "audio_core/time_stretch.h" |
| 11 | #include "common/assert.h" | ||
| 11 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 12 | #include "common/ring_buffer.h" | 13 | #include "common/ring_buffer.h" |
| 13 | #include "core/settings.h" | 14 | #include "core/settings.h" |
| @@ -65,12 +66,25 @@ public: | |||
| 65 | void EnqueueSamples(u32 source_num_channels, const std::vector<s16>& samples) override { | 66 | void EnqueueSamples(u32 source_num_channels, const std::vector<s16>& samples) override { |
| 66 | if (source_num_channels > num_channels) { | 67 | if (source_num_channels > num_channels) { |
| 67 | // Downsample 6 channels to 2 | 68 | // Downsample 6 channels to 2 |
| 69 | ASSERT_MSG(source_num_channels == 6, "Channel count must be 6"); | ||
| 70 | |||
| 68 | std::vector<s16> buf; | 71 | std::vector<s16> buf; |
| 69 | buf.reserve(samples.size() * num_channels / source_num_channels); | 72 | buf.reserve(samples.size() * num_channels / source_num_channels); |
| 70 | for (std::size_t i = 0; i < samples.size(); i += source_num_channels) { | 73 | for (std::size_t i = 0; i < samples.size(); i += source_num_channels) { |
| 71 | for (std::size_t ch = 0; ch < num_channels; ch++) { | 74 | // Downmixing implementation taken from the ATSC standard |
| 72 | buf.push_back(samples[i + ch]); | 75 | const s16 left{samples[i + 0]}; |
| 73 | } | 76 | const s16 right{samples[i + 1]}; |
| 77 | const s16 center{samples[i + 2]}; | ||
| 78 | const s16 surround_left{samples[i + 4]}; | ||
| 79 | const s16 surround_right{samples[i + 5]}; | ||
| 80 | // Not used in the ATSC reference implementation | ||
| 81 | [[maybe_unused]] const s16 low_frequency_effects { samples[i + 3] }; | ||
| 82 | |||
| 83 | constexpr s32 clev{707}; // center mixing level coefficient | ||
| 84 | constexpr s32 slev{707}; // surround mixing level coefficient | ||
| 85 | |||
| 86 | buf.push_back(left + (clev * center / 1000) + (slev * surround_left / 1000)); | ||
| 87 | buf.push_back(right + (clev * center / 1000) + (slev * surround_right / 1000)); | ||
| 74 | } | 88 | } |
| 75 | queue.Push(buf); | 89 | queue.Push(buf); |
| 76 | return; | 90 | return; |
diff --git a/src/core/frontend/framebuffer_layout.cpp b/src/core/frontend/framebuffer_layout.cpp index 2dc795d56..68a0e0906 100644 --- a/src/core/frontend/framebuffer_layout.cpp +++ b/src/core/frontend/framebuffer_layout.cpp | |||
| @@ -48,8 +48,8 @@ FramebufferLayout FrameLayoutFromResolutionScale(u32 res_scale) { | |||
| 48 | u32 width, height; | 48 | u32 width, height; |
| 49 | 49 | ||
| 50 | if (Settings::values.use_docked_mode) { | 50 | if (Settings::values.use_docked_mode) { |
| 51 | width = ScreenDocked::WidthDocked * res_scale; | 51 | width = ScreenDocked::Width * res_scale; |
| 52 | height = ScreenDocked::HeightDocked * res_scale; | 52 | height = ScreenDocked::Height * res_scale; |
| 53 | } else { | 53 | } else { |
| 54 | width = ScreenUndocked::Width * res_scale; | 54 | width = ScreenUndocked::Width * res_scale; |
| 55 | height = ScreenUndocked::Height * res_scale; | 55 | height = ScreenUndocked::Height * res_scale; |
diff --git a/src/core/frontend/framebuffer_layout.h b/src/core/frontend/framebuffer_layout.h index e9d0a40d3..15ecfb13d 100644 --- a/src/core/frontend/framebuffer_layout.h +++ b/src/core/frontend/framebuffer_layout.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | 8 | ||
| 9 | namespace Layout { | 9 | namespace Layout { |
| 10 | 10 | ||
| 11 | enum ScreenUndocked : u32 { | 11 | namespace ScreenUndocked { |
| 12 | Width = 1280, | 12 | constexpr u32 Width = 1280; |
| 13 | Height = 720, | 13 | constexpr u32 Height = 720; |
| 14 | }; | 14 | } // namespace ScreenUndocked |
| 15 | 15 | ||
| 16 | enum ScreenDocked : u32 { | 16 | namespace ScreenDocked { |
| 17 | WidthDocked = 1920, | 17 | constexpr u32 Width = 1920; |
| 18 | HeightDocked = 1080, | 18 | constexpr u32 Height = 1080; |
| 19 | }; | 19 | } // namespace ScreenDocked |
| 20 | 20 | ||
| 21 | enum class AspectRatio { | 21 | enum class AspectRatio { |
| 22 | Default, | 22 | Default, |
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index 134152210..437bc5dee 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp | |||
| @@ -191,8 +191,6 @@ void NVFlinger::Compose() { | |||
| 191 | // Search for a queued buffer and acquire it | 191 | // Search for a queued buffer and acquire it |
| 192 | auto buffer = buffer_queue.AcquireBuffer(); | 192 | auto buffer = buffer_queue.AcquireBuffer(); |
| 193 | 193 | ||
| 194 | MicroProfileFlip(); | ||
| 195 | |||
| 196 | if (!buffer) { | 194 | if (!buffer) { |
| 197 | continue; | 195 | continue; |
| 198 | } | 196 | } |
| @@ -206,6 +204,8 @@ void NVFlinger::Compose() { | |||
| 206 | gpu.WaitFence(fence.id, fence.value); | 204 | gpu.WaitFence(fence.id, fence.value); |
| 207 | } | 205 | } |
| 208 | 206 | ||
| 207 | MicroProfileFlip(); | ||
| 208 | |||
| 209 | // Now send the buffer to the GPU for drawing. | 209 | // Now send the buffer to the GPU for drawing. |
| 210 | // TODO(Subv): Support more than just disp0. The display device selection is probably based | 210 | // TODO(Subv): Support more than just disp0. The display device selection is probably based |
| 211 | // on which display we're drawing (Default, Internal, External, etc) | 211 | // on which display we're drawing (Default, Internal, External, etc) |
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 90124e114..8e48a6482 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp | |||
| @@ -566,7 +566,7 @@ void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) { | |||
| 566 | bind_ubo_pushbuffer.Bind(); | 566 | bind_ubo_pushbuffer.Bind(); |
| 567 | bind_ssbo_pushbuffer.Bind(); | 567 | bind_ssbo_pushbuffer.Bind(); |
| 568 | 568 | ||
| 569 | program_manager.Update(); | 569 | program_manager.BindGraphicsPipeline(); |
| 570 | 570 | ||
| 571 | if (texture_cache.TextureBarrier()) { | 571 | if (texture_cache.TextureBarrier()) { |
| 572 | glTextureBarrier(); | 572 | glTextureBarrier(); |
| @@ -628,8 +628,7 @@ void RasterizerOpenGL::DispatchCompute(GPUVAddr code_addr) { | |||
| 628 | const ProgramVariant variant(launch_desc.block_dim_x, launch_desc.block_dim_y, | 628 | const ProgramVariant variant(launch_desc.block_dim_x, launch_desc.block_dim_y, |
| 629 | launch_desc.block_dim_z, launch_desc.shared_alloc, | 629 | launch_desc.block_dim_z, launch_desc.shared_alloc, |
| 630 | launch_desc.local_pos_alloc); | 630 | launch_desc.local_pos_alloc); |
| 631 | glUseProgramStages(program_manager.GetHandle(), GL_COMPUTE_SHADER_BIT, | 631 | program_manager.BindComputeShader(kernel->GetHandle(variant)); |
| 632 | kernel->GetHandle(variant)); | ||
| 633 | 632 | ||
| 634 | const std::size_t buffer_size = | 633 | const std::size_t buffer_size = |
| 635 | Tegra::Engines::KeplerCompute::NumConstBuffers * | 634 | Tegra::Engines::KeplerCompute::NumConstBuffers * |
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.cpp b/src/video_core/renderer_opengl/gl_shader_manager.cpp index 15f3cd066..9c7b0adbd 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.cpp +++ b/src/video_core/renderer_opengl/gl_shader_manager.cpp | |||
| @@ -2,21 +2,29 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <glad/glad.h> | ||
| 6 | |||
| 5 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 6 | #include "video_core/engines/maxwell_3d.h" | 8 | #include "video_core/engines/maxwell_3d.h" |
| 7 | #include "video_core/renderer_opengl/gl_shader_manager.h" | 9 | #include "video_core/renderer_opengl/gl_shader_manager.h" |
| 8 | 10 | ||
| 9 | namespace OpenGL::GLShader { | 11 | namespace OpenGL::GLShader { |
| 10 | 12 | ||
| 11 | using Tegra::Engines::Maxwell3D; | 13 | ProgramManager::ProgramManager() = default; |
| 12 | 14 | ||
| 13 | ProgramManager::~ProgramManager() = default; | 15 | ProgramManager::~ProgramManager() = default; |
| 14 | 16 | ||
| 15 | void ProgramManager::Create() { | 17 | void ProgramManager::Create() { |
| 16 | pipeline.Create(); | 18 | graphics_pipeline.Create(); |
| 19 | glBindProgramPipeline(graphics_pipeline.handle); | ||
| 17 | } | 20 | } |
| 18 | 21 | ||
| 19 | void ProgramManager::Update() { | 22 | void ProgramManager::BindGraphicsPipeline() { |
| 23 | if (!is_graphics_bound) { | ||
| 24 | is_graphics_bound = true; | ||
| 25 | glUseProgram(0); | ||
| 26 | } | ||
| 27 | |||
| 20 | // Avoid updating the pipeline when values have no changed | 28 | // Avoid updating the pipeline when values have no changed |
| 21 | if (old_state == current_state) { | 29 | if (old_state == current_state) { |
| 22 | return; | 30 | return; |
| @@ -25,16 +33,21 @@ void ProgramManager::Update() { | |||
| 25 | // Workaround for AMD bug | 33 | // Workaround for AMD bug |
| 26 | static constexpr GLenum all_used_stages{GL_VERTEX_SHADER_BIT | GL_GEOMETRY_SHADER_BIT | | 34 | static constexpr GLenum all_used_stages{GL_VERTEX_SHADER_BIT | GL_GEOMETRY_SHADER_BIT | |
| 27 | GL_FRAGMENT_SHADER_BIT}; | 35 | GL_FRAGMENT_SHADER_BIT}; |
| 28 | glUseProgramStages(pipeline.handle, all_used_stages, 0); | 36 | const GLuint handle = graphics_pipeline.handle; |
| 29 | 37 | glUseProgramStages(handle, all_used_stages, 0); | |
| 30 | glUseProgramStages(pipeline.handle, GL_VERTEX_SHADER_BIT, current_state.vertex_shader); | 38 | glUseProgramStages(handle, GL_VERTEX_SHADER_BIT, current_state.vertex_shader); |
| 31 | glUseProgramStages(pipeline.handle, GL_GEOMETRY_SHADER_BIT, current_state.geometry_shader); | 39 | glUseProgramStages(handle, GL_GEOMETRY_SHADER_BIT, current_state.geometry_shader); |
| 32 | glUseProgramStages(pipeline.handle, GL_FRAGMENT_SHADER_BIT, current_state.fragment_shader); | 40 | glUseProgramStages(handle, GL_FRAGMENT_SHADER_BIT, current_state.fragment_shader); |
| 33 | 41 | ||
| 34 | old_state = current_state; | 42 | old_state = current_state; |
| 35 | } | 43 | } |
| 36 | 44 | ||
| 37 | void MaxwellUniformData::SetFromRegs(const Maxwell3D& maxwell) { | 45 | void ProgramManager::BindComputeShader(GLuint program) { |
| 46 | is_graphics_bound = false; | ||
| 47 | glUseProgram(program); | ||
| 48 | } | ||
| 49 | |||
| 50 | void MaxwellUniformData::SetFromRegs(const Tegra::Engines::Maxwell3D& maxwell) { | ||
| 38 | const auto& regs = maxwell.regs; | 51 | const auto& regs = maxwell.regs; |
| 39 | 52 | ||
| 40 | // Y_NEGATE controls what value S2R returns for the Y_DIRECTION system value. | 53 | // Y_NEGATE controls what value S2R returns for the Y_DIRECTION system value. |
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.h b/src/video_core/renderer_opengl/gl_shader_manager.h index e94cd75aa..d2e47f2a9 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.h +++ b/src/video_core/renderer_opengl/gl_shader_manager.h | |||
| @@ -28,11 +28,16 @@ static_assert(sizeof(MaxwellUniformData) < 16384, | |||
| 28 | 28 | ||
| 29 | class ProgramManager { | 29 | class ProgramManager { |
| 30 | public: | 30 | public: |
| 31 | explicit ProgramManager(); | ||
| 31 | ~ProgramManager(); | 32 | ~ProgramManager(); |
| 32 | 33 | ||
| 33 | void Create(); | 34 | void Create(); |
| 34 | 35 | ||
| 35 | void Update(); | 36 | /// Updates the graphics pipeline and binds it. |
| 37 | void BindGraphicsPipeline(); | ||
| 38 | |||
| 39 | /// Binds a compute shader. | ||
| 40 | void BindComputeShader(GLuint program); | ||
| 36 | 41 | ||
| 37 | void UseVertexShader(GLuint program) { | 42 | void UseVertexShader(GLuint program) { |
| 38 | current_state.vertex_shader = program; | 43 | current_state.vertex_shader = program; |
| @@ -46,33 +51,27 @@ public: | |||
| 46 | current_state.fragment_shader = program; | 51 | current_state.fragment_shader = program; |
| 47 | } | 52 | } |
| 48 | 53 | ||
| 49 | GLuint GetHandle() const { | ||
| 50 | return pipeline.handle; | ||
| 51 | } | ||
| 52 | |||
| 53 | void UseTrivialFragmentShader() { | ||
| 54 | current_state.fragment_shader = 0; | ||
| 55 | } | ||
| 56 | |||
| 57 | private: | 54 | private: |
| 58 | struct PipelineState { | 55 | struct PipelineState { |
| 59 | bool operator==(const PipelineState& rhs) const { | 56 | bool operator==(const PipelineState& rhs) const noexcept { |
| 60 | return vertex_shader == rhs.vertex_shader && fragment_shader == rhs.fragment_shader && | 57 | return vertex_shader == rhs.vertex_shader && fragment_shader == rhs.fragment_shader && |
| 61 | geometry_shader == rhs.geometry_shader; | 58 | geometry_shader == rhs.geometry_shader; |
| 62 | } | 59 | } |
| 63 | 60 | ||
| 64 | bool operator!=(const PipelineState& rhs) const { | 61 | bool operator!=(const PipelineState& rhs) const noexcept { |
| 65 | return !operator==(rhs); | 62 | return !operator==(rhs); |
| 66 | } | 63 | } |
| 67 | 64 | ||
| 68 | GLuint vertex_shader{}; | 65 | GLuint vertex_shader = 0; |
| 69 | GLuint fragment_shader{}; | 66 | GLuint fragment_shader = 0; |
| 70 | GLuint geometry_shader{}; | 67 | GLuint geometry_shader = 0; |
| 71 | }; | 68 | }; |
| 72 | 69 | ||
| 73 | OGLPipeline pipeline; | 70 | OGLPipeline graphics_pipeline; |
| 71 | OGLPipeline compute_pipeline; | ||
| 74 | PipelineState current_state; | 72 | PipelineState current_state; |
| 75 | PipelineState old_state; | 73 | PipelineState old_state; |
| 74 | bool is_graphics_bound = true; | ||
| 76 | }; | 75 | }; |
| 77 | 76 | ||
| 78 | } // namespace OpenGL::GLShader | 77 | } // namespace OpenGL::GLShader |
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index d03b29c22..12333e8c9 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -443,7 +443,6 @@ void RendererOpenGL::InitOpenGLObjects() { | |||
| 443 | 443 | ||
| 444 | // Create program pipeline | 444 | // Create program pipeline |
| 445 | program_manager.Create(); | 445 | program_manager.Create(); |
| 446 | glBindProgramPipeline(program_manager.GetHandle()); | ||
| 447 | 446 | ||
| 448 | // Generate VBO handle for drawing | 447 | // Generate VBO handle for drawing |
| 449 | vertex_buffer.Create(); | 448 | vertex_buffer.Create(); |
| @@ -597,7 +596,7 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { | |||
| 597 | program_manager.UseVertexShader(vertex_program.handle); | 596 | program_manager.UseVertexShader(vertex_program.handle); |
| 598 | program_manager.UseGeometryShader(0); | 597 | program_manager.UseGeometryShader(0); |
| 599 | program_manager.UseFragmentShader(fragment_program.handle); | 598 | program_manager.UseFragmentShader(fragment_program.handle); |
| 600 | program_manager.Update(); | 599 | program_manager.BindGraphicsPipeline(); |
| 601 | 600 | ||
| 602 | glEnable(GL_CULL_FACE); | 601 | glEnable(GL_CULL_FACE); |
| 603 | if (screen_info.display_srgb) { | 602 | if (screen_info.display_srgb) { |
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index b402fb268..2bcb17b56 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp | |||
| @@ -854,7 +854,7 @@ void RasterizerVulkan::SetupGraphicsTextures(const ShaderEntries& entries, std:: | |||
| 854 | 854 | ||
| 855 | void RasterizerVulkan::SetupGraphicsImages(const ShaderEntries& entries, std::size_t stage) { | 855 | void RasterizerVulkan::SetupGraphicsImages(const ShaderEntries& entries, std::size_t stage) { |
| 856 | MICROPROFILE_SCOPE(Vulkan_Images); | 856 | MICROPROFILE_SCOPE(Vulkan_Images); |
| 857 | const auto& gpu = system.GPU().KeplerCompute(); | 857 | const auto& gpu = system.GPU().Maxwell3D(); |
| 858 | for (const auto& entry : entries.images) { | 858 | for (const auto& entry : entries.images) { |
| 859 | const auto tic = GetTextureInfo(gpu, entry, stage).tic; | 859 | const auto tic = GetTextureInfo(gpu, entry, stage).tic; |
| 860 | SetupImage(tic, entry); | 860 | SetupImage(tic, entry); |
| @@ -915,6 +915,13 @@ void RasterizerVulkan::SetupComputeImages(const ShaderEntries& entries) { | |||
| 915 | 915 | ||
| 916 | void RasterizerVulkan::SetupConstBuffer(const ConstBufferEntry& entry, | 916 | void RasterizerVulkan::SetupConstBuffer(const ConstBufferEntry& entry, |
| 917 | const Tegra::Engines::ConstBufferInfo& buffer) { | 917 | const Tegra::Engines::ConstBufferInfo& buffer) { |
| 918 | if (!buffer.enabled) { | ||
| 919 | // Set values to zero to unbind buffers | ||
| 920 | update_descriptor_queue.AddBuffer(buffer_cache.GetEmptyBuffer(sizeof(float)), 0, | ||
| 921 | sizeof(float)); | ||
| 922 | return; | ||
| 923 | } | ||
| 924 | |||
| 918 | // Align the size to avoid bad std140 interactions | 925 | // Align the size to avoid bad std140 interactions |
| 919 | const std::size_t size = | 926 | const std::size_t size = |
| 920 | Common::AlignUp(CalculateConstBufferSize(entry, buffer), 4 * sizeof(float)); | 927 | Common::AlignUp(CalculateConstBufferSize(entry, buffer), 4 * sizeof(float)); |
diff --git a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp index 171d78afc..d9ea3cc21 100644 --- a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp +++ b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp | |||
| @@ -73,7 +73,8 @@ VKBuffer* VKStagingBufferPool::TryGetReservedBuffer(std::size_t size, bool host_ | |||
| 73 | VKBuffer& VKStagingBufferPool::CreateStagingBuffer(std::size_t size, bool host_visible) { | 73 | VKBuffer& VKStagingBufferPool::CreateStagingBuffer(std::size_t size, bool host_visible) { |
| 74 | const auto usage = | 74 | const auto usage = |
| 75 | vk::BufferUsageFlagBits::eTransferSrc | vk::BufferUsageFlagBits::eTransferDst | | 75 | vk::BufferUsageFlagBits::eTransferSrc | vk::BufferUsageFlagBits::eTransferDst | |
| 76 | vk::BufferUsageFlagBits::eStorageBuffer | vk::BufferUsageFlagBits::eIndexBuffer; | 76 | vk::BufferUsageFlagBits::eUniformBuffer | vk::BufferUsageFlagBits::eStorageBuffer | |
| 77 | vk::BufferUsageFlagBits::eIndexBuffer; | ||
| 77 | const u32 log2 = Common::Log2Ceil64(size); | 78 | const u32 log2 = Common::Log2Ceil64(size); |
| 78 | const vk::BufferCreateInfo buffer_ci({}, 1ULL << log2, usage, vk::SharingMode::eExclusive, 0, | 79 | const vk::BufferCreateInfo buffer_ci({}, 1ULL << log2, usage, vk::SharingMode::eExclusive, 0, |
| 79 | nullptr); | 80 | nullptr); |