projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95cd74a
)
radeonsi: always initialize max_forced_staging_uploads
author
Marek Olšák
<marek.olsak@amd.com>
Fri, 24 Nov 2017 21:08:03 +0000
(22:08 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Mon, 27 Nov 2017 13:12:38 +0000
(14:12 +0100)
r600_resource is malloc'd.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103808
Fixes:
4b0dc098b256
("gallium/u_threaded: don't map big VRAM buffers for the first upload directly")
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeon/r600_buffer_common.c
b/src/gallium/drivers/radeon/r600_buffer_common.c
index
770f4e9
..
3e476f7
100644
(file)
--- a/
src/gallium/drivers/radeon/r600_buffer_common.c
+++ b/
src/gallium/drivers/radeon/r600_buffer_common.c
@@
-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;