mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
i965: Make rasterization of single and multiple quad prims match.
This is trying to follow the spirit of the invariance rules, though
they're not specific on this point. Fixes quad-invariance piglit test
while retaining the 22s -> 18s win on glean blendFunc.
This was a regression in c67d9d84f5.
This commit is contained in:
parent
32a7209c0a
commit
f0fb3aa5d4
1 changed files with 6 additions and 0 deletions
|
|
@ -173,6 +173,12 @@ static void populate_key( struct brw_context *brw,
|
|||
|
||||
/* _NEW_LIGHT */
|
||||
key->pv_first = (ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION);
|
||||
if (key->primitive == GL_QUADS && ctx->Light.ShadeModel != GL_FLAT) {
|
||||
/* Provide consistent primitive order with brw_set_prim's
|
||||
* optimization of single quads to trifans.
|
||||
*/
|
||||
key->pv_first = GL_TRUE;
|
||||
}
|
||||
|
||||
key->need_gs_prog = (key->hint_gs_always ||
|
||||
brw->primitive == GL_QUADS ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue