mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
radeon/uvd: adjust the buffer offset when relocation is used
We don't plan to use sub-allocated buffers with UVD, but just in case one slips through, this increases the chances of things working out anyway. Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
a48bf02d05
commit
3e7cced4b9
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ static void send_cmd(struct ruvd_decoder *dec, unsigned cmd,
|
|||
set_reg(dec, RUVD_GPCOM_VCPU_DATA0, addr);
|
||||
set_reg(dec, RUVD_GPCOM_VCPU_DATA1, addr >> 32);
|
||||
} else {
|
||||
off += dec->ws->buffer_get_virtual_address(buf);
|
||||
set_reg(dec, RUVD_GPCOM_VCPU_DATA0, off);
|
||||
set_reg(dec, RUVD_GPCOM_VCPU_DATA1, reloc_idx * 4);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue