radeonsi: fix 2D array MSAA failures since image support landed
authorMarek Olšák <marek.olsak@amd.com>
Tue, 22 Mar 2016 17:26:53 +0000 (18:26 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 23 Mar 2016 11:14:15 +0000 (12:14 +0100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index b9bdd47c4967301587f6275fa9e802c6bb9f0914..b8fde00c66860b438854dfdac1405f5e463de735 100644 (file)
@@ -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)