struct pipe_surface *dsv =
svga_validate_surface_view(svga, svga_surface_dst);
- if (!dsv)
+ if (!dsv) {
+ pipe_surface_reference(&surface, NULL);
return;
+ }
if (box->x == 0 && box->y == 0 && box->width == surface->width &&
box->height == surface->height) {
struct pipe_surface *rtv =
svga_validate_surface_view(svga, svga_surface_dst);
- if (!rtv)
+ if (!rtv) {
+ pipe_surface_reference(&surface, NULL);
return;
+ }
if (box->x == 0 && box->y == 0 && box->width == surface->width &&
box->height == surface->height) {
}
}
}
+ pipe_surface_reference(&surface, NULL);
}
/**