mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
37733c100d
commit
14b15b4038
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue