diff options
author | Christoph Bumiller <[email protected]> | 2010-12-19 21:49:32 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2010-12-19 21:49:32 +0100 |
commit | 608b3c4432f7b7b0c27fc22369e09c8b7d8cfc03 (patch) | |
tree | 77b6ce0bf08e250a4c2adb6f013c4ec1a7c7dcd4 /src/gallium/drivers/nvc0/nvc0_pc.h | |
parent | ca5deb0c355cc4a120b754a228ff5f51007fbcea (diff) |
nvc0: improve shader support for texturing
Fixed shadow and cube texture fetches, add array texture fetches.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_pc.h')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_pc.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_pc.h b/src/gallium/drivers/nvc0/nvc0_pc.h index df0314965a3..74867f02e72 100644 --- a/src/gallium/drivers/nvc0/nvc0_pc.h +++ b/src/gallium/drivers/nvc0/nvc0_pc.h @@ -52,7 +52,8 @@ #define NV_OP_NOP 5 /** - * BIND forces source operand i into the same register as destination operand i + * BIND forces source operand i into the same register as destination operand i, + * and the operands will be assigned consecutive registers (needed for TEX) * SELECT forces its multiple source operands and its destination operand into * one and the same register. */ @@ -152,8 +153,9 @@ #define NV_OP_SUB_S32 81 #define NV_OP_MAD_F32 NV_OP_MAD #define NV_OP_FSET_F32 82 +#define NV_OP_TXG 83 -#define NV_OP_COUNT 83 +#define NV_OP_COUNT 84 /* nv50 files omitted */ #define NV_FILE_GPR 0 @@ -380,9 +382,11 @@ struct nv_instruction { unsigned flat : 1; unsigned patch : 1; unsigned lanes : 4; /* 3rd byte */ - unsigned tex_argc : 3; + unsigned tex_dim : 2; + unsigned tex_array : 1; + unsigned tex_cube : 1; + unsigned tex_shadow : 1; /* 4th byte */ unsigned tex_live : 1; - unsigned tex_cube : 1; /* 4th byte */ unsigned tex_mask : 4; uint8_t quadop; |