diff options
author | Tom Stellard <[email protected]> | 2012-09-06 00:20:27 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-09-19 19:25:53 -0400 |
commit | 886a4d4a6ad8a67e02e67d5dd79ae37a592930c6 (patch) | |
tree | 043ecf5faa15433997c83ef958343033b927802f /src/gallium/drivers/r300/r300_vs.c | |
parent | 9282adcae9b05399ae0e44881db1f8b0e8368d0a (diff) |
r300g: Init regalloc state during context creation
Initializing the regalloc state is expensive, and since it is always
the same for every compile we only need to initialize it once per
context. This should help improve shader compile times for the driver.
Diffstat (limited to 'src/gallium/drivers/r300/r300_vs.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_vs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_vs.c b/src/gallium/drivers/r300/r300_vs.c index 4faf2b58b0f..ea0621e2d3e 100644 --- a/src/gallium/drivers/r300/r300_vs.c +++ b/src/gallium/drivers/r300/r300_vs.c @@ -210,7 +210,7 @@ void r300_translate_vertex_shader(struct r300_context *r300, /* Setup the compiler */ memset(&compiler, 0, sizeof(compiler)); - rc_init(&compiler.Base); + rc_init(&compiler.Base, NULL); DBG_ON(r300, DBG_VP) ? compiler.Base.Debug |= RC_DBG_LOG : 0; DBG_ON(r300, DBG_P_STAT) ? compiler.Base.Debug |= RC_DBG_STATS : 0; |