diff options
author | Marek Olšák <maraeo@gmail.com> | 2012-01-23 03:11:17 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2012-01-25 12:35:18 +0100 |
commit | bc1c8369384b5e16547c5bf9728aa78f8dfd66cc (patch) | |
tree | a09267d88b2c604491a607467e28a7f8fbae4146 /src/mesa/state_tracker/st_mesa_to_tgsi.h | |
parent | c2e2b58a58880c9b9f189fc154205e99144e9502 (diff) | |
download | external_mesa3d-bc1c8369384b5e16547c5bf9728aa78f8dfd66cc.zip external_mesa3d-bc1c8369384b5e16547c5bf9728aa78f8dfd66cc.tar.gz external_mesa3d-bc1c8369384b5e16547c5bf9728aa78f8dfd66cc.tar.bz2 |
st/mesa: do vertex and fragment color clamping in shaders
For ARB_color_buffer_float. Most hardware can't do it and st/mesa is
the perfect place for a fallback.
The exceptions are:
- r500 (vertex clamp only)
- nv50 (both)
- nvc0 (both)
- softpipe (both)
We also have to take into account that r300 can do CLAMPED vertex colors only,
while r600 can do UNCLAMPED vertex colors only. The difference can be expressed
with the two new CAPs.
Diffstat (limited to 'src/mesa/state_tracker/st_mesa_to_tgsi.h')
-rw-r--r-- | src/mesa/state_tracker/st_mesa_to_tgsi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.h b/src/mesa/state_tracker/st_mesa_to_tgsi.h index 7563c80..7e1a5ab 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.h +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.h @@ -59,7 +59,8 @@ st_translate_mesa_program( const GLuint outputMapping[], const ubyte outputSemanticName[], const ubyte outputSemanticIndex[], - boolean passthrough_edgeflags ); + boolean passthrough_edgeflags, + boolean clamp_color); void st_free_tokens(const struct tgsi_token *tokens); |