mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
zink: do not complain about missing line-stipple support
We can lower this now, so let's not complain about it... Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19117>
This commit is contained in:
parent
d4a5977b17
commit
66b438dca1
1 changed files with 9 additions and 1 deletions
|
|
@ -292,7 +292,15 @@ zink_create_gfx_pipeline(struct zink_screen *screen,
|
|||
mode_idx += hw_rast_state->line_stipple_enable * 3;
|
||||
if (*(feat + mode_idx))
|
||||
rast_line_state.lineRasterizationMode = hw_rast_state->line_mode;
|
||||
else
|
||||
else if (hw_rast_state->line_stipple_enable &&
|
||||
screen->driver_workarounds.no_linestipple) {
|
||||
/* drop line stipple, we can emulate it */
|
||||
mode_idx -= hw_rast_state->line_stipple_enable * 3;
|
||||
if (*(feat + mode_idx))
|
||||
rast_line_state.lineRasterizationMode = hw_rast_state->line_mode;
|
||||
else
|
||||
warn_missing_feature(warned[mode_idx], features[hw_rast_state->line_mode][0]);
|
||||
} else
|
||||
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