mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 05:40:13 +01:00
radeonsi: Don't assert src_va != 0 with CP_DMA_CLEAR
CP_DMA_CLEAR just clears the destination, which doesn't require a valid
source address.
Fixes spurious assertion failures running xserver build tests (with
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34958 also
applied).
Fixes: a1b8c6c404 ("radeosi: assert addresses are not NULL in a couple of places")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35718>
This commit is contained in:
parent
ef91ad64d5
commit
ac8dc19512
1 changed files with 7 additions and 1 deletions
|
|
@ -46,7 +46,13 @@ static void si_emit_cp_dma(struct si_context *sctx, struct radeon_cmdbuf *cs, ui
|
|||
|
||||
assert(sctx->screen->info.has_cp_dma);
|
||||
assert(size <= cp_dma_max_byte_count(sctx));
|
||||
assert(size == 0 || (src_va && dst_va));
|
||||
|
||||
if (size) {
|
||||
assert(dst_va);
|
||||
|
||||
if (!(flags & CP_DMA_CLEAR))
|
||||
assert(src_va);
|
||||
}
|
||||
|
||||
if (sctx->gfx_level >= GFX9)
|
||||
command |= S_415_BYTE_COUNT_GFX9(size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue