# US 2021/0287420 A1 · Leveraging control surface fast clears to optimize 3d operations

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0287420 A1
- Document ID: US20210287420A1
- Status: Published application
- Kind: A1
- Application number: 17/206,584
- Filed: 2021-03-19
- Published: 2021-09-16
- Earliest claimed: 2017-09-28
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Devan Burke; Abhishek Venkatesh; Travis Schluessler
- Web page: https://patentgrep.com/patent/US20210287420A1

## CPC

- G06T 15/04: Texture mapping
- G06T 15/005: {General purpose rendering architectures}
- G06T 15/80: Shading
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

One embodiment provides a graphics processor comprising a hardware graphics rendering pipeline configured to perform multisample anti-aliasing, the hardware graphics rendering pipeline including pixel processing logic to determine that each sample location of a pixel of a multisample surface is associated with a clear value and resolve a color value for the pixel to a non-multisample surface via a write of metadata to indicate that the pixel has the clear value. The resolve can be a stenciled resolve that automatically bypasses execution of a pixel shader for pixels having clear color data.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A graphics processor comprising:
a hardware graphics rendering pipeline configured to perform multisample anti-aliasing for a multisample surface in a memory associated with the graphics processor, the hardware graphics rendering pipeline including pixel processing circuitry to:
resolve pixel data in the multisample surface via conditional generation of color data for a non-multisample surface in the memory associated with the graphics processor, the conditional generation performed based on a source control surface for the multisample surface, wherein the conditional generation of the color data includes to:
invoke a pixel shader to resolve a first pixel of the multisample surface in response to a determination that one or more sample locations of the first pixel are associated with a non-clear color value; and
bypass invocation of the pixel shader for a second pixel in response to a determination that each sample location of the second pixel is associated with a clear color value.

### Claim 22 (depends on 21)

The graphics processor as in claim 21, the pixel processing circuitry including:
first circuitry to execute the pixel shader for the first pixel in response to invocation of the pixel shader for the first pixel; and
second circuitry to gate invocation of the pixel shader for the second pixel based on metadata for the second pixel stored in the source control surface.

### Claim 23 (depends on 22)

The graphics processor as in claim 22, wherein to execute the pixel shader for the first pixel includes to write a resolved color value for sample locations of the first pixel of the multisample surface to the non-multisample surface, wherein the resolved color value is an average color value of sample locations of the first pixel.

### Claim 24 (depends on 22)

The graphics processor as in claim 22, wherein to gate invocation of the pixel shader for the second pixel is to prevent divergence of a shader thread associated with the second pixel.

### Claim 25 (depends on 24)

The graphics processor as in claim 24, wherein the second circuitry is to test the metadata for the second pixel within the source control surface to determine if the metadata indicates that the second pixel is set to the clear color value.

### Claim 26 (depends on 25)

The graphics processor as in claim 25, wherein to test the metadata for the second pixel includes to test a metadata value associated with each of a plurality of sample locations of the second pixel.

### Claim 27 (depends on 26)

The graphics processor as in claim 26, the pixel processing circuitry to dispatch a stenciled multisample resolve draw to the pixel processing circuitry to conditionally generate the color data for the non-multisample surface.

### Claim 28 (depends on 27)

The graphics processor as in claim 27, wherein to conditionally generate the color data for the non-multisample surface includes to set the clear color value of the non-multisample surface to the clear color value of the multisample surface.

### Claim 29 (depends on 27)

The graphics processor as in claim 27, wherein in response to a determination that each sample location of the second pixel is associated with a clear color value, the pixel processing circuitry is to issue a write command to write metadata for the second pixel to a destination control surface for the non-multisample surface, the metadata for the second pixel to indicate that the second pixel resolves to the clear color value.

### Claim 30 (depends on 29)

The graphics processor as in claim 29, wherein the pixel processing circuitry is to process the write command independently of the pixel shader.

### Claim 31

A graphics processing system comprising:
a memory; and
a graphics processor coupled with the memory, the graphics processor including a hardware graphics rendering pipeline configured to resolve a multisample surface in memory of the graphics processor to a non-multisample surface, the hardware graphics rendering pipeline including pixel processing circuitry to:
determine that each sample location of a first pixel of a multisample surface is associated with a clear value;
resolve a color value for the first pixel to the non-multisample surface via a write of metadata to a destination control surface, the metadata to indicate that the first pixel has the clear value;
determine that one or more sample locations of a second pixel of the multisample surface contains a non-clear value;
read a clear color value associated with the multisample surface, the clear color value to indicate a color associated with the clear value; and
write a resolved color value for the second pixel of the multisample surface to the non-multisample surface, wherein the resolved color value is an average color value of sample locations of the second pixel.

### Claim 32 (depends on 31)

The graphics processing system as in claim 31, wherein the pixel processing circuitry is further to write metadata to the destination control surface to indicate that the second pixel has a non-clear value.

### Claim 33 (depends on 31)

The graphics processing system as in claim 31, wherein the pixel processing circuitry is to determine that each sample location of the first pixel is associated with the clear value via a read of a source control surface associated with the multisample surface, the source control surface to store metadata for the multisample surface, wherein the pixel processing circuitry is to determine that multiple sample locations of the second pixel are associated with a single non-clear color value via a read of metadata for the second pixel from the source control surface associated with the multisample surface.

### Claim 34 (depends on 31)

The graphics processing system as in claim 31, wherein the write of the metadata to the destination control surface for the first pixel is associated with a fast clear performed on the non-multisample surface, the fast clear to set metadata associated with the non-multisample surface to indicate that each pixel of the non-multisample surface is set to the clear color.

### Claim 35

A method comprising:
performing multisample anti-aliasing for a multisample surface in a memory associated with a graphics processor;
resolving pixel data in the multisample surface via conditional generation of color data for a non-multisample surface in the memory associated with the graphics processor, the conditional generation performed based on a source control surface for the multisample surface, wherein the conditional generation of the color data includes:
invoking a pixel shader to resolve a first pixel of the multisample surface in response to a determination that one or more sample locations of the first pixel are associated with a non-clear color value; and
bypassing invocation of the pixel shader for a second pixel in response to a determination that each sample location of the second pixel is associated with a clear color value.

### Claim 36 (depends on 35)

The method as in claim 35, further comprising:
executing the pixel shader for the first pixel in response to invocation of the pixel shader for the first pixel via first circuitry of a hardware graphics rendering pipeline of the graphics processor; and
gating invocation of the pixel shader for the second pixel via second circuitry of the hardware graphics rendering pipeline based on metadata for the second pixel stored in the source control surface.

### Claim 37 (depends on 36)

The method as in claim 36, wherein executing the pixel shader for the first pixel includes writing a resolved color value for the one or more sample locations of the pixel of the multisample surface to the non-multisample surface, wherein the resolved color value is an average color value of sample locations of the first pixel.

### Claim 38 (depends on 36)

The method as in claim 36, wherein gating invocation of the pixel shader for the second pixel prevents divergence of a shader thread associated with the second pixel and the second circuitry is to test the metadata for the second pixel within the source control surface to determine if the metadata indicates that the second pixel is set to the clear color value, wherein to test the metadata for the second pixel includes to test a metadata value associated with each of a plurality of sample locations of the second pixel.

### Claim 39 (depends on 38)

The method as in claim 38, wherein the conditional generation of the color data includes setting the clear color value of the non-multisample surface to the clear color value of the multisample surface.

### Claim 40 (depends on 38)

The method as in claim 38, wherein in response to a determination that each sample location of the second pixel is associated with a clear color value, issuing, via pixel processing circuitry of the graphics processor a write command to write metadata for the second pixel to a destination control surface for the non-multisample surface, the metadata for the second pixel to indicate that the second pixel resolves to the clear color value, wherein the pixel processing circuitry is to process the write command independently of the pixel shader.
