projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2b4465
)
qxl: fix bug with object eviction and update area
author
Dave Airlie
<airlied@redhat.com>
Thu, 9 May 2013 04:07:10 +0000
(
05:07
+0100)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 17 May 2013 01:45:46 +0000
(11:45 +1000)
if the surface is evicted, this validation will happen
to the wrong place, I noticed this with other work I was
doing, haven't seen it go wrong in practice.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_ioctl.c
b/drivers/gpu/drm/qxl/qxl_ioctl.c
index 04b64f9cbfdb94b2c6dc1fa5e09a2df1c2b0b2cc..6db7370373ea4782b3ccc85c9a31a732d907b66b 100644
(file)
--- a/
drivers/gpu/drm/qxl/qxl_ioctl.c
+++ b/
drivers/gpu/drm/qxl/qxl_ioctl.c
@@
-294,6
+294,7
@@
static int qxl_update_area_ioctl(struct drm_device *dev, void *data,
goto out;
if (!qobj->pin_count) {
+ qxl_ttm_placement_from_domain(qobj, qobj->type);
ret = ttm_bo_validate(&qobj->tbo, &qobj->placement,
true, false);
if (unlikely(ret))