mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 01:40:08 +01:00
nir/i965: assert first is always less than 64
This fixes a defect detected by Coverity Scan. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
f0997e2aa8
commit
ce44501ea8
1 changed files with 1 additions and 0 deletions
|
|
@ -566,6 +566,7 @@ brw_prepare_vertices(struct brw_context *brw)
|
|||
brw->vb.nr_enabled = 0;
|
||||
while (vs_inputs) {
|
||||
GLuint first = ffsll(vs_inputs) - 1;
|
||||
assert (first < 64);
|
||||
GLuint index =
|
||||
first - DIV_ROUND_UP(_mesa_bitcount_64(vs_prog_data->double_inputs_read &
|
||||
BITFIELD64_MASK(first)), 2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue