diff options
author | Eric Anholt <[email protected]> | 2014-09-24 13:59:53 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-24 15:56:39 -0700 |
commit | 7fa399f93af288bc0b9764819d4e5b6184e75d78 (patch) | |
tree | 98394c211268435336e2204a91e1610e11eaea99 /src/gallium/drivers/vc4/vc4_context.h | |
parent | 6abbdfe3dbe7d4372b30461e97b4ad557ff4e5d2 (diff) |
vc4: Actually add support for polygon offset.
Setting the bit without setting the offset values is kind of useless.
Fixes piglit polygon-offset (but not polygon-mode-offset).
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_context.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.h b/src/gallium/drivers/vc4/vc4_context.h index 7839a5a8868..94306a7e86c 100644 --- a/src/gallium/drivers/vc4/vc4_context.h +++ b/src/gallium/drivers/vc4/vc4_context.h @@ -205,6 +205,17 @@ struct vc4_rasterizer_state { uint8_t config_bits[3]; float point_size; + + /** + * Half-float (1/8/7 bits) value of polygon offset units for + * VC4_PACKET_DEPTH_OFFSET + */ + uint16_t offset_units; + /** + * Half-float (1/8/7 bits) value of polygon offset scale for + * VC4_PACKET_DEPTH_OFFSET + */ + uint16_t offset_factor; }; struct vc4_depth_stencil_alpha_state { |