summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2013-04-12 00:22:32 +0100
committerChristoph Bumiller <[email protected]>2013-04-12 17:10:11 +0200
commit48bcb94dc375af17ceee14693c7cb3fdbb7e2151 (patch)
tree39a4a6b581f2d6e075d20b01e789611aa3da2638 /src
parente28c266682fe8ac1c6ba27a90802974c05c35dde (diff)
nvc0: bail out early during nve4_compute_setup()
Exit gracefully rather than trying to create a random object, whenever the chipset is unknown Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nvc0/nve4_compute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nve4_compute.c b/src/gallium/drivers/nvc0/nve4_compute.c
index 255053072e4..7ea61e809d1 100644
--- a/src/gallium/drivers/nvc0/nve4_compute.c
+++ b/src/gallium/drivers/nvc0/nve4_compute.c
@@ -51,7 +51,7 @@ nve4_screen_compute_setup(struct nvc0_screen *screen,
break;
default:
NOUVEAU_ERR("unsupported chipset: NV%02x\n", dev->chipset);
- break;
+ return -1;
}
ret = nouveau_object_new(chan, 0xbeef00c0, obj_class, NULL, 0,