nvc0: allow VIEWPORT_INDEX and LAYER to be used as input semantics
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Jun 2014 23:25:07 +0000 (19:25 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 23 Jun 2014 23:23:16 +0000 (19:23 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_program.c

index 667fbc893230d91fae0c4ddc1a3394998b33810a..ad8d1b04e212ebf1f1da3ceeec5984185b00650c 100644 (file)
@@ -36,6 +36,8 @@ nvc0_shader_input_address(unsigned sn, unsigned si, unsigned ubase)
    switch (sn) {
    case NV50_SEMANTIC_TESSFACTOR:   return 0x000 + si * 0x4;
    case TGSI_SEMANTIC_PRIMID:       return 0x060;
+   case TGSI_SEMANTIC_LAYER:        return 0x064;
+   case TGSI_SEMANTIC_VIEWPORT_INDEX:return 0x068;
    case TGSI_SEMANTIC_PSIZE:        return 0x06c;
    case TGSI_SEMANTIC_POSITION:     return 0x070;
    case TGSI_SEMANTIC_GENERIC:      return ubase + si * 0x10;