diff options
author | Marek Olšák <[email protected]> | 2016-04-03 03:21:47 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-04-08 00:23:05 +0200 |
commit | 1cd19ebc4a892ada69f9085892441c00674b2764 (patch) | |
tree | 02dc9ae530787fe7507799fd82e3e1f662eb8b56 /src/gallium/drivers/radeonsi/si_state.h | |
parent | 059308db841886101586aa3ec5ac74b89abf1a20 (diff) |
radeonsi: do per-pixel clipping based on viewport states
In other words, vport scissors are derived from viewport states.
If the scissor test is enabled, the intersection of both is used.
The guard band will disable clipping, so we have to clip per-pixel.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h index bec99e15efa..f55f19e2918 100644 --- a/src/gallium/drivers/radeonsi/si_state.h +++ b/src/gallium/drivers/radeonsi/si_state.h @@ -68,6 +68,7 @@ struct si_state_rasterizer { bool uses_poly_offset; bool clamp_fragment_color; bool rasterizer_discard; + bool scissor_enable; }; struct si_dsa_stencil_ref_part { |