mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
radeonsi: always initialize max_forced_staging_uploads
r600_resource is malloc'd.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103808
Fixes: 4b0dc098b2 ("gallium/u_threaded: don't map big VRAM buffers for the first upload directly")
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
95cd74abd4
commit
b5444877c0
1 changed files with 2 additions and 0 deletions
|
|
@ -190,6 +190,8 @@ void si_init_resource_fields(struct r600_common_screen *rscreen,
|
|||
/* Set expected VRAM and GART usage for the buffer. */
|
||||
res->vram_usage = 0;
|
||||
res->gart_usage = 0;
|
||||
res->max_forced_staging_uploads = 0;
|
||||
res->b.max_forced_staging_uploads = 0;
|
||||
|
||||
if (res->domains & RADEON_DOMAIN_VRAM) {
|
||||
res->vram_usage = size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue