Electronic device and method for ray intersection testing using quantization and interval representation
By using low-precision hardware triangle testing and conservative intersection testing generated by interval algorithms, the problem of high computational cost of ray tracing is solved, and efficient optimization of graphics processor performance and power consumption is achieved.
Patent Information
- Application Number
- CN202311599104.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-11-24
- Filing Date
- 2022-09-14
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-09-14
AI Technical Summary
Ray tracing is computationally expensive in computer graphics, especially when implementing ray tracing and motion blur, ray/primitive intersection testing consumes a lot of processor resources and power.
A low-precision hardware triangle test is used as a filter. A conservative intersection test is generated through an interval algorithm and interpolation space coordinates. The lower-precision intersection test provides deterministic hit results. Performance is improved and power consumption is reduced by accelerating the traversal sorting technique of the data structure.
This effectively reduces the computational cost of ray tracing, improves the performance of graphics processors and reduces power consumption, while ensuring the accuracy and efficiency of intersection testing.
Smart Images

Figure CN117593439B_ABST
Abstract
Description
[0001] This application is a divisional application filed on September 14, 2022, with application number 202211113266.8 and invention title "Light Intersection Test Using Quantization and Spacing Representation".
[0002] This application claims priority to U.S. Provisional Patent Application No. 63 / 248,143, filed September 24, 2021, which is incorporated herein by reference in its entirety. Technical Field
[0003] This disclosure relates generally to graphics processors, and more specifically to primitive intersection tests for ray tracing. Background Technology
[0004] In computer graphics, ray tracing is a rendering technique used to generate images by tracing the paths of light as pixels in an image plane and simulating the effects of their encounters with virtual objects. Ray tracing allows for resolution of visibility in 3D between any two points in a scene, which is also where most of its computational cost comes from. A typical ray tracer samples the path of light across the scene in the opposite direction of its propagation, starting from the camera and spreading into the scene, rather than starting from the light source (this is sometimes called "backward ray tracing"). Starting from the camera has the beneficial effect of only tracing the light visible to the camera. The system can be modeled on a rasterizer, where the light simply stops at a first surface and a shader (similar to a fragment shader) is invoked to calculate the color. More common secondary effects (where the exchange of lighting between scene elements, such as diffuse reflection and transmission) are also modeled. Shaders that evaluate the surface reflection properties can invoke additional intersection queries (e.g., to generate new rays) to capture incident lighting from other surfaces. This recursive process has many expressions, but is commonly referred to as path tracing.
[0005] Compared to traditional rasterization systems, graphics processors that implement ray tracing typically deliver more realistic scenes and lighting effects. However, ray tracing is often computationally expensive. Improvements to ray tracing techniques can enhance the realism of graphical scenes, improve performance (e.g., allowing more rays to be traced per frame, tracing in more complex scenes, or both), and reduce power consumption (which can be particularly important in battery-powered devices).
[0006] Ray intersection queries can be performed using shaders, dedicated hardware, or a combination of both. Different types of intersection queries provide different types of information. For example, a "closest hit" query locates the nearest intersecting geometry along a ray and within a parameter interval where the ray is valid (this is perhaps the most common type of query). A "any hit" query indicates whether any intersecting geometry exists along a ray and within a parameter interval. This type of query can be used for shadow rays, for example, to determine whether a point in a scene is visible to light or occluded. Once the intersecting geometry is determined, it can be shaded based on the intersection, and further rays can then be generated, for example, from reflective surfaces for intersection testing.
[0007] Motion blur is a phenomenon that occurs when an image being recorded changes during the recording of a single exposure. For example, a photograph of a moving freight train with a sufficiently long exposure time may show the train blurred, while non-moving objects remain unblurred. In the context of computer graphics, a graphics processor can simulate the motion blur effect of a graphics data frame. In this context, animated graphics primitives (e.g., triangles) can be modeled with multiple different positions during the shutter opening interval of a virtual camera (also referred to herein as the motion blur interval), and thus can affect pixel values at multiple locations within the frame, causing the blur effect.
[0008] Typically, a precise timestamp is assigned to each ray within the motion blur interval. When implementing both ray tracing and motion blur, testing ray / primitive intersections can be expensive in terms of processor resources and power consumption. Attached Figure Description
[0009] Figure 1A This is an illustration showing an overview of exemplary graphics processing operations according to some implementation schemes.
[0010] Figure 1B This is a block diagram illustrating exemplary graphical units according to some implementation schemes.
[0011] Figure 2A This is a block diagram illustrating an exemplary low-precision test circuit according to some implementation schemes.
[0012] Figure 2B This is a block diagram illustrating an exemplary intersection testing technique according to some implementation schemes.
[0013] Figure 3 This is a diagram illustrating exemplary interval representations of various values used in an initial intersection test according to some implementation schemes.
[0014] Figure 4 This is a diagram illustrating an exemplary interpolation circuit configured to generate an interval representation of interpolation primitives in a motion blur interval, according to some embodiments.
[0015] Figure 5 This is a block diagram illustrating an exemplary shearing factor circuit configured to generate shearing factor intervals according to some embodiments.
[0016] Figure 6 This is a diagram illustrating an exemplary circuit configured to translate and shear vertices using shearing factor intervals according to some embodiments.
[0017] Figure 7 This is a circuit diagram illustrating an exemplary circuit configured to generate initial intersection test results according to some implementation schemes.
[0018] Figure 8 This is a diagram illustrating an exemplary circuit configured to generate a modified interval product according to some embodiments.
[0019] Figure 9 This is a diagram illustrating exemplary triangle pair and sequence pair processing circuits according to some implementation schemes.
[0020] Figure 10 This is a diagram illustrating an exemplary boundary of a quantized primitive representation and a deterministically hit region according to some implementation schemes.
[0021] Figure 11 This is a diagram illustrating an exemplary test circuit configured to generate a hit or nondeterministic output according to some implementations.
[0022] Figure 12 This is a circuit diagram illustrating an exemplary circuit configured to generate initial intersection test results according to some implementation schemes.
[0023] Figure 13 This is a diagram illustrating exemplary primitive test sequences according to different sorting (including sorting from the middle) according to some implementation schemes.
[0024] Figure 14 This is a flowchart illustrating an exemplary method according to some implementation schemes.
[0025] Figure 15 This is a flowchart illustrating another exemplary method according to some implementation schemes.
[0026] Figure 16 This is a block diagram illustrating an exemplary computing device according to some implementation schemes.
[0027] Figure 17 This is an illustration showing exemplary applications of the systems and devices disclosed in this invention according to some embodiments.
[0028] Figure 18This is a block diagram illustrating an exemplary computer-readable medium for storing circuit design information according to some embodiments. Detailed Implementation
[0029] In the embodiments disclosed in this invention, a lower-precision hardware triangulation test is first performed as a filter, and if the lower-precision test identifies a potential hit, a higher-precision triangulation test is performed. This lower-precision test may be conservative (e.g., it may generate false hits but should not generate false misses). U.S. Patent Application No. 17 / 136,542, filed December 29, 2020, entitled “Primitive Testing for Ray Intersection at Multiple Precisions,” is incorporated herein by reference in its entirety. Patent Application No. 17 / 136,542 describes exemplary techniques for performing tests at different precisions and how potential errors due to the quantization of the input can be tracked throughout the test with reduced precision to ensure that the results are conservative.
[0030] This disclosure uses an interval algorithm to track and limit potential quantization errors in hardware primitive tests using one or more inputs. In some embodiments, the techniques disclosed herein can advantageously provide tighter error boundaries than embodiments of the '542 patent application. Additionally, in some specific embodiments, the techniques disclosed herein can use a reduced circuit area to perform primitive tests with a specific level of precision.
[0031] Furthermore, the disclosed embodiments, discussed in detail below, generate interpolated spatial coordinate intervals to represent moving triangles for conservative intersection tests at a given ray time within a motion blur interval. Additionally, the techniques disclosed in this invention provide efficient encoding and processing techniques for moving and non-moving triangle pairs.
[0032] Furthermore, the techniques disclosed in this invention can provide deterministic hit results using intersection tests with lower precision, without having to perform intersection tests with the original precision (e.g., for “any hit” ray).
[0033] Finally, the traversal sorting techniques disclosed in this invention for accelerating data structures (e.g., sorting "from the middle" rather than from front to back or from back to front) can improve performance, reduce power consumption, or both for the traversal of certain types of light.
[0034] Overview of Graphics Processing See Figure 1AThe diagram illustrates a flowchart of an exemplary processing flow 100 for processing graphics data. In some embodiments, the transformation and lighting process 110 may involve processing lighting information of vertices received from an application based on defined light source positions, reflectivity, etc., assembling vertices into polygons (e.g., triangles), and converting polygons to the correct size and orientation based on their positions in three-dimensional space. The clipping process 115 may involve discarding polygons or vertices outside the visible area. The rasterization process 120 may involve defining segments within each polygon and assigning initial color values to each segment, for example, based on the texture coordinates of the polygon vertices. Segments may specify the properties of the pixels they overlap, but the actual pixel properties may be determined based on combining multiple segments (e.g., in a frame buffer), ignoring one or more segments (e.g., if they are covered by other objects), or both. The shading process 130 may involve altering pixel components based on lighting, shadows, bump mapping, translucency, etc. Shaded pixels may be assembled in a frame buffer 135. Modern GPUs typically include programmable shaders that allow application developers to customize shading and other processing. Therefore, in various embodiments, Figure 1A The exemplary components can be executed in various sequences, in parallel, or omitted. Additional processing procedures can also be implemented.
[0035] See now Figure 1B A simplified block diagram of an exemplary graphics unit 150 according to some embodiments is shown. In the exemplary embodiments, the graphics unit 150 includes a programmable shader 160, a vertex pipe 185, a fragment pipe 175, a texture processing unit (TPU) 165, an image writing unit 170, and a memory interface 180. In some embodiments, the graphics unit 150 is configured to use the programmable shader 160 to process both vertex data and fragment data, and the programmable shader may be configured to process the graphics data in parallel using multiple execution pipelines or instances.
[0036] In the illustrated embodiment, vertex tube 185 may include various fixed-function hardware configured to process vertex data. Vertex tube 185 may be configured to communicate with programmable shader 160 to coordinate vertex processing. In the illustrated embodiment, vertex tube 185 is configured to send processed data to fragment tube 175 or programmable shader 160 for further processing.
[0037] In the illustrated embodiment, fragment tube 175 may include various fixed-function hardware configured to process pixel data. Fragment tube 175 may be configured to communicate with programmable shader 160 to coordinate fragment processing. Fragment tube 175 may be configured to perform rasterization on polygons from vertex tube 185 or programmable shader 160 to generate fragment data. Vertex tube 185 and fragment tube 175 may be coupled to memory interface 180 (coupling not shown) to access graphics data.
[0038] In the illustrated embodiment, programmable shader 160 is configured to receive vertex data from vertex tube 185 and fragment data from fragment tube 175 and TPU 165. Programmable shader 160 can be configured to perform vertex processing tasks on the vertex data, which may include various transformations and adjustments to the vertex data. In the illustrated embodiment, programmable shader 160 is also configured to perform fragment processing tasks on pixel data, such as texture and shading processing. Programmable shader 160 may include multiple sets of execution pipelines for parallel processing of data.
[0039] In some implementations, programmable shaders include pipelines configured to execute one or more different SIMD groups in parallel. Each pipeline may include various stages configured to perform operations (such as fetch, decode, dispatch, execute, etc.) within a given clock cycle. The concept of a processor “pipeline” is well understood and refers to the concept of dividing the “work” of a processor executing instructions into multiple stages. In some implementations, instruction decoding, dispatch, execution (i.e., fulfillment), and rollback can be examples of different pipeline stages. Many different pipeline architectures may have different element / part orders. Various pipeline stages perform such steps on instructions during one or more processor clock cycles, then pass the instructions or operations associated with the instructions to other stages for further processing.
[0040] The term "SIMD group" is intended to be interpreted in its well-known sense, referring to a set of threads for which processing hardware processes the same instructions in parallel using different input data for different threads. Various types of computer processors may include a collection of pipelines configured to execute SIMD instructions. For example, graphics processors typically include programmable shader cores configured to execute instructions in a SIMD manner for a set of associated threads. Other examples of names that can be used for a SIMD group include: wavefront, clique, or warp. A SIMD group can be part of a larger group of threads, which can be split into multiple SIMD groups based on the computer's parallel processing capabilities. In some implementations, each thread is assigned to a hardware pipeline that fetches operands for that thread and executes the specified operation in parallel with other pipelines in the set of threads. It should be noted that a processor can have a large number of pipelines, allowing multiple individual SIMD groups to execute in parallel. In some implementations, each thread has a private operand storage device, for example, in a register file. Thus, reading a specific register from the register file provides a version of the register for each thread in the SIMD group.
[0041] In some implementations, multiple programmable shader units 160 are included in the GPU. In these implementations, global control circuitry can distribute work to different sub-parts of the GPU, which in turn can distribute work to shader cores for processing by the shader pipeline.
[0042] In the illustrated implementation, TPU 165 is configured to schedule fragment processing tasks from programmable shader 160. In some implementations, TPU 165 is configured to prefetch texture data and assign initial colors to fragments for further processing by programmable shader 160 (e.g., via memory interface 180). TPU 165 may be configured to provide fragment components, for example, in normalized integer or floating-point format. In some implementations, TPU 165 is configured to provide fragments in a 2×2 format, grouped into sets of four (“fragment quadruples”), which are pipelined by a set of four programmable shaders 160.
[0043] In some embodiments, the image writing unit (IWU) 170 is configured to store processed tiles of an image and can perform operations on the rendered image before transferring it for display or to memory for storage. In some embodiments, the graphics unit 150 is configured to perform tiled deferred rendering (TBDR). In tiled rendering, different portions of the screen space (e.g., squares or rectangles of pixels) can be processed individually. In various embodiments, the memory interface 180 facilitates communication with one or more of various memory hierarchies.
[0044] In the illustrated example, graphics unit 150 includes a ray intersection accelerator (RIA) 190, which may include hardware configured to perform various ray intersection operations, as detailed below.
[0045] Overview of Interval-Based Intersection Tests Figure 2A This is a block diagram illustrating exemplary quantization circuitry and low-precision intersection test circuitry according to some embodiments. In the illustrated embodiment, the graphics processor includes test circuitry 220.
[0046] In some implementations, the quantization circuitry is configured to quantize the ray data and generate an interval representation of the quantized values. In various implementations, while using a lower precision than the input representation to represent the upper and lower bounds of the generated intervals, it is guaranteed that the intervals cover the initial values within the input precision. It should be noted that the primitive data can also be stored in a quantized interval format (e.g., to accelerate data structures).
[0047] In the illustrated implementation, the low-precision test circuit 220 based on the interval algorithm is configured to generate conservative intersection results by performing the interval algorithm on the interval representation. The conservative intersection results guarantee that a miss signaled by circuit 220 will not result in a hit in a higher-precision intersection test (e.g., operating on the value with input precision before quantization). In these implementations, a positive output from circuit 220 indicates a potential hit.
[0048] In various implementations, performing a lower-precision initial intersection test compared to conventional techniques can advantageously improve performance, reduce power consumption, or both. Specifically, misses or deterministic hits generated by the initial test can avoid the need to perform higher-precision tests for a given ray and primitive. Therefore, there can be technical advantages to both improving test accuracy (e.g., by tightening error boundaries) and improving the performance or power consumption of the initial test itself.
[0049] Figure 2B This is a flowchart illustrating a general exemplary intersection testing technique according to some embodiments. In the illustrated embodiment, element 210 converts the ray direction to a lower-precision floating-point interval representation. Element 230 determines the shearing factor based on the quantized frame transform (used for vertex quantization, discussed in detail below), and element 244 converts the shearing factor to a fixed-point interval representation. Element 242 also generates a fixed-point interval representation of the ray origin based on the quantized frame transform. Element 246 generates a fixed-point interval representation of the ray time. For motion blur processing, element 250 performs temporal interpolation on the quantized triangle vertices based on the ray time (this element can be omitted or directly passed through the quantized triangle vertices when no motion blur operation is performed). Element 260 transforms the vertices according to the shearing factor and the ray origin, and element 270 evaluates the edge equations to determine if there are misses or potential hits. Further details are explained below. Figure 2B Various components. Figure 2B The specific operations described herein are included for illustrative purposes and are not intended to limit the scope of this disclosure. However, in some embodiments, the operations disclosed herein can advantageously provide close spacing using reasonable circuit area and power consumption.
[0050] Exemplary quantization interval representation of intersecting test values Figure 3 This is an illustration showing exemplary representations of various values used in an initial intersection test according to some embodiments. In the illustrated example, the intervals are generated for vertex position, ray origin, direction and time, shearing factor, and interpolation triangle vertices. It should be noted that these specific interval values are discussed for illustrative purposes and are not intended to limit the scope of this disclosure. In other embodiments, intervals may be used to represent any of the various values used in determining the initial intersection result.
[0051] In the illustrated implementation, for each quantized vertex position (e.g., for each of the three vertices of a triangle), three corresponding intervals are determined for the X, Y, and Z dimensions. Similar intervals are determined for the ray origin and ray direction. In some implementations that support motion blur, upper and lower bounds for ray time are also determined.
[0052] In some implementations that use shearing as part of a ray-triangle intersection test, upper and lower limits are determined for two shearing factors in the non-principal coordinate directions of the ray.
[0053] In some implementations that support motion blur, the graphics processor determines the X, Y, and Z intervals of each vertex for an interpolation triangle corresponding to the time of light within the motion blur interval. Figure 4 Exemplary techniques for generating interval representations of interpolation triangles are discussed and provided in detail below. More specifically, techniques for determining various particular intervals are discussed in detail below.
[0054] As discussed in detail below, data structures can represent triangles, moving triangles, pairs of triangles, moving triangle pairs, or some combination thereof. In some implementations, triangles are represented using three vertices, moving triangles using six vertices, pairs of triangles using four vertices, and pairs of moving triangles using eight vertices.
[0055] In some implementations, the quantized triangle coordinates are stored as unsigned integer values with limited point precision and rounded to zero. These coordinates may correspond to a local coordinate system recorded in the Accelerated Data Structure (ADS), such as that discussed in patent application '542. The quantized values may be N-bit values. In some implementations, each coordinate value uses a number of bits that are advantageous for packing within a field of a specific size. As an example, a 7-bit value for each quantized coordinate interval of a single triangle may be packed into two 64-bit fields (7 bits for each of the three vertices' x-up / down, y-up / down, and z-up / down = 126 bits). In other implementations, fixed-point encoding using various appropriate numbers of bits may be utilized. In some implementations, the unsigned values are converted to a new coordinate system, where the values become signed integers. It should be noted that in some cases, only one boundary of the interval may be stored, while the other boundary may be implicit. This can reduce the storage requirements for certain parts of the processor.
[0056] In this context, if p If the coordinates are quantized values of a triangle, then the interval representing these coordinates in the local quantized coordinate space is... In some implementation schemes, δpThis represents the smallest unit of precision (ULP) in the quantization format. The original coordinate values before quantization are guaranteed to be within this interval. For an N-bit fixed-point representation, Generally speaking, the resistance discussed in this article refers to the interval.
[0057] Therefore, nine values can be used to encode a given non-moving triangle (three vertices, each with three lower bounds for coordinates, where the upper bound is implicitly one ULP larger than the lower bound).
[0058] In some implementations, the moving triangle is stored as two (or more) sets of coordinates, such as time. t = Position at 0 p (0) and time t = Position at 1 p (1). This defines the interval of linear motion within the normalized time interval [0,1]. Note that multiple linear moves within a sub-interval can also be used to encode nonlinear moves over larger motion fuzzy intervals. In this case, the movement triangle can include more than two sets of coordinates. Time t The coordinates of the moving triangle at the location can be used with intervals. To express.
[0059] In some implementations, as part of a low-precision intersection test, the light time is quantized into lower-precision intervals. , where t is encoded using M bits of sub-interval resolution (e.g., in 2... M (Implicitly set to 1.0). M may or may not correspond to the number of bits N used to represent the spatial coordinates of a triangle (or the number of bits used to represent the spatial coordinates of a ray). Like other quantization intervals, it guarantees finding the original high-precision value within the low-precision interval. In some implementations, time is a fourth coordinate axis independent of other coordinates such as x, y, and z.
[0060] Example of interval-based motion blur processing In some implementations, the interval interpolation circuit is configured to reconstruct a conservative spatial interval for the quantization time interval of the light rays. Move the triangle's coordinates upwards. Figure 4 This is a diagram illustrating an exemplary interpolation circuit configured to generate an interval representation of interpolation primitives in a motion blur interval, according to some embodiments. Circuit 410 can perform the above reference. Figure 2B The operation of component 250 is discussed.
[0061] In the illustrated embodiment, the interpolation circuit 410 is configured to receive an interval representation of the light time and an interval representation of the moving triangle (e.g., x, y, and z intervals of each of the six vertices), and to generate an interval representation of the interpolation triangle (e.g., x, y, and z intervals of each of the three vertices).
[0062] As an example, circuit 410 can determine the interpolation space coordinate interval as: Use symbols p 0 = p (0) and p 1 = p (1) Circuit 410 can guarantee coverage of any Quantization time interval Interpolation position coordinate interval Determined as: in In various implementations, this equation provides a good fit with reasonable performance and circuit area. Furthermore, the spacing provided by this equation has been determined to be conservative.
[0063] In some implementations, circuit 410 is configured to determine according to the equation. Intervals. It should be noted that in other embodiments, other equations may be implemented by computer circuitry to determine conservative interpolation triangle intervals; the equations disclosed herein are included for illustrative purposes but are not intended to limit the scope of this disclosure.
[0064] In various implementations, at least in motion-blurred operation modes, an initial low-precision intersection test can be used to test the interpolation triangle interval. Therefore, the various primitive inputs discussed below can be used for conventional triangles or for interpolation triangles, depending, for example, on whether motion blur is utilized. Furthermore, while the various techniques discussed herein use interval algorithms, the interpolation triangle techniques for motion blur disclosed herein can also be used with other quantization representations and techniques (e.g., techniques from '542 patent application).
[0065] Example of shearing factor determination As discussed in patent application '542, shearing techniques can be used to perform intersection tests. In the following discussion, the following naming conventions will be adopted:
[0066] In some implementations, the transformation to the 2D shear space is given by the following equation: (1) To perform these calculations using a fixed-point algorithm, the device can calculate the object space ray quantity according to the following formula. P and D Convert to quantization space p and d : (2) (3) Before proceeding further, the device can determine which axis of the scaling ray direction has the maximum value and rotate the axis name so that the longest axis is in the third position (“z”). Additionally, if the directional component is negative, the device can replace the other two axes to maintain the rotational property. For the following discussion, it is assumed that this renaming has been applied to all Cartesian quantities.
[0067] Substituting it into Equation 1 and simplifying, we get: (4) In the context of the spacing technique disclosed in this invention, the various values represented in Equation 4 are spacing representations, as discussed above. Once in 2D shear space, the ray position is restored to the origin of the coordinate system, with its direction aligned with the z-axis, wherein the device can be configured for the three shear coordinates according to the following conditions. The three directed edges of the represented 2D triangle are tested: if u , v , w If all triangles have the same sign, then the triangle covers the origin and the light rays intersect the triangle, thus within numerical precision.
[0068] Figure 5 This is a block diagram illustrating an exemplary shearing factor circuit configured to generate shearing factor intervals according to some embodiments. In the illustrated embodiment, the shearing factor circuit (which may be included in low-precision test circuit 220) includes down-conversion circuits 510A-510C, subtraction circuits 520A-520B, reciprocal circuit 530, interval product and scale adjustment circuits 540A-540B, and floating-point to fixed-point interval conversion circuits 550A-550B. In some embodiments, Figure 5 Circuit implementation Figure 2B The function of component 230.
[0069] In the illustrated implementation, the downconversion circuit 510 is configured to convert the x, y, and z directions (after rotation, such that the longest axis is the z direction) into a floating-point interval representation with reduced precision. In some implementations, the downconversion rounds to negative infinity (RTNI) to generate the lower interval boundary and to positive infinity (RTPI) to generate the upper interval boundary.
[0070] In the illustrated implementation, the subtraction circuit 520 is configured to subtract the x and y scale values from the z-scale value, respectively, to generate S in the unsigned integer representation. z / S x and S z / S y The result of unsigned division. In some implementations, the scaling values are powers of two, such that subtraction of the exponent corresponds to division. These scaling factors can be determined based on the quantization frame of the primitives. Generally, a set of quantized values can share a “quantization frame” of parameters defining these values. In some implementations, the quantized values are represented as fixed-point offsets relative to a common origin and scaling factors. Thus, the quantization frame can specify the origin (e.g., in x, y, and z coordinates) and the scaling factors (e.g., as scaling factors raised to the power of 2 in each of the z, y, and z dimensions). The primitive intervals of the quantization discussed herein can be represented using fixed-point coordinates interpreted in the context of the quantization frame. Note that in the illustrated example, the output of circuit 520 is not an interval.
[0071] In the illustrated implementation, the reciprocal circuit 530 is configured to generate the reciprocal of the downconversion z-direction value.
[0072] In the illustrated implementation, the interval product circuit and the scaling circuit 540 are configured to perform an interval product operation on their inputs to generate an output in a floating-point interval format with reduced precision. In some implementations, the circuit 540 is configured to clamp their outputs to the range [-1, 1]. In some implementations, the circuit 540 also applies scaling from the circuit 520 by multiplying the exponent by a power of two.
[0073] In the illustrated implementation, the floating-point to fixed-point interval conversion circuit 550 is configured to convert the reduced-precision floating-point interval representation to D... x S z / D z S x and D y S z / D z S y The shearing factor (which is input into the discussion below) Figure 6 The fixed-point interval representation of the circuit.
[0074] Figure 6This is a diagram illustrating an exemplary circuit configured to translate and shear vertices using shearing factor intervals according to some embodiments. For example, Figure 6 The operation of equation (4) above can be achieved using an interval algorithm. Figure 6 The above reference can be achieved Figure 2B The operation of component 260 is discussed. In the illustrated embodiment, the circuit receives vertex and ray position data in interval form and is configured to perform interval subtraction and multiplication operations to use the... Figure 5 The circuit generates shearing factor intervals to generate translation and shearing vertices. In some implementations, Figure 6 Each output is an interval, in Figure 7 In the middle, the lower limit can use a minus sign (e.g., a). y- The upper limit can be represented by a plus sign (e.g., a). y+ ) is used to represent this.
[0075] Figure 7 This is a block diagram illustrating an exemplary circuit configured to perform an initial accuracy reduction intersection test according to some embodiments. In some embodiments, Figure 7 Circuit implementation Figure 2B The function of component 270. For example. Figure 7 Based on Figure 6 The output is used to perform the corresponding u , v , w The above equations are then manipulated to generate intersection results. Note that... Figure 7 The circuit differs from those equations in several ways. First, the circuit performs comparisons instead of subtraction (e.g., Instead (This is because only symbols are needed.) Secondly, in the illustrated implementation scheme, Figure 7 The circuit performs double the multiplication to provide a conservative test (e.g., considering only the "outer" portion of the edge spacing), but the circuit doesn't know which way is "outer" because it might be considering either the clockwise or counterclockwise face of the triangle. Circuit 710 is configured to generate a corrected spacing product, and is referenced below. Figure 8 Let's discuss this in detail.
[0076] Figure 7 The exemplary AND and OR logic provides an indication of whether a test with reduced precision yields a deterministic miss result. As shown in the figure, six two-sided edge tests can be performed using 12 multipliers and 6 comparators, all of which are fixed-point. Note that various circuits can be combined or merged; for example, adders and subtractors can be implemented from a single component that performs both operations in parallel, and multipliers and comparators can be combined to implement a single ab<=cd operation.
[0077] As discussed above, if there are nondeterministic results (potential hits), the processor can perform a higher-precision intersection test (e.g., using raw floating-point representation).
[0078] Exemplary modified interval product Typically, signed-interval products require four multipliers, as defined: In some implementations, two multipliers are used to implement interval products. To fully resolve the sign of the interval product sum, we need to accurately resolve the signs of the two endpoints of each interval product. This can be done by using only two multipliers per interval product, unless both interval inputs of the interval product cross the origin. In this case, the hardware can introduce an anomaly, and intersection tests can record potential hits. Empirical data suggests that such anomalies are likely rare under typical workloads. Code Listing 1 implements a modified signed interval product using only two hardware multipliers.
[0079] Figure 8 An example of a circuit 810 configured to implement a modified signed-interval product is shown according to some embodiments. In some embodiments, Figure 8 The circuit is included Figure 7 The corresponding element 710. In this embodiment, the routing circuit 810 is configured by the four symbols of the input to route the operands to two multipliers, for example, as stated in Code Listing 1. In this example, the circuit 810 is also configured to detect abnormal conditions.
[0080] Exemplary encoding and processing techniques for triangle pairs Figure 9 This is a diagram illustrating exemplary triangle pair and sequential pair processing circuitry according to some embodiments. As shown, triangle pair 910 is a group of two triangles sharing two vertices (vertices 1 and 2 in the illustrated example). Therefore, the two triangles can be defined by four vertices. Assuming that triangle pairs are common in various models, in some embodiments, the processor is configured to use a triangle pair data structure with four vertices to store the triangles, which reduces storage requirements.
[0081] In some implementations, the processor includes sequential pair processing circuitry 920, configured to perform one or more operations sequentially on triangle pairs, for example, processing one triangle in the pair before processing the second triangle in the pair. As an example, this operation could be an initial intersection result, but other circuitry could use a similar sequential technique. This can provide efficient processing in implementations where the same triangle pair structure is used for all triangles, but some structures may only have data for a single triangle. In these implementations, if the data structure indicates that only one triangle is encoded, the sequential pair processing circuitry 920 may skip the operation on the second triangle in the pair.
[0082] An example of deterministic hit detection using a lower-precision intersection test. In some implementations, the intersection test circuitry operating on the quantized input can still provide deterministic information about whether a line corresponding to a ray intersects with the primitive, which can be useful for certain types of rays. Therefore, re-referencing... Figure 7 Examples of this can be used to implement modified comparator circuits (in addition to...) Figure 7 (In addition to or in place of the circuit) to provide an indication of whether a deterministic or non-deterministic hit has occurred.
[0083] Figure 10 This is an illustration of an exemplary region surrounded by a quantized representation of two-dimensional triangular primitives (e.g., clipped). In the illustrated example, edge 1010 shows the precise edge, e.g., if represented according to the original precision. Outer boundary 1020 and inner boundary 1030, for example, use an interval representation to show the boundaries of the quantized representation.
[0084] As shown in the figure, light rays falling in the region outside the boundary 1020 are deterministic misses, for example, if they could be obtained from... Figure 7 The circuitry detected the light rays falling in the region between boundaries 1020 and 1030. This is because the exact location of the triangle's edge within that region is unknown. Light rays falling in this region may require more precise testing.
[0085] As shown in the figure, a ray falling within the region of boundary 1030 is a deterministic hit for the line corresponding to that ray. It should be noted that the intersection detected by this test may not precisely indicate the location of a hit, for example, due to quantization. Furthermore, the intersection detected by this test may only indicate a hit on the line corresponding to the ray, for example, due to quantization of the effective interval of the ray.
[0086] However, in some implementations, deterministic hits within the region defined by boundary 1030 may be useful even with the limitations discussed above.
[0087] Figure 11This is a block diagram illustrating an exemplary low-precision test circuit 1120 configured to indicate whether a hit exists or whether a hit cannot be determined. This is discussed in detail below. Figure 12 A detailed example of such a circuit is provided. Note that circuit 1120 may also provide an indication of whether a miss exists or whether a miss cannot be determined (e.g., whether a combination exists). Figure 7 and Figure 12 The output of the circuit.
[0088] In some implementations, the processor may skip higher-precision intersection tests in cases where the output of circuit 1120 indicates a deterministic hit. In some implementations, this ray query may terminate under the following conditions: the ray is any hitting ray, the triangle is opaque, and the active ray interval completely covers at least one boundary volume that completely surrounds the triangle. In some implementations, the triangle opacity may be determined based on whether α is mapped to the test. Whether the active ray interval completely covers at least one boundary volume that completely surrounds the triangle may be determined based on the traversal of the ADS (which allows the determination of which boundary volumes completely surround the triangle based on the ADS architecture) and a flat-panel test circuit configured to test the boundary volumes of the traversal.
[0089] Under these conditions, the processor can record ray-triangle intersection hits without performing a high-precision test. This can advantageously improve performance, reduce power consumption, or both when processing any hit rays. It should be noted that the conditions discussed above are included for illustrative purposes; in other implementations, only a subset of these conditions may be checked, or other conditions may be applied, etc.
[0090] Figure 12 It is based on some implementation schemes similar to Figure 7 The illustration shows a circuit diagram of a deterministic hit test circuit. In the illustrated embodiment, circuit 710 is as described above. Figure 7 and Figure 8 The configuration is as described above. However, the output is routed differently to the comparator to provide a hit or nondeterministic result. In some implementations, in addition to... Figure 7 In addition to the circuit shown, it also includes Figure 12 The comparator, AND gate, and OR gate shown enable the quantization intersecting test circuit to output two Boolean results for a given test.
[0091] The following code list 2 provides what can be obtained by Figure 12 Exemplary operations implemented by circuits or other similar circuits.
[0092] Exemplary traversal techniques that potentially reduce intersection testing Ray intersection computation is typically facilitated through Accelerated Data Structures (ADS). To efficiently perform ray intersection queries, spatial data structures can reduce the number of surface intersection tests for rays, thus accelerating the query process. A common type of ADS is the Boundary Volume Hierarchical Structure (BVH), where surface primitives are enclosed in a hierarchical structure of geometric surrogate volumes (e.g., boxes) that more cheaply test for intersections. These volumes may be referred to as boundary regions. By traversing the data structure and performing surrogate intersection tests along the path, the graphics processor locates a conservative set of candidate intersecting primitives for a given ray. A common form of BVH uses 3D Axis-Aligned Bounding Boxes (AABBs). Once constructed, an AABB BVH is available for all ray queries and is a viewpoint-independent structure. In some implementations, for each distinct mesh in the scene, these structures are constructed once in the object space or model space of that object, and the rays are transformed from world space to local space before traversing the BVH. This allows for the geometric instantiation of a single mesh with many rigid transformations and material properties (similar to instantiation in rasterization). Animated geometry often requires reconstructing the data structure (sometimes with a less expensive update operation called "refit"). For non-real-time use cases where millions or billions of rays are tracked for a single scene in a single frame, the cost of ADS construction is entirely amortized to the point of being "free." However, in real-time environments, there is often a subtle trade-off between construction and traversal costs, where building a more efficient structure is typically more expensive.
[0093] In some embodiments, the intersecting circuitry is configured to traverse a BVH ADS that uses a 3D axis-aligned box as its boundary volume. The ADS may have a maximum branching factor (e.g., 2, 4, 8, 16, etc.) that does not assume triangular geometry and flexible user-defined payloads (e.g., content at the foliage). In some embodiments, a depth-first search is performed, for example, as discussed in U.S. Patent Application No. 17 / 103,317, filed November 24, 2020, which is incorporated herein by reference in its entirety.
[0094] In some implementations, RIA 190 is configured for a specific type of depth-first traversal, using a modified ordering of the child nodes of a given node. In some implementations, the techniques disclosed in this invention are applied to secondary rays. A secondary ray is a ray that travels from the intersection of a first (tracked) ray and a surface. Since many types of effects are typically achieved with any hit ray (e.g., shadows), many hit rays are secondary rays. Therefore, secondary rays originate near the intersecting surface and point away from that surface (and thus do not intersect with that particular surface).
[0095] Due to the nature of secondary rays, the inventors have recognized that traversing child nodes of intersecting boundary volumes from front to back or from back to front can often result in missed intersection tests. For example, for front to back, a ray may intersect the boundary volume of a primitive that reflects a secondary ray (triggering an intersection test), but will not actually intersect that primitive.
[0096] Figure 13 This is an illustration comparing front-to-back sorting versus middle-start sorting of intersecting child nodes in a data structure, based on some implementations. In the illustrated example, the secondary ray is a reflection based on the intersection of another ray (not shown) with primitive A. As shown, the ray ends at the light source (this is likely because ray tracing typically traces rays backward from the camera to the light source to avoid processing irrelevant rays). In this example, the ray is any hit ray that intersects primitive C.
[0097] Consider the exemplary case where the ray intersects the boundary volume of each indicative primitive, and the indicative primitive is all the child nodes of the node corresponding to the larger boundary volume. In this example, the traversal circuit can use various orders of child nodes to perform the search first in a depth-first search.
[0098] As shown in the figure, using a front-to-back sorting, the boundary volumes closer to the ray origin are traversed first. The intersection test of primitives A and B results in a miss before the hit of primitive C is finally detected and the query ends (because this is any hit ray). Considering that the ray that produces the exemplary secondary ray intersects with primitive A, the miss of primitive A is not surprising.
[0099] Using sorting from the middle advantageously provides faster hit detection, requiring two fewer intersection tests in this example compared to sorting from front to back. As shown, starting from the middle of the ray results in a hit for primitive C, and the query can end without testing primitives D, A, or B.
[0100] In some implementations, various techniques can be used to provide priority ordering to one or more intermediate nodes relative to the preceding / following nodes. As an example, consider a tree-like ADS with a branching factor N. The intersection circuit can first classify the child nodes of its boundary volume that intersect in a front-to-back order. For M ≤ N intersecting child nodes (indexed from 0 to M-1), the intersection circuit can reorder the intersections via the following sequence based on whether M is odd or even.
[0101] If M is odd and the division refers to integer division (e.g., 3 / 2 = 1), then the following is an example reordering sequence of sub-indexes: M / 2 M / 2 + 1 M / 2 - 1 M / 2 + 2 M / 2 - 2 ... M / 2 + M / 2 = M - 1 M / 2 - M / 2 = 0 If M is even, then the following is an example reordered sequence: M / 2 M / 2 - 1 M / 2 + 1 M / 2 - 2 M / 2 + 2 ... M / 2 + (M / 2 - 1) = M - 1 M / 2 - M / 2 = 0 In some hardware implementations, for the maximum branching factor N, the circuit can encode a reordered sequence of each value of M from 1 to N to quickly determine the traversal order starting from the middle. As a non-restrictive example, if N=8, the table could include the following sequences: For M=1: [0] For M=2: [1, 0] For M=3: [1, 2, 0] For M=4: [2, 1, 3, 0] For M=5: [2, 3, 1, 4, 0] For M=6: [3, 2, 4, 1, 5, 0] For M=7: [3, 4, 2, 5, 1, 6, 0] For M=8: [4, 3, 5, 2, 6, 1, 7, 0] It should be noted that the specific sequences discussed herein are included for illustrative purposes and are not intended to limit the scope of this disclosure. In other embodiments, various orderings may be implemented, in which one or more inner child nodes take precedence over the preceding / following nodes.
[0102] In implementations using binary trees (N=2), when searching for child nodes at different levels of the tree, the traversal circuit can alternate between back-to-front and front-to-back traversal orders (e.g., front-to-back for odd depths in the tree, back-to-front for even depths, and vice versa).
[0103] Exemplary methods Figure 14This is a flowchart illustrating an exemplary method for performing an initial intersection test according to some implementation schemes. Figure 14 The methods shown can be used in conjunction with any of the computer circuits, systems, devices, components, or parts disclosed herein. In various embodiments, some of the method elements shown may be executed concurrently in a different order than that shown, or may be omitted. Additional method elements may also be executed as needed.
[0104] At 1410, in an exemplary embodiment, the graphics processor quantizes a first representation of a primitive to generate an interval with reduced precision, wherein the interval representation includes an interval value that guarantees coverage of the corresponding value specified by the first representation of the primitive. In some embodiments, the quantization of the first representation of the primitive uses a fixed-point quantization representation rounded to zero for the lower bound of the interval and uses a lower bound plus a minimum precision unit (ULP) for the upper bound of the interval.
[0105] At 1420, in an exemplary embodiment, the graphics processor quantizes a first representation of a ray to generate a reduced-precision interval representation of the ray, wherein the interval representation includes interval values that guarantee coverage of corresponding values specified by the first representation of the ray. In some embodiments, the reduced-precision interval representation of the ray includes quantized ray time represented as an interval. In some embodiments, the circuitry generates a reduced-precision interval representation of the primitive based on a first position and a second position of the primitive at different points within a motion blur time interval, such that the reduced-precision interval representation of the primitive covers all possible positions of the primitive during the interval representing the quantized ray time.
[0106] At 1430, in the illustrated implementation, the graphics processor uses an interval algorithm to determine an initial intersection result based on the coordinates of the interval representation of the primitive and the coordinates of the interval representation of the ray, wherein a miss indicated by the initial intersection result is guaranteed not to be a hit of the first representation of the primitive and the first representation of the ray.
[0107] In some implementations, in response to a potential initial intersection result, the graphics processor is configured to perform an intersection test using a first representation of the primitives and a first representation of the rays.
[0108] In some implementations, the shearing factor circuit generates a spacing representation of the shearing factor based on ray direction information and scaling information, and generates a sheared vertex spacing based on the quantization representation of the primitives and the spacing representation of the shearing factor. In some implementations, the initial intersection result is based on the sheared vertex spacing. In some implementations, the shearing factor circuit is configured to use: a first precision to represent a first coordinate of the ray origin in the coordinate direction, thereby providing a threshold (e.g., maximum) contribution to the ray direction vector (e.g., the axis renamed to the z-direction); and a second, higher precision to represent the coordinates of the ray origin in other directions.
[0109] In some implementations, the first representation of the primitives is a representation of a triangle pair, which includes up to four vertices of the two triangle primitives in the triangle pair, wherein the graphics processor includes circuitry configured to sequentially process the triangles in a given triangle pair.
[0110] Figure 15 This is a flowchart illustrating an exemplary method for performing an initial intersection test according to some implementation schemes. Figure 15 The methods shown can be used in conjunction with any of the computer circuits, systems, devices, components, or parts disclosed herein. In various embodiments, some of the method elements shown may be executed concurrently in a different order than that shown, or may be omitted. Additional method elements may also be executed as needed.
[0111] At 1510, in an illustrated embodiment, the graphics processor performs an intersection test, wherein the intersection test operates on a reduced-precision representation of a ray generated by quantizing an initial representation of the ray and a reduced-precision representation of a primitive generated by quantizing an initial representation of the primitive. In an illustrated embodiment, the intersection test generates a first result for a first ray and a first primitive, wherein the first result indicates that the first ray intersects the first primitive according to their initial representations. In some embodiments, the intersection test may also generate a second result for a second ray and a first primitive, wherein the second result indicates that it cannot be determined whether the second ray intersects the first primitive. The graphics processor may perform an intersection test on a second ray using the initial representations of the second ray and the first primitive. The intersection test may be performed based on traversal of an accelerated data structure comprising a hierarchically arranged boundary volume for at least a portion of the graphics scene.
[0112] At 1520, in the illustrated embodiment, the graphics processor records the intersection of the first ray and the first primitive based on a first result, without performing an intersection test on the first ray using the initial representations of the first ray and the first primitive. In the illustrated embodiment, the intersection is recorded based on: the first result; determining that the first primitive is opaque; and determining that there exists at least one boundary volume in the accelerated data structure that surrounds the entire first primitive and the entire surrounded portion of the first ray is active.
[0113] In some implementations, the graphics processor is configured to record the intersection of the first ray based on any hit query for the first ray (and may record deterministic intersection results not based on tests of reduced precision for other types of queries).
[0114] In some implementations, the test circuit is further configured to output the result of the first ray and the first primitive, indicating that, based on their initial representation, the first ray missed the first primitive, or it cannot be determined whether the first ray missed the first primitive. For example, the processor may include... Figure 7 and Figure 12 The comparators and logic circuits for both. For the first ray and the first primitive, in the example discussed above, this output will indicate that it cannot be determined whether the first ray missed the first primitive, because another output indicates a deterministic hit.
[0115] In some implementations, the processor uses a center-first traversal order for at least some types of rays. In some implementations, the processor is configured to perform intersection tests based on traversal of an accelerated data structure comprising nodes corresponding to boundary volumes arranged in a hierarchical order (e.g., via a traversal circuit). Specifically, the processor may perform a depth-first search of the accelerated data structure, and for a set of child nodes of a first node in the accelerated data structure, select the next node for the depth-first search based on the order of the intersection boundary regions of that set of child nodes, wherein the ordering begins with a boundary volume that is closer to the midpoint of the ray being tested than one or more front boundary volumes and one or more rear boundary volumes.
[0116] In some implementations, the processor determines the number of nodes in the set of child nodes, corresponding to nodes that intersect with the ray being tested, before determining the order. For example, once the number of intersecting child nodes is determined, the processor can access a lookup table to determine the order. In some implementations, the ray being tested is any hitting ray, and traversal of the ray being tested terminates in response to the detection of an intersection. In some implementations, subsequent nodes are ordered alternately between forward and backward nodes relative to the starting node. As used herein, nodes closer to the "front" of the ray are also closer to the end of the ray, and nodes closer to the "back" of the ray are also closer to the origin of the ray. (See above references) Figure 13 The exemplary sorting discussed is an example of alternating between forward and backward nodes, starting from the middle node.
[0117] Example device Now for reference Figure 16 The diagram illustrates a block diagram of an exemplary embodiment of device 1600. In some embodiments, the components of device 1600 may be included within a system-on-a-chip. In some embodiments, device 1600 may be included in a mobile device that may be battery-powered. Therefore, the power consumption of device 1600 may be an important design consideration. In the illustrated embodiment, device 1600 includes a structure 1610, a computing complex 1620, an input / output (I / O) bridge 1650, a cache / memory controller 1645, a graphics unit 1675, and a display unit 1665. In some embodiments, in addition to or in lieu of the components shown, device 1600 may include other components (not shown), such as video processor encoders and decoders, image processing or recognition elements, computer vision elements, etc.
[0118] Structure 1610 may include various interconnects, buses, MUXs, controllers, etc., and may be configured to facilitate communication between various components of device 1600. In some embodiments, portions of structure 1610 may be configured to implement various different communication protocols. In other embodiments, structure 1610 may implement a single communication protocol, and components coupled to structure 1610 may internally switch from a single communication protocol to other communication protocols.
[0119] In the illustrated implementation, computing complex 1620 includes a bus interface unit (BIU) 1625, a cache 1630, and cores 1635 and 1640. In various implementations, computing complex 1620 may include a variety of numbers of processors, processor cores, and caches. For example, computing complex 1620 may include one, two, or four processor cores, or any other suitable number. In one implementation, cache 1630 is a set of associative L2 caches. In some implementations, cores 1635 and 1640 may include internal instruction and data caches. In some implementations, coherence units (not shown) in architecture 1610, cache 1630, or elsewhere in device 1600 may be configured to maintain coherence between the various caches of device 1600. BIU 1625 may be configured to manage communication between computing complex 1620 and other elements of device 1600. Processor cores such as cores 1635 and 1640 may be configured to execute instructions of a specific instruction set architecture (ISA) that may include operating system instructions and user application instructions.
[0120] The cache / memory controller 1645 can be configured to manage data transfer between the structure 1610 and one or more caches and memories. For example, the cache / memory controller 1645 can be coupled to an L3 cache, which in turn can be coupled to system memory. In other embodiments, the cache / memory controller 1645 can be directly coupled to memory. In some embodiments, the cache / memory controller 1645 may include one or more internal caches.
[0121] As used herein, the term "coupled to" can indicate one or more connections between elements, and coupling can include intermediate elements. For example, in Figure 16 In this context, the graphics unit 1675 can be described as being "coupled" to memory via structure 1610 and cache / memory controller 1645. In contrast, in... Figure 16 In the exemplary implementation, the graphics unit 1675 is "directly coupled" to the structure 1610 because there are no intermediate elements.
[0122] The graphics unit 1675 may include one or more processors, such as one or more graphics processing units (GPUs). For example, the graphics unit 1675 may receive graphics-oriented instructions, such as OpenGL. ® Metal or Direct3D ®Instructions. The graphics unit 1675 can execute dedicated GPU instructions or perform other operations based on received graphics-oriented instructions. The graphics unit 1675 is typically configured to process large blocks of data in parallel and can build an image in a frame buffer for output to a display, which may be included in a device or may be a separate device. The graphics unit 1675 may include transformation, lighting, triangle, and rendering engines in one or more graphics processing pipelines. The graphics unit 1675 may output pixel information for displaying the image. In various embodiments, the graphics unit 1675 may include programmable shader circuitry, which may include highly parallel execution cores configured to execute graphics programs, which may include pixel tasks, vertex tasks, and computation tasks (which may be graphics-dependent or may not be graphics-dependent).
[0123] In some implementations, the graphics unit 1175 includes circuitry 220 that, compared to a conventional GPU, reduces power consumption, improves performance, or both.
[0124] Display unit 1665 can be configured to read data from a frame buffer and provide a stream of pixel values for display. In some embodiments, display unit 1665 can be configured as a display pipeline. Additionally, display unit 1665 can be configured to blend multiple frames to produce an output frame. Furthermore, display unit 1665 may include one or more interfaces (e.g., MIPI) for coupling to a user display (e.g., a touchscreen or an external display). ® Or embedded display port (eDP)).
[0125] I / O bridge 1650 may include various components configured to implement functions such as Universal Serial Bus (USB) communication, security, audio, and low-power always-on functionality. I / O bridge 1650 may also include interfaces such as pulse width modulation (PWM), general purpose input / output (GPIO), serial peripheral interface (SPI), and internal integrated circuit (I2C). Various types of peripheral devices and equipment can be coupled to device 1600 via I / O bridge 1650.
[0126] In some embodiments, device 1600 includes network interface circuitry (not explicitly shown) that can be connected to structure 1610 or I / O bridge 1650. The network interface circuitry can be configured to communicate via various networks, which can be wired networks, wireless networks, or both. For example, the network interface circuitry can be configured to communicate via a wired local area network (LAN), a wireless LAN (e.g., via WiFi), or a wide area network (e.g., the Internet or a virtual private network). In some embodiments, the network interface circuitry is configured to communicate via one or more cellular networks using one or more radio access technologies. In some embodiments, the network interface circuitry is configured to communicate using device-to-device communication (e.g., Bluetooth or WiFi Direct). In various embodiments, the network interface circuitry can provide device 1600 with connectivity to various types of other devices and networks.
[0127] Exemplary Applications Now go to Figure 17 This illustrates various types of systems that may include any of the circuits, devices, or systems described above. Systems or devices 1700 that may utilize one or more of the techniques described herein, in combination with or otherwise, can be used in a wide range of fields. For example, system or device 1700 may be used as part of the hardware of a system such as a desktop computer 1710, a laptop computer 1720, a tablet computer 1730, a cellular or mobile phone 1740, or a television 1750 (or a set-top box coupled to a television).
[0128] Similarly, the disclosed components can be used in wearable devices 1760, such as smartwatches or health monitoring devices. In many embodiments, a smartwatch can perform a variety of different functions—for example, access to email, cellular services, calendars, health monitoring, etc. Wearable devices can also be designed to perform only health monitoring functions, such as monitoring a user's vital signs, performing epidemiological functions such as contact tracing, providing communication to emergency medical services, etc. Other types of devices are also envisioned, including devices worn around the neck, implantable devices, and glasses or helmets designed to provide computer-generated reality experiences, such as those based on augmented reality and / or virtual reality.
[0129] System or device 1700 can also be used in a variety of other environments. For example, system or device 1700 can be used in the context of a server computer system (such as a dedicated server) or on shared hardware implementing cloud-based services 1770. Furthermore, system or device 1700 can be implemented in a wide range of dedicated everyday devices, including common household devices 1780 such as refrigerators, thermostats, security cameras, etc. The interconnection of such devices is often referred to as the “Internet of Things” (IoT). Components can also be implemented in various modes of transportation. For example, system or device 1700 can be used in control systems, guidance systems, entertainment systems, etc., of various types of vehicles 1790.
[0130] Figure 17 The applications shown are merely illustrative and are not intended to limit the potential future applications of the disclosed systems or devices. Other illustrative applications include, but are not limited to, portable gaming devices, music players, data storage devices, and unmanned aerial vehicles.
[0131] Exemplary computer-readable media Various exemplary circuits have been described in detail above in this disclosure. It is intended that this disclosure cover not only embodiments including such circuit systems, but also computer-readable storage media including design information specifying such circuit systems. Therefore, this disclosure is intended to support claims that cover not only means including the disclosed circuit systems, but also storage media specifying circuit systems in a format recognized by a manufacturing system configured to generate hardware (e.g., integrated circuits) including the disclosed circuit systems. Claims regarding such storage media are intended to cover entities that, for example, generate circuit designs but do not themselves manufacture such designs.
[0132] Figure 18 This is a block diagram illustrating an exemplary non-transitory computer-readable storage medium for storing circuit design information according to some embodiments. In the illustrated embodiment, a semiconductor manufacturing system 1820 is configured to process design information 1815 stored on a non-transitory computer-readable medium 1810 and to manufacture an integrated circuit 1830 based on the design information 1815.
[0133] The non-transitory computer-readable storage medium 1810 may include any of a variety of suitable types of memory devices or storage devices. The non-transitory computer-readable storage medium 1810 may be an installation medium, such as a CD-ROM, floppy disk, or magnetic tape device; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory such as flash memory, magnetic media, such as a hard disk drive or optical storage device; registers, or other similar types of memory elements, etc. The non-transitory computer-readable storage medium 1810 may include other types of non-transitory memory or combinations thereof. The non-transitory computer-readable storage medium 1810 may include two or more memory media that may reside in different locations, such as different computer systems connected via a network.
[0134] Design information 1815 can be specified using any of a variety of suitable computer languages, including hardware description languages such as, but not limited to, VHDL, Verilog, SystemC, SystemVerilog, RHDL, M, MyHDL, etc. Design information 1815 can be used by semiconductor manufacturing system 1820 to manufacture at least a portion of integrated circuit 1830. The format of design information 1815 can be recognized by at least one semiconductor manufacturing system 1820. In some embodiments, design information 1815 may also include one or more cell libraries specifying the synthesis, layout, or both of integrated circuit 1830. In some embodiments, the design information is specified, wholly or partially, in the form of a netlist specifying cell library elements and their connectivity. Design information 1815 acquired alone may or may not include sufficient information for manufacturing the corresponding integrated circuit. For example, design information 1815 may specify circuit elements to be manufactured but not their physical layout. In this case, design information 1815 may need to be combined with layout information to actually manufacture the specified circuit.
[0135] In various implementations, integrated circuit 1830 may include one or more custom macrocells, such as memory, analog or mixed-signal circuitry, etc. In this case, design information 1815 may include information associated with the included macrocells. Such information may include, but is not limited to, a circuit diagram capture database, mask design data, behavioral models, and device or transistor-level netlists. As used herein, mask design data may be formatted according to a Graphical Data System (GDSII) or any other suitable format.
[0136] The semiconductor manufacturing system 1820 may include any of the various suitable elements configured to manufacture integrated circuits. This may include, for example, elements for depositing semiconductor material (e.g., on a wafer that may include a mask), removing material, changing the shape of the deposited material, modifying the material (e.g., by doping the material or by using ultraviolet light treatment to modify the dielectric constant), etc. The semiconductor manufacturing system 1820 may also be configured to perform various tests on the manufactured circuits for proper operation.
[0137] In various embodiments, integrated circuit 1830 is configured to operate according to a circuit design specified by design information 1815, which may include performing any of the functions described herein. For example, integrated circuit 1830 may include Figure 1B Figure 2 Figures 4 to 9 , Figure 11 , Figure 12 and Figure 16 Any of the various components shown herein. Additionally, integrated circuit 1830 can be configured to perform the various functions described herein in conjunction with other components. Furthermore, the functionality described herein can be performed by multiple interconnected integrated circuits.
[0138] As used herein, a phrase in the form of “design information specifying the design of a circuit configured to…” does not imply that the circuit in question must be manufactured in order to satisfy this element. Rather, the phrase indicates that the design information describes a circuit that, when manufactured, will be configured to perform the indicated action or will include the specified components.
[0139] This disclosure includes references to “implementation” or groups of “implementation” (e.g., “some implementations” or “various implementations”). An implementation is a different specific implementation or instance of the disclosed concepts. References to “implementation,” “an implementation,” “a particular implementation,” etc., do not necessarily refer to the same implementation. A large number of possible implementations are contemplated, including those specifically disclosed, as well as modifications or alternatives that fall within the substance or scope of this disclosure.
[0140] This disclosure may discuss potential advantages that may arise from the disclosed embodiments. Not all specific implementations of all these embodiments will necessarily exhibit any or all of the potential advantages. Whether a particular embodiment achieves an advantage depends on many factors, some of which are outside the scope of this disclosure. In fact, there are many reasons why an embodiment falling within the scope of the claims may not exhibit some or all of any of the disclosed advantages. For example, a particular embodiment may include other circuitry outside the scope of this disclosure, in conjunction with an embodiment of the disclosed embodiments, which negates or diminishes one or more of the disclosed advantages. Furthermore, suboptimal design execution of a particular embodiment (e.g., the implementing technique or tool) may also negate or diminish the disclosed advantages. Even assuming an implementation of the technique, the realization of advantages may still depend on other factors, such as the environmental circumstances in which the implementation is deployed. For example, the inputs provided to a particular embodiment may prevent one or more problems addressed in this disclosure from occurring in a particular context, and as a result, the benefits of its solution may not be realized. Given the existence of possible factors outside this disclosure, any potential advantages described herein should not be construed as a claim limitation that must be satisfied in order to prove infringement. Rather, the identification of such potential advantages is intended to show one or more types of improvements available to a designer who benefits from this disclosure. Describing such advantages permanently (e.g., stating that a particular advantage "may occur") is not intended to convey a question about whether such advantages can actually be realized, but rather to recognize that the realization of such advantages often depends on the technological reality of additional factors.
[0141] Unless otherwise stated, the embodiments are non-limiting. That is, the disclosed embodiments are not intended to limit the scope of the claims drafted based on this disclosure, even where only a single example is described with respect to a particular feature. The embodiments disclosed in this invention are intended to be exemplary and not restrictive, without requiring any statement to the contrary in this invention. Therefore, this application is intended to allow for the coverage of the claims of the disclosed embodiments, as well as such alternatives, modifications, and equivalents, which will be apparent to those skilled in the art who are aware of the effective effects of this disclosure.
[0142] For example, features in this application can be combined in any suitable manner. Therefore, new claims may be made for any such combination of features during the proceedings of this patent application (or a patent application claiming priority thereto). Specifically, referring to the appended claims, features of dependent claims may be combined with features of other dependent claims, including claims dependent on other independent claims, where appropriate. Similarly, features from the respective independent claims may be combined where appropriate.
[0143] Accordingly, although the appended dependent claims may be drafted such that each dependent claim is subordinate to a single other claim, additional dependency relationships are also contemplated. Any combination of the dependent features consistent with the present disclosure is contemplated, and such combinations may be claimed in the present patent application or another patent application. In short, the combinations are not limited to those specifically recited in the appended claims.
[0144] Where appropriate, it is also contemplated that claims drafted in one format or statutory type (e.g., apparatus) are intended to support corresponding claims of another format or statutory type (e.g., method).
[0145] As the present disclosure is a legal document, various terms and phrases may be subject to regulatory and judicial interpretation. Notice is hereby given that the definitions provided in the following paragraphs and throughout the present disclosure shall be used to determine how to interpret claims drafted based on the present disclosure.
[0146] Unless the context clearly dictates otherwise, references to items in the singular form (i.e., nouns or noun phrases preceded by "a", "an" or "the") are intended to mean "one or more". Thus, without accompanying context, a reference to "an item" in a claim does not exclude additional instances of that item. A "plurality" of items refers to a set of two or more items.
[0147] The word "may" is used herein in a permissive sense (i.e., having the potential of, capable of) rather than in a mandatory sense (i.e., must).
[0148] The terms "comprising" and "including" and their variants are open-ended and mean "including but not limited to".
[0149] When the term "or" is used relative to a list of options in the present disclosure, it will generally be understood to be used in an inclusive sense unless the context provides otherwise. Thus, the expression "x or y" is equivalent to "x or y, or both", and thus covers 1) x but not y, 2) y but not x, and 3) both x and y. On the other hand, phrases such as "either x or y, but not both" make it clear that "or" is used in an exclusive sense.
[0150] The expressions “w, x, y, or z, or any combination thereof” or “...at least one of w, x, y, and z” are intended to cover all possibilities involving a single element up to the total number of elements in the set. For example, given the set [w, x, y, z], these phrases cover any single element in the set (e.g., w but not x, y, or z), any two elements (e.g., w and x, but not y or z), any three elements (e.g., w, x, and y, but not z), and all four elements. The phrase “...at least one of w, x, y, and z” therefore refers to at least one element in the set [w, x, y, z], thus covering all possible combinations of that list of elements. This phrase should not be interpreted as requiring the existence of at least one instance of w, at least one instance of x, at least one instance of y, and at least one instance of z.
[0151] In this disclosure, various “labels” may precede nouns or noun phrases. Unless the context otherwise provides, different labels used for features (e.g., “first circuit”, “second circuit”, “specific circuit”, “given circuit”, etc.) refer to different instances of the feature. Furthermore, unless otherwise stated, the labels “first,” “second,” and “third” do not imply any type of ordering (e.g., spatial, temporal, logical, etc.) when applied to features.
[0152] The phrase "based on" is used to describe one or more factors that influence the determination. This term does not exclude the possibility that additional factors may influence the determination. That is, the determination may be based solely on the specified factors or on the specified factors and other unspecified factors. Consider the phrase "A is determined based on B." This phrase specifies that B is a factor used to determine A or that B influences the determination of A. This phrase does not exclude the possibility that the determination of A may also be based on another factor such as C. This phrase is also intended to cover implementations where A is determined solely based on B. As used herein, the phrase "based on" is synonymous with the phrase "at least partially based on."
[0153] The phrases “responding to” and “responding” describe one or more factors that trigger an effect. This phrase does not exclude the possibility that additional factors may influence or otherwise trigger the effect, whether these factors are used in conjunction with or independently of the specified factor. That is, the effect may respond solely to these factors, or it may respond to the specified factor along with other unspecified factors. Consider the phrase “responding to B to execute A.” This phrase specifies that B is a factor that triggers the execution of A or triggers a specific result of A. This phrase does not exclude that the execution of A may also respond to certain other factors, such as C. This phrase also does not exclude that the execution of A may be performed jointly in response to B and C. This phrase is also intended to cover implementation schemes where A is executed solely in response to B. As used herein, the phrase “responding” is synonymous with the phrase “at least partially responding.” Similarly, the phrase “responding to” is synonymous with the phrase “at least partially responding to.”
[0154] Within this disclosure, different entities (which may be referred to differently as “units,” “circuits,” other components, etc.) may be described or claimed to be “configured” to perform one or more tasks or operations. This expression—an [entity] configured to [perform one or more tasks]—is used herein to refer to a structure (i.e., a physical thing). More specifically, this expression is used to indicate that the structure is arranged to perform one or more tasks during operation. A structure may be said to be “configured” to perform a task even if the structure is not currently being operated. Therefore, an entity described or stated as “configured” to perform a task refers to a physical thing used to perform that task, such as a device, circuit, system with processor units, and memory storing executable program instructions. This phrase is not used herein to refer to intangible things.
[0155] In some cases, various units / circuits / components may be described herein as performing a set of tasks or operations. It should be understood that these entities are "configured" to perform those tasks / operations, even if not specifically stated.
[0156] The term "configured as" is not intended to mean "configurable as". For example, an unprogrammed FPGA is not considered "configured as" to perform a specific function. However, the unprogrammed FPGA may be "configurable as" to perform that function. After proper programming, the FPGA can then be considered "configured as" to perform a specific function.
[0157] For the purposes of this U.S. patent application, the statement in the claims that the structure is “configured” to perform one or more tasks is expressly intended for the claim elements. No Referencing 35 USC § 112(f). If an applicant wishes to invoke part 112(f) in the course of filing a U.S. patent application based on this disclosure, it will use the phrase “means for [performing a function]” to describe the elements of the claims.
[0158] Different “circuits” may be described in this disclosure. These circuits or “circuits” constitute hardware that includes various types of circuit elements, such as combinational logic, clock storage devices (e.g., flip-flops, registers, latches, etc.), finite state machines, memories (e.g., random access memory, embedded dynamic random access memory), programmable logic arrays, etc. Circuits may be custom-designed or taken from standard libraries. In various specific implementations, circuits may include digital components, analog components, or a combination of both, depending on the circumstances. Certain types of circuits may be commonly referred to as “cells” (e.g., decoding units, arithmetic logic units (ALUs), functional units, memory management units (MMUs), etc.). Such cells also refer to circuits or circuitry.
[0159] Therefore, the circuits / units / components and other elements disclosed in the accompanying drawings and described herein include hardware elements, such as those described in the preceding paragraphs. In many cases, the internal arrangement of hardware elements in a particular circuit can be specified by describing the function of that circuit. For example, a particular “decoding unit” can be described as having the function of executing “the opcode of a processing instruction and routing that instruction to one or more of a plurality of functional units,” meaning that the decoding unit is “configured” to perform that function. To those skilled in the art of computers, this functional specification is sufficient to suggest a set of possible structures for the circuit.
[0160] In various implementations, as described in the preceding paragraphs, circuits, cells, and other elements can be defined by the functions or operations they are configured to perform. The arrangement of these circuits / cells / components relative to each other and the manner in which they interact form a microarchitecture definition of hardware, which is ultimately manufactured in an integrated circuit or programmed into an FPGA to form a physical implementation of the microarchitecture definition. Therefore, a microarchitecture definition is considered by those skilled in the art to be a structure from which many physical implementations can be derived, all of which fall within the broader structure described by the microarchitecture definition. That is, those skilled in the art, with the microarchitecture definition provided according to this disclosure, can implement this structure without excessive experimentation and using the application of a person of ordinary skill in the art, by encoding the description of the circuits / cells / components in a hardware description language (HDL) such as Verilog or VHDL. The HDL description is often expressed in a way that can be revealed as functional. However, for those skilled in the art, the HDL description is a way of translating the structure of a circuit, cell, or component into the details of the next level of implementation. Such HDL descriptions can take the following forms: behavioral code (which is typically non-synthesizable), Register Transfer Language (RTL) code (which is typically synthesizable compared to behavioral code), or structural code (e.g., a netlist specifying logic gates and their connectivity). HDL descriptions can be sequentially synthesized against a library of cells designed for a given integrated circuit manufacturing technology and can be modified for timing, power, and other reasons to obtain the final design database that is transferred to the factory to generate masks and ultimately produce integrated circuits. Some hardware circuitry or portions thereof can also be custom-designed in a schematic editor and captured into the integrated circuit design along with the synthesized circuitry. The integrated circuit can include transistors and other circuit elements (e.g., passive components such as capacitors, resistors, inductors, etc.), as well as interconnects between transistors and circuit elements. Some implementations may implement multiple integrated circuits coupled together to implement the hardware circuitry, and / or discrete components may be used in some implementations. Alternatively, the HDL design can be synthesized into a programmable logic array such as a Field Programmable Gate Array (FPGA) and implemented in the FPGA. This decoupling between the design of a set of circuits and their subsequent low-level implementations often results in a situation where the circuit or logic designer never specifies a particular set of structures for the low-level implementation that goes beyond a description of what the circuit is configured to do, because that process is performed at different stages of the circuit implementation process.
[0161] The fact that a circuit of the same specifications can be implemented using many different low-level combinations of circuit elements results in a large number of equivalent circuit structures. As noted, these low-level circuit implementations can vary depending on the manufacturing technology, the foundry chosen to manufacture the integrated circuit, the cell library provided for a particular project, and so on. In many cases, the choice of different design tools or methods to produce these different implementations can be arbitrary.
[0162] Furthermore, for a given implementation, a single concrete implementation of the circuit's specific functional specifications typically involves a large number of devices (e.g., millions of transistors). Therefore, the shearing volume of this information makes it impractical to provide a complete description of the low-level structure used to implement a single implementation, let alone a large number of equivalent possible implementations. To this end, this disclosure describes the structure of a circuit using functional abbreviations commonly used in industry.
Claims
1. An electronic device comprising: The test circuit is configured as follows: Intersection testing is performed based on traversal of an accelerated data structure that includes a hierarchical arrangement of boundary volumes for the graphics scene, where: The intersection test operates on the following: a reduced-precision representation of the ray, which is a quantized version of the initial representation of the ray; and a reduced-precision representation of the primitive, which is a quantized version of the initial representation of the primitive; and The intersection test generates a first result for the first ray and the first primitive, the first result indicating that a line consistent with the first ray definitively intersects the first primitive; and The graphics processing circuit is configured to record the intersection of the first ray and the first primitive based on the first result, without performing an intersection test on the first ray using the initial representation of the first ray and the first primitive.
2. The electronic device of claim 1, wherein the graphics processing circuitry is further configured to record the intersection based on determining that there exists at least one boundary volume in the accelerated data structure that surrounds the entire first primitive and the entire surrounded portion of the first ray is active.
3. The electronic device of claim 2, wherein the graphics processing circuitry is further configured to record the intersection based on determining that the first primitive is opaque.
4. The electronic device of claim 1, wherein the graphics processing circuitry is further configured to record the intersection based on determining that a query on the first ray is any hit query.
5. The electronic device of claim 1, wherein the test circuit is further configured to output a result for a given light ray and a given primitive, the result indicating: Based on their initial representations, the given ray did not hit the given primitive; or It cannot be determined whether the given ray missed the given primitive.
6. The electronic device according to claim 1, further comprising: A traversal circuit, configured to traverse the accelerated data structure, wherein traversing the accelerated data structure includes: Perform a depth-first search on the accelerated data structure; and For a set of child nodes of the first node in the accelerated data structure, the next node for the depth-first search is selected according to the sorting of the intersecting boundary regions of the set of child nodes, wherein the sorting starts from a boundary volume that is closer to the midpoint of the ray being tested than one or more front boundary volumes and one or more back boundary volumes.
7. The electronic device of claim 6, wherein the traversal circuit is configured to determine the number of nodes in the set of child nodes, the set of child nodes intersecting the ray being tested, prior to determining the sorting.
8. The electronic device of claim 7, wherein, in order to determine the sorting, the traversal circuit is configured to classify the group of child nodes based on a lookup table by distance from the origin of the first ray, and then classify the classified group of child nodes into a sorted order starting from the middle.
9. The electronic device of claim 6, wherein the light being tested is any hit secondary light, and the traversal of the light being tested terminates upon detection of an intersection.
10. The electronic device of claim 6, wherein the sorting alternates between forward and backward nodes relative to the starting node at the median of the list of nodes categorized by distance.
11. The electronic device according to claim 1, further comprising: A traversal circuit, configured to traverse the accelerated data structure, wherein traversing the accelerated data structure includes: Perform a depth-first search on the accelerated data structure, wherein at least a portion of the accelerated data structure is a binary tree; and When searching for child nodes at different levels of the binary tree, the sorting alternates between back-to-front and front-to-back.
12. The electronic device according to claim 1, The intersection test further generates a second result for the second ray and the first primitive, wherein the second result indicates that it cannot be determined whether the second ray intersects with the first primitive; and The graphics processing circuitry is further configured to perform an intersection test on the second ray using the second ray and the initial representation of the first primitive.
13. The electronic device of claim 1, wherein the test circuit comprises six modified interval product circuits, six comparators, and combined logic, the six modified interval product circuits, the six comparators, and the combined logic being configured to generate the first result.
14. The electronic device of claim 1, wherein the electronic device is a computing device, and the computing device further comprises: Central processing unit; monitor; as well as Network interface circuit.
15. A method for performing an intersection test, comprising: The intersection test is performed by the computing system based on an accelerated data structure that includes a hierarchical arrangement of boundary volumes for the graphics scene, where: The intersection test operates on the following: a reduced-precision representation of the ray, which is a quantized version of the initial representation of the ray; and a reduced-precision representation of the primitive, which is a quantized version of the initial representation of the primitive; and The intersection test generates a first result for the first ray and the first primitive, the first result indicating that a line consistent with the first ray definitively intersects the first primitive; and The computing system records the intersection of the first ray and the first primitive based on the first result, without performing an intersection test on the first ray using the initial representations of the first ray and the first primitive.
16. The method of claim 15, wherein the recording is further based on determining that there exists at least one boundary volume in the accelerated data structure that surrounds the entire first primitive and the entire surrounded portion of the first ray is active.
17. The method of claim 15, further comprising: The computing system performs a depth-first search on the accelerated data structure. as well as For a set of child nodes of the first node in the accelerated data structure, the next node for the depth-first search is selected according to the sorting of the intersecting boundary regions of the set of child nodes, wherein the sorting starts from a boundary volume that is closer to the midpoint of the ray being tested than one or more front boundary volumes and one or more back boundary volumes.
18. The method of claim 17, further comprising: The group of child nodes is classified by distance from the origin of the first ray, and then the classified group of child nodes is further classified into an order starting from the middle to determine the sorting.
Citation Information
Patent Citations
Primitive testing for ray intersection at multiple precisions
US12002190B2
Grouping Techniques for Ray Intersection Traversal
US20220036637A1
Compressed ray direction data in a ray tracing system
CN109087384A
Watertight ray triangle intersection
CN110827389A
