zink: support format queries for VK_EXT_sampler_filter_minmax
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10248>
This commit is contained in:
parent
b62633c599
commit
22e1ed5722
|
@ -876,6 +876,9 @@ zink_is_format_supported(struct pipe_screen *pscreen,
|
|||
!(props.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT))
|
||||
return false;
|
||||
|
||||
if (bind & PIPE_BIND_SAMPLER_REDUCTION_MINMAX)
|
||||
return props.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT;
|
||||
|
||||
if ((bind & PIPE_BIND_SAMPLER_VIEW) || (bind & PIPE_BIND_RENDER_TARGET)) {
|
||||
/* if this is a 3-component texture, force gallium to give us 4 components by rejecting this one */
|
||||
const struct util_format_description *desc = util_format_description(format);
|
||||
|
|
Loading…
Reference in New Issue