mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
nvc0: revert mistaken logic to collapse color outputs to the beginning
In commitaf38ef907, I added a "fix" to color outputs not being assigned correctly when sample mask was being output. This was totally wrong -- the color indices (i.e. "si" values) were the ones that were wrong. Undo that hunk. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Acked-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit0d699530ff) Requested-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
8ac81e5b66
commit
76e112380a
1 changed files with 4 additions and 9 deletions
|
|
@ -133,17 +133,12 @@ static int
|
|||
nvc0_fp_assign_output_slots(struct nv50_ir_prog_info *info)
|
||||
{
|
||||
unsigned count = info->prop.fp.numColourResults * 4;
|
||||
unsigned i, c, ci;
|
||||
unsigned i, c;
|
||||
|
||||
for (i = 0, ci = 0; i < info->numOutputs; ++i) {
|
||||
if (info->out[i].sn == TGSI_SEMANTIC_COLOR) {
|
||||
for (i = 0; i < info->numOutputs; ++i)
|
||||
if (info->out[i].sn == TGSI_SEMANTIC_COLOR)
|
||||
for (c = 0; c < 4; ++c)
|
||||
info->out[i].slot[c] = ci * 4 + c;
|
||||
ci++;
|
||||
}
|
||||
}
|
||||
|
||||
assert(ci == info->prop.fp.numColourResults);
|
||||
info->out[i].slot[c] = info->out[i].si * 4 + c;
|
||||
|
||||
if (info->io.sampleMask < PIPE_MAX_SHADER_OUTPUTS)
|
||||
info->out[info->io.sampleMask].slot[0] = count++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue