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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user