From: Brian Paul Date: Wed, 29 Mar 2006 15:15:37 +0000 (+0000) Subject: move NumNativeAlu/TexInstruction assignments (Ewald Snel) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=006e183b6edb4d4a7cce69c42939ec24fe41578d;p=mesa.git move NumNativeAlu/TexInstruction assignments (Ewald Snel) --- diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index a3c433b0c3d..a7068e6dbcf 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -3745,12 +3745,6 @@ parse_instructions(GLcontext * ctx, GLubyte * inst, struct var_cache **vc_head, Program->Base.NumNativeParameters = Program->Base.NumParameters; Program->Base.NumNativeAttributes = Program->Base.NumAttributes; Program->Base.NumNativeAddressRegs = Program->Base.NumAddressRegs; - if (Program->Base.Target == GL_FRAGMENT_PROGRAM_ARB) { - struct fragment_program *fp = (struct fragment_program *) Program; - fp->NumNativeAluInstructions = fp->NumAluInstructions; - fp->NumNativeTexInstructions = fp->NumTexInstructions; - fp->NumNativeTexIndirections = fp->NumTexIndirections; - } return err; } @@ -4074,6 +4068,9 @@ _mesa_parse_arb_fragment_program(GLcontext* ctx, GLenum target, program->NumAluInstructions = ap.NumAluInstructions; program->NumTexInstructions = ap.NumTexInstructions; program->NumTexIndirections = ap.NumTexIndirections; + program->NumNativeAluInstructions = ap.NumAluInstructions; + program->NumNativeTexInstructions = ap.NumTexInstructions; + program->NumNativeTexIndirections = ap.NumTexIndirections; program->Base.InputsRead = ap.Base.InputsRead; program->Base.OutputsWritten = ap.Base.OutputsWritten; for (i = 0; i < MAX_TEXTURE_IMAGE_UNITS; i++)