mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
set INTERP_CONSTANT when appropriate
Not really signficant now since draw_flat stage copies the provoking vertex color to all prim verts.
This commit is contained in:
parent
a47b5764c0
commit
5810b40d6e
1 changed files with 5 additions and 1 deletions
|
|
@ -90,7 +90,11 @@ static void calculate_vertex_layout( struct softpipe_context *softpipe )
|
|||
*/
|
||||
for (i = 1; i < FRAG_ATTRIB_TEX0; i++) {
|
||||
if (inputsRead & (i << i)) {
|
||||
EMIT_ATTR(frag_to_vf[i], i, INTERP_LINEAR);
|
||||
if (softpipe->setup.flatshade
|
||||
&& (i == FRAG_ATTRIB_COL0 || i == FRAG_ATTRIB_COL1))
|
||||
EMIT_ATTR(frag_to_vf[i], i, INTERP_CONSTANT);
|
||||
else
|
||||
EMIT_ATTR(frag_to_vf[i], i, INTERP_LINEAR);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue