diff options
Diffstat (limited to 'src/i965_gpe_utils.c')
-rw-r--r-- | src/i965_gpe_utils.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/i965_gpe_utils.c b/src/i965_gpe_utils.c index c97220a..3386b09 100644 --- a/src/i965_gpe_utils.c +++ b/src/i965_gpe_utils.c @@ -342,7 +342,7 @@ i965_gpe_set_surface2_state(VADriverContextP ctx, unsigned int tiling, swizzle; assert(obj_surface->bo); - assert(obj_surface->fourcc == VA_FOURCC('N', 'V', '1', '2')); + assert(obj_surface->fourcc == VA_FOURCC_NV12); dri_bo_get_tiling(obj_surface->bo, &tiling, &swizzle); w = obj_surface->orig_width; @@ -505,7 +505,7 @@ gen7_gpe_set_surface2_state(VADriverContextP ctx, unsigned int tiling, swizzle; assert(obj_surface->bo); - assert(obj_surface->fourcc == VA_FOURCC('N', 'V', '1', '2')); + assert(obj_surface->fourcc == VA_FOURCC_NV12); dri_bo_get_tiling(obj_surface->bo, &tiling, &swizzle); w = obj_surface->orig_width; @@ -648,7 +648,7 @@ gen75_gpe_media_chroma_surface_setup(VADriverContextP ctx, dri_bo *bo; int cbcr_offset; - assert(obj_surface->fourcc == VA_FOURCC('N', 'V', '1', '2')); + assert(obj_surface->fourcc == VA_FOURCC_NV12); bo = gpe_context->surface_state_binding_table.bo; dri_bo_map(bo, True); assert(bo->virtual); @@ -725,7 +725,7 @@ gen8_gpe_set_surface2_state(VADriverContextP ctx, unsigned int tiling, swizzle; assert(obj_surface->bo); - assert(obj_surface->fourcc == VA_FOURCC('N', 'V', '1', '2')); + assert(obj_surface->fourcc == VA_FOURCC_NV12); dri_bo_get_tiling(obj_surface->bo, &tiling, &swizzle); w = obj_surface->orig_width; @@ -869,7 +869,7 @@ gen8_gpe_media_chroma_surface_setup(VADriverContextP ctx, dri_bo *bo; int cbcr_offset; - assert(obj_surface->fourcc == VA_FOURCC('N', 'V', '1', '2')); + assert(obj_surface->fourcc == VA_FOURCC_NV12); bo = gpe_context->surface_state_binding_table.bo; dri_bo_map(bo, True); assert(bo->virtual); |