zink: assert on unnormalized texcoords

We do not support PIPE_CAP_TEXRECT, so let's assert in case something
tries to use it behind our back.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17708>
This commit is contained in:
Erik Faye-Lund 2022-07-22 11:35:10 +02:00 committed by Marge Bot
parent 37733c100d
commit 14b15b4038

View file

@ -326,7 +326,7 @@ zink_create_sampler_state(struct pipe_context *pctx,
sci.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO;
if (screen->info.have_EXT_non_seamless_cube_map && !state->seamless_cube_map)
sci.flags |= VK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT;
sci.unnormalizedCoordinates = !state->normalized_coords;
assert(state->normalized_coords);
sci.magFilter = zink_filter(state->mag_img_filter);
if (sci.unnormalizedCoordinates)
sci.minFilter = sci.magFilter;