Lines Matching refs:near_val
419 GLclampd near_val, far_val; member
2137 GLclampd near_val, far_val; in vrend_set_viewport_states() local
2156 near_val = state[i].translate[2] - state[i].scale[2]; in vrend_set_viewport_states()
2157 far_val = near_val + (state[i].scale[2] * 2.0); in vrend_set_viewport_states()
2174 ctx->sub->depth_scale = fabsf(far_val - near_val); in vrend_set_viewport_states()
2175 ctx->sub->depth_transform = near_val; in vrend_set_viewport_states()
2178 if (ctx->sub->vps[idx].near_val != near_val || in vrend_set_viewport_states()
2180 ctx->sub->vps[idx].near_val = near_val; in vrend_set_viewport_states()
2184 if (near_val < 0.0f || far_val < 0.0f || in vrend_set_viewport_states()
2185 near_val > 1.0f || far_val > 1.0f || idx) { in vrend_set_viewport_states()
2190 glDepthRangef(ctx->sub->vps[idx].near_val, ctx->sub->vps[idx].far_val); in vrend_set_viewport_states()
2192 glDepthRangeIndexed(idx, ctx->sub->vps[idx].near_val, ctx->sub->vps[idx].far_val); in vrend_set_viewport_states()
2194 glDepthRange(ctx->sub->vps[idx].near_val, ctx->sub->vps[idx].far_val); in vrend_set_viewport_states()