summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOliver McFadden <[email protected]>2007-07-16 19:20:32 +0000
committerOliver McFadden <[email protected]>2007-07-16 19:20:32 +0000
commit3eba764df8b2b61588244e1e5457926062df065d (patch)
treea16a2812ed455e636e325dcbb108cd7a77e8f3bc /src
parent611674ed692c219baeb6005373fe0fbf3c111ab4 (diff)
r300: Added code for vertprog opcode ARL.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r300/r300_vertprog.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_vertprog.c b/src/mesa/drivers/dri/r300/r300_vertprog.c
index 3cba075e796..b41a60953a0 100644
--- a/src/mesa/drivers/dri/r300/r300_vertprog.c
+++ b/src/mesa/drivers/dri/r300/r300_vertprog.c
@@ -486,7 +486,14 @@ static void t_opcode_arl(struct r300_vertex_program *vp,
struct r300_vertprog_instruction *o_inst,
struct prog_src_register src[3])
{
- assert(0);
+ o_inst->opcode =
+ MAKE_VSF_OP(R300_VPI_OUT_OP_ARL, t_dst_index(vp, &vpi->DstReg),
+ t_dst_mask(vpi->DstReg.WriteMask),
+ t_dst_class(vpi->DstReg.File));
+
+ o_inst->src[0] = t_src(vp, &src[0]);
+ o_inst->src[1] = ZERO_SRC_0;
+ o_inst->src[2] = ZERO_SRC_0;
}
static void t_opcode_dp3(struct r300_vertex_program *vp,