rsx: Fix remapping behavior for depth textures (sampled as depth)

This commit is contained in:
kd-11 2026-02-10 03:11:47 +03:00 committed by kd-11
parent 765e72dcb7
commit 3f321c61f3
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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