# US 2022/0036630 A1 · SIMD Group Formation Techniques during Ray Intersection Traversal

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

- Number: US 2022/0036630 A1
- Document ID: US20220036630A1
- Status: Published application
- Kind: A1
- Application number: 17/103,382
- Filed: 2020-11-24
- Published: 2022-02-03
- Earliest claimed: 2020-07-30
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Ali Rabbani Rankouhi; Christopher A. Burns; Justin A. Hensley; Jonathan M. Redshaw
- Web page: https://patentgrep.com/patent/US20220036630A1

## CPC

- G06T 15/06: Ray-tracing
- G06F 9/3887: {controlled by a single instruction for multiple data lanes [SIMD]}
- G06F 9/3888: {controlled by a single instruction for multiple threads [SIMT] in parallel}
- G06F 9/38885: {Divergence aspects}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5016: {the resource being the memory}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 30/31: Design entry, e.g. editors specifically adapted for circuit design
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 1/60: Memory management
- G06T 15/005: {General purpose rendering architectures}
- G06T 17/005: {Tree description, e.g. octree, quadtree}
- G06Q 10/101: Collaborative creation, e.g. joint development of products or services
- G06Q 50/04: Manufacturing
- G06T 17/00: Three-dimensional [3D] modelling for computer graphics
- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- G06T 2210/12: Bounding box
- G06T 2210/21: Collision detection, intersection
- G16H 40/67: for remote operation
- Y02P 90/30: Computing systems specially adapted for manufacturing
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- Y02P: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS

## Abstract

Disclosed techniques relate to forming single-instruction multiple-data (SIMD) groups during ray intersection traversal. In particular, ray intersection circuitry may include dedicated circuitry configured to traverse an acceleration data structure, but may dynamically form a SIMD group to transform ray coordinates when traversing from one level of the data structure to another. This may allow shader processors to execute the SIMD group to perform the transformation. Disclosed techniques may facilitate instancing of graphics models within the acceleration data structure.

## Claims

### Claim 1

An apparatus, comprising:
shader circuitry configured to execute a ray intersection instruction for a first SIMD group, wherein the instruction indicates coordinate information for a set of rays in a graphics scene;
ray intersection circuitry configured to:
traverse, in response to the ray intersection instruction, multiple nodes in a spatially-organized acceleration data structure, wherein nodes of the data structure indicate coordinates corresponding to bounding regions in the graphics scene and the traversal determines whether rays intersect the bounding regions; and
form, in response to reaching a first node that indicates a transformation, a second SIMD group to execute on the shader circuitry to transform coordinates of one or more rays in the set of rays.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the acceleration data structure is a hierarchical structure and the first node is a leaf node of an upper level acceleration data structure that has a child node in a lower level acceleration data structure.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the transformation positions the one or more rays in a model space for an instance of a graphics model that is instantiated multiple times in the graphics scene.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein a child node of the first node also has another parent node in the upper level acceleration data structure, wherein the other parent node indicates a different transformation when traversing to the child node, wherein the different transformation is associated with a model space for a different instance of the graphics model.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the apparatus is configured to store original coordinates of the one or more rays and revert to the original coordinates in response to traversing back through the acceleration data structure past the first node.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the first SIMD group and the second SIMD group access ray data for the one or more rays in a shader memory space.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the first SIMD group includes an instruction to allocate memory space for the set of rays in the shader memory space prior to executing the ray intersection instruction.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the second SIMD group includes one or more rays from another SIMD group that executed a ray intersection instruction.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein the acceleration data structure is a bounding volume hierarchy.

### Claim 10 (depends on 1)

The apparatus of claim 1, wherein the apparatus is a computing device that includes:
a graphics unit that includes the ray intersection circuitry and the shader circuitry;
one or more central processing units; and
network interface circuitry.

### Claim 11

A method, comprising:
executing, by shader circuitry of a graphics processor, a ray intersection instruction for a first SIMD group, wherein the instruction indicates coordinate information for a set of rays in a graphics scene;
traversing, by ray intersection circuitry in response to the ray intersection instruction, multiple nodes in a spatially organized acceleration data structure, wherein nodes of the data structure indicate coordinates corresponding to bounding regions in the graphics scene and the traversing determines whether rays intersect the bounding regions; and
in response to reaching a first node that indicates a transformation, forming a second SIMD group to execute on the shader circuitry to transform coordinates of one or more rays in the set of rays.

### Claim 12 (depends on 11)

The method of claim 11, wherein the acceleration data structure is a hierarchical structure and the first node is a leaf node of an upper level acceleration data structure that has a child node in a lower level acceleration data structure.

### Claim 13 (depends on 11)

The method of claim 11, further comprising:
storing original coordinates of the one or more rays; and
revert to the original coordinates in response to traversing back through the acceleration data structure past the first node.

### Claim 14 (depends on 11)

The method of claim 11, wherein the first SIMD group and the second SIMD group access ray data for the one or more rays in a shader memory space and wherein the first SIMD group includes an instruction to allocate memory space for the set of rays in the shader memory space prior to executing the ray intersection instruction.

### Claim 15

A non-transitory computer readable storage medium having stored thereon design information that specifies a design of at least a portion of a hardware integrated circuit in a format recognized by a semiconductor fabrication system that is configured to use the design information to produce the circuit according to the design, wherein the design information specifies that the circuit includes:
shader circuitry configured to execute a ray intersection instruction for a first SIMD group, wherein the instruction indicates coordinate information for a set of rays in a graphics scene;
ray intersection circuitry configured to:
traverse, in response to the ray intersection instruction, multiple nodes in a spatially-organized acceleration data structure, wherein nodes of the data structure indicate coordinates corresponding to bounding regions in the graphics scene and the traversal determines whether rays intersect the bounding regions; and
form, in response to reaching a first node that indicates a transformation, a second SIMD group to execute on the shader circuitry to transform coordinates of one or more rays in the set of rays.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the acceleration data structure is a hierarchical structure and the first node is a leaf node of an upper level acceleration data structure that has a child node in a lower level acceleration data structure.

### Claim 17 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the transformation positions the one or more rays in a model space for an instance of a graphics model that is instantiated multiple times in the graphics scene, wherein a child node of the first node also has another parent node in the upper level acceleration data structure, wherein the other parent node indicates a different transformation when traversing to the child node, and wherein the different transformation is associated with a model space for a different instance of the graphics model.

### Claim 18 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the circuit is configured to store original coordinates of the one or more rays and revert to the original coordinates in response to traversing back through the acceleration data structure past the first node.

### Claim 19 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the first SIMD group and the second SIMD group access ray data for the one or more rays in a shader memory space and wherein the first SIMD group includes an instruction to allocate memory space for the set of rays in the shader memory space prior to executing the ray intersection instruction.

### Claim 20 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the second SIMD group includes one or more rays from another SIMD group that executed a ray intersection instruction.
