# US 2021/0343052 A1 · Methods and apparatus for efficient blending in a graphics pipeline

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

- Number: US 2021/0343052 A1
- Document ID: US20210343052A1
- Status: Published application
- Kind: A1
- Application number: 17/029,016
- Filed: 2020-09-22
- Published: 2021-11-04
- Earliest claimed: 2020-05-01
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Derek J. LENTZ; David TANNENBAUM
- Web page: https://patentgrep.com/patent/US20210343052A1

## CPC

- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06F 7/523: Multiplying only
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for performing a blending operation in a graphics processing unit may include multiplying a first value and a first blend factor for a component of a render target with a first multiply operation of a multiplier, multiplying a second value and a second blend factor for the component of the render target with a second multiply operation of the multiplier, and adding a first result of the first multiply operation and a second result of the second multiply operation. The method may further include bypassing the multiplier for a first blend factor of substantially zero. The method may further include, for a blend factor of substantially one: bypassing the multiplier, and providing the first value of the component of the render target as a result of the first multiply operation.

## Claims

### Claim 1

A method of processing in a graphics processing unit, the method comprising:
receiving a first value and a first blend factor for a component of a render target;
receiving a second value and a second blend factor for the component of the render target; and
performing a blending operation that includes:
multiplying the first value and the first blend factor with a first multiply operation of a multiplier;
multiplying the second value and the second blend factor with a second multiply operation of the multiplier; and
adding a first result of the first multiply operation and a second result of the second multiply operation.

### Claim 2 (depends on 1)

The method of claim 1, further comprising bypassing the multiplier for a first blend factor of substantially zero.

### Claim 3 (depends on 1)

The method of claim 1, further comprising bypassing the multiplier for a second blend factor of substantially zero.

### Claim 4 (depends on 1)

The method of claim 1, further comprising, for a blend factor of substantially one:
bypassing the multiplier, and
providing the first value of the component of the render target as a result of the first multiply operation.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first result of the first multiply operation is added to the second result of the second multiply operation through a feedback path.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
the multiplier is a first multiplier of a rust data path having a first data format;
the component of the render target is a first component of a first render target; and
the method further comprises multiplying a third value and a third blend factor for a second component of a second render target with a second multiplier of a second data path having a second data format.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
directing the first value and the first blend factor to the first multiplier through a staging register; and
directing the third value and the third blend factor to the second multiplier through the staging register.

### Claim 8 (depends on 6)

The method of claim 6, wherein:
the first data format comprises a normalized integer format; and
the second data format comprises a floating point format.

### Claim 9

An apparatus comprising a graphics processing unit comprising:
a multiplier;
an input staging register configured to direct a first value and a first blend factor for a component of a render target to the multiplier for a first multiply operation and a second value and a second blend factor for the component of the render target to the multiplier for a second multiply operation; and
an adder configured to add a first result of the first multiply operation and a second result of the second multiply operation.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the input staging register is configured to bypass the multiplier for a first blend factor of substantially zero.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the input staging register is configured to bypass the multiplier for a second blend factor of substantially zero.

### Claim 12 (depends on 9)

The apparatus of claim 9, wherein the input staging register is configured to bypass the multiplier and provide the first value of the component of the render target as the first result of the first multiply operation for a first blend factor of substantially one.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the input staging register is configured to bypass the multiplier and provide the second value of the component of the render target as the second result of the second multiply operation for a second blend factor of substantially one.

### Claim 14 (depends on 9)

The apparatus of claim 9, wherein the first result of the first multiply operation is applied to the adder through a feedback path.

### Claim 15 (depends on 9)

The apparatus of claim 9, further comprising an output staging register configured to direct an output of the adder to a buffer.

### Claim 16

An apparatus comprising a graphics processing unit comprising:
a blending unit comprising blending logic having a first mode and a second mode; and
an input staging register configured to direct first data having a first format with a first width to the blending unit in the first mode, and to direct second data having a second format with a second width to the blending unit in the second mode, wherein the second width is substantially larger than the first width;
wherein the blending logic is configured to blend the first data at a first throughput in the first mode, and to blend the second data at a second throughput that is substantially lower than the first throughput in the second mode.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the first and second formats comprise unorm, and the blending logic comprises:
a layer of multipliers arranged to multiply pairs of the first data;
a layer of first adders arranged to combine outputs from pairs of the multipliers to provide first blended outputs having the first width at the first throughput; and
a second adder arranged to combine outputs from the layer of multipliers to provide a second blended output having the second width at the second throughput.

### Claim 18 (depends on 16)

The apparatus of claim 16, wherein the first and second formats comprise floating point, and the blending logic comprises:
a multiply-add module; and
a multiplexer configured to direct floating point data having the first width or floating point data having the second width to a multiply input of the multiply-add module.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the multiply-add module is configured to perform two floating point multiply-add operations at the first width or one floating point multiply-add operation at the second width in the same number of cycles.

### Claim 20 (depends on 18)

The apparatus of claim 18, further comprising a feedback path configured to direct a result output from the multiply-add module to an add input of the multiply-add module.
