mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 18:40:42 +01:00
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:
parent
92e61dcee5
commit
d64fbb8886
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue