mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +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> (cherry picked from commitd48f2469be)
This commit is contained in:
parent
ae57b53c5d
commit
282540ae9e
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue