diff options
author | Ian Romanick <[email protected]> | 2015-09-02 15:04:59 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2015-09-10 20:29:51 -0700 |
commit | 5c8aa21309cb8cabd61b73b6706b295d6237d53d (patch) | |
tree | c36d687c77332aec4a69169de7f0d1c476f9e19c /src/mesa | |
parent | 04122312662b60d8a2d472ff6492960b4d923587 (diff) |
i915, i965: Silence unused parameter warnings in intel_miptree_unmap_gtt
intel_mipmap_tree.c: In function 'intel_miptree_unmap_gtt':
intel_mipmap_tree.c:777:34: warning: unused parameter 'map' [-Wunused-parameter]
struct intel_miptree_map *map,
^
intel_mipmap_tree.c:778:17: warning: unused parameter 'level' [-Wunused-parameter]
unsigned int level,
^
intel_mipmap_tree.c:779:17: warning: unused parameter 'slice' [-Wunused-parameter]
unsigned int slice)
^
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_mipmap_tree.c | 8 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_mipmap_tree.c b/src/mesa/drivers/dri/i915/intel_mipmap_tree.c index 0fcc2b16b11..307ad4df891 100644 --- a/src/mesa/drivers/dri/i915/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i915/intel_mipmap_tree.c @@ -771,11 +771,7 @@ intel_miptree_map_gtt(struct intel_context *intel, } static void -intel_miptree_unmap_gtt(struct intel_context *intel, - struct intel_mipmap_tree *mt, - struct intel_miptree_map *map, - unsigned int level, - unsigned int slice) +intel_miptree_unmap_gtt(struct intel_mipmap_tree *mt) { intel_miptree_unmap_raw(mt); } @@ -948,7 +944,7 @@ intel_miptree_unmap(struct intel_context *intel, if (map->mt) { intel_miptree_unmap_blit(intel, mt, map, level, slice); } else { - intel_miptree_unmap_gtt(intel, mt, map, level, slice); + intel_miptree_unmap_gtt(mt); } intel_miptree_release_map(mt, level, slice); diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 1e7a6cc5c89..2150708fc04 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -2126,11 +2126,7 @@ intel_miptree_map_gtt(struct brw_context *brw, } static void -intel_miptree_unmap_gtt(struct brw_context *brw, - struct intel_mipmap_tree *mt, - struct intel_miptree_map *map, - unsigned int level, - unsigned int slice) +intel_miptree_unmap_gtt(struct intel_mipmap_tree *mt) { intel_miptree_unmap_raw(mt); } @@ -2736,7 +2732,7 @@ intel_miptree_unmap(struct brw_context *brw, intel_miptree_unmap_movntdqa(brw, mt, map, level, slice); #endif } else { - intel_miptree_unmap_gtt(brw, mt, map, level, slice); + intel_miptree_unmap_gtt(mt); } intel_miptree_release_map(mt, level, slice); |