mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
r300: check buffer sizes in non-tcl case + set correct VRAM limits
This commit is contained in:
parent
258686a973
commit
e757bf964f
2 changed files with 4 additions and 1 deletions
|
|
@ -490,6 +490,9 @@ static GLboolean r300RunNonTCLRender(GLcontext * ctx,
|
|||
if (!(rmesa->radeon.radeonScreen->chip_flags & RADEON_CHIPSET_TCL))
|
||||
return GL_TRUE;
|
||||
|
||||
if (!r300ValidateBuffers(ctx))
|
||||
return GL_TRUE;
|
||||
|
||||
return r300RunRender(ctx, stage);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1094,7 +1094,7 @@ void rcommonInitCmdBuf(radeonContextPtr rmesa)
|
|||
|
||||
if (!drmCommandWriteRead(rmesa->dri.fd, DRM_RADEON_GEM_INFO, &mminfo, sizeof(mminfo)))
|
||||
{
|
||||
radeon_cs_set_limit(rmesa->cmdbuf.cs, RADEON_GEM_DOMAIN_VRAM, mminfo.vram_size);
|
||||
radeon_cs_set_limit(rmesa->cmdbuf.cs, RADEON_GEM_DOMAIN_VRAM, mminfo.vram_visible);
|
||||
radeon_cs_set_limit(rmesa->cmdbuf.cs, RADEON_GEM_DOMAIN_GTT, mminfo.gart_size);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue