summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/virgl/virgl_texture.c
diff options
context:
space:
mode:
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>2019-06-27 10:48:50 +0300
committerChia-I Wu <olvaffe@gmail.com>2019-06-28 04:30:02 +0000
commit7da90a7cc909f691f97473be1e864aeccd5a587b (patch)
tree0df785ecf4204ebd38b15e9f1fd076e3a75a0239 /src/gallium/drivers/virgl/virgl_texture.c
parent5388be039bc8dc4c0ed2875d0ca35c6f37053948 (diff)
virgl: Don't allow creating staging pipe_resources
Staging buffers are now created directly by the virgl_staging_mgr. We don't need to support creating staging pipe_resources. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_texture.c')
-rw-r--r--src/gallium/drivers/virgl/virgl_texture.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c
index 8a85a28cec4..f33b3f8808d 100644
--- a/src/gallium/drivers/virgl/virgl_texture.c
+++ b/src/gallium/drivers/virgl/virgl_texture.c
@@ -313,14 +313,8 @@ static void virgl_texture_transfer_unmap(struct pipe_context *ctx,
{
struct virgl_context *vctx = virgl_context(ctx);
struct virgl_transfer *trans = virgl_transfer(transfer);
- struct virgl_screen *vs = virgl_screen(ctx->screen);
- struct pipe_resource *res = transfer->resource;
bool queue_unmap = false;
- /* We don't transfer the contents of staging resources, since they don't
- * have any host-side storage. */
- assert(pipe_to_virgl_bind(vs, res->bind, res->flags) != VIRGL_BIND_STAGING);
-
if (transfer->usage & PIPE_TRANSFER_WRITE &&
(transfer->usage & PIPE_TRANSFER_FLUSH_EXPLICIT) == 0) {