mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
draw: emit extra flags whenever pipeline is active
The assert was in fact over-sensitive, but emitting the extra flags is pretty trivial & we may as well just do it whenever we know the pipeline is running.
This commit is contained in:
parent
3c0dc8242b
commit
1aedbf9efe
2 changed files with 5 additions and 10 deletions
|
|
@ -202,13 +202,12 @@ static void varray_prepare(struct draw_pt_front_end *frontend,
|
|||
struct varray_frontend *varray = (struct varray_frontend *)frontend;
|
||||
const struct pipe_rasterizer_state *rasterizer = varray->draw->rasterizer;
|
||||
|
||||
if (rasterizer->fill_cw != PIPE_POLYGON_MODE_FILL ||
|
||||
rasterizer->fill_ccw != PIPE_POLYGON_MODE_FILL ||
|
||||
rasterizer->line_stipple_enable)
|
||||
if (opt & PT_PIPELINE)
|
||||
{
|
||||
assert(opt & PT_PIPELINE);
|
||||
varray->base.run = varray_run_extras;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
varray->base.run = varray_run;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -227,12 +227,8 @@ static void vcache_prepare( struct draw_pt_front_end *frontend,
|
|||
struct vcache_frontend *vcache = (struct vcache_frontend *)frontend;
|
||||
const struct pipe_rasterizer_state *rasterizer = vcache->draw->rasterizer;
|
||||
|
||||
|
||||
if (rasterizer->fill_cw != PIPE_POLYGON_MODE_FILL ||
|
||||
rasterizer->fill_ccw != PIPE_POLYGON_MODE_FILL ||
|
||||
rasterizer->line_stipple_enable)
|
||||
if (opt & PT_PIPELINE)
|
||||
{
|
||||
assert(opt & PT_PIPELINE);
|
||||
vcache->base.run = vcache_run_extras;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue