i915: Silence unused parameter warnings

intel_mipmap_tree.c: In function 'old_intel_miptree_unmap_raw':
intel_mipmap_tree.c:726:51: warning: unused parameter 'intel' [-Wunused-parameter]
 intel_miptree_unmap_raw(struct intel_context *intel,
                                                   ^

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
Ian Romanick 2015-09-02 15:01:18 -07:00
parent 20915dd2e0
commit 0412231266
3 changed files with 5 additions and 7 deletions

View file

@ -723,8 +723,7 @@ intel_miptree_map_raw(struct intel_context *intel, struct intel_mipmap_tree *mt)
}
void
intel_miptree_unmap_raw(struct intel_context *intel,
struct intel_mipmap_tree *mt)
intel_miptree_unmap_raw(struct intel_mipmap_tree *mt)
{
drm_intel_bo_unmap(mt->region->bo);
}
@ -778,7 +777,7 @@ intel_miptree_unmap_gtt(struct intel_context *intel,
unsigned int level,
unsigned int slice)
{
intel_miptree_unmap_raw(intel, mt);
intel_miptree_unmap_raw(mt);
}
static void
@ -833,7 +832,7 @@ intel_miptree_unmap_blit(struct intel_context *intel,
{
struct gl_context *ctx = &intel->ctx;
intel_miptree_unmap_raw(intel, map->mt);
intel_miptree_unmap_raw(map->mt);
if (map->mode & GL_MAP_WRITE_BIT) {
bool ok = intel_miptree_blit(intel,

View file

@ -348,8 +348,7 @@ void i945_miptree_layout(struct intel_mipmap_tree *mt);
void *intel_miptree_map_raw(struct intel_context *intel,
struct intel_mipmap_tree *mt);
void intel_miptree_unmap_raw(struct intel_context *intel,
struct intel_mipmap_tree *mt);
void intel_miptree_unmap_raw(struct intel_mipmap_tree *mt);
void
intel_miptree_map(struct intel_context *intel,

View file

@ -102,7 +102,7 @@ intel_blit_texsubimage(struct gl_context * ctx,
_mesa_error(ctx, GL_OUT_OF_MEMORY, "intelTexSubImage");
}
intel_miptree_unmap_raw(intel, temp_mt);
intel_miptree_unmap_raw(temp_mt);
bool ret;