i965: Shrink brw_vue_map struct.
authorPaul Berry <stereotype441@gmail.com>
Fri, 22 Mar 2013 00:14:53 +0000 (17:14 -0700)
committerPaul Berry <stereotype441@gmail.com>
Sun, 24 Mar 2013 17:55:28 +0000 (10:55 -0700)
commita593a1b2768a0d95765d2f86f1cbf69e490449ff
tree7acc7392df76d7eb47bdc120b90eb8e4cf276d38
parent0a0deb92d9e25067ac4b89cbbd8f8f8f3b4d05db
i965: Shrink brw_vue_map struct.

This patch changes the arrays in brw_vue_map (which only ever contain
values from -1 to 58) from ints to signed chars.  This reduces the
size of the struct from 488 bytes to 136 bytes.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
v2: fix STATIC_ASSERT to use 127 instead of 128.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_vs.c