diff options
author | Brian <[email protected]> | 2008-02-23 16:17:17 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-23 16:17:17 -0700 |
commit | 012391357fcbefd2b34e999eed91a129d5efd77c (patch) | |
tree | 2d2e639aeb24923af9108bb56daaf8356155d378 /src/gallium/drivers/softpipe/sp_state.h | |
parent | 35ca45daba3906ac94fb879d2374d476ba2dac47 (diff) |
gallium: disable early Z test if fragment shader contains KIL instruction.
Use tgsi_scan_shader() to determine if the fragment shader uses KIL or
writes fragment.z
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_state.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state.h b/src/gallium/drivers/softpipe/sp_state.h index 6ff31e601ff..5aaa9e346bc 100644 --- a/src/gallium/drivers/softpipe/sp_state.h +++ b/src/gallium/drivers/softpipe/sp_state.h @@ -63,6 +63,9 @@ struct tgsi_exec_machine; struct sp_fragment_shader { struct pipe_shader_state shader; + boolean uses_kill; + boolean writes_z; + void (*prepare)( const struct sp_fragment_shader *shader, struct tgsi_exec_machine *machine, struct tgsi_sampler *samplers); |