Coarse Stencil Test Using Bitwise Metadata for Graphics Bandwidth Reduction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Per-sample tests in graphics pipelines, such as stencil and depth tests, consume significant bandwidth and limit overall throughput due to the large number of tests performed, with stencil tests being particularly bandwidth-intensive due to their masking properties.

Innovation Solution

Implementing minimum and maximum, or bitwise logic AND and OR based coarse stencil tests by storing metadata that represents chunks of per-sample data, allowing for the omission of individual per-sample tests when the result is known for the entire chunk, thereby reducing bandwidth usage and improving performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If per-sample stencil tests are performed for each pixel sample, then testing accuracy is maintained, but bandwidth consumption increases and throughput decreases

Engineering Contradiction:
Improvetesting accuracyVSAvoidthroughput
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent divides the pixel data into chunks and performs stencil testing at the chunk level rather than individual sample level. Metadata is generated for each chunk representing the aggregate stencil state, allowing the system to process multiple samples together and reduce the total number of test operations while maintaining correctness through representative sampling within each chunk.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent creates metadata copies that represent the stencil state of chunks of pixel data. Instead of testing every original sample, the system uses these metadata representations to perform coarse stencil tests, significantly reducing bandwidth consumption while preserving the essential testing functionality through the copied aggregate information.

Inventive Principle:
Principle #26Copying

2Reliability

If per-sample stencil tests are performed for each pixel sample, then testing completeness is ensured, but bandwidth consumption increases

Engineering Contradiction:
Improvetesting completenessVSAvoidbandwidth consumption
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The patent segments the pixel data stream into manageable chunks and generates metadata for each chunk. This segmentation allows the system to perform stencil testing on aggregated data rather than individual samples, reducing the volume of data that must be transmitted across the bandwidth interface while ensuring that each chunk is still properly tested for stencil compliance.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary stencil testing on chunk-level metadata before processing individual samples. By evaluating the aggregate stencil state first, the system can determine whether entire chunks pass or fail the stencil test without examining every sample, thereby reducing bandwidth consumption by avoiding unnecessary transmission and processing of individual sample data that would be rejected anyway.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If coarse stencil tests using metadata chunks are implemented, then bandwidth consumption is reduced and throughput is improved, but device complexity increases

Engineering Contradiction:
ImprovethroughputVSAvoiddevice complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent introduces a chunking mechanism that divides the pixel data into segments with associated metadata. This segmentation approach organizes the data flow in a structured way that, while adding some complexity, enables parallel processing and reduces overall system complexity by breaking down the monolithic per-sample processing into manageable, independent chunk operations.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces metadata as an intermediary representation between the original pixel data and the stencil testing logic. This metadata layer acts as a mediator that captures the essential stencil state information in a compressed form, simplifying the testing process by providing a standardized interface for chunk-level evaluation while reducing the complexity of individual sample processing.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10453170B2Minimum/maximum and bitwise and/or based coarse stencil test
Publication Date: 2019.10.22 INTEL CORP
  • US10453170B2 patent drawing
  • US10453170B2 patent drawing
  • US10453170B2 patent drawing

AI summary

Methods and apparatus relating to techniques for provision of minimum or maximum and bitwise logic AND or logic OR based coarse stencil tests are described. In an embodiment, metadata (corresponding to a plurality of pixels) is stored in memory. One or more operations are performed on the metadata to generate a stencil result. The one or more operations comprise a bitwise intersection operation or a bitwise union operation and/or a minimum operation or maximum operation. Other embodiments are also disclosed and claimed.