zink: stop enabling minmax filtering when not supported

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18910>
(cherry picked from commit a730b1bb0a)
This commit is contained in:
SoroushIMG
2022-09-01 19:40:16 +01:00
committed by Dylan Baker
parent 07734660ad
commit c7ff53ae51
3 changed files with 4 additions and 3 deletions

View File

@@ -166,7 +166,7 @@
"description": "zink: stop enabling minmax filtering when not supported",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View File

@@ -160,7 +160,8 @@ EXTENSIONS = [
conditions=["$feats.shaderSubgroupClock"]),
Extension("VK_EXT_sampler_filter_minmax",
alias="reduction",
properties=True),
properties=True,
conditions=["$props.filterMinmaxSingleComponentFormats"]),
Extension("VK_EXT_custom_border_color",
alias="border_color",
properties=True,

View File

@@ -683,7 +683,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return screen->info.props.limits.maxTexelGatherOffset;
case PIPE_CAP_SAMPLER_REDUCTION_MINMAX_ARB:
return screen->vk_version >= VK_MAKE_VERSION(1,2,0) || screen->info.have_EXT_sampler_filter_minmax;
return screen->info.feats12.samplerFilterMinmax || screen->info.have_EXT_sampler_filter_minmax;
case PIPE_CAP_FS_FINE_DERIVATIVE:
return 1;