mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
radeonsi: clamp cp prefetch size
Limit the size instead of asserting that the size (which comes from the shader bo) is smaller. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15184 Reviewed-by: Marek Olšák <maraeo@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41264>
This commit is contained in:
parent
c1f1b704d9
commit
20b0349b05
1 changed files with 1 additions and 3 deletions
|
|
@ -636,8 +636,7 @@ static void si_cp_dma_prefetch_inline(struct radeon_cmdbuf *cs, uint64_t address
|
|||
{
|
||||
assert(GFX_VERSION >= GFX7);
|
||||
|
||||
if (GFX_VERSION >= GFX11)
|
||||
size = MIN2(size, 32768 - SI_CPDMA_ALIGNMENT);
|
||||
size = MIN2(size, 32768 - SI_CPDMA_ALIGNMENT);
|
||||
|
||||
/* The prefetch address and size must be aligned, so that we don't have to apply
|
||||
* the complicated hw bug workaround.
|
||||
|
|
@ -647,7 +646,6 @@ static void si_cp_dma_prefetch_inline(struct radeon_cmdbuf *cs, uint64_t address
|
|||
*/
|
||||
assert(size % SI_CPDMA_ALIGNMENT == 0);
|
||||
assert(address % SI_CPDMA_ALIGNMENT == 0);
|
||||
assert(size < S_415_BYTE_COUNT(~0u));
|
||||
assert(address || size == 0);
|
||||
|
||||
uint32_t header = S_501_SRC_SEL(V_501_SRC_ADDR_USING_L2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue