rsx: Fbo fixes 2

- Use AA mode to predict surface compression. Compression mode is useless without AA activated
- Rewrites most image subresource fetch routines to use the new heuristic
- Fix rsx:🧵:find_tile. FEED000(X) can be substituted for (X) in the code
-- Fixes alot of failures when looking for tiled regions

rsx: Fix antialiased unnormalized coords
- scaling factors are inverse to allow proper coordinates to be computed in fs
This commit is contained in:
kd-11 2017-11-01 01:36:39 +03:00
parent b95630d84a
commit bbcb6b6851
6 changed files with 168 additions and 69 deletions

View file

@ -1387,8 +1387,8 @@ namespace rsx
{
if (raw_format & CELL_GCM_TEXTURE_UN)
{
result.texture_scale[i][0] = (resolution_scale * sampler_descriptors[i]->internal_scale);
result.texture_scale[i][1] = resolution_scale;
result.texture_scale[i][0] = (resolution_scale * sampler_descriptors[i]->scale_x);
result.texture_scale[i][1] = (resolution_scale * sampler_descriptors[i]->scale_y);
}
}
@ -1562,7 +1562,7 @@ namespace rsx
{
for (GcmTileInfo &tile : tiles)
{
if (!tile.binded || tile.location != location)
if (!tile.binded || (tile.location & 1) != (location & 1))
{
continue;
}