mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 01:30:08 +01:00
copy UsesKill state in _mesa_combine_programs()
This commit is contained in:
parent
d11fd189ff
commit
27cff4402e
1 changed files with 7 additions and 0 deletions
|
|
@ -497,6 +497,13 @@ _mesa_combine_programs(GLcontext *ctx,
|
|||
newProg->NumInstructions = newLength;
|
||||
|
||||
if (newProg->Target == GL_FRAGMENT_PROGRAM_ARB) {
|
||||
struct gl_fragment_program *fprogA, *fprogB, *newFprog;
|
||||
fprogA = (struct gl_fragment_program *) progA;
|
||||
fprogB = (struct gl_fragment_program *) progB;
|
||||
newFprog = (struct gl_fragment_program *) newProg;
|
||||
|
||||
newFprog->UsesKill = fprogA->UsesKill || fprogB->UsesKill;
|
||||
|
||||
/* connect color outputs/inputs */
|
||||
if ((progA->OutputsWritten & (1 << FRAG_RESULT_COLR)) &&
|
||||
(progB->InputsRead & (1 << FRAG_ATTRIB_COL0))) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue