rsx: Improve unnormalized coordinate sampling

- Improve rounding when sampling nearest neighbour. This is mostly a problem with NVIDIA
- Implement unnormalized 3D sampling
This commit is contained in:
kd-11 2021-07-31 17:27:16 +03:00 committed by kd-11
parent b3c65b7bca
commit 99b6963fab
9 changed files with 74 additions and 55 deletions

View file

@ -11,15 +11,16 @@ namespace rsx
};
#pragma pack(push, 1)
// NOTE: This structure must be packed to match GPU layout.
// NOTE: This structure must be packed to match GPU layout (std140).
struct fragment_program_texture_config
{
struct TIU_slot
{
float scale_x;
float scale_y;
float scale[3];
float subpixel_bias;
u32 remap;
u32 control;
u32 padding[2];
}
slots_[16]; // QT headers will collide with any variable named 'slots' because reasons