diff options
author | Edward O'Callaghan <[email protected]> | 2015-12-11 22:43:30 +1100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2015-12-11 20:09:21 +0100 |
commit | 00f97ad5def91d485de0e5dd79fd39fae9ed3ce1 (patch) | |
tree | 1d0b4e7a556c3a9cd00a4e641d675572ecc9f838 /src/gallium/drivers/softpipe/sp_quad.h | |
parent | 6c2c1e0ffeb265aa508e0ce8e552e10b0b5c5962 (diff) |
softpipe: implement some support for multiple viewports
Mostly related to making sure the rasterizer can correctly
pick out the correct scissor box for the current viewport.
Signed-off-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_quad.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_quad.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_quad.h b/src/gallium/drivers/softpipe/sp_quad.h index b29dad2ea95..2c2b018a24f 100644 --- a/src/gallium/drivers/softpipe/sp_quad.h +++ b/src/gallium/drivers/softpipe/sp_quad.h @@ -63,6 +63,7 @@ struct quad_header_input { int x0, y0; /**< quad window pos, always even */ unsigned layer; + unsigned viewport_index; float coverage[TGSI_QUAD_SIZE]; /**< fragment coverage for antialiasing */ unsigned facing:1; /**< Front (0) or back (1) facing? */ unsigned prim:2; /**< QUAD_PRIM_POINT, LINE, TRI */ |