summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/radeon_mesa_to_rc.c
diff options
context:
space:
mode:
authorNicolai Hähnle <nhaehnle@gmail.com>2009-10-04 11:25:48 +0200
committerNicolai Hähnle <nhaehnle@gmail.com>2009-10-04 11:41:03 +0200
commit995135479d5662d1b1970c0f233c3c3d944d8b4d (patch)
treeaeb970382ebbd1ad2127d8a09c2aeb5d21b3147e /src/mesa/drivers/dri/r300/radeon_mesa_to_rc.c
parente6b137dcce58ca074458b184304573613917553f (diff)
r300/compiler: Refactor to allow different instruction types
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/r300/radeon_mesa_to_rc.c')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_mesa_to_rc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_mesa_to_rc.c b/src/mesa/drivers/dri/r300/radeon_mesa_to_rc.c
index fb9bb9ce91..9f9dec840b 100644
--- a/src/mesa/drivers/dri/r300/radeon_mesa_to_rc.c
+++ b/src/mesa/drivers/dri/r300/radeon_mesa_to_rc.c
@@ -152,25 +152,25 @@ static void translate_instruction(struct radeon_compiler * c,
const struct rc_opcode_info * opcode;
unsigned int i;
- dest->I.Opcode = translate_opcode(src->Opcode);
- if (dest->I.Opcode == RC_OPCODE_ILLEGAL_OPCODE) {
+ dest->U.I.Opcode = translate_opcode(src->Opcode);
+ if (dest->U.I.Opcode == RC_OPCODE_ILLEGAL_OPCODE) {
rc_error(c, "Unsupported opcode %i\n", src->Opcode);
return;
}
- dest->I.SaturateMode = translate_saturate(src->SaturateMode);
+ dest->U.I.SaturateMode = translate_saturate(src->SaturateMode);
- opcode = rc_get_opcode_info(dest->I.Opcode);
+ opcode = rc_get_opcode_info(dest->U.I.Opcode);
for(i = 0; i < opcode->NumSrcRegs; ++i)
- translate_srcreg(&dest->I.SrcReg[i], &src->SrcReg[i]);
+ translate_srcreg(&dest->U.I.SrcReg[i], &src->SrcReg[i]);
if (opcode->HasDstReg)
- translate_dstreg(&dest->I.DstReg, &src->DstReg);
+ translate_dstreg(&dest->U.I.DstReg, &src->DstReg);
if (opcode->HasTexture) {
- dest->I.TexSrcUnit = src->TexSrcUnit;
- dest->I.TexSrcTarget = translate_tex_target(src->TexSrcTarget);
- dest->I.TexShadow = src->TexShadow;
+ dest->U.I.TexSrcUnit = src->TexSrcUnit;
+ dest->U.I.TexSrcTarget = translate_tex_target(src->TexSrcTarget);
+ dest->U.I.TexShadow = src->TexShadow;
}
}