diff options
author | Corbin Simpson <[email protected]> | 2009-07-22 23:58:35 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-07-23 00:00:28 -0700 |
commit | 07961bb05e5ba05205b9f53834863664f1023870 (patch) | |
tree | 9ac4af62bf551fdb8ce95060d7f1cd3058ece667 /src/gallium/drivers/r300/r300_fs.c | |
parent | 895c435defa83f49b2145f316a7d8d203b2fe374 (diff) |
r300g: Actually mark shaders as translated/untranslated.
Also trust that Gallium will not give us TGSI that miscounts shader consts.
This creates a 20x speedup on glxgears, from 8 FPS to 160 FPS.
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_fs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c index 8672e211bc4..ca8ef999024 100644 --- a/src/gallium/drivers/r300/r300_fs.c +++ b/src/gallium/drivers/r300/r300_fs.c @@ -105,4 +105,7 @@ void r300_translate_fragment_shader(struct r300_context* r300, tgsi_parse_free(&parser); FREE(assembler); + + /* And, finally... */ + fs->translated = TRUE; } |