i965: clip: Convert computations to ..._to_offset() for clarity.
authorPaul Berry <stereotype441@gmail.com>
Wed, 31 Aug 2011 22:34:01 +0000 (15:34 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Sep 2011 18:05:28 +0000 (11:05 -0700)
commit2ef1fa6b3c8d52e059bf6ccf519c45604962b27c
treed7953273ffc6397609d05101f25fe90a9955c10c
parent54a62f8806df29d79f1e630bae6d1f45fb15c69f
i965: clip: Convert computations to ..._to_offset() for clarity.

This patch replaces some ad-hoc computations using ATTR_SIZE and the
offset[] array to use the VUE map functions
brw_vert_result_to_offset() and brw_vue_slot_to_offset().

Reviewed-by: Eric Anholt <eric@anholt.net>
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