From: Rob Clark Date: Sat, 4 May 2019 12:06:50 +0000 (-0700) Subject: freedreno: mark imported resources as valid X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05f5122d4a60acd3890185b098757e3c152c5444;p=mesa.git 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 --- 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: