From: Oscar Mateo Date: Thu, 24 Jul 2014 16:04:18 +0000 (+0100) Subject: drm/i915/bdw: Deferred creation of user-created LRCs X-Git-Tag: omap-for-v3.19/prcm-cleanup~70^2~73^2~58 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec3e9963a681789860e5c0120a745b717d942392;p=pandora-kernel.git drm/i915/bdw: Deferred creation of user-created LRCs The backing objects and ringbuffers for contexts created via open fd are actually empty until the user starts sending execbuffers to them. At that point, we allocate & populate them. We do this because, at create time, we really don't know which engine is going to be used with the context later on (and we don't want to waste memory on objects that we might never use). v2: As contexts created via ioctl can only be used with the render ring, we have enough information to allocate & populate them right away. v3: Defer the creation always, even with ioctl-created contexts, as requested by Daniel Vetter. Signed-off-by: Oscar Mateo Reviewed-by: Damien Lespiau Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed