virgl/vtest-winsys: Use virgl version of bind flags
authorGert Wollny <gert.wollny@collabora.com>
Thu, 1 Nov 2018 09:49:58 +0000 (10:49 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Fri, 2 Nov 2018 10:53:09 +0000 (11:53 +0100)
The bind flags defined by mesa/gallium might not always be in sync
with the ones copied to virglrenderer/gallium. Therefore, use the
flags defined in virgl like it is done for all the other calls to
create resources.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c

index a589f694bb041d5987842cc5c4f3ea4bd48359a3..f44d4d74ff1836d5c9d6b7f22674a2224b5ec4bb 100644 (file)
@@ -559,7 +559,7 @@ virgl_cs_create_fence(struct virgl_winsys *vws)
    res = virgl_vtest_winsys_resource_cache_create(vws,
                                                 PIPE_BUFFER,
                                                 PIPE_FORMAT_R8_UNORM,
-                                                PIPE_BIND_CUSTOM,
+                                                VIRGL_BIND_CUSTOM,
                                                 8, 1, 1, 0, 0, 0, 8);
 
    return (struct pipe_fence_handle *)res;