diff options
author | Kenneth Graunke <[email protected]> | 2017-07-25 10:16:16 -0700 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-07-27 18:54:13 +0100 |
commit | 04bb687f043ca7e8e7fc3b56f62f5758667598b5 (patch) | |
tree | 8d7cdfa0d083904a29a14dea63cd5eaac24850aa /src | |
parent | 4e0f29ed0b844dd59773d7047af73a482461fa2b (diff) |
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" <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
(cherry picked from commit f6e674fa5164a957e93e8dc1334a48c9e7ee7df9)
Fixes: 63a43f41619 ("i965: Refactor miptree to isl converter and adjustment")
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 250806d28e4..a0ca6ddf985 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -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; |