diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-02-09 16:41:30 -0800 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-02-10 08:18:29 -0800 |
commit | a21552a96b8cfafa933cab2fd49a389317a1b44e (patch) | |
tree | 5b78773684bfb99a71fd9f79b33da1a5a24588d2 /src/mesa/drivers/dri/i965/brw_multisample_state.h | |
parent | f4bc0ac83eee968b7a0f18fa8e1ecdc1ba2ddf9e (diff) | |
download | external_mesa3d-a21552a96b8cfafa933cab2fd49a389317a1b44e.zip external_mesa3d-a21552a96b8cfafa933cab2fd49a389317a1b44e.tar.gz external_mesa3d-a21552a96b8cfafa933cab2fd49a389317a1b44e.tar.bz2 |
i965: Program 2x MSAA sample positions.
There are only two sensible placements for 2x MSAA samples - and one is
the mirror image of the other. I chose (0.25, 0.25) and (0.75, 0.75).
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_multisample_state.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_multisample_state.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_multisample_state.h b/src/mesa/drivers/dri/i965/brw_multisample_state.h index 2e02500..26633e7 100644 --- a/src/mesa/drivers/dri/i965/brw_multisample_state.h +++ b/src/mesa/drivers/dri/i965/brw_multisample_state.h @@ -24,6 +24,17 @@ #include <stdint.h> /** + * 1x MSAA has a single sample at the center: (0.5, 0.5) -> (0x8, 0x8). + * + * 2x MSAA sample positions are (0.25, 0.25) and (0.75, 0.75): + * 4 c + * 4 0 + * c 1 + */ +static const uint32_t +brw_multisample_positions_1x_2x = 0x0088cc44; + +/** * Sample positions: * 2 6 a e * 2 0 |