1848b8605Smrg<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2848b8605Smrg<html lang="en">
3848b8605Smrg<head>
4848b8605Smrg  <meta http-equiv="content-type" content="text/html; charset=utf-8">
5848b8605Smrg  <title>Gallium Post-processing</title>
6848b8605Smrg  <link rel="stylesheet" type="text/css" href="mesa.css">
7848b8605Smrg</head>
8848b8605Smrg<body>
9848b8605Smrg
10848b8605Smrg<div class="header">
11848b8605Smrg  <h1>The Mesa 3D Graphics Library</h1>
12848b8605Smrg</div>
13848b8605Smrg
14848b8605Smrg<iframe src="contents.html"></iframe>
15848b8605Smrg<div class="content">
16848b8605Smrg
17848b8605Smrg<h1>Gallium Post-processing</h1>
18848b8605Smrg
19848b8605Smrg<p>
20848b8605SmrgThe Gallium drivers support user-defined image post-processing.
21848b8605SmrgAt the end of drawing a frame a post-processing filter can be applied to
22848b8605Smrgthe rendered image.
23848b8605SmrgExample filters include morphological antialiasing and cell shading.
24848b8605Smrg</p>
25848b8605Smrg
26848b8605Smrg<p>
27848b8605SmrgThe filters can be toggled per-app via driconf, or per-session via the
28848b8605Smrgcorresponding environment variables.
29848b8605Smrg</p>
30848b8605Smrg
31848b8605Smrg<p>
32848b8605SmrgMultiple filters can be used together.
33848b8605Smrg</p>
34848b8605Smrg
35848b8605Smrg
36848b8605Smrg<h2>PP environment variables</h2>
37848b8605Smrg
38848b8605Smrg<ul>
39848b8605Smrg<li>PP_DEBUG - If defined debug information will be printed to stderr.
40848b8605Smrg</ul>
41848b8605Smrg
42848b8605Smrg<h2>Current filters</h2>
43848b8605Smrg
44848b8605Smrg<ul>
45848b8605Smrg<li>pp_nored, pp_nogreen, pp_noblue - set to 1 to remove the corresponding color channel.
46848b8605SmrgThese are basic filters for easy testing of the PP queue.
47848b8605Smrg<li>pp_jimenezmlaa, pp_jimenezmlaa_color -
48b8e80941Smrg<a href="https://www.iryokufx.com/mlaa/" target=_blank>Jimenez's MLAA</a>
49848b8605Smrgis a morphological antialiasing filter.
50848b8605SmrgThe two versions use depth and color data, respectively.
51848b8605SmrgWhich works better depends on the app - depth will not blur text, but it will
52848b8605Smrgmiss transparent textures for example.
53848b8605SmrgSet to a number from 2 to 32, roughly corresponding to quality.
54848b8605SmrgNumbers higher than 8 see minimizing gains.
55848b8605Smrg<li>pp_celshade - set to 1 to enable cell shading (a more complex color filter).
56848b8605Smrg</ul>
57848b8605Smrg
58848b8605Smrg
59848b8605Smrg<br>
60848b8605Smrg<br>
61848b8605Smrg
62848b8605Smrg</div>
63848b8605Smrg</body>
64848b8605Smrg</html>
65