From 9a2d016021730757dd00085806334f02437e07da Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:11:55 -0600 Subject: [PATCH] nouveau: Allow GLSL_SAMPLER_DIM_SUBPASS* Reviewed-by: M Henning Reviewed-by: Karol Herbst Part-of: --- src/nouveau/codegen/nv50_ir_from_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nouveau/codegen/nv50_ir_from_nir.cpp b/src/nouveau/codegen/nv50_ir_from_nir.cpp index 34c4bb4..27ae9ed 100644 --- a/src/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/nouveau/codegen/nv50_ir_from_nir.cpp @@ -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; -- 2.7.4