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 <robdclark@chromium.org>
This commit is contained in:
Rob Clark 2019-05-04 05:06:50 -07:00
parent 11583dc655
commit 05f5122d4a

View 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: