microsoft/compiler: Add subpass input types

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13993>
This commit is contained in:
Louis-Francis Ratté-Boulianne 2021-11-09 22:43:41 -05:00 committed by Marge Bot
parent ef5283d37d
commit 8507afbd06
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,7 @@ enum dxil_resource_kind dxil_get_resource_kind(const struct glsl_type *type)
: DXIL_RESOURCE_KIND_TEXTURE1D;
case GLSL_SAMPLER_DIM_2D:
case GLSL_SAMPLER_DIM_EXTERNAL:
case GLSL_SAMPLER_DIM_SUBPASS:
return is_array ? DXIL_RESOURCE_KIND_TEXTURE2D_ARRAY
: DXIL_RESOURCE_KIND_TEXTURE2D;
case GLSL_SAMPLER_DIM_3D:
@ -101,6 +102,7 @@ enum dxil_resource_kind dxil_get_resource_kind(const struct glsl_type *type)
case GLSL_SAMPLER_DIM_BUF:
return DXIL_RESOURCE_KIND_TYPED_BUFFER;
case GLSL_SAMPLER_DIM_MS:
case GLSL_SAMPLER_DIM_SUBPASS_MS:
return is_array ? DXIL_RESOURCE_KIND_TEXTURE2DMS_ARRAY
: DXIL_RESOURCE_KIND_TEXTURE2DMS;