mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 04:40:22 +01:00
swr/rast: Correctly align 64-byte spills/fills
Fixes crashes on some compute shaders when running on AVX512 Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
78bab66479
commit
ae400a9b11
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue