diff options
author | Tim Rowley <[email protected]> | 2017-04-26 13:11:00 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-04-28 19:55:33 -0500 |
commit | 9b907599b6daf91ef57ec5b6bc6a4881911f5431 (patch) | |
tree | 27dabbb54857efba834eb51e5cc0b265cad74719 /src/gallium/drivers | |
parent | d523b824984ee43adb86eaf1422cf7882af79ea5 (diff) |
swr/rast: disable buffer overrun warning for Assemble()
Disabling buffer overrun warning for Assemble(uint32_t slot,
simdvector *verts) due to what looks like a MSVC compiler bug
when compiling the SIMD16 FE.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/pa.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/pa.h b/src/gallium/drivers/swr/rasterizer/core/pa.h index 781c0946143..10570f43f0f 100644 --- a/src/gallium/drivers/swr/rasterizer/core/pa.h +++ b/src/gallium/drivers/swr/rasterizer/core/pa.h @@ -645,7 +645,9 @@ struct PA_STATE_CUT : public PA_STATE } } - bool Assemble(uint32_t slot, simdvector verts[]) +// disabling buffer overrun warning for this function for what appears to be a bug in MSVC 2017 +PRAGMA_WARNING_PUSH_DISABLE(4789) + bool Assemble(uint32_t slot, simdvector *verts) { // process any outstanding verts ProcessVerts(); @@ -689,9 +691,9 @@ struct PA_STATE_CUT : public PA_STATE pBase += SIMD_WIDTH; } } - return true; } +PRAGMA_WARNING_POP() #if ENABLE_AVX512_SIMD16 bool Assemble_simd16(uint32_t slot, simd16vector verts[]) |