diff options
author | Michel Dänzer <[email protected]> | 2016-11-02 19:48:35 +0900 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2016-11-04 16:49:39 +0900 |
commit | 356458363d1ee590fe05afb37ca502c2dd733666 (patch) | |
tree | 63c332b0ed1093f394b2d0bf6a4f45307be272bb | |
parent | 6f844a30c1616eac4955134ff130aad699a8079c (diff) |
gallium/radeon: Use flags parameter in radeon_winsys_surface_init
Fixes valgrind warnings about surf_ws->flags being uninitialized while
starting X.
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c index 7b85973bf44..6836a1ba3ad 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c @@ -228,7 +228,7 @@ static int radeon_winsys_surface_init(struct radeon_winsys *rws, surf_winsys_to_drm(&surf_drm, tex, flags, bpe, mode, surf_ws); - if (!(surf_ws->flags & RADEON_SURF_IMPORTED)) { + if (!(flags & RADEON_SURF_IMPORTED)) { r = radeon_surface_best(ws->surf_man, &surf_drm); if (r) return r; |