From: Jonathan Marek Date: Thu, 12 Dec 2019 18:58:28 +0000 (-0500) Subject: freedreno/ir3: add GLSL_SAMPLER_DIM_SUBPASS to tex_info X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2db03867f643ce535dc955e9a27dfbc63de6e627;p=mesa.git freedreno/ir3: add GLSL_SAMPLER_DIM_SUBPASS to tex_info Signed-off-by: Jonathan Marek Reviewed-by: Eric Anholt --- diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 1d888f42446..398480ea346 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: