From 9373db5d94c710afc3f4affb97efbe3ff2d6af91 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sun, 12 Sep 2021 17:09:55 +0200 Subject: [PATCH] freedreno: a2xx: Handle samplerExternalOES like sampler2D There should be no difference in handling these two samplers, handle GLSL_SAMPLER_DIM_EXTERNAL just like GLSL_SAMPLER_DIM_2D to fix "unimplemented sampler 6" error in case someone tries to use samplerExternalOES in shader program. Signed-off-by: Marek Vasut Part-of: --- src/gallium/drivers/freedreno/a2xx/ir2_nir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c index 74331275300..45fe0e26485 100644 --- a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c +++ b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c @@ -692,6 +692,7 @@ emit_tex(struct ir2_context *ctx, nir_tex_instr *tex) switch (tex->sampler_dim) { case GLSL_SAMPLER_DIM_2D: + case GLSL_SAMPLER_DIM_EXTERNAL: break; case GLSL_SAMPLER_DIM_RECT: is_rect = true;