summaryrefslogtreecommitdiff
path: root/src/gen8_render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen8_render.c')
-rw-r--r--src/gen8_render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gen8_render.c b/src/gen8_render.c
index d052cf4..3b3fc89 100644
--- a/src/gen8_render.c
+++ b/src/gen8_render.c
@@ -276,7 +276,7 @@ gen8_render_src_surfaces_state(
gen8_render_src_surface_state(ctx, 1, region, 0, rw, rh, region_pitch, I965_SURFACEFORMAT_R8_UNORM, flags); /* Y */
gen8_render_src_surface_state(ctx, 2, region, 0, rw, rh, region_pitch, I965_SURFACEFORMAT_R8_UNORM, flags);
- if (obj_surface->fourcc == VA_FOURCC('N', 'V', '1', '2')) {
+ if (obj_surface->fourcc == VA_FOURCC_NV12) {
gen8_render_src_surface_state(ctx, 3, region,
region_pitch * obj_surface->y_cb_offset,
obj_surface->cb_cr_width, obj_surface->cb_cr_height, obj_surface->cb_cr_pitch,
@@ -791,11 +791,11 @@ gen8_render_upload_constants(VADriverContextP ctx,
constant_buffer = (unsigned short *) cc_ptr;
if (obj_surface->subsampling == SUBSAMPLE_YUV400) {
- assert(obj_surface->fourcc == VA_FOURCC('Y', '8', '0', '0'));
+ assert(obj_surface->fourcc == VA_FOURCC_Y800);
*constant_buffer = 2;
} else {
- if (obj_surface->fourcc == VA_FOURCC('N', 'V', '1', '2'))
+ if (obj_surface->fourcc == VA_FOURCC_NV12)
*constant_buffer = 1;
else
*constant_buffer = 0;