mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
winsys/amdgpu: don't use 32-bit address space for IBs
We run out of the 32-bit address space and then we crash. Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33482>
This commit is contained in:
parent
e468321bee
commit
c96f7a079f
1 changed files with 3 additions and 10 deletions
|
|
@ -707,20 +707,13 @@ static bool amdgpu_ib_new_buffer(struct amdgpu_winsys *aws,
|
|||
unsigned flags = RADEON_FLAG_NO_INTERPROCESS_SHARING |
|
||||
RADEON_FLAG_GL2_BYPASS;
|
||||
|
||||
if (acs->ip_type == AMD_IP_GFX ||
|
||||
acs->ip_type == AMD_IP_COMPUTE ||
|
||||
acs->ip_type == AMD_IP_SDMA) {
|
||||
/* Avoids hangs with "rendercheck -t cacomposite -f a8r8g8b8" via glamor
|
||||
* on Navi 14
|
||||
*/
|
||||
flags |= RADEON_FLAG_32BIT;
|
||||
}
|
||||
|
||||
pb = amdgpu_bo_create(aws, buffer_size,
|
||||
aws->info.gart_page_size,
|
||||
domain, (radeon_bo_flag)flags);
|
||||
if (!pb)
|
||||
if (!pb) {
|
||||
fprintf(stderr, "amdgpu: failed to create IB buffer: size=%u\n", buffer_size);
|
||||
return false;
|
||||
}
|
||||
|
||||
mapped = (uint8_t*)amdgpu_bo_map(&aws->dummy_sws.base, pb, NULL, PIPE_MAP_WRITE);
|
||||
if (!mapped) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue