mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-09 09:39:44 +00:00
vk: Lower scratch dimension alignment to 256 to minimize wastage
This commit is contained in:
parent
7d710cbf8c
commit
b6cdf18165
1 changed files with 2 additions and 2 deletions
|
@ -125,8 +125,8 @@ namespace vk
|
||||||
{
|
{
|
||||||
auto create_texture = [&]()
|
auto create_texture = [&]()
|
||||||
{
|
{
|
||||||
u32 new_width = utils::align(requested_width, 1024u);
|
u32 new_width = utils::align(requested_width, 256u);
|
||||||
u32 new_height = utils::align(requested_height, 1024u);
|
u32 new_height = utils::align(requested_height, 256u);
|
||||||
|
|
||||||
return new vk::image(*g_render_device, g_render_device->get_memory_mapping().device_local, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
|
return new vk::image(*g_render_device, g_render_device->get_memory_mapping().device_local, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
|
||||||
VK_IMAGE_TYPE_2D, format, new_width, new_height, 1, 1, 1, VK_SAMPLE_COUNT_1_BIT, VK_IMAGE_LAYOUT_UNDEFINED,
|
VK_IMAGE_TYPE_2D, format, new_width, new_height, 1, 1, 1, VK_SAMPLE_COUNT_1_BIT, VK_IMAGE_LAYOUT_UNDEFINED,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue