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
@@ -61,14 +61,14 @@ VAStatus SunxiCedrusCreateContext(VADriverContextP context,
unsigned int i;
int rc;
config_object = CONFIG(config_id);
config_object = CONFIG(driver_data, config_id);
if (config_object == NULL) {
status = VA_STATUS_ERROR_INVALID_CONFIG;
goto error;
}
id = object_heap_allocate(&driver_data->context_heap);
context_object = CONTEXT(id);
context_object = CONTEXT(driver_data, id);
if (context_object == NULL) {
status = VA_STATUS_ERROR_ALLOCATION_FAILED;
goto error;
@@ -119,7 +119,7 @@ VAStatus SunxiCedrusCreateContext(VADriverContextP context,
memcpy(ids, surfaces_ids, surfaces_count * sizeof(VASurfaceID));
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) {
status = VA_STATUS_ERROR_INVALID_SURFACE;
goto error;
@@ -190,7 +190,7 @@ VAStatus SunxiCedrusDestroyContext(VADriverContextP context,
struct object_context *context_object;
int rc;
context_object = CONTEXT(context_id);
context_object = CONTEXT(driver_data, context_id);
if (context_object == NULL)
return VA_STATUS_ERROR_INVALID_CONTEXT;