[Mesa-dev] [PATCH] gallium: remove unused pipe_viewport_state::translate[3] and scale[3]
Ilia Mirkin
imirkin at alum.mit.edu
Sun Nov 9 15:53:49 PST 2014
On Sun, Nov 9, 2014 at 6:39 PM, Marek Olšák <maraeo at gmail.com> wrote:
> diff --git a/src/gallium/drivers/nouveau/nv30/nv30_state_validate.c
> b/src/gallium/drivers/nouveau/nv30/nv30_state_validate.c
> index f227559..6df0c47 100644
> --- a/src/gallium/drivers/nouveau/nv30/nv30_state_validate.c
> +++ b/src/gallium/drivers/nouveau/nv30/nv30_state_validate.c
> @@ -254,11 +254,11 @@ nv30_validate_viewport(struct nv30_context *nv30)
> PUSH_DATAf(push, vp->translate[0]);
> PUSH_DATAf(push, vp->translate[1]);
> PUSH_DATAf(push, vp->translate[2]);
> - PUSH_DATAf(push, vp->translate[3]);
> + PUSH_DATAf(push, 1.0f);
>
This should probably be 0.0f... or am I misunderstanding what this does?
> PUSH_DATAf(push, vp->scale[0]);
> PUSH_DATAf(push, vp->scale[1]);
> PUSH_DATAf(push, vp->scale[2]);
> - PUSH_DATAf(push, vp->scale[3]);
> + PUSH_DATAf(push, 1.0f);
> BEGIN_NV04(push, NV30_3D(DEPTH_RANGE_NEAR), 2);
> PUSH_DATAf(push, vp->translate[2] - fabsf(vp->scale[2]));
> PUSH_DATAf(push, vp->translate[2] + fabsf(vp->scale[2]));
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141109/948505d1/attachment.html>
More information about the mesa-dev
mailing list