Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created January 12, 2020 06:25
Show Gist options
  • Save anarsoul/526316fc78f2720b0b2da15a6dce02ca to your computer and use it in GitHub Desktop.
Save anarsoul/526316fc78f2720b0b2da15a6dce02ca to your computer and use it in GitHub Desktop.
commit acfff746e726107abc606584662275adafd3d579
Author: Vasily Khoruzhick <anarsoul@gmail.com>
Date: Sat Jan 11 22:23:36 2020 -0800
lima: don't set miplevels in texture descriptor if mipmapping is not enabled
Fixes 98 dEQP tests in dEQP-GLES2.functional.texture.*
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
diff --git a/src/gallium/drivers/lima/lima_texture.c b/src/gallium/drivers/lima/lima_texture.c
index b5a6103093c..2d0e543faf2 100644
--- a/src/gallium/drivers/lima/lima_texture.c
+++ b/src/gallium/drivers/lima/lima_texture.c
@@ -156,6 +156,8 @@ lima_update_tex_desc(struct lima_context *ctx, struct lima_sampler_state *sample
desc->min_mipfilter_2 = 0;
break;
case PIPE_TEX_MIPFILTER_NONE:
+ desc->miplevels = 0;
+ break;
default:
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment