mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
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:
parent
71dfcd3c96
commit
55e833ae96
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue