lima: add new findings to texture descriptor

Graphics / Mesa 3D Graphics Library / Mesa - Vasily Khoruzhick [gmail.com] - 14 January 2020 06:50 UTC

Lower 8 bits of unknown_1_3 seems to be min_lod, rest of 4 bits + miplevels are max_lod and min_mipfilter seems to be lod bias. All are in fixed format with 4 bit integer and 4 bit fraction, lod_bias also has sign bit.

Blob also seems to do some magic with lod_bias if min filter is nearest --it adds 0.5 to lod_bias in this case. Same story when all filters are nearest and mipmapping is enabled, but in this case it subtracts 1/16 from lod_bias.

Fixes 134 dEQP tests in dEQP-GLES2.functional.texture.*

55b0aa436e9 lima: add new findings to texture descriptor
src/gallium/drivers/lima/lima_parser.c | 12 +++++++-----
src/gallium/drivers/lima/lima_screen.c | 2 +-
src/gallium/drivers/lima/lima_texture.c | 21 ++++++++++++++++++---
src/gallium/drivers/lima/lima_texture.h | 24 +++++++++++++++++++++---
4 files changed, 47 insertions(+), 12 deletions(-)

Upstream: cgit.freedesktop.org


  • Share