Home
last modified time | relevance | path

Searched refs:pvport (Results 1 – 1 of 1) sorted by relevance

/external/mesa3d/src/gallium/state_trackers/nine/
Dnine_state.c758 struct pipe_viewport_state pvport; in update_viewport() local
764 pvport.scale[0] = (float)vport->Width * 0.5f; in update_viewport()
765 pvport.scale[1] = (float)vport->Height * -0.5f; in update_viewport()
766 pvport.scale[2] = vport->MaxZ - vport->MinZ; in update_viewport()
767 pvport.translate[0] = (float)vport->Width * 0.5f + (float)vport->X; in update_viewport()
768 pvport.translate[1] = (float)vport->Height * 0.5f + (float)vport->Y; in update_viewport()
769 pvport.translate[2] = vport->MinZ; in update_viewport()
791 pvport.translate[0] -= 1.0f / 128.0f; in update_viewport()
792 pvport.translate[1] -= 1.0f / 128.0f; in update_viewport()
795 cso_set_viewport(context->cso, &pvport); in update_viewport()