tree: add the driver_data parameter to the IMAGE macro as well
The IMAGE macro takes an implicit driver_data argument. In order to make it obvious that we need it, let's put it as an explicit parameter. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
+2
-2
@@ -63,7 +63,7 @@ VAStatus RequestCreateImage(VADriverContextP context, VAImageFormat *format,
|
||||
size += destination_sizes[i];
|
||||
|
||||
id = object_heap_allocate(&driver_data->image_heap);
|
||||
image_object = IMAGE(id);
|
||||
image_object = IMAGE(driver_data, id);
|
||||
if (image_object == NULL)
|
||||
return VA_STATUS_ERROR_ALLOCATION_FAILED;
|
||||
|
||||
@@ -102,7 +102,7 @@ VAStatus RequestDestroyImage(VADriverContextP context, VAImageID image_id)
|
||||
struct object_image *image_object;
|
||||
VAStatus status;
|
||||
|
||||
image_object = IMAGE(image_id);
|
||||
image_object = IMAGE(driver_data, image_id);
|
||||
if (image_object == NULL)
|
||||
return VA_STATUS_ERROR_INVALID_IMAGE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user