summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_debug_describe.c
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2019-05-20 14:50:23 -0700
committerNanley Chery <[email protected]>2019-06-27 23:38:38 +0000
commit02f6995d76c9fa0fdbc7a89013f4968970ab016e (patch)
tree36e034c4fe58eba3b01c96967c0d6db1bdbc47a2 /src/gallium/auxiliary/util/u_debug_describe.c
parentfb1350c76f1525e6bd320cef62d55aff19ec3f05 (diff)
isl: Don't align phys_level0_sa by block dimension
Aligning phys_level0_sa by the compression block dimension prior to mipmap layout causes the layout of compressed surfaces to differ from the sampler's expectations in certain cases. The hardware docs agree: From the BDW PRM, Vol. 5, Compressed Mipmap Layout, The compressed mipmaps are stored in a similar fashion to uncompressed mipmaps [...] The following exceptions apply to the layout of compressed (vs. uncompressed) mipmaps: * [...] * The dimensions of the mip maps are first determined by applying the sizing algorithm presented in Non-Power-of-Two Mipmaps above. Then, if necessary, they are padded out to compression block boundaries. The last bullet indicates that alignment should not be done for calculating a miplevel's dimensions, but rather for determining miplevel placement/padding. Comply with this text by removing the extra alignment. Fixes some fbo-generatemipmap-formats piglit failures on all tested platforms (SNB-KBL). v2: - Note fixed platforms. - Update some consumers via a helper function. Cc: <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_debug_describe.c')
0 files changed, 0 insertions, 0 deletions