From 2db03867f643ce535dc955e9a27dfbc63de6e627 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Thu, 12 Dec 2019 13:58:28 -0500 Subject: [PATCH] freedreno/ir3: add GLSL_SAMPLER_DIM_SUBPASS to tex_info Signed-off-by: Jonathan Marek Reviewed-by: Eric Anholt --- src/freedreno/ir3/ir3_compiler_nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 1d888f4..398480e 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -1895,6 +1895,8 @@ tex_info(nir_tex_instr *tex, unsigned *flagsp, unsigned *coordsp) case GLSL_SAMPLER_DIM_RECT: case GLSL_SAMPLER_DIM_EXTERNAL: case GLSL_SAMPLER_DIM_MS: + case GLSL_SAMPLER_DIM_SUBPASS: + case GLSL_SAMPLER_DIM_SUBPASS_MS: coords = 2; break; case GLSL_SAMPLER_DIM_3D: -- 2.7.4