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>
(cherry picked from commit d48f2469be)
This commit is contained in:
Sil Vilerino 2023-09-13 07:38:43 -04:00 committed by Eric Engestrom
parent ae57b53c5d
commit 282540ae9e
2 changed files with 2 additions and 2 deletions

View file

@ -2020,7 +2020,7 @@
"description": "aux/tc: Add ASSERTED to unreferenced release build variable",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "51ad269198e425fae719a37f169b365a8b52e7f3"
},

View file

@ -3182,7 +3182,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));