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)
commit2235b80f2a7d005db1f10a01650071bf8a2ffd8a
tree9e7d4b9b97df1a9e0b8f25d2b9c90e1123152d23
parent12dc89d8440691d29c5b1b13fa8eb67149910c2b
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 <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