diff --git a/.pick_status.json b/.pick_status.json index 06dcdcec8b7..c933592eb50 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2234,7 +2234,7 @@ "description": "frontends/va: Only increment slice offset after first slice parameters", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "6746d4df6eac83d048e88c2d54aa19e7c1a0a696", "notes": null diff --git a/src/gallium/frontends/va/picture.c b/src/gallium/frontends/va/picture.c index 7bddd86db97..1a3cf42ff83 100644 --- a/src/gallium/frontends/va/picture.c +++ b/src/gallium/frontends/va/picture.c @@ -1033,7 +1033,8 @@ vlVaRenderPicture(VADriverContextP ctx, VAContextID context_id, VABufferID *buff case VASliceDataBufferType: vaStatus = handleVASliceDataBufferType(context, buf); - slice_offset += buf->size; + if (slice_idx) + slice_offset += buf->size; break; case VAProcPipelineParameterBufferType: