mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 12:32:43 +00:00
vk: Fix scratch buf size calculation when uploading DSVs
This commit is contained in:
parent
1bb0caed6f
commit
fcc7a7452a
@ -1012,7 +1012,7 @@ namespace vk
|
||||
{
|
||||
// D-S aspect requires a load section that can fit a separated block => D(4) + S(1)
|
||||
// Due to reverse processing of inputs, only enough space to fit one layer is needed here.
|
||||
scratch_buf_size += dst_image->width() * dst_image->height() * 5;
|
||||
scratch_buf_size += (image_linear_size * 5) / 4;
|
||||
}
|
||||
|
||||
// Must acquire scratch buffer owned by the processing command queue!
|
||||
|
Loading…
x
Reference in New Issue
Block a user