dri/nouveau: Fix type promotion issue on 32bit platforms.
Fixes some VTX protection errors introduced by e89af20926
.
This commit is contained in:
parent
6102683b19
commit
453b718552
|
@ -269,7 +269,7 @@ check_update_array(struct nouveau_array *a, unsigned offset,
|
|||
|
||||
if (a->bo == bo) {
|
||||
if (delta < 0)
|
||||
delta = (offset - (long)a->offset) / a->stride;
|
||||
delta = ((int)offset - (int)a->offset) / a->stride;
|
||||
|
||||
dirty = (delta < 0 ||
|
||||
offset != (a->offset + delta * a->stride));
|
||||
|
|
Loading…
Reference in New Issue