Skip to content

Commit

Permalink
drm/vc4: Update a bunch of code to match upstream submission.
Browse files Browse the repository at this point in the history
This gets almost everything matching, except for the MSAA support and
using generic PM domains.

Signed-off-by: Eric Anholt <eric@anholt.net>
  • Loading branch information
anholt authored and popcornmix committed Dec 20, 2015
1 parent ac7df4a commit 023918f
Show file tree
Hide file tree
Showing 15 changed files with 598 additions and 536 deletions.
13 changes: 6 additions & 7 deletions drivers/gpu/drm/drm_gem_cma_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,14 @@ __drm_gem_cma_create(struct drm_device *drm, size_t size)
struct drm_gem_cma_object *cma_obj;
struct drm_gem_object *gem_obj;
int ret;
size_t obj_size = (drm->driver->gem_obj_size ?
drm->driver->gem_obj_size :
sizeof(*cma_obj));

cma_obj = kzalloc(obj_size, GFP_KERNEL);
if (!cma_obj)
if (drm->driver->gem_create_object)
gem_obj = drm->driver->gem_create_object(drm, size);
else
gem_obj = kzalloc(sizeof(*cma_obj), GFP_KERNEL);
if (!gem_obj)
return ERR_PTR(-ENOMEM);

gem_obj = &cma_obj->base;
cma_obj = container_of(gem_obj, struct drm_gem_cma_object, base);

ret = drm_gem_object_init(drm, gem_obj, size);
if (ret)
Expand Down
Loading

0 comments on commit 023918f

Please sign in to comment.