aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2019-02-14 12:04:59 +0000
committerKenneth Graunke <[email protected]>2019-02-16 23:35:29 -0800
commite9882b879b9c2da74b3b6cc6ed7fa2fd4e9c8e92 (patch)
tree54d40418912f548c184f850d15da7ec9deaa21a6 /src/mesa/drivers
parent99b90ecd355cf222461ab7238eda2160acb510e9 (diff)
i965: Assert the execobject handles match for this device
Object handles are local to the device fd, so double check we are not mixing together objects from multiple screens on execbuf submission. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index 0377c677c4c..8097392d22b 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -188,6 +188,8 @@ intel_batchbuffer_init(struct brw_context *brw)
static unsigned
add_exec_bo(struct intel_batchbuffer *batch, struct brw_bo *bo)
{
+ assert(bo->bufmgr == batch->batch.bo->bufmgr);
+
unsigned index = READ_ONCE(bo->index);
if (index < batch->exec_count && batch->exec_bos[index] == bo)