I'm not sure why I thoughtt here was an off-by-one, other than maybe bad
data collection.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
- /* On bifrost: Exactly the same as glPolygonOffset() for both.
- * On midgard: Depth factor is exactly as passed to glPolygonOffset.
- * Depth units is equal to the value passed to glDeptOhffset + 1.0f
- * (use MALI_NEGATIVE)
- */
+ /* Same as glPolygoOffset() arguments */
float depth_units;
float depth_factor;
float depth_units;
float depth_factor;
}
if (s->depth_units || s->depth_factor) {
}
if (s->depth_units || s->depth_factor) {
- if (is_bifrost)
- pandecode_prop("depth_units = %f", s->depth_units);
- else
- pandecode_prop("depth_units = MALI_NEGATIVE(%f)", s->depth_units - 1.0f);
-
pandecode_prop("depth_factor = %f", s->depth_factor);
pandecode_prop("depth_factor = %f", s->depth_factor);
+ pandecode_prop("depth_units = %f", s->depth_units);
}
if (s->alpha_coverage) {
}
if (s->alpha_coverage) {