diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2008-06-14 23:09:15 +0200 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2008-06-14 23:09:15 +0200 |
commit | 43da1189610fcaa5ade69620734a7b1e5caf84c4 (patch) | |
tree | 2c0b06af3d078b6bf6ed4cd20d5a0f803079da35 /src/mesa/drivers/dri/r300/r300_fragprog.c | |
parent | 825fdfd0c1fc9c82c8a880dea62a7fffc15d7373 (diff) |
r300: Add radeonTransformALU and fix a bug in r300_fragprog DPH
This new generic transform replaces "special" instructions by more generic
variants. Hopefully, we will be able to share this code between r300 and r500.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_fragprog.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_fragprog.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_fragprog.c b/src/mesa/drivers/dri/r300/r300_fragprog.c index f8cc3ae772..6d24d266fe 100644 --- a/src/mesa/drivers/dri/r300/r300_fragprog.c +++ b/src/mesa/drivers/dri/r300/r300_fragprog.c @@ -49,6 +49,8 @@ #include "r300_fragprog.h" #include "r300_state.h" +#include "radeon_program_alu.h" + static void reset_srcreg(struct prog_src_register* reg) { @@ -396,12 +398,13 @@ void r300TranslateFragmentShader(r300ContextPtr r300, insert_WPOS_trailer(&compiler); - struct radeon_program_transformation transformations[1] = { - { &transform_TEX, &compiler } + struct radeon_program_transformation transformations[] = { + { &transform_TEX, &compiler }, + { &radeonTransformALU, 0 } }; radeonClauseLocalTransform(&compiler.compiler, &compiler.compiler.Clauses[0], - 1, transformations); + 2, transformations); if (RADEON_DEBUG & DEBUG_PIXEL) { _mesa_printf("Compiler state after transformations:\n"); |