mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-04-19 19:40:39 +02:00
nv40: fail completely if we don't have a ctxprog for the chipset
This commit is contained in:
parent
a4ac60a102
commit
084e143d0c
1 changed files with 7 additions and 10 deletions
|
|
@ -1982,20 +1982,17 @@ nv40_graph_init(struct drm_device *dev)
|
|||
default:
|
||||
DRM_ERROR("Context program for 0x%02x unavailable\n",
|
||||
dev_priv->chipset);
|
||||
ctx_prog = NULL;
|
||||
break;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Load the context program onto the card */
|
||||
if (ctx_prog) {
|
||||
DRM_DEBUG("Loading context program\n");
|
||||
i = 0;
|
||||
DRM_DEBUG("Loading context program\n");
|
||||
|
||||
NV_WRITE(NV40_PGRAPH_CTXCTL_UCODE_INDEX, 0);
|
||||
while (ctx_prog[i] != ~0) {
|
||||
NV_WRITE(NV40_PGRAPH_CTXCTL_UCODE_DATA, ctx_prog[i]);
|
||||
i++;
|
||||
}
|
||||
i = 0;
|
||||
NV_WRITE(NV40_PGRAPH_CTXCTL_UCODE_INDEX, 0);
|
||||
while (ctx_prog[i] != ~0) {
|
||||
NV_WRITE(NV40_PGRAPH_CTXCTL_UCODE_DATA, ctx_prog[i]);
|
||||
i++;
|
||||
}
|
||||
|
||||
/* No context present currently */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue