mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-15 17:48:22 +02:00
i915: Adjust line size limits
The hardware can draw lines 0.5 to 7.5 pixels wide. Adjust the limits to 1.0-7.0. The old limits seems to be from the era when i915 and i965 were sharing this code. Not really sure if 1.0-7.0 is correct. Maybe it could be 0.5.7.5 as those are the hw limits, or maybe some combination of the two? Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
00ee403883
commit
3e2c7ca773
1 changed files with 2 additions and 2 deletions
|
|
@ -474,8 +474,8 @@ intelInitContext(struct intel_context *intel,
|
|||
|
||||
ctx->Const.MinLineWidth = 1.0;
|
||||
ctx->Const.MinLineWidthAA = 1.0;
|
||||
ctx->Const.MaxLineWidth = 5.0;
|
||||
ctx->Const.MaxLineWidthAA = 5.0;
|
||||
ctx->Const.MaxLineWidth = 7.0;
|
||||
ctx->Const.MaxLineWidthAA = 7.0;
|
||||
ctx->Const.LineWidthGranularity = 0.5;
|
||||
|
||||
ctx->Const.MinPointSize = 1.0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue