rsx: Add a few more depth format types to known behaviour paths
This commit is contained in:
@@ -1130,16 +1130,26 @@ namespace rsx
|
|||||||
if (surface_exists)
|
if (surface_exists)
|
||||||
{
|
{
|
||||||
u32 format = raw_format & ~(CELL_GCM_TEXTURE_LN | CELL_GCM_TEXTURE_UN);
|
u32 format = raw_format & ~(CELL_GCM_TEXTURE_LN | CELL_GCM_TEXTURE_UN);
|
||||||
if (format == CELL_GCM_TEXTURE_A8R8G8B8 || format == CELL_GCM_TEXTURE_D8R8G8B8)
|
switch (format)
|
||||||
|
{
|
||||||
|
case CELL_GCM_TEXTURE_A8R8G8B8:
|
||||||
|
case CELL_GCM_TEXTURE_D8R8G8B8:
|
||||||
|
case CELL_GCM_TEXTURE_A4R4G4B4:
|
||||||
|
case CELL_GCM_TEXTURE_R5G6B5:
|
||||||
result.redirected_textures |= (1 << i);
|
result.redirected_textures |= (1 << i);
|
||||||
else if (format == CELL_GCM_TEXTURE_DEPTH16 || format == CELL_GCM_TEXTURE_DEPTH24_D8)
|
break;
|
||||||
|
case CELL_GCM_TEXTURE_DEPTH16:
|
||||||
|
case CELL_GCM_TEXTURE_DEPTH24_D8:
|
||||||
|
case CELL_GCM_TEXTURE_DEPTH16_FLOAT:
|
||||||
result.shadow_textures |= (1 << i);
|
result.shadow_textures |= (1 << i);
|
||||||
else
|
break;
|
||||||
|
default:
|
||||||
LOG_ERROR(RSX, "Depth texture bound to pipeline with unexpected format 0x%X", format);
|
LOG_ERROR(RSX, "Depth texture bound to pipeline with unexpected format 0x%X", format);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
result.set_texture_dimension(texture_dimensions);
|
result.set_texture_dimension(texture_dimensions);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user