diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-07-27 15:57:01 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-07-27 15:57:01 +0000 |
commit | 622d415bb6e3673b59ebf4f59e5499c10d22cd95 (patch) | |
tree | 0d0460efd221fd8b97d84e3688d53784c686eaa6 | |
parent | 26b54fb5e2fb41b7fd6ec3b47037988a166b6f61 (diff) |
Initialize pools with correct sizes.
This was safe because `struct drm_i915_gem_object' is bigger than the
other two.
ok kettenis@
-rw-r--r-- | sys/dev/pci/drm/i915/i915_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c index 910ae8f6c59..4caf49e5936 100644 --- a/sys/dev/pci/drm/i915/i915_gem.c +++ b/sys/dev/pci/drm/i915/i915_gem.c @@ -5496,9 +5496,9 @@ i915_gem_load(struct drm_device *dev) #else pool_init(&dev_priv->objects, sizeof(struct drm_i915_gem_object), 0, IPL_NONE, 0, "drmobj", NULL); - pool_init(&dev_priv->vmas, sizeof(struct drm_i915_gem_object), + pool_init(&dev_priv->vmas, sizeof(struct i915_vma), 0, IPL_NONE, 0, "drmvma", NULL); - pool_init(&dev_priv->requests, sizeof(struct drm_i915_gem_object), + pool_init(&dev_priv->requests, sizeof(struct drm_i915_gem_request), 0, IPL_NONE, 0, "drmreq", NULL); #endif |