Method for efficient construction of high resolution display buffers
First Claim
1. A method of rendering graphics with a processing unit, the method comprising:
- determining a sample coverage of a first primitive at a first pixel, wherein the first pixel includes a plurality of samples, wherein the plurality of samples include one or more color samples and a plurality of depth samples, wherein it is determined in said determining the sample coverage that the plurality of samples of the first pixel include one or more covered samples that are covered by the first primitive;
determining whether the one or more covered samples include at least one of the color samples of the first pixel;
invoking a pixel shader for the first pixel for the first primitive if said determining determines that the one or more covered samples include at least one of the color samples; and
not invoking the pixel shader for the first pixel for the first primitive if said determining determines that the one or more covered samples do not include at least one of the one or more color samples but do include at least one depth sample of the plurality of depth samples;
deriving a color value, for the first primitive, for a display pixel not associated with a color sample but associated with a depth sample by assigning a color value of a color sample at a same depth value as the depth sample.
3 Assignments
0 Petitions
Accused Products
Abstract
Graphics processing systems and methods are disclosed which may minimize invocations to a pixel shader in order to improve efficiency in a rendering pipeline. In implementations of the present disclosure, a plurality of samples within a pixel may be covered by a primitive. The plurality of samples may include one or more color samples and a plurality of depth samples. The nature of the samples which were covered by the primitive may be taken into account before invoking a pixel shader to perform shading computations on the pixel. In implementations of the present disclosure, if at least one sample is covered by a primitive, but none of the samples are color samples, an invocation to a pixel shader may be avoided.
-
Citations
18 Claims
-
1. A method of rendering graphics with a processing unit, the method comprising:
-
determining a sample coverage of a first primitive at a first pixel, wherein the first pixel includes a plurality of samples, wherein the plurality of samples include one or more color samples and a plurality of depth samples, wherein it is determined in said determining the sample coverage that the plurality of samples of the first pixel include one or more covered samples that are covered by the first primitive; determining whether the one or more covered samples include at least one of the color samples of the first pixel; invoking a pixel shader for the first pixel for the first primitive if said determining determines that the one or more covered samples include at least one of the color samples; and not invoking the pixel shader for the first pixel for the first primitive if said determining determines that the one or more covered samples do not include at least one of the one or more color samples but do include at least one depth sample of the plurality of depth samples; deriving a color value, for the first primitive, for a display pixel not associated with a color sample but associated with a depth sample by assigning a color value of a color sample at a same depth value as the depth sample. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system comprising:
-
a processor, and a memory coupled to the processor, wherein the processor is configured to perform a method of rendering graphics, the method comprising; determining a sample coverage of a first primitive at a first pixel, wherein the first pixel includes a plurality of samples, wherein the plurality of samples include one or more color samples and a plurality of depth samples, wherein it is determined in said determining the sample coverage that the plurality of samples of the first pixel include one or more covered samples that are covered by the first primitive; determining whether the one or more covered samples include at least one of the color samples of the first pixel; invoking a pixel shader for the first pixel for the first primitive if said determining determines that the one or more covered samples include at least one of the color samples; and not invoking the pixel shader for the first pixel for the first primitive if said determining determines that the one or more covered samples do not include at least one of the one or more color samples but do include at least one depth sample of the plurality of depth samples; deriving a color value, for the first primitive, for a display pixel not associated with a color sample but associated with a depth sample by assigning a color value of a color sample at a same depth value as the depth sample. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A graphics processing unit (GPU) comprising:
-
a memory module; and a rasterization module implemented in hardware and/or software configured to; determine a sample coverage of a first primitive at a first pixel, wherein the first pixel includes a plurality of samples, wherein the plurality of samples include one or more color samples and a plurality of depth samples, wherein it is determined in said determining the sample coverage that the plurality of samples of the first pixel include one or more covered samples that are covered by the first primitive; determine whether the one or more covered samples include at least one of the color samples of the first pixel; invoke a pixel shader for the first pixel for the first primitive if said determining determines that the one or more covered samples include at least one of the color samples; and not invoke the pixel shader for the first pixel for the first primitive if said determining determines that the one or more covered samples do not include at least one of the one or more color samples but do include at least one depth sample of the plurality of depth samples; deriving a color value, for the first primitive, for a display pixel not associated with a color sample but associated with a depth sample by assigning a color value of a color sample at a same depth value as the depth sample. - View Dependent Claims (15, 16)
-
-
17. A non-transitory computer readable medium having processor-executable instructions embodied therein, wherein execution of the instructions by a processor causes the processor to implement a method of rendering graphics, the method comprising:
-
determining a sample coverage of a first primitive at a first pixel, wherein the first pixel includes a plurality of samples, wherein the plurality of samples include one or more color samples and a plurality of depth samples, wherein it is determined in said determining the sample coverage that the plurality of samples of the first pixel include one or more covered samples that are covered by the first primitive; determining whether the one or more covered samples include at least one of the color samples of the first pixel; invoking a pixel shader for the first pixel for the first primitive if said determining determines that the one or more covered samples include at least one of the color samples; and not invoking the pixel shader for the first pixel for the first primitive if said determining determines that the one or more covered samples do not include at least one of the color samples; deriving a color value, for the first primitive, for a display pixel not associated with a color sample but associated with a depth sample by assigning a color value of a color sample at a same depth value as the depth sample. - View Dependent Claims (18)
-
Specification