.. | .. |
---|
232 | 232 | } |
---|
233 | 233 | |
---|
234 | 234 | struct panfrost_gem_object * |
---|
235 | | -panfrost_gem_create_with_handle(struct drm_file *file_priv, |
---|
236 | | - struct drm_device *dev, size_t size, |
---|
237 | | - u32 flags, |
---|
238 | | - uint32_t *handle) |
---|
| 235 | +panfrost_gem_create(struct drm_device *dev, size_t size, u32 flags) |
---|
239 | 236 | { |
---|
240 | | - int ret; |
---|
241 | 237 | struct drm_gem_shmem_object *shmem; |
---|
242 | 238 | struct panfrost_gem_object *bo; |
---|
243 | 239 | |
---|
.. | .. |
---|
252 | 248 | bo = to_panfrost_bo(&shmem->base); |
---|
253 | 249 | bo->noexec = !!(flags & PANFROST_BO_NOEXEC); |
---|
254 | 250 | bo->is_heap = !!(flags & PANFROST_BO_HEAP); |
---|
255 | | - |
---|
256 | | - /* |
---|
257 | | - * Allocate an id of idr table where the obj is registered |
---|
258 | | - * and handle has the id what user can see. |
---|
259 | | - */ |
---|
260 | | - ret = drm_gem_handle_create(file_priv, &shmem->base, handle); |
---|
261 | | - /* drop reference from allocate - handle holds it now. */ |
---|
262 | | - drm_gem_object_put(&shmem->base); |
---|
263 | | - if (ret) |
---|
264 | | - return ERR_PTR(ret); |
---|
265 | 251 | |
---|
266 | 252 | return bo; |
---|
267 | 253 | } |
---|