From ef7c25090074cb02f18acc905bca5f25a56bd021 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 23 Aug 2007 13:24:06 -0600 Subject: For the time being, interpolate Z in shade_quad() rather in the shader. This was causing trouble for the i915 driver. --- src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/pipe/tgsi') diff --git a/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c b/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c index 1de80eb734..eeaed844d5 100644 --- a/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c +++ b/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c @@ -52,6 +52,9 @@ map_register_file_index( GLuint mapped_index; GLuint i; + assert(processor == TGSI_PROCESSOR_FRAGMENT + || processor == TGSI_PROCESSOR_VERTEX); + switch( file ) { case TGSI_FILE_INPUT: /* @@ -616,6 +619,7 @@ tgsi_mesa_compile_fp_program( /* * Copy fragment z if the shader does not write it. */ +#if 0 if( !(program->Base.OutputsWritten & (1 << FRAG_RESULT_DEPR)) ) { fullinst = tgsi_default_full_instruction(); @@ -639,6 +643,7 @@ tgsi_mesa_compile_fp_program( maxTokens - ti ); preamble_size++; } +#endif for( i = 0; i < program->Base.NumInstructions; i++ ) { if( compile_instruction( -- cgit v1.2.3