mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
i965: Fix offset addition in get_isl_surf.
Increase the value, not the pointer to the stack variable. Caught by Coverity (CID 1415574). Not shipped in a real release. Cc: "17.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
7b48163d7c
commit
f6e674fa51
1 changed files with 3 additions and 3 deletions
|
|
@ -101,9 +101,9 @@ get_isl_surf(struct brw_context *brw, struct intel_mipmap_tree *mt,
|
|||
assert(view->levels == 1 && view->array_len == 1);
|
||||
assert(*tile_x == 0 && *tile_y == 0);
|
||||
|
||||
offset += intel_miptree_get_tile_offsets(mt, view->base_level,
|
||||
view->base_array_layer,
|
||||
tile_x, tile_y);
|
||||
*offset += intel_miptree_get_tile_offsets(mt, view->base_level,
|
||||
view->base_array_layer,
|
||||
tile_x, tile_y);
|
||||
|
||||
/* Minify the logical dimensions of the texture. */
|
||||
const unsigned l = view->base_level - mt->first_level;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue