mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
09cb4e3010
commit
9373db5d94
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue