Quad Fragment Merging for Graphics Pixel Shading

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional pixel shading techniques in graphics processing systems face challenges such as high power consumption and performance limitations due to numerous pixel shader threads, with existing quad-fragment merging approaches experiencing quality issues and artifacts.

Innovation Solution

The method involves performing quad fragment merging in a graphics system by rasterizing primitives into blocks, selecting blocks for merge testing, performing depth tests, merging partially covered fragments, and shading the merged blocks, with options to disable merging based on specular lighting conditions or hints, using fixed or floating-point operations for depth testing, and excluding overlapping fragments or different faces.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If conventional pixel shading techniques are used with numerous pixel shader threads, then complete coverage of all pixels is achieved, but power consumption increases and performance is limited

Engineering Contradiction:
Improvepixel shading performanceVSAvoidpower consumption
Core Design Contradiction:
ProductivityVSUse of energy by moving object

Solution Approach 1:

The patent merges adjacent pixel shader threads into quad-fragment threads, combining 4 adjacent pixels into a single processing unit. This reduces the total number of threads required, thereby decreasing power consumption while maintaining complete pixel coverage. The merge unit combines coverage from multiple primitives into merged quads that are then shaded by fewer, more efficient threads.

Inventive Principle:
Principle #5Merging (Combining)

2Productivity

If quad-fragment merging is performed to reduce shading threads, then power consumption decreases and performance improves, but quality problems and artifacts occur

Engineering Contradiction:
Improvepixel shading performanceVSAvoidrendering quality
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The patent applies different processing strategies to different regions of the image based on local characteristics. The merge unit tests whether adjacent pixels can be merged based on their coverage properties, and only merges when appropriate. This selective merging approach maintains high rendering quality in critical areas while achieving performance benefits in suitable regions, avoiding artifacts that would result from uniform merging across the entire image.

Inventive Principle:
Principle #3Local quality

3Productivity

If merging is performed on all draw calls, then maximum performance improvement is achieved, but rendering errors occur for certain conditions like specular lighting

Engineering Contradiction:
Improvepixel shading performanceVSAvoidrendering accuracy
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent implements dynamic control of the merging process through a disable flag that can be set based on draw call characteristics. When specular lighting or other problematic conditions are detected, the system dynamically disables merging for those specific draw calls while maintaining it for others. This selective approach preserves rendering accuracy for sensitive operations while maintaining performance benefits for suitable operations.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS9972124B2Elimination of minimal use threads via quad merging
Publication Date: 2018.05.15 SAMSUNG ELECTRONICS CO LTD
  • US9972124B2 patent drawing
  • US9972124B2 patent drawing
  • US9972124B2 patent drawing

AI summary

Provided is a method of performing coverage merging in a shading stage of a graphics system. The method includes: performing a draw call on primitives and rasterizing the primitives into blocks of pixels; selecting the draw call for merge testing of individual blocks; performing a depth test on the individual blocks; in response to the depth test being satisfied, merging partially covered fragments of the same draw call of one of the block of pixels to form a merged block of pixels; and performing shading of the merged block of pixels on a draw call basis.