diff options
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_pc.h')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_pc.h | 8 |
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 8b1c9b3a72d..b24a3067b8d 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) { |