aux/tc: Add ASSERTED to unreferenced release build variable

Fixes MSVC build error src/gallium/auxiliary/util/u_threaded_context.c(3184): error C4189: 'size': local variable is initialized but not referenced

Fixes: 51ad269198 ("aux/tc: handle stride mismatch during rp-optimized subdata")

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25203>
This commit is contained in:
Sil Vilerino 2023-09-13 07:38:43 -04:00 committed by Marge Bot
parent ca9734c223
commit d48f2469be

View file

@ -3181,7 +3181,7 @@ tc_texture_subdata(struct pipe_context *_pipe,
width *= blocksize;
if (width == fmt_stride && width == (unsigned)stride) {
uint64_t size = (uint64_t)height * width;
ASSERTED uint64_t size = (uint64_t)height * width;
assert(size <= SIZE_MAX);
assert(dst_x + src_box.width < u_minify(pres->width0, level));