Triang3l
a37b57ca8d
[GPU] Fix tiled mip tail extent calculation
...
Previously, for mips, the dimensions of the texture weren't rounded to powers of two before calculating the mip tail extent, resulting in the mip tail for a 260 blocks tall texture, that contains mips ending at Y of up to 36, having the Y extent calculated as 32. With rounding to powers of two, it would have been 64.
However, with the GetTiledAddressUpperBound functions, none of this is necessary at all (and neither is rounding the extents in TextureGuestLayout::Level to 32x32x4 blocks) - using the same code for calculating the XYZ extents of tiled textures as for linear textures now, which, for the mip tail, calculates the actual maximum coordinates of the mips stored in it - and rounding to tiles is done internally by GetTiledAddressUpperBound.
2022-10-23 21:26:47 +03:00
Triang3l
382710bab7
[GPU] Normalize sampler clamp modes
2022-06-28 21:58:58 +03:00
Triang3l
2606fa5709
[GPU] Apply BaseMap MipFilter via samplers as it may be overridden
...
Make it have no effect on the texture resource as a resource may be used with samplers with different overrides. Also make sure magnification vs. minification is not undefined with it on Direct3D 12.
2022-06-26 18:41:38 +03:00
Triang3l
84fcd5defa
[GPU] Fix resolve destination offset and extent calculation
2022-06-02 21:47:30 +03:00
Triang3l
25594c918c
[GPU] Fix tiled texture memory extent calculation
2022-05-31 23:17:33 +03:00
Triang3l
a4840e1992
[GPU] FIXME comment for 1bpb/2bpb texture tiled extent
2022-05-24 22:33:27 +03:00
Triang3l
8701c9f24e
[D3D12] Texture load code cleanup and resolution scaling fixes
...
The resolution scale is now taken into account when copying from the mip tail.
2022-05-24 22:28:42 +03:00
Triang3l
9606ff2a31
[D3D12] Fix 8192 texture size storage
2021-12-12 16:27:49 +03:00
Triang3l
e720e0a540
[Code] Remove game names from code comments (most of at least)
2021-09-05 21:27:40 +03:00
Triang3l
dd5ea87213
[GPU] Linear mip tail exact extent estimation
2021-05-15 18:19:26 +03:00
Triang3l
4eca2326c3
[GPU/D3D12] Support texture pitch, more precise texture extent/stride calculations
2021-05-13 23:02:11 +03:00
Triang3l
bd5f77bc3b
[GPU] Common resolve code based on compute shaders, swap MSAA samples 1 and 2, change ROV write rounding, random refactoring
2020-08-09 21:33:10 +03:00
Triang3l
4bb0ca0e09
[GPU] Move all xenos.h to gpu::xenos, disambiguate Dimension/TextureDimension
2020-07-11 15:54:22 +03:00
Triang3l
d26f84b36b
[D3D12] Untile whole mip tail to make alignment assumptions later, other mip fixes
2020-06-23 23:49:42 +03:00
Triang3l
8a64861ec0
[DXBC] New tfetch: pre-swizzle signs, additive LOD + refactoring
2020-06-06 19:12:34 +03:00
Triang3l
8c2f607793
[GPU] Notes about tiled offset patterns
2020-05-14 23:42:54 +03:00
Triang3l
a3b4c77fdb
[GPU] Add texture_util::SwizzleSigns for later
2020-05-11 16:30:09 +03:00
Triang3l
47eee5e1c3
[GPU] Unified function for mip level bounds, BaseMap mip filter, small refactoring
2020-02-18 23:31:48 +03:00
Triang3l
08675ab65e
[D3D12] 3D texture resolve
2019-04-25 08:37:55 +03:00
Triang3l
952819ed87
[D3D12] Don't 4KB-align sizes of resolve destinations
2018-12-13 15:22:16 +03:00
Triang3l
9427667a27
[D3D12] Experimental 2x resolution scale
2018-12-06 10:38:13 +03:00
Triang3l
251f078baf
[D3D12] Fix mipmapped cubemaps and stacked textures
2018-10-29 22:40:29 +03:00
Triang3l
83c99bc811
[D3D12] Fix resolve region handling
2018-10-28 14:36:41 +03:00
Triang3l
c4f80aac0d
[D3D12] EDRAM layout of a rectangle and other resolve stuff
2018-08-22 17:33:43 +03:00
Triang3l
cfd3821b83
[D3D12] DXT1 untiling
2018-08-06 20:10:53 +03:00
Triang3l
b50d6d844f
[D3D12] Texture object creation
2018-08-05 17:43:00 +03:00
Triang3l
8a24ff5078
[D3D12] Texture utility functions, all block sizes and bpp
2018-08-03 23:11:09 +03:00