diff options
author | Marek Olšák <[email protected]> | 2018-04-30 20:20:55 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-05-10 18:26:32 -0400 |
commit | 276acda835a8b7e12ff84012c58e776a12e83769 (patch) | |
tree | ddbf38464f7609b87fc53bfb634765e9de015a36 /src/amd/common | |
parent | 6841845b00e534f3b284f3afe85bd182317c3baa (diff) |
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 <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/ac_surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |