From 2235b80f2a7d005db1f10a01650071bf8a2ffd8a Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Fri, 20 May 2016 12:51:00 -0500 Subject: virgl: Add missing texture transfer_inline_write MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/drivers/virgl/virgl_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/virgl/virgl_texture.c') 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 * -- cgit v1.2.3