Lines Matching defs:gwidth
948 int gwidth, gheight, gdepth;
949 gwidth = res->sparse.formatProperties.imageGranularity.width;
952 assert(gwidth && gheight && gdepth);
956 unsigned nwidth = DIV_ROUND_UP(box->width, gwidth);
960 (box->width % gwidth) ? box->width % gwidth : gwidth,
972 unsigned mipwidth = DIV_ROUND_UP(MAX2(res->base.b.width0 >> l, 1), gwidth);
983 ibind[i].offset.x = w * gwidth;
992 ibind[i].extent.width = (w == nwidth - 1) ? lastBlockExtent.width : gwidth;
996 (d + (box->z / gdepth)) * ((MAX2(res->base.b.width0 >> level, 1) / gwidth) * (MAX2(res->base.b.height0 >> level, 1) / gheight)) +
997 (h + (box->y / gheight)) * (MAX2(res->base.b.width0 >> level, 1) / gwidth) +
998 (w + (box->x / gwidth));