summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f4c5063)
raw | patch | inline | side by side (parent: f4c5063)
author | Ben Skeggs <skeggsb@beleth.(none)> | |
Wed, 4 Nov 2009 07:31:18 +0000 (17:31 +1000) | ||
committer | Ben Skeggs <skeggsb@beleth.(none)> | |
Wed, 4 Nov 2009 07:31:18 +0000 (17:31 +1000) |
Signed-off-by: Ben Skeggs <skeggsb@beleth.(none)>
libdrm/nouveau/nouveau_pushbuf.c | patch | blob | history |
index df43effcc4c58f11db89e9dd50decfc4a774a218..90250c02e4ae94a2a637c2997742d146e0aa0bb8 100644 (file)
domains |= NOUVEAU_GEM_DOMAIN_VRAM;
if (flags & NOUVEAU_BO_GART)
domains |= NOUVEAU_GEM_DOMAIN_GART;
+
+ if (!(pbbo->valid_domains & domains)) {
+ fprintf(stderr, "no valid domains remain!\n");
+ return -EINVAL;
+ }
pbbo->valid_domains &= domains;
- assert(pbbo->valid_domains);
assert(flags & NOUVEAU_BO_RDWR);
if (flags & NOUVEAU_BO_RD) {