[Libva] [Libva-intel-driver][PATCH 06/17] Fix curbe length in CMD_MEDIA_CURBE_LOAD on GEN8+

Zhao Yakui yakui.zhao at intel.com
Thu Nov 17 12:46:34 UTC 2016


On 11/17/2016 04:35 PM, Xiang, Haihao wrote:
> It is multiple of 64 bytes

Can we align the size of curbe_buffer when calling the 
gen8_gpe_context_init?

>
> Signed-off-by: Xiang, Haihao<haihao.xiang at intel.com>
> ---
>   src/i965_gpe_utils.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/i965_gpe_utils.c b/src/i965_gpe_utils.c
> index 139ab1b..a6d539b 100644
> --- a/src/i965_gpe_utils.c
> +++ b/src/i965_gpe_utils.c
> @@ -1066,7 +1066,7 @@ gen8_gpe_curbe_load(VADriverContextP ctx,
>
>       OUT_BATCH(batch, CMD_MEDIA_CURBE_LOAD | (4 - 2));
>       OUT_BATCH(batch, 0);
> -    OUT_BATCH(batch, gpe_context->curbe.length);
> +    OUT_BATCH(batch, ALIGN(gpe_context->curbe.length, 64));
>       OUT_BATCH(batch, gpe_context->curbe.offset);
>
>       ADVANCE_BATCH(batch);



More information about the Libva mailing list