# US 2024/0005444 A1 · Method of and apparatus for defining bounding boxes

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

- Number: US 2024/0005444 A1
- Document ID: US20240005444A1
- Status: Published application
- Kind: A1
- Application number: 17/856,274
- Filed: 2022-07-01
- Published: 2024-01-04
- Earliest claimed: 2022-07-01
- Assignees: Arm Limited
- Applicants: Arm Limited
- Inventors: Rafal STEPUCH
- Web page: https://patentgrep.com/patent/US20240005444A1

## CPC

- G06T 1/60: Memory management
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 11/23: using straight lines or curves
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06T 2210/12: Bounding box
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

There is provided a computer-implemented method of defining bounding boxes for a primitive in a tile-based graphics processing pipeline comprising determining a part-way point on the primitive, wherein, for each pair of vertices, a part-way point is part-way between that pair of vertices, and defining a plurality of bounding boxes, wherein each bounding box intersects a part-way point. Also provided is a bounding box generation circuit comprising a part-way point calculation circuit to determine a part-way point on the primitive, wherein, for each pair of vertices, a part-way point is part-way between that pair of vertices, wherein the bounding box generation circuit to define a plurality of bounding boxes based upon the determined part-way point, wherein each bounding box intersects a part-way point. A method of defining bounding boxes for a point primitive is also provided.

## Claims

### Claim 1

A computer-implemented method of defining bounding boxes for a primitive in a tile-based graphics processing pipeline, the primitive comprising a plurality of vertices, the method comprising:
determining at least one part-way point on the primitive, wherein, for each pair of vertices, at least one of the part-way points is part-way between that pair of vertices; and
defining a plurality of bounding boxes, wherein each bounding box intersects at least one of the part-way points.

### Claim 2 (depends on 1)

The method of claim 1, further comprising determining which frame regions of a frame contain at least a portion of at least one bounding box.

### Claim 3 (depends on 2)

The method of claim 2, further comprising outputting, to a memory, the frame regions determined to contain at least a portion of at least one bounding box.

### Claim 4 (depends on 1)

The method of claim 1, wherein at least one part-way point is a mid-point.

### Claim 5 (depends on 1)

The method of claim 1, wherein at least one part-way point is a quarter-point.

### Claim 6 (depends on 1)

The method of claim 1, wherein at least one part-way point is a point at a predetermined distance from either a vertex.

### Claim 7 (depends on 1)

The method of claim 1, wherein the primitive comprises a plurality of vertices, and calculating mid-points between each pair of vertices.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
determining at least one quarter-point halfway between a vertex and a mid-point.

### Claim 9 (depends on 8)

The method of claim 8, further comprising defining at least one bounding box which intersects a quarter-point.

### Claim 10 (depends on 7)

The method of claim 7, further comprising:
determining a mid-point of a mid-point joining line which joins two mid-points of the perimeter.

### Claim 11 (depends on 10)

The method of claim 10, further comprising defining at least one bounding box which intersects the mid-point of the mid-point joining line.

### Claim 12 (depends on 1)

The method of claim 1, wherein the primitive is a line comprising two end-points.

### Claim 13

A bounding box generation circuit to determine bounding boxes for a primitive in a tile-based graphics processing pipeline, the bounding box generation circuit comprising:
a part-way point calculation circuit to determine at least one part-way point on the primitive, wherein, for each pair of vertices, at least one of the part-way points is part-way between that pair of vertices,
wherein the bounding box generation circuit to define a plurality of bounding boxes based upon the determined at least one part-way point, wherein each bounding box intersects at least one part-way point.

### Claim 14 (depends on 13)

The bounding box generation circuit of claim 13, comprising:
a first calculating element comprising:
at least one first comparing element configured to compare at least two x-coordinates of a plurality of x-coordinates and to output a first comparing value; and
at least one first multiplexing element configured to take as inputs the first comparing value and the plurality of x-coordinates, and to output a maximum and a minimum of the plurality of x-coordinates; and
a second calculating element comprising:
at least one first comparing element configured to compare at least two y-coordinates of a plurality of y-coordinates and to output a second comparing value; and
at least one first multiplexing element configured to take as inputs the second comparing value and the plurality of y-coordinates, and to output a maximum and a minimum of the plurality of y-coordinates, and
wherein the maximum and minimum x- and y-coordinates define opposite corners of at least one bounding box for the primitive.

