diff options
author | Dave Airlie <[email protected]> | 2017-08-14 07:01:54 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-08-15 01:35:58 +0100 |
commit | e0edfadec81516186b3bf64bcca48f5a7683dee2 (patch) | |
tree | 87341fa2c2897ad3148a6b3b14bc7ffc3fdc00ad /src/gallium | |
parent | de0e62e1065e2d9172acf3ab7c70bba0160125c8 (diff) |
radeonsi: initialise imported surface to 0.
For memobj imports we weren't setting the surface to 0, which
meant sometimes we'd end up with tile_swizzle garbage, which
would corrupt rendering.
This seems to fix the image corruption on the imported memory
objects in vrdashboard for me.
Reviewed-by: Marek Olšák <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 176896f86c1..deedfaff366 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -2913,7 +2913,7 @@ r600_texture_from_memobj(struct pipe_screen *screen, struct r600_common_screen *rscreen = (struct r600_common_screen*)screen; struct r600_memory_object *memobj = (struct r600_memory_object *)_memobj; struct r600_texture *rtex; - struct radeon_surf surface; + struct radeon_surf surface = {}; struct radeon_bo_metadata metadata = {}; enum radeon_surf_mode array_mode; bool is_scanout; |