Mesa (master): nvc0: mask out centroid bit for writing FP header
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Sun Mar 13 12:25:28 UTC 2011
Module: Mesa
Branch: master
Commit: 259efc90e7a1a14bc1797707c8f05d5200f4d0b6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=259efc90e7a1a14bc1797707c8f05d5200f4d0b6
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Sat Mar 12 10:53:19 2011 +0100
nvc0: mask out centroid bit for writing FP header
It's only 2 bit per input, centroid is set in the instruction.
---
src/gallium/drivers/nvc0/nvc0_program.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/nvc0/nvc0_program.c b/src/gallium/drivers/nvc0/nvc0_program.c
index 975745a..9895f21 100644
--- a/src/gallium/drivers/nvc0/nvc0_program.c
+++ b/src/gallium/drivers/nvc0/nvc0_program.c
@@ -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;
More information about the mesa-commit
mailing list