diff options
author | Kenneth Graunke <[email protected]> | 2018-04-05 01:37:31 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2018-06-04 18:38:41 -0700 |
commit | 1c9053d0765dc6372238e333dc5adca3e175b210 (patch) | |
tree | bc7419aefd4f291765fed2b30a9b4ee7b86e9c17 /scons | |
parent | 01058a552294ed641f2e933c0cc374917fb3bc70 (diff) |
i965: Prepare batchbuffer module for softpin support.
If EXEC_OBJECT_PINNED is set, we don't want to emit any relocations.
We simply want to add the BO to the validation list, and possibly mark
it as writeable. The new brw_use_pinned_bo() interface does just that.
To avoid having to make every caller consider both the relocation and
softpin cases, we make emit_reloc() call brw_use_pinned_bo() when given
a softpinned buffer.
We also can't grow buffers that are softpinned - the mechanism places a
larger BO at the same offset as the original, which requires moving BOs
around in the VMA. With softpin, we only allocate enough VMA for the
original size of the BO.
v2: Assert that BOs aren't pinned if the kernel says we should move them
(feedback from Chris Wilson)
Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'scons')
0 files changed, 0 insertions, 0 deletions