zink: warn on missing customBorderColorWithoutFormat
this is required Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16982>
This commit is contained in:

committed by
Marge Bot

parent
92e61dcee5
commit
d64fbb8886
@@ -369,6 +369,10 @@ zink_create_sampler_state(struct pipe_context *pctx,
|
||||
|
||||
sci.borderColor = get_border_color(&state->border_color, is_integer, need_custom);
|
||||
if (sci.borderColor > VK_BORDER_COLOR_INT_OPAQUE_WHITE && need_custom) {
|
||||
if (!screen->info.border_color_feats.customBorderColorWithoutFormat) {
|
||||
static bool warned = false;
|
||||
warn_missing_feature(warned, "customBorderColorWithoutFormat");
|
||||
}
|
||||
if (screen->info.have_EXT_custom_border_color &&
|
||||
screen->info.border_color_feats.customBorderColorWithoutFormat) {
|
||||
cbci.sType = VK_STRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT;
|
||||
|
Reference in New Issue
Block a user