mesa: Cast bitmasks to 64-bit before negating

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38838>
This commit is contained in:
Jesse Natalie 2025-12-05 15:33:54 -08:00 committed by Marge Bot
parent 71dfcd3c96
commit 55e833ae96
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ st_vp_uses_current_values(const struct gl_context *ctx)
const uint64_t inputs = ctx->VertexProgram._Current->info.inputs_read;
return ~_mesa_get_enabled_vertex_arrays(ctx) & inputs;
return ~(uint64_t)_mesa_get_enabled_vertex_arrays(ctx) & inputs;
}

View file

@ -231,7 +231,7 @@ vbo_save_playback_vertex_list_gallium(struct gl_context *ctx,
*/
struct gl_program *vp = ctx->VertexProgram._Current;
if (vp->info.inputs_read & ~enabled || vp->DualSlotInputs)
if ((vp->info.inputs_read & ~(uint64_t)enabled) || vp->DualSlotInputs)
return USE_SLOW_PATH;
struct pipe_vertex_state *state = node->state[mode];