surface: Use object surface structure directly instead of abstract type

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
Paul Kocialkowski
2018-04-23 10:06:11 +02:00
parent 6a06b4570b
commit 97950176ad
8 changed files with 25 additions and 27 deletions
+1 -3
View File
@@ -30,7 +30,7 @@
#include "object_heap.h"
#define SURFACE(id) ((object_surface_p) object_heap_lookup(&driver_data->surface_heap, id))
#define SURFACE(id) ((struct object_surface *) object_heap_lookup(&driver_data->surface_heap, id))
#define SURFACE_ID_OFFSET 0x04000000
struct object_surface {
@@ -44,8 +44,6 @@ struct object_surface {
VAStatus status;
};
typedef struct object_surface *object_surface_p;
VAStatus sunxi_cedrus_CreateSurfaces(VADriverContextP ctx, int width,
int height, int format, int num_surfaces, VASurfaceID *surfaces);