Multi-sample surface processing using one sample
First Claim
Patent Images
1. A method, comprising:
- receiving multi-sample pixel data;
determining an encoding state associated with the multi-sample pixel data, wherein a first encoding state indicates that a single sample represents all samples of a multi-sample pixel, a second encoding state indicates that the single sample represents one sample of the multi-sample pixel, and a third encoding state indicates that the single sample represents a plurality of samples of the multi-sample pixel, wherein a number of samples in the plurality of samples is less than a total number of samples of the multi-sample pixel;
providing data for the single sample to a processing unit;
providing the encoding state to the processing unit;
processing the single sample of the multi-sample pixel by the processing unit to generate processed data for the single sample, wherein a sample mask is associated with the multi-sample pixel that indicates which samples of the multi-sample pixel are represented by the processed multi-sample pixel data;
determining whether a second single sample is stored in a buffer for a tile that includes the multi-sample pixel and at least one additional multi-sample pixel;
determining that the second single sample corresponds to the single sample; and
merging the sample mask with a stored sample mask associated with the second single sample.
1 Assignment
0 Petitions
Accused Products
Abstract
A system, method, and computer program product are provided for multi-sample processing. The multi-sample pixel data is received and an encoding state associated with the multi-sample pixel data is determined. Data for one sample of a multi-sample pixel and the encoding state are provided to a processing unit. The one sample of the multi-sample pixel is processed by the processing unit to generate processed data for the one sample that represents processed multi-sample pixel data for all samples of the multi-sample pixel or two or more samples of the multi-sample pixel.
131 Citations
16 Claims
-
1. A method, comprising:
-
receiving multi-sample pixel data; determining an encoding state associated with the multi-sample pixel data, wherein a first encoding state indicates that a single sample represents all samples of a multi-sample pixel, a second encoding state indicates that the single sample represents one sample of the multi-sample pixel, and a third encoding state indicates that the single sample represents a plurality of samples of the multi-sample pixel, wherein a number of samples in the plurality of samples is less than a total number of samples of the multi-sample pixel; providing data for the single sample to a processing unit; providing the encoding state to the processing unit; processing the single sample of the multi-sample pixel by the processing unit to generate processed data for the single sample, wherein a sample mask is associated with the multi-sample pixel that indicates which samples of the multi-sample pixel are represented by the processed multi-sample pixel data; determining whether a second single sample is stored in a buffer for a tile that includes the multi-sample pixel and at least one additional multi-sample pixel; determining that the second single sample corresponds to the single sample; and merging the sample mask with a stored sample mask associated with the second single sample. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform steps comprising:
-
receiving the multi-sample pixel data; determining an encoding state associated with the multi-sample pixel data, wherein a first encoding state indicates that a single sample represents all samples of a multi-sample pixel, a second encoding state indicates that the single sample represents one sample of the multi-sample pixel, and a third encoding state indicates that the single sample represents a plurality of samples of the multi-sample pixel, wherein a number of samples in the plurality of samples is less than a total number of samples of the multi-sample pixel; providing data for the single sample to a processing unit; providing the encoding state to the processing unit; processing the single sample of the multi-sample pixel by the processing unit to generate processed data for the single sample, wherein a sample mask is associated with the multi-sample pixel that indicates which samples of the multi-sample pixel are represented by the processed multi-sample pixel data; determining whether a second single sample is stored in a buffer for a tile that includes the multi-sample pixel and at least one additional multi-sample pixel; determining that the second single sample corresponds to the single sample; and merging the sample mask with a stored sample mask associated with the second single sample.
-
-
11. A system comprising:
-
a memory storing multi-sample pixel data; and a load/store unit that is coupled between the memory and a processing unit, and configured to; receive the multi-sample pixel data; determine an encoding state associated with the multi-sample pixel data, wherein a first encoding state indicates that a single sample represents all samples of a multi-sample pixel, a second encoding state indicates that the single sample represents one sample of the multi-sample pixel, and a third encoding state indicates that the single sample represents a plurality of samples of the multi-sample pixel, wherein a number of samples in the plurality of samples is less than a total number of samples of the multi-sample pixel; provide data for the single sample to the processing unit; and provide the encoding state to the processing unit; and the processing unit that is configured to; process the single sample of the multi-sample pixel by the processing unit to generate processed data for the single sample, wherein a sample mask is associated with the multi-sample pixel that indicates which samples of the multi-sample pixel are represented by the processed multi-sample pixel data, and the load/store unit is further configured to; determine whether a second single sample is stored in a buffer for a tile that includes the multi-sample pixel and at least one additional multi-sample pixel; and merge the sample mask with a stored sample mask associated with the second single sample when the second single sample corresponds to the single sample. - View Dependent Claims (12, 13, 14, 15, 16)
-
Specification