summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2016-11-02 19:48:35 +0900
committerMichel Dänzer <[email protected]>2016-11-04 16:49:39 +0900
commit356458363d1ee590fe05afb37ca502c2dd733666 (patch)
tree63c332b0ed1093f394b2d0bf6a4f45307be272bb /src/gallium/winsys
parent6f844a30c1616eac4955134ff130aad699a8079c (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]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_surface.c2
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;