summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-09-12 16:28:34 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-09-12 16:28:34 +0200
commit861b26578cd5e497fb506ad5952fa62bd03ea201 (patch)
tree1446273a22a6579ddfa17bf216e2a3db14ef3288 /libdrm
parent191e284709ee792a32124e96e43d5876406b93dc (diff)
Use lazy fence wait when possible even for RW fences. Saves some CPU.
Lindent.
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drm.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index 2ea6656f..3a23eae2 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -2995,11 +2995,19 @@ int drmAddValidateItem(drmBOList *list, drmBO *buf, unsigned flags,
if (!memFlags) {
drmMsg("Incompatible memory location requests "
"on validate list.\n");
+ drmMsg("Previous flag: 0x%08lx, mask: 0x%08lx\n",
+ cur->arg0, cur->arg1);
+ drmMsg("Current flag: 0x%08lx, mask: 0x%08lx\n",
+ flags, mask);
return -EINVAL;
}
- if ((cur->arg1 | mask) & ~DRM_BO_MASK_MEM & (cur->arg0 ^ flags)) {
+ if (mask & cur->arg1 & ~DRM_BO_MASK_MEM & (cur->arg0 ^ flags)) {
drmMsg("Incompatible buffer flag requests "
- " on validate list.\n");
+ "on validate list.\n");
+ drmMsg("Previous flag: 0x%08lx, mask: 0x%08lx\n",
+ cur->arg0, cur->arg1);
+ drmMsg("Current flag: 0x%08lx, mask: 0x%08lx\n",
+ flags, mask);
return -EINVAL;
}
cur->arg1 |= mask;