Node prefetching in a wide BVH traversal with a stack
Abstract
Apparatus and method for prefetching node data. For example, one embodiment of an apparatus comprises: ray tracing acceleration hardware to manage active ray tracing stack allocations within a traversal stack; and stack management hardware logic to issue a prefetch operation comprising an indication of bounding volume hierarchy (BVH) node data to be prefetched and an indication of a cache level, wherein responsive to performing the prefetch operation, the BVH node data is to be prefetched to the indicated cache level.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 43 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
An apparatus comprising: ray tracing acceleration hardware to manage active ray tracing stack allocations within a traversal stack; and stack management hardware logic to issue a prefetch operation comprising an indication of bounding volume hierarchy (BVH) node data to be prefetched to perform ray tracing and an indication of a cache level, wherein responsive to performing the prefetch operation, the BVH node data is to be prefetched to the indicated cache level to be accessed by the ray tracing acceleration hardware to perform the ray tracing, wherein the prefetch operation is to identify a plurality of elements of the traversal stack, and wherein the stack management hardware logic is to identify the plurality of elements as a top-most elements of the traversal stack.
- Claim 2Depends on #1
The apparatus of claim 1 wherein the stack management hardware logic is to identify a plurality of elements as elements below one or more top-most elements of the traversal stack.
- Claim 3Depends on #2
The apparatus of claim 2 wherein the stack management hardware logic is to identify the plurality of elements by anticipating when the plurality of elements are to be accessed by the ray tracing acceleration hardware.
- Claim 4Depends on #1
The apparatus of claim 1 further comprising: a cache subsystem comprising a hierarchy of cache levels, wherein the cache level identified by the prefetch operation comprises one of the cache levels in the hierarchy of cache levels.
- Claim 5Depends on #4
The apparatus of claim 4 wherein the cache level identified by the prefetch operation comprises one of an L2 cache, an L1 cache, and an L0 cache.
- Claim 6Depends on #1
The apparatus of claim 1 wherein the stack management hardware logic is to mark one or more entries of the traversal stack to indicate that the associated BVH node data has been prefetched.
- Claim 7Independent Claim
A method comprising: managing, by ray tracing acceleration hardware, active ray tracing stack allocations within a traversal stack; and performing, by stack management hardware logic, a prefetch operation comprising an indication of bounding volume hierarchy (BVH) node data to be prefetched to perform ray tracing and an indication of a cache level, wherein responsive to performing the prefetch operation, the BVH node data is to be prefetched to the indicated cache level to be accessed by the ray tracing acceleration hardware to perform the ray tracing, wherein a plurality of elements are identified as elements below one or more top-most elements of the traversal stack.
- Claim 8Depends on #7
The method of claim 7 wherein the prefetch operation is to identify a plurality of elements of the traversal stack.
- Claim 9Depends on #8
The method of claim 8 wherein the plurality of elements are identified as a top-most elements of the traversal stack.
- Claim 10Depends on #7
The method of claim 7 wherein the plurality of elements are identified by anticipating when the plurality of elements are to be accessed by the ray tracing acceleration hardware.
- Claim 11Depends on #7
The method of claim 7 wherein the cache level identified by the prefetch operation comprises one cache level in a hierarchy of cache levels.
- Claim 12Depends on #11
The method of claim 11 wherein the cache level identified by the prefetch operation comprises one of an L2 cache, an L1 cache, and an L0 cache.
- Claim 13Depends on #7
The method of claim 7 further comprising: marking one or more entries of the traversal stack to indicate that associated BVH node data has been prefetched.
- Claim 14Independent Claim
A non-transitory machine-readable medium having program code stored thereon which, when executed by a machine, causes the machine to perform: managing, by ray tracing acceleration hardware, active ray tracing stack allocations within a traversal stack; and performing, by stack management hardware logic, a prefetch operation comprising an indication of bounding volume hierarchy (BVH) node data to be prefetched to perform ray tracing and an indication of a cache level, wherein responsive to performing the prefetch operation, the BVH node data is to be prefetched to the indicated cache level to be accessed by the ray tracing acceleration hardware to perform the ray tracing, wherein a plurality of elements are identified as elements below one or more top-most elements of the traversal stack.
- Claim 15Depends on #14
The non-transitory machine-readable medium of claim 14 wherein the prefetch operation is to identify a plurality of elements of the traversal stack.
- Claim 16Depends on #15
The non-transitory machine-readable medium of claim 15 wherein the plurality of elements are identified as a top-most elements of the traversal stack.
- Claim 17Depends on #14
The non-transitory machine-readable medium of claim 14 wherein the plurality of elements are identified by anticipating when the plurality of elements are to be accessed by the ray tracing acceleration hardware.
- Claim 18Depends on #14
The non-transitory machine-readable medium of claim 14 wherein the cache level identified by the prefetch operation comprises one cache level in a hierarchy of cache levels.
- Claim 19Depends on #18
The non-transitory machine-readable medium of claim 18 wherein the cache level identified by the prefetch operation comprises one of an L2 cache, an L1 cache, and an L0 cache.
- Claim 20Depends on #14
The non-transitory machine-readable medium of claim 14 wherein the program code is to cause the machine to perform: marking one or more entries of the traversal stack to indicate that associated BVH node data has been prefetched.
Technical Overview & Description
BACKGROUND Field of the Invention This invention relates generally to the field of graphics processors. More particularly, the invention relates to an apparatus and method for node prefetching in a wide BVH traversal with a stack. Description of the Related Art Ray tracing is a technique in which a light transport is simulated through physically-based rendering. Widely used in cinematic rendering, it was considered too resource-intensive for real-time performance until just a few years ago. One of the key operations in ray tracing is processing a visibility query for ray-scene intersections known as “ ray traversal ” which computes ray-scene intersections by traversing and intersecting nodes in a bounding volume hierarchy (BVH). Rasterization is a technique in which, screen objects are created from 3D models of objects created from a mesh of triangles. The vertices of each triangle intersect with the vertices of other triangles of different shapes and sizes. Each vertex has a position in space as well as information about color, texture and its normal, which is used to determine the way the surface of an object is facing. A rasterization unit converts the triangles of the 3D models into pixels in a 2D screen space and each pixel can be assigned an initial color value based on the vertex data. BRIEF DESCRIPTION OF THE DRAWINGS A better understanding of the present invention can be obtained from the following detailed description in conjunction with the following drawings, in which: FIG. 1 is a block diagram of a processing system, according to an embodiment. FIG. 2 A is a block diagram of an embodiment of a processor having one or more processor cores, an integrated memory controller, and an integrated graphics processor. FIG. 2 B is a block diagram of hardware logic of a graphics processor core block, according to some embodiments described herein. FIG. 2 C illustrates a graphics processing unit (GPU) that includes dedicated sets of graphics processing resources arr
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (43)
Non-Patent Literature (10)
- Benthin et al.,
- “
- PLOC++ : Parallel Locally-Ordered Clustering for Bounding Volume Hierarchy Construction Revisited
- ”
- , Pro. ACM Comput. Graph. Interact. Tech., vol. 5, No. 3, Article 31, Jul. 2022, 13 pages.
- European Search Report and Search Opinion, EP App. No. 23155478.3, Jun. 16, 2023, 8 pages.
- Meister et al.,
- “
- Parallel Locally-Ordered Clustering for Bounding Volume Hierarchy Construction
- ”