mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 03:10:09 +01:00
nouveau: turn another assertion into an error
Signed-off-by: Ben Skeggs <skeggsb@beleth.(none)>
This commit is contained in:
parent
f4c5063026
commit
b7ed162d29
1 changed files with 5 additions and 1 deletions
|
|
@ -87,8 +87,12 @@ nouveau_pushbuf_emit_reloc(struct nouveau_channel *chan, void *ptr,
|
|||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue