mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 22:40:46 +02:00
nv50-nvc0: set cur_ctx during init if none currently bound
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
f80c03e187
commit
48e191f90c
2 changed files with 4 additions and 0 deletions
|
|
@ -102,6 +102,8 @@ nv50_create(struct pipe_screen *pscreen, void *priv)
|
|||
|
||||
nv50->pipe.flush = nv50_flush;
|
||||
|
||||
if (!screen->cur_ctx)
|
||||
screen->cur_ctx = nv50;
|
||||
screen->base.channel->user_private = nv50;
|
||||
screen->base.channel->flush_notify = nv50_default_flush_notify;
|
||||
|
||||
|
|
|
|||
|
|
@ -101,6 +101,8 @@ nvc0_create(struct pipe_screen *pscreen, void *priv)
|
|||
|
||||
nvc0->pipe.flush = nvc0_flush;
|
||||
|
||||
if (!screen->cur_ctx)
|
||||
screen->cur_ctx = nvc0;
|
||||
screen->base.channel->user_private = nvc0;
|
||||
screen->base.channel->flush_notify = nvc0_default_flush_notify;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue