Use 'discard' to denote terminated or demoted invocations

SPIR-V's `OpKill` instruction has been deprecated because some
implementations interpret it as fully terminating an invocation, while
others implement it as demoting an invocation to a 'helper' which still
performs arithmetic computations but doesn't perform memory writes.

This change follows suite by avoiding 'kill', and instead uses
'terminate' or 'demote-to-helper' nomenclature where the semantics need
to be explicit. Since fragment data produced by terminated or demoted
invocations must be discarded, this change uses 'discard' to denote
either of these two fates of an invocation.

Note that while HLSL uses 'discard' to specifically denote demotion to a
helper invocation, in the context of Vulkan, or elsewhere for that
matter, it does not imply whether or not arithmetic computation still
took place. So this shouldn't add any new confusion, while avoiding any
association with the chosen OpKill implementation.

Bug: b/204502919
Change-Id: I0b6a70b34a0e7a70abd74e3330e88187f095cde2
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/64788
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Pipeline/PixelProgram.cpp b/src/Pipeline/PixelProgram.cpp
index 6b16d3b..44e478e 100644
--- a/src/Pipeline/PixelProgram.cpp
+++ b/src/Pipeline/PixelProgram.cpp
@@ -197,7 +197,7 @@
 	// handled separately, through the cMask.
 	auto activeLaneMask = SIMD::Int(0xFFFFFFFF);
 	auto storesAndAtomicsMask = maskAny(cMask, sMask, zMask, samples);
-	routine.killMask = 0;
+	routine.discardMask = 0;
 
 	spirvShader->emit(&routine, activeLaneMask, storesAndAtomicsMask, descriptorSets, state.multiSampleCount);
 	spirvShader->emitEpilog(&routine);
@@ -218,11 +218,11 @@
 
 	clampColor(c);
 
-	if(spirvShader->getAnalysis().ContainsKill)
+	if(spirvShader->getAnalysis().ContainsDiscard)
 	{
 		for(unsigned int q : samples)
 		{
-			cMask[q] &= ~routine.killMask;
+			cMask[q] &= ~routine.discardMask;
 		}
 	}