3
<TITLE>Gallium Post-processing</TITLE>
5
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
9
<H1>Gallium Post-processing</H1>
12
The Gallium drivers support user-defined image post-processing.
13
At the end of drawing a frame a post-processing filter can be applied to
15
Example filters include morphological antialiasing and cell shading.
19
The filters can be toggled per-app via driconf, or per-session via the
20
corresponding environment variables.
24
Multiple filters can be used together.
28
<H2>PP environment variables</H2>
31
<li>PP_DEBUG - If defined debug information will be printed to stderr.
34
<h2>Current filters</h2>
37
<li>pp_nored, pp_nogreen, pp_noblue - set to 1 to remove the corresponding color channel.
38
These are basic filters for easy testing of the PP queue.
39
<li>pp_jimenezmlaa, pp_jimenezmlaa_color -
40
<a href="http://www.iryokufx.com/mlaa/" target=_blank>Jimenez's MLAA</a>
41
is a morphological antialiasing filter.
42
The two versions use depth and color data, respectively.
43
Which works better depends on the app - depth will not blur text, but it will
44
miss transparent textures for example.
45
Set to a number from 2 to 32, roughly corresponding to quality.
46
Numbers higher than 8 see minimizing gains.
47
<li>pp_celshade - set to 1 to enable cell shading (a more complex color filter).