aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_context.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-03-27 01:18:41 -0700
committerKenneth Graunke <[email protected]>2011-05-17 23:32:58 -0700
commit8832920c298f4e13ffd5e53feeba509be69edb16 (patch)
tree245135d3d1444d653c1ba3b4ca6bd75989c9bad1 /src/mesa/drivers/dri/i965/brw_context.c
parent477e2fe0318c79978dedd51a5a6039cf05fc59fb (diff)
i965: Initial Ivybridge URB space partitioning, including push constants.
Currently this always reserves 16kB for push constants, regardless of how much space is needed, and partitions it evenly betwen the VS and FS. This is probably not ideal, but is straightforward. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 3a7e33145ba..cd72bc5c242 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -182,9 +182,15 @@ GLboolean brwCreateContext( int api,
if (IS_IVB_GT1(intel->intelScreen->deviceID)) {
brw->wm_max_threads = 86;
brw->vs_max_threads = 36;
+ brw->urb.size = 128;
+ brw->urb.max_vs_entries = 512;
+ brw->urb.max_gs_entries = 192;
} else if (IS_IVB_GT2(intel->intelScreen->deviceID)) {
brw->wm_max_threads = 86;
brw->vs_max_threads = 128;
+ brw->urb.size = 256;
+ brw->urb.max_vs_entries = 704;
+ brw->urb.max_gs_entries = 320;
} else {
assert(!"Unknown gen7 device.");
}