unsigned insn_size;
unsigned insn_count;
- GLenum procType;
+ unsigned procType; /**< TGSI_PROCESSOR_VERTEX/FRAGMENT */
boolean error;
};
}
-
/*
* Map mesa register file to TGSI register file.
*/
}
-
static struct ureg_src
src_register( struct st_translate *t,
gl_register_file file,
}
-/*
+/**
* Map mesa texture target to TGSI texture target.
*/
static unsigned
}
-
static struct ureg_dst
translate_dst( struct st_translate *t,
const struct prog_dst_register *DstReg,
}
-
-
-
static struct ureg_src
translate_src( struct st_translate *t,
const struct prog_src_register *SrcReg )
return src;
}
+
static struct ureg_src swizzle_4v( struct ureg_src src,
const unsigned *swz )
{
}
-/* Translate SWZ instructions into a single MAD. EG:
+/**
+ * Translate SWZ instructions into a single MAD. EG:
*
* SWZ dst, src.x-y10
*
src, num_src );
return;
-
case OPCODE_SCS:
dst[0] = ureg_writemask(dst[0], TGSI_WRITEMASK_XY );
ureg_insn( ureg,
src, num_src );
break;
}
-
}
-
-
-
-
-
/**
* Emit the TGSI instructions for inverting the WPOS y coordinate.
*/
}
-
-
/**
* Translate Mesa program to TGSI format.
* \param program the program to translate
* \param inputMapping maps Mesa fragment program inputs to TGSI generic
* input indexes
* \param inputSemanticName the TGSI_SEMANTIC flag for each input
- * \param inputSemanticIndex the semantic index (ex: which texcoord) for each input
+ * \param inputSemanticIndex the semantic index (ex: which texcoord) for
+ * each input
* \param interpMode the TGSI_INTERPOLATE_LINEAR/PERSP mode for each input
-
* \param numOutputs number of output registers used
* \param outputMapping maps Mesa fragment program outputs to TGSI
* generic outputs
* \param outputSemanticName the TGSI_SEMANTIC flag for each output
- * \param outputSemanticIndex the semantic index (ex: which texcoord) for each output
+ * \param outputSemanticIndex the semantic index (ex: which texcoord) for
+ * each output
*
* \return array of translated tokens, caller's responsibility to free
*/