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 <marex@denx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12817>
This commit is contained in:
Marek Vasut 2021-09-12 17:09:55 +02:00 committed by Marge Bot
parent 09cb4e3010
commit 9373db5d94

View file

@ -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;