nouveau: Allow GLSL_SAMPLER_DIM_SUBPASS*
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:55 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Aug 2023 18:58:03 +0000 (18:58 +0000)
Reviewed-by: M Henning <drawoc@darkrefraction.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24327>

src/nouveau/codegen/nv50_ir_from_nir.cpp

index 34c4bb4..27ae9ed 100644 (file)
@@ -2857,11 +2857,13 @@ Converter::convert(glsl_sampler_dim dim, bool isArray, bool isShadow)
 {
    switch (dim) {
    CASE_SAMPLER(1D);
+   case GLSL_SAMPLER_DIM_SUBPASS:
    CASE_SAMPLER(2D);
    CASE_SAMPLER(CUBE);
    case GLSL_SAMPLER_DIM_3D:
       return TEX_TARGET_3D;
    case GLSL_SAMPLER_DIM_MS:
+   case GLSL_SAMPLER_DIM_SUBPASS_MS:
       if (isArray)
          return TEX_TARGET_2D_MS_ARRAY;
       return TEX_TARGET_2D_MS;