mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
draw: don't always run pipeline if clipping
This commit is contained in:
parent
280bcff1fa
commit
fe8af14124
1 changed files with 3 additions and 3 deletions
|
|
@ -74,11 +74,11 @@ draw_pt_arrays(struct draw_context *draw,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (draw->pt.middle.opt[opt] == NULL) {
|
middle = draw->pt.middle.opt[opt];
|
||||||
opt = PT_PIPELINE | PT_CLIPTEST | PT_SHADE;
|
if (middle == NULL) {
|
||||||
|
middle = draw->pt.middle.opt[PT_PIPELINE | PT_CLIPTEST | PT_SHADE];
|
||||||
}
|
}
|
||||||
|
|
||||||
middle = draw->pt.middle.opt[opt];
|
|
||||||
assert(middle);
|
assert(middle);
|
||||||
|
|
||||||
/* May create a short-circuited version of this for small primitives:
|
/* May create a short-circuited version of this for small primitives:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue