diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2007-03-18 13:29:18 +0100 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2007-03-19 18:38:07 +0100 |
commit | ff6ab9b45b180ab9bf261afa50888e6e740d7924 (patch) | |
tree | f6c2aeaf748b35f20d798890453e4e1b5b33ddf0 /src/mesa/drivers/dri/r300/r300_context.h | |
parent | ec1a77c86481d7f77542fbecda0e81b74732c90f (diff) | |
download | external_mesa3d-ff6ab9b45b180ab9bf261afa50888e6e740d7924.zip external_mesa3d-ff6ab9b45b180ab9bf261afa50888e6e740d7924.tar.gz external_mesa3d-ff6ab9b45b180ab9bf261afa50888e6e740d7924.tar.bz2 |
r300: Fix fragment program reordering
Do not move an instruction that writes to a temp forward past an instruction
that reads the same temporary.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h index bc43953..29436ab 100644 --- a/src/mesa/drivers/dri/r300/r300_context.h +++ b/src/mesa/drivers/dri/r300/r300_context.h @@ -674,6 +674,11 @@ struct reg_lifetime { emitted instruction that writes to the register */ int vector_valid; int scalar_valid; + + /* Index to the slot where the register was last read. + This is also the first slot in which the register may be written again */ + int vector_lastread; + int scalar_lastread; }; |