panfrost: Remove unused functions

Flagged by cppcheck.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12530>
This commit is contained in:
Alyssa Rosenzweig
2021-08-24 16:37:15 -04:00
committed by Marge Bot
parent e9afd245f4
commit c08423699c
4 changed files with 0 additions and 64 deletions
-11
View File
@@ -956,14 +956,3 @@ panfrost_batch_union_scissor(struct panfrost_batch *batch,
batch->maxx = MAX2(batch->maxx, maxx);
batch->maxy = MAX2(batch->maxy, maxy);
}
void
panfrost_batch_intersection_scissor(struct panfrost_batch *batch,
unsigned minx, unsigned miny,
unsigned maxx, unsigned maxy)
{
batch->minx = MAX2(batch->minx, minx);
batch->miny = MAX2(batch->miny, miny);
batch->maxx = MIN2(batch->maxx, maxx);
batch->maxy = MIN2(batch->maxy, maxy);
}
-5
View File
@@ -195,9 +195,4 @@ panfrost_batch_union_scissor(struct panfrost_batch *batch,
unsigned minx, unsigned miny,
unsigned maxx, unsigned maxy);
void
panfrost_batch_intersection_scissor(struct panfrost_batch *batch,
unsigned minx, unsigned miny,
unsigned maxx, unsigned maxy);
#endif
@@ -1278,44 +1278,6 @@ panfrost_generate_mipmap(
return blit_res;
}
/* Computes the address to a texture at a particular slice */
mali_ptr
panfrost_get_texture_address(struct panfrost_resource *rsrc,
unsigned level, unsigned layer,
unsigned sample)
{
bool is_3d = rsrc->base.target == PIPE_TEXTURE_3D;
unsigned array_idx = is_3d ? 0 : layer;
unsigned surface_idx = is_3d ? layer : sample;
return rsrc->image.data.bo->ptr.gpu +
panfrost_texture_offset(&rsrc->image.layout, level,
array_idx, surface_idx);
}
void
panfrost_get_afbc_pointers(struct panfrost_resource *rsrc,
unsigned level, unsigned layer,
mali_ptr *header, mali_ptr *body)
{
assert(drm_is_afbc(rsrc->image.layout.modifier));
struct pan_image_slice_layout *slice = &rsrc->image.layout.slices[level];
if (rsrc->base.target == PIPE_TEXTURE_3D) {
*header = rsrc->image.data.bo->ptr.gpu + slice->offset +
(layer * slice->afbc.surface_stride);
*body = rsrc->image.data.bo->ptr.gpu + slice->offset +
slice->afbc.header_size +
(slice->surface_stride * layer);
} else {
*header = rsrc->image.data.bo->ptr.gpu +
panfrost_texture_offset(&rsrc->image.layout,
level, layer, 0);
*body = *header + slice->afbc.header_size;
}
}
static void
panfrost_resource_set_stencil(struct pipe_resource *prsrc,
struct pipe_resource *stencil)
@@ -107,16 +107,6 @@ pan_transfer(struct pipe_transfer *p)
return (struct panfrost_transfer *)p;
}
mali_ptr
panfrost_get_texture_address(struct panfrost_resource *rsrc,
unsigned level, unsigned layer,
unsigned sample);
void
panfrost_get_afbc_pointers(struct panfrost_resource *rsrc,
unsigned level, unsigned layer,
mali_ptr *header, mali_ptr *body);
void panfrost_resource_screen_init(struct pipe_screen *screen);
void panfrost_resource_screen_destroy(struct pipe_screen *screen);