### Claim 15 (depends on 13)

The bounding box generation circuit of claim 13, further comprising at least one rounding element configured to round an output of a calculating element up or down to a nearest tile size.

### Claim 16 (depends on 15)

The bounding box generation circuit of claim 15, further comprising four said rounding elements: a rounding element configured to round up an x-coordinate; a rounding element configured to round down an x-coordinate; a rounding element configured to round up a y-coordinate; and a rounding element configured to round down a y-coordinate.

### Claim 17 (depends on 13)

The bounding box generation circuit of claim 13, wherein the part-way point calculation circuit comprises at least one addition element for adding two coordinates of a plurality of coordinates together.

### Claim 18 (depends on 13)

The bounding box generation circuit of claim 13, wherein the part-way point calculation circuit further comprises at least one shifting element for arithmetically shifting an output of at least one addition element.

### Claim 19 (depends on 14)

The bounding box generation circuit of claim 14, further comprising a checking element configured to check whether the maximum and minimum x- and y-coordinates lie within a single tile and, based on the outcome, to output an indication signal.

### Claim 20 (depends on 13)

The bounding box generation circuit of claim 13, wherein the part-way point calculation circuit is configured to take coordinates of vertices of a primitive as inputs and to output mid-points between each pair of the three vertices.

### Claim 21 (depends on 14)

The bounding box generation circuit of claim 14, wherein the first calculation elements and second calculations elements are each configured to take coordinates of a vertex and coordinates of two mid-points as inputs and to output coordinates defining opposite corners of a bounding box for that vertex and two mid-points.

### Claim 22 (depends on 14)

The bounding box generation circuit of claim 14, comprising three said first calculation elements and three said second calculation elements.

### Claim 23 (depends on 22)

The bounding box generation circuit of claim 22, further comprising three further part-way point calculation circuits, nine further first calculation elements, and nine further second calculation elements.

### Claim 24 (depends on 23)

The bounding box generation circuit of claim 23, wherein the three further part-way point calculation circuits are each configured to take coordinates of a vertex of the primitive and coordinates of two mid-points as inputs and to output two quarter-points on edges of the primitive and a part-way point within the primitive.

### Claim 25 (depends on 24)

The bounding box generation circuit of claim 24, wherein three of the nine further first calculation elements and three of the nine further second calculation elements are each configured to take coordinates of a vertex and coordinates of two quarter-points as inputs and to output coordinates defining opposite corners of a bounding box for that vertex and two quarter-points.

### Claim 26 (depends on 25)

The bounding box generation circuit of claim 25, wherein six of the nine first calculation elements and three of the nine further second calculation elements are each configured to take coordinates of a quarter-point, a mid-point, and a part-way point within the primitive as inputs and to output coordinates defining opposite corners of a bounding box for that quarter-point, mid-point, and part-way point within the primitive.

### Claim 27

A computer-implemented method of defining bounding boxes for a point primitive in a tile-based graphics processing pipeline, the method comprising:
defining a first bounding box covering a first portion of the point primitive; and
defining at least one further bounding box covering at least one further portion of the point primitive.

### Claim 28 (depends on 27)

The method of claim 27, comprising defining three bounding boxes, and further comprising:
calculating coordinates of a first of the three bounding boxes according to the following equations:
x min=x−size/4,y min=y−size/2,x max=x+size/4;y max=y+size/2,
calculating coordinates of a second of three bounding boxes according to the following equations:
x min=x−size/2;y min=y−size/4;x max=x+size/2;y max=y+size/4; and
calculating coordinates of a third of three bounding boxes according to the following equations:
x min=x−size/2+size/16;y min=y−size/2+size/16;x max=x+size/2−size/16;y max=y+size/2−size/16.
