r300: fragment.position input needs no blanking out, it's correctly handled in insert...
authorMarkus Amsler <markus.amsler@oribi.org>
Mon, 5 May 2008 23:32:40 +0000 (01:32 +0200)
committerMarkus Amsler <markus.amsler@oribi.org>
Mon, 5 May 2008 23:32:40 +0000 (01:32 +0200)
fixes bug 15447

src/mesa/drivers/dri/r300/r300_vertprog.c

index e91d96852db1372dc1aac23edaf5c025585747d7..861f0427cf5dcd56cc25b34e7ae2c3a28a970eb3 100644 (file)
@@ -1426,6 +1426,8 @@ void r300SelectVertexShader(r300ContextPtr r300)
        GLint wpos_idx;
 
        vpc = (struct r300_vertex_program_cont *)ctx->VertexProgram._Current;
+       wanted_key.InputsRead = vpc->mesa_program.Base.InputsRead;
+       wanted_key.OutputsWritten = vpc->mesa_program.Base.OutputsWritten;
        InputsRead = ctx->FragmentProgram._Current->Base.InputsRead;
 
        wpos_idx = -1;
@@ -1439,11 +1441,9 @@ void r300SelectVertexShader(r300ContextPtr r300)
                        _mesa_exit(-1);
                }
 
-               InputsRead |= (FRAG_BIT_TEX0 << i);
+               wanted_key.OutputsWritten |= 1 << (VERT_RESULT_TEX0 + i);
                wpos_idx = i;
        }
-       wanted_key.InputsRead = vpc->mesa_program.Base.InputsRead;
-       wanted_key.OutputsWritten = vpc->mesa_program.Base.OutputsWritten;
 
        add_outputs(&wanted_key, VERT_RESULT_HPOS);