~mmach/netext73/mesa_2004

« back to all changes in this revision

Viewing changes to src/gallium/frontends/nine/nine_state.c

  • Committer: mmach
  • Date: 2021-03-25 18:20:58 UTC
  • Revision ID: netbit73@gmail.com-20210325182058-7q5jvfd88o1c7k36
2021-03-25 13:55:17

Show diffs side-by-side

added added

removed removed

Lines of Context:
769
769
    pvport.translate[0] = (float)vport->Width * 0.5f + (float)vport->X;
770
770
    pvport.translate[1] = (float)vport->Height * 0.5f + (float)vport->Y;
771
771
    pvport.translate[2] = vport->MinZ;
 
772
    pvport.swizzle_x = PIPE_VIEWPORT_SWIZZLE_POSITIVE_X;
 
773
    pvport.swizzle_y = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Y;
 
774
    pvport.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z;
 
775
    pvport.swizzle_w = PIPE_VIEWPORT_SWIZZLE_POSITIVE_W;
772
776
 
773
777
    /* We found R600 and SI cards have some imprecision
774
778
     * on the barycentric coordinates used for interpolation.