ac/surface/gfx9: fix a typo in CMASK RB/pipe alignment
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 May 2018 00:20:55 +0000 (20:20 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 10 May 2018 22:26:32 +0000 (18:26 -0400)
No change in behavior because it's always aligned.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_surface.c

index f14fa1c8b5ee62ed37f43e820f7bb38194ed927c..b2af1f70b696389adf906cdabfb8c73c82ff428d 100644 (file)
@@ -1154,7 +1154,7 @@ static int gfx9_compute_miptree(ADDR_HANDLE addrlib,
                        cin.size = sizeof(ADDR2_COMPUTE_CMASK_INFO_INPUT);
                        cout.size = sizeof(ADDR2_COMPUTE_CMASK_INFO_OUTPUT);
 
-                       if (in->numSamples) {
+                       if (in->numSamples > 1) {
                                /* FMASK is always aligned. */
                                cin.cMaskFlags.pipeAligned = 1;
                                cin.cMaskFlags.rbAligned = 1;