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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user