commit | 48ef1252cf2743b433b5f97ae748f6e22ddb66d1 | [log] [tgz] |
---|---|---|
author | Nicolas Capens <capn@google.com> | Mon Nov 07 15:30:33 2016 -0500 |
committer | Nicolas Capens <capn@google.com> | Thu Dec 01 17:20:30 2016 +0000 |
tree | 117b27a5cd89f457af8dfb77d78dd9d1c1a07be7 | |
parent | 6504711938ecad88fd4976f937b0733936925198 [diff] [blame] |
Don't use Long1 for stencil operations. Bug swiftshader:15 Change-Id: I4fa5356109e35ac13f9f8d5a97e9059262901051 Reviewed-on: https://swiftshader-review.googlesource.com/7950 Reviewed-by: Nicolas Capens <capn@google.com> Tested-by: Nicolas Capens <capn@google.com> Reviewed-on: https://swiftshader-review.googlesource.com/8156 Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/Renderer/Surface.cpp b/src/Renderer/Surface.cpp index 02ad43b..25e64e8 100644 --- a/src/Renderer/Surface.cpp +++ b/src/Renderer/Surface.cpp
@@ -3051,6 +3051,7 @@ int height2 = (height + 1) & ~1; // FIXME: Unpacking byte4 to short4 in the sampler currently involves reading 8 bytes, + // and stencil operations also read 8 bytes per four 8-bit stencil values, // so we have to allocate 4 extra bytes to avoid buffer overruns. return allocateZero(size(width2, height2, depth, format) + 4); }