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 <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
b57c1e4b86
commit
59f22148b3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue