diff options
author | Axel Davy <[email protected]> | 2016-06-14 23:13:26 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-06-25 10:16:15 +0200 |
commit | f6704f2a4db7113e597d4bab2cefc02e166c2ad9 (patch) | |
tree | 8a13fe277703cf69b747a0300a2ec4c750b02787 /src/compiler/glsl/link_atomics.cpp | |
parent | be7957b156e30ffe9fb647b58ba00e236e498c3f (diff) |
r600g: Implement POLYGON_OFFSET_UNITS_UNSCALED
Empirical tests show that the polygon offset
behaviour is entirely determined by the content of
the PA_SU_POLY_OFFSET states, and not by the depth buffer
format bound.
PA_SU_POLY_OFFSET seems to directly set the parameters of
the polygon offset formula, and setting 0 for
PA_SU_POLY_OFFSET_DB_FMT_CNTL (ie setting the unorm depth
bias behaviour with a scale of 2^0 = 1.0f) gives the unscaled
behaviour.
Signed-off-by: Axel Davy <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_atomics.cpp')
0 files changed, 0 insertions, 0 deletions