diff options
author | Rob Herring <[email protected]> | 2016-05-20 12:51:00 -0500 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-05-21 06:07:18 +1000 |
commit | 2235b80f2a7d005db1f10a01650071bf8a2ffd8a (patch) | |
tree | 9e7d4b9b97df1a9e0b8f25d2b9c90e1123152d23 /src/gallium/drivers | |
parent | 12dc89d8440691d29c5b1b13fa8eb67149910c2b (diff) |
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 <[email protected]>
Cc: Dave Airlie <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 * |