Lines Matching defs:surf
989 static void r300_texture_setup_fb_state(struct r300_surface *surf)
991 struct r300_resource *tex = r300_resource(surf->base.texture);
992 unsigned level = surf->base.u.tex.level;
994 r300_stride_to_width(surf->base.format, tex->tex.stride_in_bytes[level]);
997 if (util_format_is_depth_or_stencil(surf->base.format)) {
998 surf->pitch =
1002 R300_DEPTHENDIAN(r300_get_endian_swap(surf->base.format));
1003 surf->format = r300_translate_zsformat(surf->base.format);
1004 surf->pitch_zmask = tex->tex.zmask_stride_in_pixels[level];
1005 surf->pitch_hiz = tex->tex.hiz_stride_in_pixels[level];
1007 enum pipe_format format = util_format_linear(surf->base.format);
1009 surf->pitch =
1015 surf->format = r300_translate_out_fmt(format);
1016 surf->colormask_swizzle =
1018 surf->pitch_cmask = tex->tex.cmask_stride_in_pixels;