diff options
author | Eric Anholt <[email protected]> | 2018-07-30 13:44:40 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-07-30 14:29:01 -0700 |
commit | e146e3a795ecd070679b8dfd1ad7f370e9ec5665 (patch) | |
tree | db232dd04f29139c301fc6d2bd4804d4ce970266 /src/gallium/drivers/v3d/v3d_context.h | |
parent | 9039cf70fa0b785f390c649486e12d6c10e9142b (diff) |
v3d: Move depth offset packet setup to CSO creation time.
This should be some simpler memcpying at draw time, and makes the next
change easier.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_context.h')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_context.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h index b61dacf66c7..f6720e2ca93 100644 --- a/src/gallium/drivers/v3d/v3d_context.h +++ b/src/gallium/drivers/v3d/v3d_context.h @@ -433,21 +433,8 @@ struct v3d_rasterizer_state { float point_size; - /** - * Half-float (1/8/7 bits) value of polygon offset units for - * VC5_PACKET_DEPTH_OFFSET - */ - uint16_t offset_units; - /** - * The HW treats polygon offset units based on a Z24 buffer, so we - * need to scale up offset_units if we're only Z16. - */ - uint16_t z16_offset_units; - /** - * Half-float (1/8/7 bits) value of polygon offset scale for - * VC5_PACKET_DEPTH_OFFSET - */ - uint16_t offset_factor; + uint8_t depth_offset[9]; + uint8_t depth_offset_z16[9]; }; struct v3d_depth_stencil_alpha_state { |