Context cleanup
- Removed twoSidedStencil, which was always true
when stencil is enabled
- Removed unused enums and functions
- Removed custom new/delete operators
- Used VkFrontFace type for frontFace
Bug b/132280877
Change-Id: I440d5e910e50de0ac8049d3a56848fa8d2de3493
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/33531
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Device/SetupProcessor.hpp b/src/Device/SetupProcessor.hpp
index f5adc42..c82b8b5 100644
--- a/src/Device/SetupProcessor.hpp
+++ b/src/Device/SetupProcessor.hpp
@@ -43,9 +43,8 @@
bool isDrawTriangle : 1;
bool interpolateZ : 1;
bool interpolateW : 1;
- bool frontFacingCCW : 1;
+ VkFrontFace frontFace : BITS(VK_FRONT_FACE_MAX_ENUM);
VkCullModeFlags cullMode : BITS(VK_CULL_MODE_FLAG_BITS_MAX_ENUM);
- bool twoSidedStencil : 1;
bool slopeDepthBias : 1;
unsigned int multiSample : 3; // 1, 2 or 4
bool rasterizerDiscard : 1;