summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200/r200_vertprog.c
diff options
context:
space:
mode:
authorTilman Sauerbeck <[email protected]>2006-06-18 14:07:10 +0000
committerTilman Sauerbeck <[email protected]>2006-06-18 14:07:10 +0000
commit11fceb19d3aa6adf9fe103ad733b37a69229caec (patch)
tree77df988aba6609c6d707971d1e9fc10d45505843 /src/mesa/drivers/dri/r200/r200_vertprog.c
parent16d1024f27695bd9ceb86ffcdda960396a23ed2c (diff)
no need to handle ARL in a special way, it's a generic scalar operation. only tested on r300.
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_vertprog.c')
-rw-r--r--src/mesa/drivers/dri/r200/r200_vertprog.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_vertprog.c b/src/mesa/drivers/dri/r200/r200_vertprog.c
index 615953b6100..9e651aa7d10 100644
--- a/src/mesa/drivers/dri/r200/r200_vertprog.c
+++ b/src/mesa/drivers/dri/r200/r200_vertprog.c
@@ -311,6 +311,10 @@ static unsigned long t_opcode(enum prog_opcode opcode)
switch(opcode){
case OPCODE_ADD: return R200_VPI_OUT_OP_ADD;
+ /* FIXME: ARL works fine, but negative offsets won't work - fglrx just
+ * seems to ignore neg offsets which isn't quite correct...
+ */
+ case OPCODE_ARL: return R200_VPI_OUT_OP_ARL;
case OPCODE_DP4: return R200_VPI_OUT_OP_DOT;
case OPCODE_DST: return R200_VPI_OUT_OP_DST;
case OPCODE_EX2: return R200_VPI_OUT_OP_EX2;
@@ -652,16 +656,6 @@ static GLboolean r200_translate_vertex_program(struct r200_vertex_program *vp)
/* These ops need special handling. */
switch(vpi->Opcode){
- /* FIXME: ARL works fine, but negative offsets won't work - fglrx just sems to ignore neg offsets
- which isn't quite correct... */
- case OPCODE_ARL:
- o_inst->op = MAKE_VSF_OP(R200_VPI_OUT_OP_ARL, t_dst(&vpi->DstReg),
- t_dst_mask(vpi->DstReg.WriteMask));
- o_inst->src0 = t_src_scalar(vp, &src[0]);
- o_inst->src1 = UNUSED_SRC_0;
- o_inst->src2 = UNUSED_SRC_1;
- goto next;
-
case OPCODE_POW:
/* pow takes only one argument, first scalar is in slot x, 2nd in slot z (other slots don't matter).
So may need to insert additional instruction */