mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-11 18:50:55 +00:00
Fix cellGcmSetTile(Info)
I didn't specifically write a test for it, but I did at some point modify a couple samples to try and use 2048 and 2047. Anything above 2047 didn't work.
This commit is contained in:
parent
3465106456
commit
efe430733b
1 changed files with 2 additions and 2 deletions
|
@ -560,7 +560,7 @@ s32 cellGcmSetTileInfo(u8 index, u8 location, u32 offset, u32 size, u32 pitch, u
|
||||||
cellGcmSys.Warning("cellGcmSetTileInfo(index=%d, location=%d, offset=%d, size=%d, pitch=%d, comp=%d, base=%d, bank=%d)",
|
cellGcmSys.Warning("cellGcmSetTileInfo(index=%d, location=%d, offset=%d, size=%d, pitch=%d, comp=%d, base=%d, bank=%d)",
|
||||||
index, location, offset, size, pitch, comp, base, bank);
|
index, location, offset, size, pitch, comp, base, bank);
|
||||||
|
|
||||||
if (index >= rsx::limits::tiles_count || base >= 800 || bank >= 4)
|
if (index >= rsx::limits::tiles_count || base >= 2048 || bank >= 4)
|
||||||
{
|
{
|
||||||
cellGcmSys.Error("cellGcmSetTileInfo: CELL_GCM_ERROR_INVALID_VALUE");
|
cellGcmSys.Error("cellGcmSetTileInfo: CELL_GCM_ERROR_INVALID_VALUE");
|
||||||
return CELL_GCM_ERROR_INVALID_VALUE;
|
return CELL_GCM_ERROR_INVALID_VALUE;
|
||||||
|
@ -1151,7 +1151,7 @@ s32 cellGcmSetTile(u8 index, u8 location, u32 offset, u32 size, u32 pitch, u8 co
|
||||||
index, location, offset, size, pitch, comp, base, bank);
|
index, location, offset, size, pitch, comp, base, bank);
|
||||||
|
|
||||||
// Copied form cellGcmSetTileInfo
|
// Copied form cellGcmSetTileInfo
|
||||||
if (index >= rsx::limits::tiles_count || base >= 800 || bank >= 4)
|
if (index >= rsx::limits::tiles_count || base >= 2048 || bank >= 4)
|
||||||
{
|
{
|
||||||
cellGcmSys.Error("cellGcmSetTile: CELL_GCM_ERROR_INVALID_VALUE");
|
cellGcmSys.Error("cellGcmSetTile: CELL_GCM_ERROR_INVALID_VALUE");
|
||||||
return CELL_GCM_ERROR_INVALID_VALUE;
|
return CELL_GCM_ERROR_INVALID_VALUE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue