i965: clip: Move hpos_offest and ndc_offset into local functions.
authorPaul Berry <stereotype441@gmail.com>
Thu, 25 Aug 2011 03:03:35 +0000 (20:03 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Sep 2011 18:05:11 +0000 (11:05 -0700)
commit62b0c8561e2d259e4dc1f27346bf2f36c3b098c8
treea082d1eabf98676434cdcb427e605b88bd3394af
parenteae5b5c44e58ad2937600991a5569518d3023f68
i965: clip: Move hpos_offest and ndc_offset into local functions.

The offsets within the VUE of HPOS and NDC are needed only in a few
auxiliary clipping functions.  This patch moves computation of those
offsets into the functions that need them, and does the computation
using the VUE map.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_clip.c
src/mesa/drivers/dri/i965/brw_clip.h
src/mesa/drivers/dri/i965/brw_clip_line.c
src/mesa/drivers/dri/i965/brw_clip_tri.c
src/mesa/drivers/dri/i965/brw_clip_unfilled.c
src/mesa/drivers/dri/i965/brw_clip_util.c