Intel® 815 Chipset: Graphics Controller PRM, Rev 1.0
R
13.15.GFXRENDERSTATE_COLOR_CHROMA_KEY
ColorKey and ChromaKey are terms used to describe two methods of removing a specific color or range of colors from a map that is applied to a primitive.
When a color palette is used with indices to indicate a color in the palette, the indices can be compared against a state variable “ColorKey Index Value” and if a match occurs and ColorKey is enabled, then an action will be taken to remove this value’s contribution to the resulting pixel color.
The ChromaKey mode refers to testing the RGB components to see if they fall between a high (Chroma_High_Value) and low (Chroma_Low_Value) state variable values. If the color of a texel contribution is in this range and ChromaKey is enabled, then an action will be taken to remove this contribution to the resulting pixel color.
When the color value of the nearest neighbor texel falls within the range of the ChromaKey values or the palletized texel index matches the ColorKey value, the pixel can be programmed by the Kill Pixel state variable to not be written back to the frame buffer. If neither “Key” mode applies, then a blend occurs as described below.
When multiple texture is enabled, only the color of texel 0 is used for ChromaKey or ColorKey. The color of texel 1 is not subject to texture color/chroma key. Filtering and use of texel 1 (if enabled) proceeds normally irrespective of color/chroma key.
Kill Pixel Mode
This is the default function for texture color/chroma key in D3D*. (Prior to DX7*, it was the only function). Pixels whose sampled texels are considered “matching” the color/chroma key are killed (discarded) and not drawn (regardless of any subsequent pipeline operations). The Intel® 810 chipset implementation of the “matching” criteria is somewhat different than the D3D* reference rasterizer behavior introduced in DX6.1. DX6.1 will kill the pixel if any “contributing” sampled texels match the key. (Here “contributing” is defined as having an
The Intel® 815 chipset supports both Kill Pixel modes. The default is the DX6.1 implementation.
“Blend” Mode
This mode was intended to support the “BLENDCOLORKEY” D3D* mode (which will be introduced into D3D* in DX7*). Here color/chroma key does not discard pixels, it simply modifies the filtered texel color/alpha in a way which permits
233