mesa/src
Nanley Chery 02f6995d76 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: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2019-06-27 23:38:38 +00:00
..
amd radv: only export clip/cull distances if PS reads them 2019-06-27 08:56:37 +02:00
broadcom nir: define behavior of nir_op_bfm and nir_op_u/ibfe according to SM5 spec. 2019-06-24 18:42:20 +02:00
compiler nir/algebraic: Add helpers and a rule involving wrapping 2019-06-26 14:13:02 -07:00
egl egl: replace dead vfunc with an error 2019-06-25 07:47:19 +01:00
etnaviv etnaviv: etnaviv_bo_cache_test: Use /dev/dri/renderD128 by default 2019-06-05 08:58:05 +00:00
freedreno freedreno: Only upload the used part of UBO0 to the constant buffer. 2019-06-24 14:23:07 -07:00
gallium intel: Add and use helpers for level0 extent 2019-06-27 23:38:37 +00:00
gbm gbm: gbm_bo_get_handle_for_plane fallback to nonplanar handle 2019-05-15 18:27:30 +01:00
getopt
glx glx: fix glvnd pointer types 2019-06-20 17:21:37 +01:00
gtest delete autotools .gitignore files 2019-04-29 21:17:19 +00:00
hgl haiku: Fix hgl dispatch build. Tested under meson/scons. 2019-04-02 16:06:00 -05:00
imgui imgui: bump imgui memory editor copy 2019-06-18 15:34:13 +00:00
intel isl: Don't align phys_level0_sa by block dimension 2019-06-27 23:38:38 +00:00
loader Delete autotools 2019-04-15 13:44:29 -07:00
mapi meson: Search for execinfo.h 2019-06-19 12:16:18 -07:00
mesa meson: set up a proper internal dependency for xmlconfig 2019-06-27 17:42:25 +00:00
panfrost lima,panfrost: Move lima_tiling.c/h to /src/panfrost 2019-06-20 08:06:35 -07:00
util meson: set up a proper internal dependency for xmlconfig 2019-06-27 17:42:25 +00:00
vulkan vulkan: Update the XML and headers to 1.1.110 2019-06-04 17:30:51 +00:00
meson.build lima,panfrost: Move lima_tiling.c/h to /src/panfrost 2019-06-20 08:06:35 -07:00
SConscript