From be8a10e2651d362b61a5566092a13311ba1ffe26 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 23 Mar 2020 13:55:08 +1000 Subject: [PATCH] gallivm/nir: add multisample support to image size Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_nir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c index 48440f73da5..171d452ff0e 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c @@ -116,6 +116,9 @@ static unsigned glsl_sampler_to_pipe(int sampler_dim, bool is_array) case GLSL_SAMPLER_DIM_3D: pipe_target = PIPE_TEXTURE_3D; break; + case GLSL_SAMPLER_DIM_MS: + pipe_target = is_array ? PIPE_TEXTURE_2D_ARRAY : PIPE_TEXTURE_2D; + break; case GLSL_SAMPLER_DIM_CUBE: pipe_target = is_array ? PIPE_TEXTURE_CUBE_ARRAY : PIPE_TEXTURE_CUBE; break; -- 2.30.2