v3d: handle samplerExternalOES

Add handling for GLSL_SAMPLER_DIM_EXTERNAL.

Fixes `spec@oes_egl_image_external_essl3@oes_egl_image_external_essl3`.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23469>
This commit is contained in:
Juan A. Suarez Romero 2023-06-06 13:51:38 +02:00 committed by Marge Bot
parent b687fa4ccb
commit 7a21b59df9
2 changed files with 1 additions and 1 deletions

View file

@ -457,7 +457,6 @@ spec@nv_image_formats@compiler@declaration-disallow-rgba16-unorm-3d.vert,Fail
spec@nv_image_formats@compiler@declaration-disallow-rgba16-unorm-cube.frag,Fail
spec@nv_image_formats@compiler@declaration-disallow-rgba16-unorm-cube.vert,Fail
spec@nv_read_depth@read_depth_gles3,Fail
spec@oes_egl_image_external_essl3@oes_egl_image_external_essl3,Crash
spec@oes_point_sprite@arb_point_sprite-checkerboard_gles1,Fail
spec@oes_shader_io_blocks@compiler@layout-location-aliasing.vert,Fail

View file

@ -917,6 +917,7 @@ ntq_emit_txs(struct v3d_compile *c, nir_tex_instr *instr)
case GLSL_SAMPLER_DIM_3D:
case GLSL_SAMPLER_DIM_CUBE:
case GLSL_SAMPLER_DIM_BUF:
case GLSL_SAMPLER_DIM_EXTERNAL:
/* Don't minify the array size. */
if (!(instr->is_array && i == dest_size - 1)) {
size = ntq_minify(c, size, lod);