commit | f33cb272f0890f115c36fb96173123bc699b7b2c | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Wed May 01 14:00:33 2019 -0700 |
committer | Eric Anholt <eric@anholt.net> | Mon May 13 12:03:05 2019 -0700 |
tree | 853d429e345213757c8427388e2ab870a5ea227a | |
parent | ce6dbc0417586cc1ceb015b631384ffdfb22e981 [diff] |
mesa: Replace MaxTextureLevels with MaxTextureSize. In most places (glGetInteger, max_legal_texture_dimensions), we wanted the number of pixels, not the number of levels. Number of levels is easily recovered with util_next_power_of_two() and ffs(). More importantly, for V3D we want to be able to expose a non-power-of-two maximum texture size to cover 2x4k displays on HW that can't quite do 8192 wide. Reviewed-by: Marek Olšák <marek.olsak@amd.com>