drm-i915: Ensure surface size for clone is initialized.

If the surface had a snapshot, then we would have not initialized the
surface size and so compute a bogus normalization matrix.
This commit is contained in:
Chris Wilson 2010-01-27 19:02:21 +00:00
parent c82ff8cbcf
commit 02f20458d1

View file

@ -1484,13 +1484,12 @@ i915_shader_acquire_surface (i915_shader_t *shader,
src_y = -extents->y;
}
surface_width = image->width;
surface_height = image->height;
_cairo_surface_release_source_image (surface, image, image_extra);
if (unlikely (status))
return status;
surface_width = s->intel.drm.width;
surface_height = s->intel.drm.height;
}
src->type.fragment = FS_TEXTURE;