diff options
author | Rob Clark <[email protected]> | 2019-05-04 05:06:50 -0700 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-05-04 11:50:44 -0700 |
commit | 05f5122d4a60acd3890185b098757e3c152c5444 (patch) | |
tree | da56ae21da1e4eb527b6df48c9e2a101edf9898c | |
parent | 11583dc65536f274db68cc5c8cb1a0d7007b0201 (diff) |
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 <[email protected]>
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |