summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_pc.h
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-08-15 21:37:50 +0200
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-08-15 21:40:00 +0200
commit4de293bb9acd1ecda683f735af32f7485a0f213e (patch)
treeefa03988c937976f5c712c6688b86ac89eeadbd0 /src/gallium/drivers/nv50/nv50_pc.h
parent34e0db4c509fd669a7713c63848a98d89463ce1a (diff)
nv50: loops part 2
At least the mesa demo glsl/mandelbrot should work now.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_pc.h')
-rw-r--r--src/gallium/drivers/nv50/nv50_pc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_pc.h b/src/gallium/drivers/nv50/nv50_pc.h
index 8b1c9b3a72..b24a3067b8 100644
--- a/src/gallium/drivers/nv50/nv50_pc.h
+++ b/src/gallium/drivers/nv50/nv50_pc.h
@@ -47,7 +47,7 @@
#define NV_OP_SHL 17
#define NV_OP_SHR 18
#define NV_OP_RCP 19
-/* gap */
+#define NV_OP_UNDEF 20
#define NV_OP_RSQ 21
#define NV_OP_LG2 22
#define NV_OP_SIN 23
@@ -360,6 +360,12 @@ new_value(struct nv_pc *pc, ubyte file, ubyte type)
return value;
}
+static INLINE struct nv_value *
+new_value_like(struct nv_pc *pc, struct nv_value *like)
+{
+ return new_value(pc, like->reg.file, like->reg.type);
+}
+
static INLINE struct nv_ref *
new_ref(struct nv_pc *pc, struct nv_value *val)
{