diff options
author | Alok Hota <[email protected]> | 2018-08-13 18:14:45 -0500 |
---|---|---|
committer | Alok Hota <[email protected]> | 2019-02-15 14:53:54 -0600 |
commit | ae400a9b113a46ef0e1224f75bbb4f0533686cec (patch) | |
tree | 352c85596c1c0c610b62d88dfc6c7c4f630de975 | |
parent | 78bab664792a77b0fa4ac428fa5c0960af12b46c (diff) |
swr/rast: Correctly align 64-byte spills/fills
Fixes crashes on some compute shaders when running on AVX512
Reviewed-by: Bruce Cherniak <[email protected]>
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/backend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/backend.cpp b/src/gallium/drivers/swr/rasterizer/core/backend.cpp index 883475cb753..db6b778a672 100644 --- a/src/gallium/drivers/swr/rasterizer/core/backend.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/backend.cpp @@ -61,14 +61,14 @@ void ProcessComputeBE(DRAW_CONTEXT* pDC, size_t spillFillSize = pDC->pState->state.totalSpillFillSize; if (spillFillSize && pSpillFillBuffer == nullptr) { - pSpillFillBuffer = pDC->pArena->AllocAlignedSync(spillFillSize, KNOB_SIMD_BYTES); + pSpillFillBuffer = pDC->pArena->AllocAlignedSync(spillFillSize, KNOB_SIMD16_BYTES); } size_t scratchSpaceSize = pDC->pState->state.scratchSpaceSize * pDC->pState->state.scratchSpaceNumInstances; if (scratchSpaceSize && pScratchSpace == nullptr) { - pScratchSpace = pDC->pArena->AllocAlignedSync(scratchSpaceSize, KNOB_SIMD_BYTES); + pScratchSpace = pDC->pArena->AllocAlignedSync(scratchSpaceSize, KNOB_SIMD16_BYTES); } const API_STATE& state = GetApiState(pDC); |