freedreno: mark imported resources as valid
authorRob Clark <robdclark@chromium.org>
Sat, 4 May 2019 12:06:50 +0000 (05:06 -0700)
committerRob Clark <robdclark@chromium.org>
Sat, 4 May 2019 18:50:44 +0000 (11:50 -0700)
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 <robdclark@chromium.org>
src/gallium/drivers/freedreno/freedreno_resource.c

index 1f0bb040c2414a622478c09a897ba236b0db3651..7108ed18776355031c776c5c15329c4f5c31d9b8 100644 (file)
@@ -1096,6 +1096,8 @@ fd_resource_from_handle(struct pipe_screen *pscreen,
                /* failure is expected in some cases.. */
        }
 
+       rsc->valid = true;
+
        return prsc;
 
 fail: