OSDN Git Service

intel: Add a new function to check if a BO's reloc tree references some BO.
authorEric Anholt <eric@anholt.net>
Fri, 2 Oct 2009 02:09:26 +0000 (19:09 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 2 Oct 2009 02:09:26 +0000 (19:09 -0700)
commit769b10578083aa7bbee0052246d8ea6000435ae8
tree6346b9523b16eb522842c61afa4dd025d9e2559d
parentac71f0849928f4b2fbb69c01304ac6f9df8916a1
intel: Add a new function to check if a BO's reloc tree references some BO.

There are a bunch of places in GL where if we can't do this we have to
flush the batchbuffer, and the cost of lookups here is outweighed by flush
savings.
libdrm/intel/intel_bufmgr.c
libdrm/intel/intel_bufmgr.h
libdrm/intel/intel_bufmgr_gem.c
libdrm/intel/intel_bufmgr_priv.h