OSDN Git Service

intel: Add a bo_alloc function for tiled BOs.
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 6 Oct 2009 21:34:06 +0000 (14:34 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 6 Oct 2009 22:45:10 +0000 (15:45 -0700)
commit3a7dfcdfafdd6ac83a4d3e7b4c1c52fd901b93ae
tree8182457bf0f074d83137a176f228f01370ef31c2
parent02c775fc750b48ae25b6a4af51afbfe090ebada4
intel: Add a bo_alloc function for tiled BOs.

This simplifies driver code in handling object allocation, and also gives us
an opportunity to possibly cache tiled buffers if it turns out to be a win.

[anholt: This is chopped out of the execbuf2 patch, as it seems to be useful
separately and cleans up the execbuf2 changes to be more obvious]
libdrm/intel/intel_bufmgr.c
libdrm/intel/intel_bufmgr.h
libdrm/intel/intel_bufmgr_fake.c
libdrm/intel/intel_bufmgr_gem.c
libdrm/intel/intel_bufmgr_priv.h