virgl: Add missing texture transfer_inline_write
authorRob Herring <robh@kernel.org>
Fri, 20 May 2016 17:51:00 +0000 (12:51 -0500)
committerDave Airlie <airlied@redhat.com>
Fri, 20 May 2016 20:07:18 +0000 (06:07 +1000)
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 <marek.olsak@amd.com>
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/virgl/virgl_texture.c

index f395f1f4a666ff5f8da310862d7f9985f9dbbaaa..34db0560fe97706f9ff9e22fdb90845008ef720e 100644 (file)
@@ -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 *