Lines Matching refs:tex

801                                      struct r300_resource *tex,  in r300_texture_setup_format_state()  argument
808 struct pipe_resource *pt = &tex->b.b; in r300_texture_setup_format_state()
809 struct r300_texture_desc *desc = &tex->tex; in r300_texture_setup_format_state()
886 struct r300_resource *tex = r300_resource(surf->base.texture); in r300_texture_setup_fb_state() local
887 unsigned level = surf->base.u.tex.level; in r300_texture_setup_fb_state()
889 r300_stride_to_width(surf->base.format, tex->tex.stride_in_bytes[level]); in r300_texture_setup_fb_state()
895 R300_DEPTHMACROTILE(tex->tex.macrotile[level]) | in r300_texture_setup_fb_state()
896 R300_DEPTHMICROTILE(tex->tex.microtile); in r300_texture_setup_fb_state()
898 surf->pitch_zmask = tex->tex.zmask_stride_in_pixels[level]; in r300_texture_setup_fb_state()
899 surf->pitch_hiz = tex->tex.hiz_stride_in_pixels[level]; in r300_texture_setup_fb_state()
904 R300_COLOR_TILE(tex->tex.macrotile[level]) | in r300_texture_setup_fb_state()
905 R300_COLOR_MICROTILE(tex->tex.microtile); in r300_texture_setup_fb_state()
915 struct r300_resource* tex = (struct r300_resource*)texture; in r300_texture_destroy() local
917 pb_reference(&tex->buf, NULL); in r300_texture_destroy()
918 FREE(tex); in r300_texture_destroy()
926 struct r300_resource* tex = (struct r300_resource*)texture; in r300_resource_get_handle() local
928 if (!tex) { in r300_resource_get_handle()
932 return rws->buffer_get_handle(tex->buf, in r300_resource_get_handle()
933 tex->tex.stride_in_bytes[0], whandle); in r300_resource_get_handle()
958 struct r300_resource *tex = CALLOC_STRUCT(r300_resource); in r300_texture_create_object() local
959 if (!tex) { in r300_texture_create_object()
968 pipe_reference_init(&tex->b.b.reference, 1); in r300_texture_create_object()
969 tex->b.b.screen = &rscreen->screen; in r300_texture_create_object()
970 tex->b.b.usage = base->usage; in r300_texture_create_object()
971 tex->b.b.bind = base->bind; in r300_texture_create_object()
972 tex->b.b.flags = base->flags; in r300_texture_create_object()
973 tex->b.vtbl = &r300_texture_vtbl; in r300_texture_create_object()
974 tex->tex.microtile = microtile; in r300_texture_create_object()
975 tex->tex.macrotile[0] = macrotile; in r300_texture_create_object()
976 tex->tex.stride_in_bytes_override = stride_in_bytes_override; in r300_texture_create_object()
977 tex->domain = base->flags & R300_RESOURCE_FLAG_TRANSFER ? in r300_texture_create_object()
980 tex->buf = buffer; in r300_texture_create_object()
982 r300_texture_desc_init(rscreen, tex, base); in r300_texture_create_object()
985 if (!tex->buf) { in r300_texture_create_object()
986 tex->buf = rws->buffer_create(rws, tex->tex.size_in_bytes, 2048, in r300_texture_create_object()
987 base->bind, tex->domain); in r300_texture_create_object()
989 if (!tex->buf) { in r300_texture_create_object()
990 FREE(tex); in r300_texture_create_object()
995 tex->cs_buf = rws->buffer_get_cs_handle(tex->buf); in r300_texture_create_object()
997 rws->buffer_set_tiling(tex->buf, NULL, in r300_texture_create_object()
998 tex->tex.microtile, tex->tex.macrotile[0], in r300_texture_create_object()
1000 tex->tex.stride_in_bytes[0]); in r300_texture_create_object()
1002 return tex; in r300_texture_create_object()
1078 struct r300_resource* tex = r300_resource(texture); in r300_create_surface_custom() local
1080 unsigned level = surf_tmpl->u.tex.level; in r300_create_surface_custom()
1082 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in r300_create_surface_custom()
1094 surface->base.u.tex.level = level; in r300_create_surface_custom()
1095 surface->base.u.tex.first_layer = surf_tmpl->u.tex.first_layer; in r300_create_surface_custom()
1096 surface->base.u.tex.last_layer = surf_tmpl->u.tex.last_layer; in r300_create_surface_custom()
1098 surface->buf = tex->buf; in r300_create_surface_custom()
1099 surface->cs_buf = tex->cs_buf; in r300_create_surface_custom()
1102 surface->domain = tex->domain; in r300_create_surface_custom()
1106 surface->offset = r300_texture_get_offset(tex, level, in r300_create_surface_custom()
1107 surf_tmpl->u.tex.first_layer); in r300_create_surface_custom()
1111 surface->cbzb_allowed = tex->tex.cbzb_allowed[level]; in r300_create_surface_custom()
1116 tex->b.b.nr_samples, in r300_create_surface_custom()
1117 tex->tex.microtile, in r300_create_surface_custom()
1118 tex->tex.macrotile[level], in r300_create_surface_custom()
1127 tex->tex.stride_in_bytes[level] * surface->cbzb_height; in r300_create_surface_custom()
1142 tex->tex.microtile ? "YES" : " NO", in r300_create_surface_custom()
1143 tex->tex.macrotile[level] ? "YES" : " NO"); in r300_create_surface_custom()