mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Merge pull request #2023 from raven02/texture
Ignore texture upload if texture width > pitch
This commit is contained in:
commit
662fce38bd
1 changed files with 6 additions and 0 deletions
|
@ -201,6 +201,12 @@ void upload_texture_subresource(gsl::span<gsl::byte> dst_buffer, const rsx_subre
|
||||||
u16 w = src_layout.width_in_block;
|
u16 w = src_layout.width_in_block;
|
||||||
u16 h = src_layout.height_in_block;
|
u16 h = src_layout.height_in_block;
|
||||||
u16 depth = src_layout.depth;
|
u16 depth = src_layout.depth;
|
||||||
|
u32 pitch = src_layout.pitch_in_bytes;
|
||||||
|
|
||||||
|
// Ignore when texture width > pitch
|
||||||
|
if (w > pitch)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (format)
|
switch (format)
|
||||||
{
|
{
|
||||||
case CELL_GCM_TEXTURE_B8:
|
case CELL_GCM_TEXTURE_B8:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue