From 05f5122d4a60acd3890185b098757e3c152c5444 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 4 May 2019 05:06:50 -0700 Subject: [PATCH] freedreno: mark imported resources as valid If someone is importing a buffer, we can't really know the state of it's contents, so assume it is valid. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_resource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 1f0bb040c24..7108ed18776 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -1096,6 +1096,8 @@ fd_resource_from_handle(struct pipe_screen *pscreen, /* failure is expected in some cases.. */ } + rsc->valid = true; + return prsc; fail: -- 2.30.2