zink: handle GLSL_SAMPLER_DIM_EXTERNAL in ntv

this fixes most of the tests that use it

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9276>
This commit is contained in:
Mike Blumenkrantz 2020-10-09 17:32:59 -04:00 committed by Marge Bot
parent cb3dad8ca4
commit 37ad6bfcd8
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ zink_sampler_type(const struct glsl_type *type)
case GLSL_SAMPLER_DIM_CUBE:
case GLSL_SAMPLER_DIM_RECT:
case GLSL_SAMPLER_DIM_MS:
case GLSL_SAMPLER_DIM_EXTERNAL:
return VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
case GLSL_SAMPLER_DIM_BUF:
return VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER;
@ -83,6 +84,7 @@ zink_image_type(const struct glsl_type *type)
case GLSL_SAMPLER_DIM_CUBE:
case GLSL_SAMPLER_DIM_RECT:
case GLSL_SAMPLER_DIM_MS:
case GLSL_SAMPLER_DIM_EXTERNAL:
return VK_DESCRIPTOR_TYPE_STORAGE_IMAGE;
case GLSL_SAMPLER_DIM_BUF:
return VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER;