mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 03:20:09 +01:00
anv/video: fix to set U/V offset correctly.
Fixes: 98c58a16ef ("anv: add initial video decode support for h264.")
Closes: mesa/mesa#9227
Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23819>
This commit is contained in:
parent
d336bc3926
commit
23d4e21d83
1 changed files with 2 additions and 2 deletions
|
|
@ -857,8 +857,8 @@ anv_h264_decode_video(struct anv_cmd_buffer *cmd_buffer,
|
|||
ss.TiledSurface = img->planes[0].primary_surface.isl.tiling != ISL_TILING_LINEAR;
|
||||
ss.TileWalk = TW_YMAJOR;
|
||||
|
||||
ss.YOffsetforUCb = align(img->vk.extent.height, 32);
|
||||
ss.YOffsetforVCr = align(img->vk.extent.height, 32);
|
||||
ss.YOffsetforUCb = ss.YOffsetforVCr =
|
||||
img->planes[1].primary_surface.memory_range.offset / img->planes[0].primary_surface.isl.row_pitch_B;
|
||||
}
|
||||
|
||||
anv_batch_emit(&cmd_buffer->batch, GENX(MFX_PIPE_BUF_ADDR_STATE), buf) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue