From 3afabfb929cf24a783c10c99bf0d86245e70a94a Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Tue, 13 Sep 2011 23:10:35 +0200 Subject: nvc0: hook up to new shader code generator Also includes loading of shared shader library code (used for f64 and integer division) and setting up the immediate array buffer which is appended to the code. --- src/gallium/drivers/nvc0/nvc0_context.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/nvc0/nvc0_context.c') diff --git a/src/gallium/drivers/nvc0/nvc0_context.c b/src/gallium/drivers/nvc0/nvc0_context.c index 360afbb943e..8fa1675902e 100644 --- a/src/gallium/drivers/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nvc0/nvc0_context.c @@ -152,6 +152,9 @@ nvc0_create(struct pipe_screen *pscreen, void *priv) nouveau_context_init_vdec(&nvc0->base); + /* shader builtin library is per-screen, but we need a context for m2mf */ + nvc0_program_library_upload(nvc0); + return pipe; } -- cgit v1.2.3