mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
st/mesa: fix implicit conversion warning in st_atom_framebuffer
../src/mesa/state_tracker/st_atom_framebuffer.c:203:27: warning: implicit conversion from 'unsigned int' to 'uint8_t' (aka 'unsigned char') changes value from 4294967295 to 255 [-Wconstant-conversion] Fixes:2b37f23314("gallium: fix pipe_framebuffer_state::view_mask") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41326> (cherry picked from commit27c870a283)
This commit is contained in:
parent
e8aecda11a
commit
4b70cf7cd0
2 changed files with 2 additions and 2 deletions
|
|
@ -734,7 +734,7 @@
|
|||
"description": "st/mesa: fix implicit conversion warning in st_atom_framebuffer",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "2b37f233143275d5d11fc0a5f392b8d99c7bad29",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ st_update_framebuffer_state( struct st_context *st )
|
|||
memset(&framebuffer.zsbuf, 0, sizeof(framebuffer.zsbuf));
|
||||
}
|
||||
|
||||
framebuffer.viewmask = BITFIELD_MASK(num_multiview_layer);
|
||||
framebuffer.viewmask = (uint8_t)BITFIELD_MASK(num_multiview_layer);
|
||||
|
||||
#ifndef NDEBUG
|
||||
/* Make sure the resource binding flags were set properly */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue