Register video format directly instead of tiled indicator
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
This commit is contained in:
+2
-1
@@ -27,6 +27,7 @@
|
||||
#include "buffer.h"
|
||||
#include "request.h"
|
||||
#include "surface.h"
|
||||
#include "video.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
@@ -148,7 +149,7 @@ VAStatus RequestDeriveImage(VADriverContextP context, VASurfaceID surface_id,
|
||||
return VA_STATUS_ERROR_INVALID_BUFFER;
|
||||
|
||||
for (i = 0; i < surface_object->destination_planes_count; i++) {
|
||||
if (driver_data->tiled_format)
|
||||
if (!video_format_is_linear(driver_data->video_format))
|
||||
tiled_to_planar(surface_object->destination_data[i],
|
||||
buffer_object->data + image->offsets[i],
|
||||
image->pitches[i], image->width,
|
||||
|
||||
Reference in New Issue
Block a user