diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2016-08-20 00:38:05 +0100 |
---|---|---|
committer | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2016-09-01 11:36:09 +0100 |
commit | 2dc6930a5a54c0f586ba09437123c380f3eae456 (patch) | |
tree | 354f21d4de4642f9118212206f1000d9a6ad076f /src/egl/drivers/dri2/platform_x11.c | |
parent | fc6be400115c0caa4e5cbb810917d6b8a11596a4 (diff) | |
download | external_mesa3d-2dc6930a5a54c0f586ba09437123c380f3eae456.zip external_mesa3d-2dc6930a5a54c0f586ba09437123c380f3eae456.tar.gz external_mesa3d-2dc6930a5a54c0f586ba09437123c380f3eae456.tar.bz2 |
isl: round format alignment to nearest power of 2
A few inline asserts in anv assume alignments are power of 2, but with
formats like R8G8B8 we have odd alignments.
v2: round up to power of 2 (Ilia)
v3: reuse util_next_power_of_two() from gallium/aux/util/u_math.h (Ilia)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/egl/drivers/dri2/platform_x11.c')
0 files changed, 0 insertions, 0 deletions