radeonsi: don't dma-upload shaders on APUs

We don't have VRAM on APUs, so it's useless.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25941>
This commit is contained in:
Marek Olšák
2023-11-09 21:47:54 -05:00
parent 3f108e7615
commit 09c513a31a
+2 -1
View File
@@ -909,7 +909,8 @@ static bool upload_binary_elf(struct si_screen *sscreen, struct si_shader *shade
return false;
unsigned rx_size = ac_align_shader_binary_for_prefetch(&sscreen->info, binary.rx_size);
bool dma_upload = !(sscreen->debug_flags & DBG(NO_DMA_SHADERS));
bool dma_upload = !(sscreen->debug_flags & DBG(NO_DMA_SHADERS)) &&
sscreen->info.has_dedicated_vram;
si_resource_reference(&shader->bo, NULL);
shader->bo = si_aligned_buffer_create(