summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-16 13:12:24 -0600
committerBrian <[email protected]>2007-08-16 13:12:24 -0600
commitebe510766927315ec6dcd846a980cb851b5331d4 (patch)
tree140270455dfeb07ff3721ed90adb2fe1a88bba9b
parent717cc0f214b741bc9ef679dd372654d8e2192f25 (diff)
disable Z value scaling - it's done in sp_quad_depth_test.c
-rw-r--r--src/mesa/pipe/tgsi/core/tgsi_exec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/pipe/tgsi/core/tgsi_exec.c b/src/mesa/pipe/tgsi/core/tgsi_exec.c
index 0ffed20066e..a1f46712b4f 100644
--- a/src/mesa/pipe/tgsi/core/tgsi_exec.c
+++ b/src/mesa/pipe/tgsi/core/tgsi_exec.c
@@ -1128,7 +1128,7 @@ exec_declaration(
{
if( mach->Processor == TGSI_PROCESSOR_FRAGMENT ) {
if( decl->Declaration.File == TGSI_FILE_INPUT ) {
- unsigned first, last, mask, i, j;
+ unsigned first, last, mask;
interpolation_func interp;
assert( decl->Declaration.Declare == TGSI_DECLARE_RANGE );
@@ -2299,7 +2299,8 @@ tgsi_exec_machine_run2(
tgsi_parse_free (&parse);
#endif
-#if MESA
+#if 0
+ /* we scale from floats in [0,1] to Zbuffer ints in sp_quad_depth_test.c */
if (mach->Processor == TGSI_PROCESSOR_FRAGMENT) {
/*
* Scale back depth component.