summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2019-05-04 05:06:50 -0700
committerSumit Semwal <sumit.semwal@linaro.org>2019-05-10 11:19:00 +0530
commit1df0ef3968b8b3753075587355291e27614515d5 (patch)
tree03b0ffaf19a5476cd2dfd93a6fac28ffb16a7707
parent28918e2e6ee3d652219bfc6870786eedfad64b09 (diff)
UPSTREAM: freedreno: mark imported resources as valid
commit 05f5122d4a60acd3890185b098757e3c152c5444 upstream. If someone is importing a buffer, we can't really know the state of it's contents, so assume it is valid. Change-Id: I0af7259357a14b285eb31d937c2542ba32904ea7 Signed-off-by: Rob Clark <robdclark@chromium.org> Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-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 c7436d74da0..d18454c5cd0 100644
--- a/src/gallium/drivers/freedreno/freedreno_resource.c
+++ b/src/gallium/drivers/freedreno/freedreno_resource.c
@@ -1087,6 +1087,8 @@ fd_resource_from_handle(struct pipe_screen *pscreen,
/* failure is expected in some cases.. */
}
+ rsc->valid = true;
+
return prsc;
fail: