Re: [Mesa-dev] RFC/intel: Separate batch buffers from dynamic state

2013-07-16 Thread Chia-I Wu
On Tue, May 7, 2013 at 4:24 AM, Eric Anholt wrote: > Paul Berry writes: > >> Currently the i965 driver uses a single buffer object to hold both batch >> buffer commands and dynamic state data structures (which are pointed to by >> batch buffer commands). We use a "stack and heap model", where th

Re: [Mesa-dev] RFC/intel: Separate batch buffers from dynamic state

2013-05-06 Thread Dave Airlie
>> What do you think? > > It would need some sort of plan for how to deal with making > drm_intel_bufmgr_check_aperture work correctly and efficiently when a > reloced-to BO gets new relocs, which is the reason everything is in one > BO currently. I was looking for code that did this for something

Re: [Mesa-dev] RFC/intel: Separate batch buffers from dynamic state

2013-05-06 Thread Eric Anholt
Paul Berry writes: > Currently the i965 driver uses a single buffer object to hold both batch > buffer commands and dynamic state data structures (which are pointed to by > batch buffer commands). We use a "stack and heap model", where the former > are allocated from the front end of the bo and

[Mesa-dev] RFC/intel: Separate batch buffers from dynamic state

2013-05-06 Thread Paul Berry
Currently the i965 driver uses a single buffer object to hold both batch buffer commands and dynamic state data structures (which are pointed to by batch buffer commands). We use a "stack and heap model", where the former are allocated from the front end of the bo and the latter are allocated from