Lines Matching refs:tex
132 surf_tmpl.u.tex.level = level; in si_blit_uncompress_depth()
133 surf_tmpl.u.tex.first_layer = layer; in si_blit_uncompress_depth()
134 surf_tmpl.u.tex.last_layer = layer; in si_blit_uncompress_depth()
164 struct r600_resource_texture *tex; in si_flush_depth_textures() local
169 tex = (struct r600_resource_texture *)view->base.texture; in si_flush_depth_textures()
170 if (!tex->depth) in si_flush_depth_textures()
173 if (tex->is_flushing_texture) in si_flush_depth_textures()
176 si_blit_uncompress_depth(&rctx->context, tex); in si_flush_depth_textures()
181 struct r600_resource_texture *tex; in si_flush_depth_textures() local
182 tex = (struct r600_resource_texture *)rctx->framebuffer.cbufs[i]->texture; in si_flush_depth_textures()
184 if (!tex->depth) in si_flush_depth_textures()
187 if (tex->is_flushing_texture) in si_flush_depth_textures()
190 si_blit_uncompress_depth(&rctx->context, tex); in si_flush_depth_textures()
267 static void r600_compressed_to_blittable(struct pipe_resource *tex, in r600_compressed_to_blittable() argument
271 struct r600_resource_texture *rtex = (struct r600_resource_texture*)tex; in r600_compressed_to_blittable()
272 struct r600_screen *rscreen = (struct r600_screen *)tex->screen; in r600_compressed_to_blittable()
277 orig->format = tex->format; in r600_compressed_to_blittable()
278 orig->width0 = tex->width0; in r600_compressed_to_blittable()
279 orig->height0 = tex->height0; in r600_compressed_to_blittable()
290 new_width = util_format_get_nblocksx(tex->format, orig->width0); in r600_compressed_to_blittable()
291 new_height = util_format_get_nblocksy(tex->format, orig->height0); in r600_compressed_to_blittable()
293 tex->width0 = new_width; in r600_compressed_to_blittable()
294 tex->height0 = new_height; in r600_compressed_to_blittable()
295 tex->format = new_format; in r600_compressed_to_blittable()
302 static void r600_reset_blittable_to_compressed(struct pipe_resource *tex, in r600_reset_blittable_to_compressed() argument
306 struct r600_resource_texture *rtex = (struct r600_resource_texture*)tex; in r600_reset_blittable_to_compressed()
307 struct r600_screen *rscreen = (struct r600_screen *)tex->screen; in r600_reset_blittable_to_compressed()
309 tex->format = orig->format; in r600_reset_blittable_to_compressed()
310 tex->width0 = orig->width0; in r600_reset_blittable_to_compressed()
311 tex->height0 = orig->height0; in r600_reset_blittable_to_compressed()