blob: 2a37969429866da719c28684b5d88e5ae4c35f32 [file] [log] [blame]
Lauri Kasanen50da22c2011-08-25 23:26:17 +03001<HTML>
2
3<TITLE>Gallium Post-processing</TITLE>
4
5<link rel="stylesheet" type="text/css" href="mesa.css"></head>
6
7<BODY>
8
9<H1>Gallium Post-processing</H1>
10
11<p>
12The Gallium drivers support user-defined image post-processing.
13At the end of drawing a frame a post-processing filter can be applied to
14the rendered image.
15Example filters include morphological antialiasing and cell shading.
16</p>
17
18<p>
19The filters can be toggled per-app via driconf, or per-session via the
20corresponding environment variables.
21</p>
22
23<p>
24Multiple filters can be used together.
25</p>
26
27
28<H2>PP environment variables</H2>
29
30<ul>
31<li>PP_DEBUG - If defined debug information will be printed to stderr.
32</ul>
33
34<h2>Current filters</h2>
35
36<ul>
37<li>pp_nored, pp_nogreen, pp_noblue - set to 1 to remove the corresponding color channel.
38These 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>
41is a morphological antialiasing filter.
42The two versions use depth and color data, respectively.
43Which works better depends on the app - depth will not blur text, but it will
44miss transparent textures for example.
45Set to a number from 2 to 32, roughly corresponding to quality.
46Numbers higher than 8 see minimizing gains.
47<li>pp_celshade - set to 1 to enable cell shading (a more complex color filter).
48</ul>
49
50
51<br>
52<br>
53
54
55</BODY>
56</HTML>