From: Marek Olšák Date: Tue, 22 Mar 2016 17:26:53 +0000 (+0100) Subject: radeonsi: fix 2D array MSAA failures since image support landed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8ec20551506204bf9aa794efae6f978499c34f6;p=mesa.git radeonsi: fix 2D array MSAA failures since image support landed Reviewed-by: Nicolai Hähnle Reviewed-by: Edward O'Callaghan Reviewed-and-Tested-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index b9bdd47c496..b8fde00c668 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2993,7 +2993,8 @@ si_make_texture_descriptor(struct si_screen *screen, if (type == V_008F1C_SQ_RSRC_IMG_1D_ARRAY) { height = 1; depth = res->array_size; - } else if (type == V_008F1C_SQ_RSRC_IMG_2D_ARRAY) { + } else if (type == V_008F1C_SQ_RSRC_IMG_2D_ARRAY || + type == V_008F1C_SQ_RSRC_IMG_2D_MSAA_ARRAY) { if (sampler || res->target != PIPE_TEXTURE_3D) depth = res->array_size; } else if (type == V_008F1C_SQ_RSRC_IMG_CUBE)