# US 2026/0094344 A1 · Dynamic ray return for mid-traversal and post-traversal shading

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

- Number: US 2026/0094344 A1
- Document ID: US20260094344A1
- Status: Published application
- Kind: A1
- Application number: 18/899,265
- Filed: 2024-09-27
- Published: 2026-04-02
- Earliest claimed: 2024-09-27
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Michael John Livesley; Sean Keely; J. Stephen Junkins
- Web page: https://patentgrep.com/patent/US20260094344A1

## CPC

- G06T 15/06: Ray-tracing
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 15/005: {General purpose rendering architectures}
- G06T 15/80: Shading
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Techniques herein involve operations for reducing divergence for ray tracing. In ray tracing on parallel hardware, rays are processed in “wavefronts” which include multiple threads that execute in lockstep. High divergence can occur in ray tracing as ray processing can have very outcomes. Techniques presented herein reduce divergence by swapping rays between wavefronts at intermediate processing points. The swapping groups more coherent rays together, thereby reducing divergence and increasing efficiency.

## Claims

### Claim 1

A method comprising:
requesting traversal of a BVH for one or more first rays of a wavefront, wherein the requesting is transmitted by a shader core to a traversal circuit;
in response to the traversal circuit arriving at a shading point for the one or more first rays, recording that the one or more first rays are ready to be returned to the shader core;
identifying one or more second rays that are ready to be returned to the shader core, wherein the one or more second rays originate from different wavefronts; and
returning the one or more second rays to the shader core to be executed by the wavefront.

### Claim 2 (depends on 1)

The method of claim 1, wherein the returning occurs in response to a time-out occurring for the one or more first rays.

### Claim 3 (depends on 2)

The method of claim 2, wherein the returning occurs in response to a number of coherent rays being available for return being above a threshold.

### Claim 4 (depends on 3)

The method of claim 3, wherein the threshold varies according to a completion percentage of a group of rays.

### Claim 5 (depends on 4)

The method of claim 4, wherein the time-out varies according to the completion percentage.

### Claim 6 (depends on 1)

The method of claim 1, further comprising saving state of the one or more first rays before the traversal circuit arrives at the shading point for the one or more first rays.

### Claim 7 (depends on 1)

The method of claim 1, further comprising saving state of the one or more first rays upon returning the one or more second rays to the shader core.

### Claim 8 (depends on 1)

The method of claim 1, wherein the returning causes the wavefront to execute work associated with one or more shading points.

### Claim 9 (depends on 1)

The method of claim 1, wherein the identifying includes identifying rays that are coherent.

### Claim 10

A system comprising:
a shader core; and
a traversal circuit,
wherein the shader core is configured to:
request traversal of a BVH for one or more first rays of a wavefront, wherein the requesting is transmitted by the shader core to the traversal circuit; and
wherein the traversal circuit is configured to:
in response to the traversal circuit arriving at a shading point for the one or more first rays, record that the one or more first rays are ready to be returned to the shader core;
identify one or more second rays that are ready to be returned to the shader core, wherein the one or more second rays originate from different wavefronts; and
return the one or more second rays to the shader core to be executed by the wavefront.

### Claim 11 (depends on 10)

The system of claim 10, wherein the returning occurs in response to a time-out occurring for the one or more first rays.

### Claim 12 (depends on 11)

The system of claim 11, wherein the returning occurs in response to a number of coherent rays being available for return being above a threshold.

### Claim 13 (depends on 12)

The system of claim 12, wherein the threshold varies according to a completion percentage of a group of rays.

### Claim 14 (depends on 13)

The system of claim 13, wherein the time-out varies according to the completion percentage.

### Claim 15 (depends on 10)

The system of claim 10, wherein the shader core is further configured to save state of the one or more first rays before the traversal circuit arrives at the shading point for the one or more first rays.

### Claim 16 (depends on 10)

The system of claim 10, wherein the shader core is further configured to save state of the one or more first rays upon returning the one or more second rays to the shader core.

### Claim 17 (depends on 10)

The system of claim 10, wherein the returning causes the wavefront to execute work associated with one or more shading points.

### Claim 18 (depends on 10)

The system of claim 10, wherein the identifying includes identifying rays that are coherent.

### Claim 19

A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to perform operations comprising:
requesting traversal of a BVH for one or more first rays of a wavefront, wherein the requesting is transmitted by a shader core to a traversal circuit;
in response to the traversal circuit arriving at a shading point for the one or more first rays, recording that the one or more first rays are ready to be returned to the shader core;
identifying one or more second rays that are ready to be returned to the shader core, wherein the one or more second rays originate from different wavefronts; and
returning the one or more second rays to the shader core to be executed by the wavefront.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the returning occurs in response to a time-out occurring for the one or more first rays.
