gallivm/nir: add multisample support to image size

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>
This commit is contained in:
Dave Airlie 2020-03-23 13:55:08 +10:00 committed by Marge Bot
parent ae95a08b9c
commit be8a10e265
1 changed files with 3 additions and 0 deletions

View File

@ -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;