mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
zink: fix incorrect line mode check for bresenham
the line requirement check logic was assuming mode index 0 is bresenhamLines, but it is actually rectangularLines. cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22575>
This commit is contained in:
parent
8ca13afe15
commit
f6b5e128c1
1 changed files with 2 additions and 2 deletions
|
|
@ -307,9 +307,9 @@ zink_create_gfx_pipeline(struct zink_screen *screen,
|
|||
/* non-strictLine default lines are either parallelogram or bresenham which while not in GL spec,
|
||||
* in practice end up being within the two-pixel exception in the GL spec.
|
||||
*/
|
||||
else if (mode_idx || screen->info.props.limits.strictLines)
|
||||
else if ((mode_idx != 1) || screen->info.props.limits.strictLines)
|
||||
warn_missing_feature(warned[mode_idx], features[hw_rast_state->line_mode][0]);
|
||||
} else if (mode_idx || screen->info.props.limits.strictLines)
|
||||
} else if ((mode_idx != 1) || screen->info.props.limits.strictLines)
|
||||
warn_missing_feature(warned[mode_idx], features[hw_rast_state->line_mode][hw_rast_state->line_stipple_enable]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue