diff options
author | Roland Scheidegger <[email protected]> | 2013-07-18 02:10:27 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-07-18 19:04:20 +0200 |
commit | 4ef19f7fecbd96169e2b9039afc0168c7c2704cd (patch) | |
tree | 6e1524a660d9db16db44b2a10cd933e586723ae1 /src/glsl | |
parent | e57b98bad33b13ba02b11144709dd09af2ea8c95 (diff) |
llvmpipe: clamp inputs for srgb render buffers
Usually with fixed point renderbuffers clamping is done as part of conversion.
However, since we blend in float format, we essentially skip all conversion
steps pre-blend but since this is still a fixed point renderbuffer we must
still clamp the inputs in this case. Makes no difference for piglit though.
Obviously we could skip this if fragment color clamping is enabled, but a)
this is deprecated in OpenGL (d3d never had it) and b) we don't support it
natively so it gets baked into the shader.
Also add some comment about logic ops being broken for srgb, luckily no test
tries to do that as there's no easy fix...
Reviewed-by: Jose Fonseca <[email protected]>
Reviewed-by: Zack Rusin <[email protected]>
Diffstat (limited to 'src/glsl')
0 files changed, 0 insertions, 0 deletions