summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_eu_emit.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-09-01 14:18:06 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-09-01 14:18:06 +0000
commitdb0e53af74beafa0ba07b200396bfe12fa9f5c89 (patch)
tree644e579779393a48eb482e2f001875b8c45d5b68 /src/mesa/drivers/dri/i965/brw_eu_emit.c
parent75faa1e19a6b95a96cb74aee22fffdc745a07909 (diff)
fix a couple of cases where a message reg is used as an instruction source.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu_emit.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu_emit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index 791eaab0cc..6425c91450 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -94,6 +94,8 @@ static void brw_set_dest( struct brw_instruction *insn,
static void brw_set_src0( struct brw_instruction *insn,
struct brw_reg reg )
{
+ assert(reg.file != BRW_MESSAGE_REGISTER_FILE);
+
insn->bits1.da1.src0_reg_file = reg.file;
insn->bits1.da1.src0_reg_type = reg.type;
insn->bits2.da1.src0_abs = reg.abs;
@@ -165,6 +167,8 @@ static void brw_set_src0( struct brw_instruction *insn,
static void brw_set_src1( struct brw_instruction *insn,
struct brw_reg reg )
{
+ assert(reg.file != BRW_MESSAGE_REGISTER_FILE);
+
insn->bits1.da1.src1_reg_file = reg.file;
insn->bits1.da1.src1_reg_type = reg.type;
insn->bits3.da1.src1_abs = reg.abs;