diff options
author | Kenneth Graunke <[email protected]> | 2013-08-02 00:11:10 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-08-06 00:21:10 -0700 |
commit | 59f22148b361a5e1c06d9f5b200666afa854473c (patch) | |
tree | 28a78888717dfbb4b5208ec7248c26e9a18d734d /src/mesa | |
parent | b57c1e4b86a0884318418bb19191af41cfd40175 (diff) |
i965: Don't allocate curbe buffers on Gen6+.
These are only used on Gen4-5. Why waste the 8kB of space?
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 1669a2330a4..a201eed6bb0 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -440,8 +440,10 @@ brwCreateContext(int api, brw_init_state( brw ); - brw->curbe.last_buf = calloc(1, 4096); - brw->curbe.next_buf = calloc(1, 4096); + if (brw->gen < 6) { + brw->curbe.last_buf = calloc(1, 4096); + brw->curbe.next_buf = calloc(1, 4096); + } brw->state.dirty.mesa = ~0; brw->state.dirty.brw = ~0; |