[Mesa-dev] [PATCH 6/6] st/egl: fix drm surface size init

Lucas Stach l.stach at pengutronix.de
Wed Nov 6 08:22:56 PST 2013


Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 src/gallium/state_trackers/egl/drm/modeset.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/egl/drm/modeset.c b/src/gallium/state_trackers/egl/drm/modeset.c
index dc71a761053b..11b6db1949c6 100644
--- a/src/gallium/state_trackers/egl/drm/modeset.c
+++ b/src/gallium/state_trackers/egl/drm/modeset.c
@@ -311,7 +311,8 @@ drm_display_create_surface_from_resource(struct native_display *ndpy,
          PIPE_BIND_SAMPLER_VIEW |
          PIPE_BIND_DISPLAY_TARGET |
          PIPE_BIND_SCANOUT);
-   
+
+   resource_surface_set_size(drmsurf->rsurf, drmsurf->width, drmsurf->height);
    resource_surface_import_resource(drmsurf->rsurf, natt, resource);
 
    drmsurf->base.destroy = drm_surface_destroy;
-- 
1.8.4.rc3



More information about the mesa-dev mailing list