mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
llvmpipe: add missing checks for polygon offset point/line modes
The llvm pipeline handles regular filled triangle offsets, but it
doesn't handle offsets for triangles drawn in point or line mode.
Fixes failures found with new piglit polygon-mode-offset test.
Note: This is a candidate for the stable branches.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
(cherry picked from commit f93c580063)
This commit is contained in:
parent
2ac679bc87
commit
ab883bb8a4
1 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,10 @@ clear_flags(struct pipe_rasterizer_state *rast)
|
|||
{
|
||||
rast->light_twoside = 0;
|
||||
rast->offset_tri = 0;
|
||||
rast->offset_line = 0;
|
||||
rast->offset_point = 0;
|
||||
rast->offset_units = 0.0f;
|
||||
rast->offset_scale = 0.0f;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -74,6 +78,8 @@ llvmpipe_create_rasterizer_state(struct pipe_context *pipe,
|
|||
*/
|
||||
need_pipeline = (rast->fill_front != PIPE_POLYGON_MODE_FILL ||
|
||||
rast->fill_back != PIPE_POLYGON_MODE_FILL ||
|
||||
rast->offset_point ||
|
||||
rast->offset_line ||
|
||||
rast->point_smooth ||
|
||||
rast->line_smooth ||
|
||||
rast->line_stipple_enable ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue