r300g: Init regalloc state during context creation
authorTom Stellard <thomas.stellard@amd.com>
Thu, 6 Sep 2012 04:20:27 +0000 (00:20 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 19 Sep 2012 23:25:53 +0000 (19:25 -0400)
commit886a4d4a6ad8a67e02e67d5dd79ae37a592930c6
tree043ecf5faa15433997c83ef958343033b927802f
parent9282adcae9b05399ae0e44881db1f8b0e8368d0a
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.
src/gallium/drivers/r300/compiler/radeon_compiler.c
src/gallium/drivers/r300/compiler/radeon_compiler.h
src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c
src/gallium/drivers/r300/compiler/radeon_regalloc.h [new file with mode: 0644]
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_fs.c
src/gallium/drivers/r300/r300_vs.c