summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvc0/nvc0_program.c
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-12-10 20:16:10 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-12-10 20:20:37 +0100
commitdea9d604005e9aaed2bd6807f1913ac668479443 (patch)
tree80d938959678a29927b7053b8385cf8007c9ae7c /src/gallium/drivers/nvc0/nvc0_program.c
parent51f22689a419a8a13ca105e8ffc905b5fadea0db (diff)
nvc0: fix FACE state and and handle FACE sysval/varying offset
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_program.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_program.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_program.c b/src/gallium/drivers/nvc0/nvc0_program.c
index aeb9213037..7aa6ef02bc 100644
--- a/src/gallium/drivers/nvc0/nvc0_program.c
+++ b/src/gallium/drivers/nvc0/nvc0_program.c
@@ -23,6 +23,8 @@
#include "pipe/p_shader_tokens.h"
#include "pipe/p_defines.h"
+#define NOUVEAU_DEBUG
+
#include "tgsi/tgsi_parse.h"
#include "tgsi/tgsi_util.h"
#include "tgsi/tgsi_dump.h"
@@ -147,6 +149,8 @@ nvc0_system_value_location(unsigned sn, unsigned si)
*/
case TGSI_SEMANTIC_INSTANCEID:
return 0x2f8;
+ case TGSI_SEMANTIC_FACE:
+ return 0x3fc;
default:
assert(0);
return 0x000;
@@ -178,6 +182,8 @@ nvc0_varying_location(unsigned sn, unsigned si)
return 0x360;
case TGSI_SEMANTIC_PRIMID:
return 0x40;
+ case TGSI_SEMANTIC_FACE:
+ return 0x3fc;
/*
case TGSI_SEMANTIC_CLIP_DISTANCE:
return 0x2c0 + (si * 4);