tree: Change the macros to take the actual arguments they are using

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
Maxime Ripard
2018-07-13 16:00:08 +02:00
parent 18331ff41d
commit fd263773cc
9 changed files with 25 additions and 25 deletions
+4 -4
View File
@@ -84,7 +84,7 @@ VAStatus SunxiCedrusCreateSurfaces(VADriverContextP context, int width,
for (i = 0; i < surfaces_count; i++) {
id = object_heap_allocate(&driver_data->surface_heap);
surface_object = SURFACE(id);
surface_object = SURFACE(driver_data, id);
if (surface_object == NULL)
return VA_STATUS_ERROR_ALLOCATION_FAILED;
@@ -149,7 +149,7 @@ VAStatus SunxiCedrusDestroySurfaces(VADriverContextP context,
unsigned int i, j;
for (i = 0; i < surfaces_count; i++) {
surface_object = SURFACE(surfaces_ids[i]);
surface_object = SURFACE(driver_data, surfaces_ids[i]);
if (surface_object == NULL)
return VA_STATUS_ERROR_INVALID_SURFACE;
@@ -182,7 +182,7 @@ VAStatus SunxiCedrusSyncSurface(VADriverContextP context,
int request_fd = -1;
int rc;
surface_object = SURFACE(surface_id);
surface_object = SURFACE(driver_data, surface_id);
if (surface_object == NULL) {
status = VA_STATUS_ERROR_INVALID_SURFACE;
goto error;
@@ -251,7 +251,7 @@ VAStatus SunxiCedrusQuerySurfaceStatus(VADriverContextP context,
(struct sunxi_cedrus_driver_data *) context->pDriverData;
struct object_surface *surface_object;
surface_object = SURFACE(surface_id);
surface_object = SURFACE(driver_data, surface_id);
if (surface_object == NULL)
return VA_STATUS_ERROR_INVALID_SURFACE;