diff options
author | Marek Olšák <marek.olsak@amd.com> | 2019-05-13 17:03:58 -0400 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2019-05-14 15:15:11 -0400 |
commit | 67b47859588e19601a2fa9358749551301812ba4 (patch) | |
tree | 2b3a4d1fa0c281801d5b4c146c0c9aa2ba29e58f | |
parent | e5db87b00b7c62f4f8d9d8f5aac323a7522595f3 (diff) |
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>
-rw-r--r-- | src/mesa/main/teximage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 36480348943..4b33403bfaa 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -530,7 +530,7 @@ _mesa_max_texture_levels(const struct gl_context *ctx, GLenum target) && ctx->Extensions.ARB_texture_multisample ? 1 : 0; case GL_TEXTURE_EXTERNAL_OES: - /* fall-through */ + return _mesa_has_OES_EGL_image_external(ctx) ? 1 : 0; default: return 0; /* bad target */ } |