Skip to content

Commit

Permalink
bump up vector size to 64 in image_info and image_binding
Browse files Browse the repository at this point in the history
solves ```boost::bad_alloc``` error when compiling shaders
  • Loading branch information
AboMedoz authored Jan 4, 2025
1 parent 9d31432 commit d35d993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video_core/renderer_vulkan/vk_rasterizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Rasterizer {
std::pair<VideoCore::ImageId, VideoCore::TextureCache::RenderTargetDesc>, 8>
cb_descs;
std::optional<std::pair<VideoCore::ImageId, VideoCore::TextureCache::DepthTargetDesc>> db_desc;
boost::container::static_vector<vk::DescriptorImageInfo, 32> image_infos;
boost::container::static_vector<vk::DescriptorImageInfo, 64> image_infos;
boost::container::static_vector<vk::BufferView, 8> buffer_views;
boost::container::static_vector<vk::DescriptorBufferInfo, 32> buffer_infos;
boost::container::static_vector<VideoCore::ImageId, 64> bound_images;
Expand All @@ -121,7 +121,7 @@ class Rasterizer {
using TexBufferBindingInfo = std::pair<VideoCore::BufferId, AmdGpu::Buffer>;
boost::container::static_vector<TexBufferBindingInfo, 32> texbuffer_bindings;
using ImageBindingInfo = std::pair<VideoCore::ImageId, VideoCore::TextureCache::TextureDesc>;
boost::container::static_vector<ImageBindingInfo, 32> image_bindings;
boost::container::static_vector<ImageBindingInfo, 64> image_bindings;
};

} // namespace Vulkan

0 comments on commit d35d993

Please sign in to comment.