Mesa (master): virgl: Remove incorrect resource wait condition

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jun 8 04:55:13 UTC 2019


Module: Mesa
Branch: master
Commit: e34f79c9182f0beafaec6d254df168515e219568
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e34f79c9182f0beafaec6d254df168515e219568

Author: Alexandros Frantzis <alexandros.frantzis at collabora.com>
Date:   Tue May 28 00:06:03 2019 +0300

virgl: Remove incorrect resource wait condition

Now that we have copy transfers in place, we can remove the incorrect
resource wait condition. Copy transfers and other optimizations minimize
the performance impact of this removal, while providing the correct
behavior.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis at collabora.com>
Reviewed-by: Chia-I Wu <olvaffe at gmail.com>

---

 src/gallium/drivers/virgl/virgl_resource.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/gallium/drivers/virgl/virgl_resource.c b/src/gallium/drivers/virgl/virgl_resource.c
index 897e0c16c7e..879c3fb359a 100644
--- a/src/gallium/drivers/virgl/virgl_resource.c
+++ b/src/gallium/drivers/virgl/virgl_resource.c
@@ -155,19 +155,6 @@ virgl_resource_transfer_prepare(struct virgl_context *vctx,
          flush = true;
    }
 
-   /* XXX This is incorrect and will be removed.  Consider
-    *
-    *   glTexImage2D(..., data1);
-    *   glDrawArrays();
-    *   glFlush();
-    *   glTexImage2D(..., data2);
-    *
-    * readback and flush are both false in the second glTexImage2D call.  The
-    * draw call might end up seeing data2.  Same applies to buffers with
-    * glBufferSubData.
-    */
-   wait = flush || readback;
-
    if (flush)
       vctx->base.flush(&vctx->base, NULL, 0);
 




More information about the mesa-commit mailing list