Home
last modified time | relevance | path

Searched refs:rtex (Results 1 – 11 of 11) sorted by relevance

/external/mesa3d/src/gallium/drivers/radeonsi/
Dr600_texture.c69 static unsigned r600_texture_get_offset(struct r600_resource_texture *rtex, in r600_texture_get_offset() argument
72 return rtex->surface.level[level].offset + in r600_texture_get_offset()
73 layer * rtex->surface.level[level].slice_size; in r600_texture_get_offset()
148 struct r600_resource_texture *rtex, in r600_setup_surface() argument
155 if (util_format_is_depth_or_stencil(rtex->real_format)) { in r600_setup_surface()
156 rtex->surface.flags |= RADEON_SURF_ZBUFFER; in r600_setup_surface()
157 rtex->surface.flags |= RADEON_SURF_SBUFFER; in r600_setup_surface()
160 r = rscreen->ws->surface_init(rscreen->ws, &rtex->surface); in r600_setup_surface()
164 if (pitch_in_bytes_override && pitch_in_bytes_override != rtex->surface.level[0].pitch_bytes) { in r600_setup_surface()
168 rtex->surface.level[0].nblk_x = pitch_in_bytes_override / rtex->surface.bpe; in r600_setup_surface()
[all …]
Dr600_blit.c271 struct r600_resource_texture *rtex = (struct r600_resource_texture*)tex; in r600_compressed_to_blittable() local
273 unsigned pixsize = util_format_get_blocksize(rtex->real_format); in r600_compressed_to_blittable()
280 orig->npix0_x = rtex->surface.level[0].npix_x; in r600_compressed_to_blittable()
281 orig->npix0_y = rtex->surface.level[0].npix_y; in r600_compressed_to_blittable()
282 orig->npix_x = rtex->surface.level[level].npix_x; in r600_compressed_to_blittable()
283 orig->npix_y = rtex->surface.level[level].npix_y; in r600_compressed_to_blittable()
296 rtex->surface.level[0].npix_x = util_format_get_nblocksx(orig->format, orig->npix0_x); in r600_compressed_to_blittable()
297 rtex->surface.level[0].npix_y = util_format_get_nblocksy(orig->format, orig->npix0_y); in r600_compressed_to_blittable()
298 rtex->surface.level[level].npix_x = util_format_get_nblocksx(orig->format, orig->npix_x); in r600_compressed_to_blittable()
299 rtex->surface.level[level].npix_y = util_format_get_nblocksy(orig->format, orig->npix_y); in r600_compressed_to_blittable()
[all …]
Dsi_state.c1447 struct r600_resource_texture *rtex; in si_cb() local
1461 rtex = (struct r600_resource_texture*)state->cbufs[cb]->texture; in si_cb()
1462 blocksize = util_format_get_blocksize(rtex->real_format); in si_cb()
1464 if (rtex->depth) in si_cb()
1467 if (rtex->depth && !rtex->is_flushing_texture) { in si_cb()
1469 rtex = rtex->flushed_depth_texture; in si_cb()
1472 offset = rtex->surface.level[level].offset; in si_cb()
1473 if (rtex->surface.level[level].mode < RADEON_SURF_MODE_1D) { in si_cb()
1474 offset += rtex->surface.level[level].slice_size * in si_cb()
1477 pitch = (rtex->surface.level[level].nblk_x) / 8 - 1; in si_cb()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_texture.c61 unsigned r600_texture_get_offset(struct r600_texture *rtex, in r600_texture_get_offset() argument
64 return rtex->surface.level[level].offset + in r600_texture_get_offset()
65 layer * rtex->surface.level[level].slice_size; in r600_texture_get_offset()
161 struct r600_texture *rtex, in r600_setup_surface() argument
164 struct pipe_resource *ptex = &rtex->resource.b.b; in r600_setup_surface()
169 r = rscreen->ws->surface_init(rscreen->ws, &rtex->surface); in r600_setup_surface()
173 rtex->size = rtex->surface.bo_size; in r600_setup_surface()
174 if (pitch_in_bytes_override && pitch_in_bytes_override != rtex->surface.level[0].pitch_bytes) { in r600_setup_surface()
178 rtex->surface.level[0].nblk_x = pitch_in_bytes_override / rtex->surface.bpe; in r600_setup_surface()
179 rtex->surface.level[0].pitch_bytes = pitch_in_bytes_override; in r600_setup_surface()
[all …]
Dr600_blit.c256 struct r600_texture *rtex, in r600_blit_decompress_color() argument
265 if (!rtex->dirty_level_mask) in r600_blit_decompress_color()
269 if (!(rtex->dirty_level_mask & (1 << level))) in r600_blit_decompress_color()
274 max_layer = u_max_layer(&rtex->resource.b.b, level); in r600_blit_decompress_color()
280 surf_tmpl.format = rtex->resource.b.b.format; in r600_blit_decompress_color()
285 cbsurf = ctx->create_surface(ctx, &rtex->resource.b.b, &surf_tmpl); in r600_blit_decompress_color()
298 rtex->dirty_level_mask &= ~(1 << level); in r600_blit_decompress_color()
574 struct r600_texture *rtex = (struct r600_texture*)tex; in r600_compressed_to_blittable() local
575 unsigned pixsize = util_format_get_blocksize(rtex->resource.b.b.format); in r600_compressed_to_blittable()
582 orig->npix0_x = rtex->surface.level[0].npix_x; in r600_compressed_to_blittable()
[all …]
Devergreen_state.c1243 struct r600_texture *rtex = (struct r600_texture*)surf->base.texture; in evergreen_init_color_surface() local
1255 if (rtex->is_depth && !rtex->is_flushing_texture) { in evergreen_init_color_surface()
1257 rtex = rtex->flushed_depth_texture; in evergreen_init_color_surface()
1258 assert(rtex); in evergreen_init_color_surface()
1261 offset = rtex->surface.level[level].offset; in evergreen_init_color_surface()
1262 if (rtex->surface.level[level].mode < RADEON_SURF_MODE_1D) { in evergreen_init_color_surface()
1263 offset += rtex->surface.level[level].slice_size * in evergreen_init_color_surface()
1266 pitch = (rtex->surface.level[level].nblk_x) / 8 - 1; in evergreen_init_color_surface()
1267 slice = (rtex->surface.level[level].nblk_x * rtex->surface.level[level].nblk_y) / 64; in evergreen_init_color_surface()
1272 switch (rtex->surface.level[level].mode) { in evergreen_init_color_surface()
[all …]
Dr600_state.c1259 struct r600_texture *rtex = (struct r600_texture*)surf->base.texture; in r600_init_color_surface() local
1269 if (rtex->is_depth && !rtex->is_flushing_texture) { in r600_init_color_surface()
1271 rtex = rtex->flushed_depth_texture; in r600_init_color_surface()
1272 assert(rtex); in r600_init_color_surface()
1275 offset = rtex->surface.level[level].offset; in r600_init_color_surface()
1276 if (rtex->surface.level[level].mode < RADEON_SURF_MODE_1D) { in r600_init_color_surface()
1277 offset += rtex->surface.level[level].slice_size * in r600_init_color_surface()
1280 pitch = rtex->surface.level[level].nblk_x / 8 - 1; in r600_init_color_surface()
1281 slice = (rtex->surface.level[level].nblk_x * rtex->surface.level[level].nblk_y) / 64; in r600_init_color_surface()
1286 switch (rtex->surface.level[level].mode) { in r600_init_color_surface()
[all …]
Dr600_resource.h123 struct r600_texture *rtex,
127 struct r600_texture *rtex,
Dr600_state_common.c627 struct r600_texture *rtex = in r600_set_sampler_views() local
630 if (rtex->is_depth && !rtex->is_flushing_texture) { in r600_set_sampler_views()
637 if (rctx->chip_class != CAYMAN && rtex->cmask_size && rtex->fmask_size) { in r600_set_sampler_views()
1290 struct r600_texture *rtex = (struct r600_texture *)surf->texture; in r600_draw_vbo() local
1292 rtex->dirty_level_mask |= 1 << surf->u.tex.level; in r600_draw_vbo()
1296 struct r600_texture *rtex; in r600_draw_vbo() local
1302 rtex = (struct r600_texture*)surf->texture; in r600_draw_vbo()
1304 rtex->dirty_level_mask |= 1 << surf->u.tex.level; in r600_draw_vbo()
Dr600_pipe.h585 unsigned r600_texture_get_offset(struct r600_texture *rtex,
/external/mesa3d/src/gallium/drivers/r300/
Dr300_state.c798 struct r300_resource *rtex = r300_resource(tex); in r300_print_fb_surf_info() local
811 rtex->tex.macrotile[0] ? "YES" : " NO", in r300_print_fb_surf_info()
812 rtex->tex.microtile ? "YES" : " NO", in r300_print_fb_surf_info()