# US 2021/0287423 A1 · Apparatus and method for double-precision ray traversal in a ray tracing pipeline

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

- Number: US 2021/0287423 A1
- Document ID: US20210287423A1
- Status: Published application
- Kind: A1
- Application number: 16/819,116
- Filed: 2020-03-15
- Published: 2021-09-16
- Earliest claimed: 2020-03-15
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Johannes GUENTHER; Attila Tamas AFRA
- Web page: https://patentgrep.com/patent/US20210287423A1

## CPC

- G06T 15/06: Ray-tracing
- G06F 7/483: Computations with numbers represented by a non-linear combination of denominational numbers, e.g. rational numbers, logarithmic number system or floating-point numbers {(G06F7/4806, G06F7/4824, G06F7/49, G06F7/491, G06F7/544 take precedence)}
- G06F 7/485: Adding; Subtracting {(G06F7/4833, G06F7/4836 take precedence)}
- G06F 7/4876: {Multiplying}
- G06F 7/49947: {Rounding}
- G06F 7/57: Arithmetic logic units [ALU], i.e. arrangements or devices for performing two or more of the operations covered by groups G06F7/483 – G06F7/556 or for performing logical operations {(G06F7/49, G06F7/491 take precedence)}
- G06F 9/3001: {Arithmetic instructions}
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 15/005: {General purpose rendering architectures}
- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Apparatus and method for double-precision traversal and intersection. For example, one embodiment of an apparatus comprises: a bounding volume hierarchy (BVH) generator to construct a BVH comprising a plurality of hierarchically arranged BVH nodes; a ray storage to store rays to be traversed through one or more of the BVH nodes; ray traversal circuitry comprising a first plurality of 64-bit arithmetic logic units (ALUs) which natively support double-precision floating point operations, the ray traversal circuitry to use at least a first ALU of the one or more ALUs to traverse a first ray through a first BVH node at a double-precision floating point precision to generate double-precision floating point traversal results; a plurality of execution units (EUs) coupled to the ray traversal circuitry, at least one of the plurality of EUs comprising a second plurality of 64-bit ALUs capable of natively performing double-precision floating point operations, the at least one of the plurality of EUs to execute one or more intersection shaders to perform ray-primitive intersection testing at double-precision floating point precision based on the double-precision floating point traversal results.

## Claims

### Claim 1

An apparatus comprising:
a bounding volume hierarchy (BVH) generator to construct a BVH comprising a plurality of hierarchically arranged BVH nodes;
a ray storage to store rays to be traversed through one or more of the BVH nodes;
ray traversal circuitry comprising a first plurality of 64-bit arithmetic logic units (ALUs) which natively support double-precision floating point operations, the ray traversal circuitry to use at least a first ALU of the one or more ALUs to traverse a first ray through a first BVH node at a double-precision floating point precision to generate double-precision floating point traversal results;
a plurality of execution units (EUs) coupled to the ray traversal circuitry, at least one of the plurality of EUs comprising a second plurality of 64-bit ALUs capable of natively performing double-precision floating point operations, the at least one of the plurality of EUs to execute one or more intersection shaders to perform ray-primitive intersection testing at double-precision floating point precision based on the double-precision floating point traversal results.

### Claim 2 (depends on 1)

The apparatus of claim 1 wherein the EUs executing the one or more intersection shaders are to generate intersection results comprising an intersection between the first ray and a first primitive associated with the first BVH node.

### Claim 3 (depends on 2)

The apparatus of claim 2 wherein the EUs executing the one or more intersection shaders are to spawn additional work, the additional work comprising work to be performed by one or more additional shaders and/or work to be performed by the ray traversal circuitry.

### Claim 4 (depends on 3)

The apparatus of claim 3 wherein the one or more additional shaders comprise a closest hit shader, an any hit shader, or a miss shader.

### Claim 5 (depends on 3)

The apparatus of claim 3 wherein the work to be performed by the ray traversal circuitry comprises one or more secondary rays to be traversed through the BVH.

### Claim 6 (depends on 1)

The apparatus of claim 1 further comprising:
dynamic rounding circuitry to select a rounding mode to be used to round temporary results to generate the double-precision floating point traversal results.

### Claim 7 (depends on 1)

The apparatus of claim 1 wherein the first ALU includes a 64-bit floating point multiplier and a 64-bit floating point adder.

### Claim 8 (depends on 7)

The apparatus of claim 7 wherein the first ALU includes a set of operand registers to store 64-bit floating point input values to be multiplied and/or added by the 64-bit floating point multiplier and/or 64-bit floating point adder.

### Claim 9 (depends on 8)

The apparatus of claim 8 further comprising:
dynamic precision control circuitry to cause the 64-bit floating point multiplier and 64-bit floating point adder to perform multiplications and additions, respectively, using 32-bit floating point or 16-bit floating point values.

### Claim 10

