summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-05-04 05:06:50 -0700
committerRob Clark <[email protected]>2019-05-04 11:50:44 -0700
commit05f5122d4a60acd3890185b098757e3c152c5444 (patch)
treeda56ae21da1e4eb527b6df48c9e2a101edf9898c /src/gallium/drivers
parent11583dc65536f274db68cc5c8cb1a0d7007b0201 (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]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_resource.c2
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: