From dec6fba68d448814a4eb1aab48ba31e0855c6fe7 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 21 Nov 2025 02:40:40 +0300 Subject: [PATCH] gl: Use 16-byte alignment on staging buffers --- rpcs3/Emu/RSX/GL/GLTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLTexture.cpp b/rpcs3/Emu/RSX/GL/GLTexture.cpp index 6fd04020ec..7b43cfc0a7 100644 --- a/rpcs3/Emu/RSX/GL/GLTexture.cpp +++ b/rpcs3/Emu/RSX/GL/GLTexture.cpp @@ -590,7 +590,7 @@ namespace gl void fill_texture(gl::command_context& cmd, texture* dst, int format, const std::vector &input_layouts, - bool is_swizzled, GLenum gl_format, GLenum gl_type, rsx::simple_array& staging_buffer) + bool is_swizzled, GLenum gl_format, GLenum gl_type, std::span staging_buffer) { const auto& driver_caps = gl::get_driver_caps(); rsx::texture_uploader_capabilities caps @@ -841,7 +841,7 @@ namespace gl void upload_texture(gl::command_context& cmd, texture* dst, u32 gcm_format, bool is_swizzled, const std::vector& subresources_layout) { // Calculate staging buffer size - rsx::simple_array data_upload_buf; + rsx::simple_array data_upload_buf; rsx::texture_uploader_capabilities caps { .supports_dxt = gl::get_driver_caps().EXT_texture_compression_s3tc_supported }; if (rsx::is_compressed_host_format(caps, gcm_format))