virgl: don't send a shader create with no data. (v2)
authorDave Airlie <airlied@redhat.com>
Tue, 28 Aug 2018 22:32:29 +0000 (08:32 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 10 Sep 2018 02:23:30 +0000 (12:23 +1000)
commit240af6149477beb06fdcfc4b0295921448c0fe47
treebf71141ba746a2b539dbf5d11e8b0c91ab00245a
parent14fe9fa11baa4e4e782d192e0b8c150ee9e8754f
virgl: don't send a shader create with no data. (v2)

This fixes the situation where we'd send a shader with just the
header and no data.

piglit/glsl-max-varyings test was causing this to happen, and
the renderer fix was breaking it.

v2: drop fprintf

Fixes: a8987b88ff1d "virgl: add driver for virtio-gpu 3D (v2)"
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/gallium/drivers/virgl/virgl_encode.c