mesa: fix _mesa_max_texture_levels for GL_TEXTURE_EXTERNAL_OES
authorMarek Olšák <marek.olsak@amd.com>
Mon, 13 May 2019 21:03:58 +0000 (17:03 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 14 May 2019 19:15:11 +0000 (15:15 -0400)
commit67b47859588e19601a2fa9358749551301812ba4
tree2b3a4d1fa0c281801d5b4c146c0c9aa2ba29e58f
parente5db87b00b7c62f4f8d9d8f5aac323a7522595f3
mesa: fix _mesa_max_texture_levels for GL_TEXTURE_EXTERNAL_OES

This helps fix:
    piglit/bin/ext_image_dma_buf_import-sample_yuv -fmt=NV12 -auto

Fixes: d88f3392fff7c6342f3840c4bd8195a1296c2372
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/teximage.c