From: Rob Herring Date: Fri, 20 May 2016 17:51:00 +0000 (-0500) Subject: virgl: Add missing texture transfer_inline_write X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2235b80f2a7d005db1f10a01650071bf8a2ffd8a;p=mesa.git virgl: Add missing texture transfer_inline_write transfer_inline_write cannot be NULL and the virgl renderer doesn't support inline writes for textures, so add the default version. This fixes a crash in st_TexSubImage since commit fb9fe352ea41 ("st/mesa: use transfer_inline_write for memcpy TexSubImage path"). Cc: Marek Olšák Cc: Dave Airlie Signed-off-by: Rob Herring Signed-off-by: Dave Airlie --- diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c index f395f1f4a66..34db0560fe9 100644 --- a/src/gallium/drivers/virgl/virgl_texture.c +++ b/src/gallium/drivers/virgl/virgl_texture.c @@ -304,7 +304,7 @@ static const struct u_resource_vtbl virgl_texture_vtbl = virgl_texture_transfer_map, /* transfer_map */ NULL, /* transfer_flush_region */ virgl_texture_transfer_unmap, /* transfer_unmap */ - NULL /* transfer_inline_write */ + u_default_transfer_inline_write /* transfer_inline_write */ }; struct pipe_resource *