Mesa (main): microsoft/compiler: Add subpass input types

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jan 31 16:51:19 UTC 2022


Module: Mesa
Branch: main
Commit: 8507afbd06ea88ab3eef28160329bee39f81e4e1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8507afbd06ea88ab3eef28160329bee39f81e4e1

Author: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
Date:   Tue Nov  9 22:43:41 2021 -0500

microsoft/compiler: Add subpass input types

Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13993>

---

 src/microsoft/compiler/dxil_enums.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/microsoft/compiler/dxil_enums.c b/src/microsoft/compiler/dxil_enums.c
index d21dfa3bed1..14b6c337431 100644
--- a/src/microsoft/compiler/dxil_enums.c
+++ b/src/microsoft/compiler/dxil_enums.c
@@ -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;
 



More information about the mesa-commit mailing list