diff options
author | Eric Anholt <[email protected]> | 2011-12-19 10:53:10 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-03-16 11:55:38 -0700 |
commit | 31866308fcf989df992ace28b5b986c3d3770e90 (patch) | |
tree | 28db9a1b780624214ef409b78108f809842dfb3f /docs/relnotes-7.11.2.html | |
parent | bddb2edab616d30f7894cfff7071a70d273a848e (diff) |
i965/fs: Jump from discard statements to the end of the program when done.
From the GLSL 1.30 spec:
The discard keyword is only allowed within fragment shaders. It
can be used within a fragment shader to abandon the operation on
the current fragment. This keyword causes the fragment to be
discarded and no updates to any buffers will occur. Control flow
exits the shader, and subsequent implicit or explicit derivatives
are undefined when this control flow is non-uniform (meaning
different fragments within the primitive take different control
paths).
v2: Don't emit the final HALT if no other HALTs were emitted.
Reviewed-by: Kenneth Graunke <[email protected]> (v1)
Diffstat (limited to 'docs/relnotes-7.11.2.html')
0 files changed, 0 insertions, 0 deletions