From: Marek Olšák Date: Tue, 1 May 2018 00:20:55 +0000 (-0400) Subject: ac/surface/gfx9: fix a typo in CMASK RB/pipe alignment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=276acda835a8b7e12ff84012c58e776a12e83769;p=mesa.git ac/surface/gfx9: fix a typo in CMASK RB/pipe alignment No change in behavior because it's always aligned. Reviewed-by: Nicolai Hähnle --- diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index f14fa1c8b5e..b2af1f70b69 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -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;