i965: Use negative relocation deltas to minimse vertex uploads
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Mar 2011 14:46:50 +0000 (14:46 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Mar 2011 16:34:50 +0000 (16:34 +0000)
commit900a5c91eeb3acae7ee0ad331154531c4dba96e1
treea14acdabe1d22ee26c639630bd40ee627581a06c
parent9fa380ccdcf987430b9bff8e5216869e05b0aaea
i965: Use negative relocation deltas to minimse vertex uploads

With relaxed relocation checking in the kernel, we can specify a
negative delta (i.e. pointing outside of the target bo) in order to fake
a range in a large buffer. We only then need to upload the elements used
and adjust the buffer offset such that they correspond with the indices
used in the DrawArrays.

(Depends on libdrm 0209428b3918c4336018da9293cdcbf7f8fedfb6)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_screen.h