i965: Use intel_upload_space() for pull constant uploads.
authorEric Anholt <eric@anholt.net>
Fri, 1 Nov 2013 01:16:45 +0000 (18:16 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 Mar 2014 20:14:57 +0000 (13:14 -0700)
commitb02bcea7157020b01d5f4fdcb5da69c10013a818
treeaf68922ac8dba42048684f1daed8435467b5e9cc
parent3b579882903c577daa1af286a5e0bf5bc122a34d
i965: Use intel_upload_space() for pull constant uploads.

This also happens to fix a leak of the current GS pull constant BO on
context destroy, by just not holding on to the pull const bos after the
surface state is generated.

No statistically significant performance difference on GLB2.7 on HSW at
1024x768 (n=40) or 320x240 (n=44), or on BYT at 320x240 (n=47).

v2: Rebase on intel_upload simplification.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c