mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
radeon/vce: adjust the buffer offset when relocation is used
We don't plan to use sub-allocated buffers with VCE, 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
13cb41f666
commit
a48bf02d05
1 changed files with 1 additions and 0 deletions
|
|
@ -549,6 +549,7 @@ void rvce_add_buffer(struct rvce_encoder *enc, struct pb_buffer *buf,
|
|||
RVCE_CS(addr >> 32);
|
||||
RVCE_CS(addr);
|
||||
} else {
|
||||
offset += enc->ws->buffer_get_virtual_address(buf);
|
||||
RVCE_CS(reloc_idx * 4);
|
||||
RVCE_CS(offset);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue