summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/codegen
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-01-25 19:22:56 -0800
committerKenneth Graunke <[email protected]>2014-05-21 00:29:30 -0700
commit1472584397f7b5ef70dfdffda0aab4a0a38a4db0 (patch)
tree786d2baffa7f1ceaff4e1aa731a0ec9eeeccf63e /src/gallium/drivers/nouveau/codegen
parentc524f3ef9155caba6cd4f9fc72485426b1da76fd (diff)
i965/fs: Assume fragment color clamping is off when precompiling.
Modern applications frequencly use both UNORM buffers and FLOAT buffers with color clamping disabled. (FLOAT with clamping explicitly enabled and SNORM buffers appear to be less common.) We don't need to emit saturates in the fragment shader in either of the common cases. Mesa sets ctx->Color._ClampFragmentColor to false if all the color buffers are UNORM. Also, for GL_FIXED_ONLY mode (the default in legacy OpenGL), it will be false if any FLOAT buffers are bound. Since the common case is false, that should be our default. Thanks to Roland Scheidegger for pointing out some faulty logic in v1 of this patch (unnecessary code and incorrect explanations). v2: Drop superfluous code and reword commit message. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen')
0 files changed, 0 insertions, 0 deletions