From 4a04f002dbc1c39059216dfad4be3d6c874c5408 Mon Sep 17 00:00:00 2001 From: Vladimir Dergachev Date: Thu, 30 Dec 2004 16:06:37 +0000 Subject: [PATCH] Add missing files. --- src/mesa/drivers/dri/r300/pixel_shader.h | 94 +++++++++++++++++++++++ src/mesa/drivers/dri/r300/vertex_shader.h | 90 ++++++++++++++++++++++ 2 files changed, 184 insertions(+) create mode 100644 src/mesa/drivers/dri/r300/pixel_shader.h create mode 100644 src/mesa/drivers/dri/r300/vertex_shader.h diff --git a/src/mesa/drivers/dri/r300/pixel_shader.h b/src/mesa/drivers/dri/r300/pixel_shader.h new file mode 100644 index 00000000000..07c84497340 --- /dev/null +++ b/src/mesa/drivers/dri/r300/pixel_shader.h @@ -0,0 +1,94 @@ +#ifndef __PIXEL_SHADER_H__ +#define __PIXEL_SHADER_H__ + +#include "r300_reg.h" + + +/* INSTR 0 */ + +#define PFS_OP_MAD 0 +#define PFS_OP_DP3 1 +#define PFS_OP_DP4 2 +#define PFS_OP_MIN 4 +#define PFS_OP_MAX 5 +#define PFS_OP_CMP 8 +#define PFS_OP_FRC 9 +#define PFS_OP_OUTC_REPL_ALPHA 10 + +/* "or" these with arg0 value to negate or take absolute value of an argument */ +#define PFS_ARG_NEG (1<<5) +#define PFS_ARG_ABS (1<<6) + +#define MAKE_PFS_INSTR0(op, arg0, arg1, arg2, flags) \ + ( ((op)<<23) \ + | ((arg0)<