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