A method comprising:
constructing a bounding volume hierarchy (BVH) comprising a plurality of hierarchically arranged BVH nodes;
reading first ray from a ray storage;
traversing the first ray through a first BVH node of the plurality of BVH nodes at double-precision floating point precision by traversal circuitry comprising a first 64-bit arithmetic logic unit (ALU) capable of natively performing double-precision floating point operations to generate double-precision floating point traversal results;
providing the traversal results to one or more of a plurality of execution units (EUs), at least one of the plurality of EUs comprising a second 64-bit ALU capable of natively performing double-precision floating point operations; and
performing intersection testing with the double-precision floating point traversal results by one or more intersection shaders executed on one or more of the plurality of EUs, the intersection testing comprising double-precision floating point ray-primitive intersection testing based on the double-precision floating point traversal results.

### Claim 11 (depends on 10)

The method of claim 10 wherein the EUs executing the one or more intersection shaders are to generate intersection results comprising an intersection between the first ray and a first primitive associated with the first BVH node.

### Claim 12 (depends on 11)

The method of claim 11 wherein the EUs executing the one or more intersection shaders are to spawn additional work, the additional work comprising work to be performed by one or more additional shaders and/or work to be performed by the ray traversal circuitry.

### Claim 13 (depends on 12)

The method of claim 12 wherein the one or more additional shaders comprise a closest hit shader, an any hit shader, or a miss shader.

### Claim 14 (depends on 12)

The method of claim 12 wherein the work to be performed by the ray traversal circuitry comprises one or more secondary rays to be traversed through the BVH.

### Claim 15 (depends on 10)

The method of claim 10 further comprising:
selecting a rounding mode to be used to round temporary results to generate the double-precision floating point traversal results.

### Claim 16 (depends on 10)

The method of claim 10 wherein the first ALU includes a 64-bit floating point multiplier and a 64-bit floating point adder.

### Claim 17 (depends on 16)

The method of claim 16 wherein the first ALU includes a set of operand registers to store 64-bit floating point input values to be multiplied and/or added by the 64-bit floating point multiplier and/or 64-bit floating point adder.

### Claim 18 (depends on 17)

The method of claim 17 further comprising:
dynamically selecting a lower precision to be used by the 64-bit floating point multiplier and 64-bit floating point adder to perform multiplications and additions, respectively, using 32-bit floating point or 16-bit floating point values.

### Claim 19

A machine-readable medium having program code stored thereon which, when executed by a machine, causes the machine to perform the operations of:
constructing a bounding volume hierarchy (BVH) comprising a plurality of hierarchically arranged BVH nodes;
reading first ray from a ray storage;
traversing the first ray through a first BVH node of the plurality of BVH nodes at double-precision floating point precision by traversal circuitry comprising a first 64-bit arithmetic logic unit (ALU) capable of natively performing double-precision floating point operations to generate double-precision floating point traversal results;
providing the traversal results to one or more of a plurality of execution units (EUs), at least one of the plurality of EUs comprising a second 64-bit ALU capable of natively performing double-precision floating point operations; and
performing intersection testing with the double-precision floating point traversal results by one or more intersection shaders executed on one or more of the plurality of EUs, the intersection testing comprising double-precision floating point ray-primitive intersection testing based on the double-precision floating point traversal results.

### Claim 20 (depends on 19)

The machine-readable medium of claim 19 wherein the EUs executing the one or more intersection shaders are to generate intersection results comprising an intersection between the first ray and a first primitive associated with the first BVH node.

### Claim 21 (depends on 20)

The machine-readable medium of claim 20 wherein the EUs executing the one or more intersection shaders are to spawn additional work, the additional work comprising work to be performed by one or more additional shaders and/or work to be performed by the ray traversal circuitry.

### Claim 22 (depends on 21)

The machine-readable medium of claim 21 wherein the one or more additional shaders comprise a closest hit shader, an any hit shader, or a miss shader.

### Claim 23 (depends on 21)

The machine-readable medium of claim 21 wherein the work to be performed by the ray traversal circuitry comprises one or more secondary rays to be traversed through the BVH.

### Claim 24 (depends on 19)

The machine-readable medium of claim 19 further comprising:
selecting a rounding mode to be used to round temporary results to generate the double-precision floating point traversal results.

### Claim 25 (depends on 19)

The machine-readable medium of claim 19 wherein the first ALU includes a 64-bit floating point multiplier and a 64-bit floating point adder.

### Claim 26 (depends on 25)

The machine-readable medium of claim 25 wherein the first ALU includes a set of operand registers to store 64-bit floating point input values to be multiplied and/or added by the 64-bit floating point multiplier and/or 64-bit floating point adder.

### Claim 27 (depends on 26)

The machine-readable medium of claim 26 further comprising:
dynamically selecting a lower precision to be used by the 64-bit floating point multiplier and 64-bit floating point adder to perform multiplications and additions, respectively, using 32-bit floating point or 16-bit floating point values.
