radv: fix correct padding on uvd
Fixes:8a29291dbe
("radv/video: add h264 support for uvd") Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27186> (cherry picked from commit6065671a7f
)
This commit is contained in:

committed by
Eric Engestrom

parent
8a8610245a
commit
7c060b781d
@@ -774,7 +774,7 @@
|
||||
"description": "radv: fix correct padding on uvd",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "8a29291dbe6c61ce469f21a745724b59e702272a",
|
||||
"notes": null
|
||||
|
@@ -1724,10 +1724,12 @@ radv_uvd_cmd_reset(struct radv_cmd_buffer *cmd_buffer)
|
||||
if (vid->sessionctx.mem)
|
||||
send_cmd(cmd_buffer, RDECODE_CMD_SESSION_CONTEXT_BUFFER, vid->sessionctx.mem->bo, vid->sessionctx.offset);
|
||||
send_cmd(cmd_buffer, RDECODE_CMD_MSG_BUFFER, cmd_buffer->upload.upload_bo, out_offset);
|
||||
|
||||
/* pad out the IB to the 16 dword boundary - otherwise the fw seems to be unhappy */
|
||||
radeon_check_space(cmd_buffer->device->ws, cmd_buffer->cs, 8);
|
||||
for (unsigned i = 0; i < 8; i++)
|
||||
radeon_emit(cmd_buffer->cs, 0x81ff);
|
||||
int padsize = vid->sessionctx.mem ? 4 : 6;
|
||||
radeon_check_space(cmd_buffer->device->ws, cmd_buffer->cs, padsize);
|
||||
for (unsigned i = 0; i < padsize; i++)
|
||||
radeon_emit(cmd_buffer->cs, PKT2_NOP_PAD);
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
|
Reference in New Issue
Block a user