From 2efabd9f5a711a7f6cd1846630244b7814bf25b3 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 10 Nov 2014 00:37:03 +0100 Subject: gallium: remove unused pipe_viewport_state::translate[3] and scale[3] Almost all drivers ignore them. --- src/gallium/drivers/nouveau/nv30/nv30_state_validate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/nouveau') diff --git a/src/gallium/drivers/nouveau/nv30/nv30_state_validate.c b/src/gallium/drivers/nouveau/nv30/nv30_state_validate.c index f22755983ba..0f9d19dd68e 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, 0.0f); 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])); -- cgit v1.2.3