diff options
author | Eric Anholt <[email protected]> | 2016-07-19 11:10:36 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-07-26 13:47:50 -0700 |
commit | ce8504d196291452b42ed755ed3830ecb16febcd (patch) | |
tree | c9e4b018baa6c1ab1df2b82e71f54db4ba5c1790 /src/gallium/drivers/vc4/vc4_context.h | |
parent | 4d0b2c7aaac3cf3de5af8474c83501122841d157 (diff) |
vc4: Disable early Z with computed depth.
We don't tell the hardware whether we're computing depth, so we need
to manage early Z state manually. Fixes piglit early-z.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.h b/src/gallium/drivers/vc4/vc4_context.h index 751f0437807..b656539611c 100644 --- a/src/gallium/drivers/vc4/vc4_context.h +++ b/src/gallium/drivers/vc4/vc4_context.h @@ -142,6 +142,8 @@ struct vc4_compiled_shader { /** bitmask of which inputs are color inputs, for flat shade handling. */ uint32_t color_inputs; + bool disable_early_z; + uint8_t num_inputs; /* Byte offsets for the start of the vertex attributes 0-7, and the |