rsx: Texture format fixes

- Implement SRGB (gamma corrected) textures (DXT1, DXT3, DXT5, RGBA8 only)
- Fix channel map decode for XY data texture formats
- Fix remap layout for X16 textures (verified with Mass Effect 3)
This commit is contained in:
kd-11 2018-03-13 13:46:32 +03:00
parent a35bcb131e
commit 5817f9fe3f
10 changed files with 92 additions and 24 deletions

View file

@ -15,6 +15,12 @@ namespace rsx
framebuffer_storage = 3
};
enum texture_colorspace
{
rgb_linear = 0,
srgb_nonlinear = 1
};
//Sampled image descriptor
struct sampled_image_descriptor_base
{