diff options
author | Chandu Babu N <mailto:[email protected]> | 2017-06-17 11:49:13 +0000 |
---|---|---|
committer | Christian König <[email protected]> | 2017-06-22 12:10:57 +0200 |
commit | 1d4cbcdf285730d8e692e10c44cb5dc7e683efc1 (patch) | |
tree | 9ce59d92769e53959b3063e51f20280b1d58437f /src/gallium/state_trackers/va/context.c | |
parent | b1a359b7d8a0559412d253101e930a6a45d9af7a (diff) |
change va max_entrypoints
As encode support is added along with decode, increase max_entrypoints to two.
vaMaxNumEntrypoints was returning incorrect value and causing
memory corruption before this commit
v2: assert when max_entrypoints needs to be bigger
CC: [email protected]
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/context.c')
-rw-r--r-- | src/gallium/state_trackers/va/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index 6e7a58da687..186f5066bd0 100644 --- a/src/gallium/state_trackers/va/context.c +++ b/src/gallium/state_trackers/va/context.c @@ -167,7 +167,7 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx) *ctx->vtable = vtable; *ctx->vtable_vpp = vtable_vpp; ctx->max_profiles = PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH - PIPE_VIDEO_PROFILE_UNKNOWN; - ctx->max_entrypoints = 1; + ctx->max_entrypoints = 2; ctx->max_attributes = 1; ctx->max_image_formats = VL_VA_MAX_IMAGE_FORMATS; ctx->max_subpic_formats = 1; |