summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/tgsi
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-23 13:24:06 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-23 13:24:06 -0600
commitef7c25090074cb02f18acc905bca5f25a56bd021 (patch)
treef209f095f3a9038c058e9c956fdbf81316ae81e4 /src/mesa/pipe/tgsi
parentc990d0fd57a05301429b3af75b7fed0337621941 (diff)
For the time being, interpolate Z in shade_quad() rather in the shader.
This was causing trouble for the i915 driver.
Diffstat (limited to 'src/mesa/pipe/tgsi')
-rw-r--r--src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c5
1 files changed, 5 insertions, 0 deletions
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(