Pixel center position displacement
AssigneeNVIDIA Corporation
InventorsRui Bastos, Michael Toksvig, Karim Abdalla
Life of this patent
Estimating the term…
Abstract
A pixel center position that is not covered by a primitive covering a portion of the pixel is displaced to lie within a fragment formed by the intersection of the primitive and the pixel. X,y coordinates of a pixel center are adjusted to displace the pixel center position to lie within the fragment, affecting actual texture map coordinates or barycentric weights. Alternatively, a centroid sub-pixel sample position is determined based on coverage data for the pixel and a multisample mode. The centroid sub-pixel sample position is used to compute pixel or sub-pixel parameters for the fragment.
Claims24
A method of determining a centroid sub-pixel sample position within a fragment, comprising:
- receiving coverage data for a pixel representing one or more sub-pixel sample positions within a fragment;
- determining centroid information using the coverage data and a multisample mode;
- and
- computing the centroid sub-pixel sample position based on the centroid information.
A method of computing a displaced pixel center, comprising:
- determining whether a sign of a first barycentric weight is negative;
- determining whether a sign of a second barycentric weight is negative;
- adjusting the first barycentric weight, the second barycentric weight, and the third barycentric weight based on the sign of the first barycentric weight and the sign of the second barycentric weight to produce an adjusted first barycentric weight, an adjusted second barycentric weight, and an adjusted third barycentric weight;
- and
- combining the adjusted third barycentric weight, the adjusted second barycentric weight, and the adjusted first barycentric weight to produce the displaced pixel center.
A centroid computation unit, comprising:
- a storage element configured to store centroid information;
- a centroid control unit configured to read the centroid information based on a multisample mode and coverage data associated with a fragment;
- and
- a parameter computation unit that is coupled to the centroid computation unit and configured to compute a fragment parameter based on the centroid information.
Dependencies are inferred from the claim text.