i965: Allocate push constant L3 space once at startup on Gen7+.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Jun 2013 17:06:21 +0000 (10:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Jun 2013 17:58:47 +0000 (10:58 -0700)
commitfc800f0c60a21bc895d1db55a41fb99c306e1544
tree8b729c059a7c95348654029ff49cb405d206056a
parent6c966ccf07bcaf64fba1a9b699440c30dc96e732
i965: Allocate push constant L3 space once at startup on Gen7+.

We always allocate the maximum amount of space and never change it, so
it makes sense to do it once.  Programming it on startup also lets us
skip re-programming it from BLORP.

This removes a tiny amount of overhead from our drawing loop.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/gen7_blorp.cpp
src/mesa/drivers/dri/i965/gen7_urb.c