[Mesa-dev] [PATCH 06/16] st/nine: Fix comment in update_viewport

Ilia Mirkin imirkin at alum.mit.edu
Fri Apr 24 14:20:30 PDT 2015


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Fri, Apr 24, 2015 at 4:09 PM, Axel Davy <axel.davy at ens.fr> wrote:
> Signed-off-by: Axel Davy <axel.davy at ens.fr>
> ---
>  src/gallium/state_trackers/nine/nine_state.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c
> index 6c7eab3..27800c6 100644
> --- a/src/gallium/state_trackers/nine/nine_state.c
> +++ b/src/gallium/state_trackers/nine/nine_state.c
> @@ -138,10 +138,9 @@ update_viewport(struct NineDevice9 *device)
>      const D3DVIEWPORT9 *vport = &device->state.viewport;
>      struct pipe_viewport_state pvport;
>
> -    /* XXX:
> -     * I hope D3D clip coordinates are still
> +    /* D3D coordinates are:
>       * -1 .. +1 for X,Y and
> -     *  0 .. +1 for Z (use pipe_rasterizer_state.clip_halfz)
> +     *  0 .. +1 for Z (we use pipe_rasterizer_state.clip_halfz)
>       */
>      pvport.scale[0] = (float)vport->Width * 0.5f;
>      pvport.scale[1] = (float)vport->Height * -0.5f;
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list