Mesa (master): tgsi: remove special-case code for fragment position
Brian Paul
brianp at kemper.freedesktop.org
Fri Feb 5 17:00:21 UTC 2010
Module: Mesa
Branch: master
Commit: cea2b8d65609756fed46f3904db8a6945f0dd769
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cea2b8d65609756fed46f3904db8a6945f0dd769
Author: Brian Paul <brianp at vmware.com>
Date: Fri Feb 5 09:42:00 2010 -0700
tgsi: remove special-case code for fragment position
Since the origin_lower_left / pixel_center_origin changes, we need
to use the fragcoord info that's set up in setup_fragcoord_coeff().
The code in exec_declaration() was clobbering the the interpolated
fragment position.
Fixes progs/glsl/fragcoord.c demo.
---
src/gallium/auxiliary/tgsi/tgsi_exec.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index f7a1bb7..2624223 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -1761,13 +1761,7 @@ exec_declaration(struct tgsi_exec_machine *mach,
last = decl->Range.Last;
mask = decl->Declaration.UsageMask;
- if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) {
- assert(decl->Semantic.Index == 0);
- assert(first == last);
- assert(mask == TGSI_WRITEMASK_XYZW);
-
- mach->Inputs[first] = mach->QuadPos;
- } else if (decl->Semantic.Name == TGSI_SEMANTIC_FACE) {
+ if (decl->Semantic.Name == TGSI_SEMANTIC_FACE) {
uint i;
assert(decl->Semantic.Index == 0);
More information about the mesa-commit
mailing list