mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-10 07:24:54 +01:00
rsx: Fix remapping behavior for depth textures (sampled as depth)
This commit is contained in:
parent
765e72dcb7
commit
3f321c61f3
|
|
@ -1227,7 +1227,8 @@ namespace rsx
|
|||
case CELL_GCM_TEXTURE_DEPTH16:
|
||||
case CELL_GCM_TEXTURE_DEPTH16_FLOAT:
|
||||
// Depth textures will hang the hardware if BX2 or GAMMA is active. ARGB8_SIGNED has no impact.
|
||||
return 0;
|
||||
// UNSIGNED_REMAP=BIASED works on all formats including the float variants.
|
||||
return RSX_FORMAT_FEATURE_BIASED_NORMALIZATION;
|
||||
|
||||
case CELL_GCM_TEXTURE_X16:
|
||||
case CELL_GCM_TEXTURE_Y16_X16:
|
||||
|
|
|
|||
|
|
@ -2323,7 +2323,6 @@ namespace rsx
|
|||
|
||||
if (const auto format_features = rsx::get_format_features(format); format_features != 0)
|
||||
{
|
||||
// Special operations applied to 8-bit formats such as gamma correction and sign conversion
|
||||
// NOTE: The unsigned_remap=bias flag being set flags the texture as being compressed normal (2n-1 / BX2) (UE3)
|
||||
// NOTE: The ARGB8_signed flag means to reinterpret the raw bytes as signed. This is different than unsigned_remap=bias which does range decompression.
|
||||
// This is a separate method of setting the format to signed mode without doing so per-channel
|
||||
|
|
|
|||
Loading…
Reference in a new issue