nvc0: mask out centroid bit for writing FP header
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 12 Mar 2011 09:53:19 +0000 (10:53 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 13 Mar 2011 12:23:55 +0000 (13:23 +0100)
It's only 2 bit per input, centroid is set in the instruction.

src/gallium/drivers/nvc0/nvc0_program.c

index 975745a..9895f21 100644 (file)
@@ -529,7 +529,7 @@ nvc0_fp_gen_header(struct nvc0_program *fp, struct nvc0_translation_info *ti)
    }
 
    for (i = 0; i <= ti->scan.file_max[TGSI_FILE_INPUT]; ++i) {
-      m = ti->interp_mode[i];
+      m = ti->interp_mode[i] & 3;
       for (c = 0; c < 4; ++c) {
          if (!ti->input_access[i][c])
             continue;