mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 12:40:23 +01:00
zink: be more careful about limits when unsupported
These limits are dependent on feature caps, so let's try to thread a bit more carefully when the cap is unsupported. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8832>
This commit is contained in:
parent
5b9042577c
commit
9fbacf5bcf
1 changed files with 6 additions and 0 deletions
|
|
@ -378,13 +378,19 @@ zink_get_paramf(struct pipe_screen *pscreen, enum pipe_capf param)
|
|||
switch (param) {
|
||||
case PIPE_CAPF_MAX_LINE_WIDTH:
|
||||
case PIPE_CAPF_MAX_LINE_WIDTH_AA:
|
||||
if (!screen->info.feats.features.wideLines)
|
||||
return 1.0f;
|
||||
return screen->info.props.limits.lineWidthRange[1];
|
||||
|
||||
case PIPE_CAPF_MAX_POINT_WIDTH:
|
||||
case PIPE_CAPF_MAX_POINT_WIDTH_AA:
|
||||
if (!screen->info.feats.features.largePoints)
|
||||
return 1.0f;
|
||||
return screen->info.props.limits.pointSizeRange[1];
|
||||
|
||||
case PIPE_CAPF_MAX_TEXTURE_ANISOTROPY:
|
||||
if (!screen->info.feats.features.samplerAnisotropy)
|
||||
return 1.0f;
|
||||
return screen->info.props.limits.maxSamplerAnisotropy;
|
||||
|
||||
case PIPE_CAPF_MAX_TEXTURE_LOD_BIAS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue