mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
glsl: Don't consider read-only fragment outputs to be written to.
Since they cannot be written. This prevents adding fragment outputs to the OutputsWritten set that are only read from via the gl_LastFragData array but never written to. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
913ae618c6
commit
711213fb72
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ mark(struct gl_program *prog, ir_variable *var, int offset, int len,
|
|||
assert(var->data.mode == ir_var_shader_out);
|
||||
if (is_patch_generic)
|
||||
prog->PatchOutputsWritten |= bitfield;
|
||||
else
|
||||
else if (!var->data.read_only)
|
||||
prog->OutputsWritten |= bitfield;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue