}
static bool
-agx_should_tile(struct agx_device *dev,
- const struct agx_resource *pres)
+agx_should_tile(const struct agx_resource *pres)
{
const unsigned valid_binding =
PIPE_BIND_DEPTH_STENCIL |
nresource->base = *templ;
nresource->base.screen = screen;
- nresource->modifier =
- agx_should_tile(dev, nresource) ?
- DRM_FORMAT_MOD_APPLE_64X64_MORTON_ORDER :
- DRM_FORMAT_MOD_LINEAR;
+ nresource->modifier = agx_should_tile(nresource) ?
+ DRM_FORMAT_MOD_APPLE_64X64_MORTON_ORDER : DRM_FORMAT_MOD_LINEAR;
unsigned offset = 0;