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:
parent
ae95a08b9c
commit
be8a10e265
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue