virgl: Set bind when creating temp resource.
authorLepton Wu <lepton@chromium.org>
Mon, 8 Apr 2019 16:39:46 +0000 (09:39 -0700)
committerGurchetan Singh <gurchetansingh@chromium.org>
Wed, 10 Apr 2019 02:25:25 +0000 (19:25 -0700)
commit1f063c0bfbc4451f2d7f08e3b4f6eb8b15007966
tree2b1d8ccf48162a8befabc40901e709d1ae8b68da
parent028ce527395642b68612d10c6030be5d4706a65e
virgl: Set bind when creating temp resource.

virgl render complains about "Illegal resource" when running
dEQP-EGL.functional.color_clears.single_context.gles2.rgb888_window,
the reason is that a zero bind value was given for temp resource.

Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/gallium/drivers/virgl/virgl_texture.c