summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/tgsi
diff options
context:
space:
mode:
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(