i965: Shrink Gen5 VUE map layout to be the same as Gen4.
authorChris Forbes <chrisf@ijw.co.nz>
Fri, 7 Jun 2013 18:11:44 +0000 (06:11 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 15 Jun 2013 13:05:41 +0000 (01:05 +1200)
commitdef84d8014e334e00b0a76f7bb635ccc62e3b67e
tree7bcf496e68de7d611788ca9da7ffd6eaa1b8f6b1
parent1b77d2133c41c4eb475b81967a3e4d39196c7fe1
i965: Shrink Gen5 VUE map layout to be the same as Gen4.

The PRM suggests a larger layout, mostly to support having
gl_ClipDistance[] somewhere predictable for the fixed-function clipper
-- but it didn't actually arrive in Gen5.

Just use the same layout for both Gen4 and Gen5.

No Piglit regressions.

Improves performance in CS:S Video Stress Test by ~3%.

V2: - Remove now-useless function for determining the SF URB read offset
    - Remove now-unused BRW_VARYING_SLOT_POS_DUPLICATE

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_sf.c
src/mesa/drivers/dri/i965/brw_sf.h
src/mesa/drivers/dri/i965/brw_sf_state.c
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vs.c