-
Fix ComputeProgramKey not strict weak ordering · 126d9d60Antonio Maiorano authored
Example: ComputeProgramKey a, b; a.shader = 1; b.shader = 2; a.layout = 2; b.layout = 1; // This assertion will fail because a < b since a.shader < b.shader, // but also b < a because b.layout < a.layout. assert( (a < b) && !(b < a) ); Change-Id: I1061f517cee60a28a1f4239704655e9d320ade46 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/36348 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Antonio Maiorano <amaiorano@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
126d9d60
×