Home
last modified time | relevance | path

Searched refs:tex (Results 1 – 25 of 625) sorted by relevance

12345678910>>...25

/external/mesa3d/src/gallium/drivers/r300/
Dr300_texture_desc.c83 static boolean r300_texture_macro_switch(struct r300_resource *tex, in r300_texture_macro_switch() argument
90 if (tex->b.b.nr_samples > 1) { in r300_texture_macro_switch()
94 tile = r300_get_pixel_alignment(tex->b.b.format, tex->b.b.nr_samples, in r300_texture_macro_switch()
95 tex->tex.microtile, RADEON_LAYOUT_TILED, dim, 0); in r300_texture_macro_switch()
97 texdim = u_minify(tex->tex.width0, level); in r300_texture_macro_switch()
99 texdim = u_minify(tex->tex.height0, level); in r300_texture_macro_switch()
115 struct r300_resource *tex, in r300_texture_get_stride() argument
123 if (tex->tex.stride_in_bytes_override) in r300_texture_get_stride()
124 return tex->tex.stride_in_bytes_override; in r300_texture_get_stride()
127 if (level > tex->b.b.last_level) { in r300_texture_get_stride()
[all …]
Dr300_texture.c909 struct r300_resource *tex, in r300_texture_setup_format_state() argument
916 struct pipe_resource *pt = &tex->b.b; in r300_texture_setup_format_state()
917 struct r300_texture_desc *desc = &tex->tex; in r300_texture_setup_format_state()
995 struct r300_resource *tex = r300_resource(surf->base.texture); in r300_texture_setup_fb_state() local
996 unsigned level = surf->base.u.tex.level; in r300_texture_setup_fb_state()
998 r300_stride_to_width(surf->base.format, tex->tex.stride_in_bytes[level]); in r300_texture_setup_fb_state()
1004 R300_DEPTHMACROTILE(tex->tex.macrotile[level]) | in r300_texture_setup_fb_state()
1005 R300_DEPTHMICROTILE(tex->tex.microtile) | in r300_texture_setup_fb_state()
1008 surf->pitch_zmask = tex->tex.zmask_stride_in_pixels[level]; in r300_texture_setup_fb_state()
1009 surf->pitch_hiz = tex->tex.hiz_stride_in_pixels[level]; in r300_texture_setup_fb_state()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_lower_tex.c42 project_src(nir_builder *b, nir_tex_instr *tex) in project_src() argument
45 int proj_index = nir_tex_instr_src_index(tex, nir_tex_src_projector); in project_src()
49 b->cursor = nir_before_instr(&tex->instr); in project_src()
52 nir_frcp(b, nir_ssa_for_src(b, tex->src[proj_index].src, 1)); in project_src()
55 for (unsigned i = 0; i < tex->num_srcs; i++) { in project_src()
56 switch (tex->src[i].src_type) { in project_src()
64 nir_ssa_for_src(b, tex->src[i].src, nir_tex_instr_src_size(tex, i)); in project_src()
70 if (tex->is_array && tex->src[i].src_type == nir_tex_src_coord) { in project_src()
71 switch (tex->coord_components) { in project_src()
96 nir_instr_rewrite_src(&tex->instr, in project_src()
[all …]
Dnir_lower_drawpixels.c118 nir_tex_instr *tex; in lower_color() local
130 tex = nir_tex_instr_create(state->shader, 1); in lower_color()
131 tex->op = nir_texop_tex; in lower_color()
132 tex->sampler_dim = GLSL_SAMPLER_DIM_2D; in lower_color()
133 tex->coord_components = 2; in lower_color()
134 tex->sampler_index = state->options->drawpix_sampler; in lower_color()
135 tex->texture_index = state->options->drawpix_sampler; in lower_color()
136 tex->dest_type = nir_type_float; in lower_color()
137 tex->src[0].src_type = nir_tex_src_coord; in lower_color()
138 tex->src[0].src = nir_src_for_ssa(texcoord); in lower_color()
[all …]
Dnir_lower_bitmap.c85 nir_tex_instr *tex; in lower_bitmap() local
91 tex = nir_tex_instr_create(shader, 1); in lower_bitmap()
92 tex->op = nir_texop_tex; in lower_bitmap()
93 tex->sampler_dim = GLSL_SAMPLER_DIM_2D; in lower_bitmap()
94 tex->coord_components = 2; in lower_bitmap()
95 tex->sampler_index = options->sampler; in lower_bitmap()
96 tex->texture_index = options->sampler; in lower_bitmap()
97 tex->dest_type = nir_type_float; in lower_bitmap()
98 tex->src[0].src_type = nir_tex_src_coord; in lower_bitmap()
99 tex->src[0].src = nir_src_for_ssa(texcoord); in lower_bitmap()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_resource_texture.c133 i915_texture_set_level_info(struct i915_texture *tex, in i915_texture_set_level_info() argument
136 assert(level < ARRAY_SIZE(tex->nr_images)); in i915_texture_set_level_info()
138 assert(!tex->image_offset[level]); in i915_texture_set_level_info()
140 tex->nr_images[level] = nr_images; in i915_texture_set_level_info()
141 tex->image_offset[level] = MALLOC(nr_images * sizeof(struct offset_pair)); in i915_texture_set_level_info()
142 tex->image_offset[level][0].nblocksx = 0; in i915_texture_set_level_info()
143 tex->image_offset[level][0].nblocksy = 0; in i915_texture_set_level_info()
146 unsigned i915_texture_offset(const struct i915_texture *tex, in i915_texture_offset() argument
150 x = tex->image_offset[level][layer].nblocksx in i915_texture_offset()
151 * util_format_get_blocksize(tex->b.b.format); in i915_texture_offset()
[all …]
Di915_state_static.c104 struct i915_texture *tex = i915_texture(cbuf_surface->texture); in update_framebuffer() local
105 assert(tex); in update_framebuffer()
107 i915->current.cbuf_bo = tex->buffer; in update_framebuffer()
109 BUF_3D_PITCH(tex->stride) | /* pitch in bytes */ in update_framebuffer()
110 buf_3d_tiling_bits(tex->tiling); in update_framebuffer()
112 layer = cbuf_surface->u.tex.first_layer; in update_framebuffer()
114 x = tex->image_offset[cbuf_surface->u.tex.level][layer].nblocksx; in update_framebuffer()
115 y = tex->image_offset[cbuf_surface->u.tex.level][layer].nblocksy; in update_framebuffer()
125 struct i915_texture *tex = i915_texture(depth_surface->texture); in update_framebuffer() local
126 unsigned offset = i915_texture_offset(tex, depth_surface->u.tex.level, in update_framebuffer()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_resource_texture.h150 struct svga_texture *tex = (struct svga_texture *)resource; in svga_texture() local
151 assert(tex == NULL || tex->b.vtbl == &svga_texture_vtbl); in svga_texture()
152 return tex; in svga_texture()
170 svga_age_texture_view(struct svga_texture *tex, unsigned level) in svga_age_texture_view() argument
172 assert(level < ARRAY_SIZE(tex->view_age)); in svga_age_texture_view()
173 tex->view_age[level] = ++(tex->age); in svga_age_texture_view()
179 check_face_level(const struct svga_texture *tex, in check_face_level() argument
182 if (tex->b.b.target == PIPE_TEXTURE_CUBE) { in check_face_level()
185 else if (tex->b.b.target == PIPE_TEXTURE_3D) { in check_face_level()
186 assert(face < tex->b.b.depth0); in check_face_level()
[all …]
Dsvga_resource_texture.c229 struct svga_texture *tex = svga_texture(pt); in svga_texture_destroy() local
233 svga_sampler_view_reference(&tex->cached_view, NULL); in svga_texture_destroy()
238 SVGA_DBG(DEBUG_DMA, "unref sid %p (texture)\n", tex->handle); in svga_texture_destroy()
239 svga_screen_surface_destroy(ss, &tex->key, &tex->handle); in svga_texture_destroy()
241 ss->hud.total_resource_bytes -= tex->size; in svga_texture_destroy()
243 FREE(tex->defined); in svga_texture_destroy()
244 FREE(tex->rendered_to); in svga_texture_destroy()
245 FREE(tex->dirty); in svga_texture_destroy()
246 FREE(tex); in svga_texture_destroy()
410 struct svga_texture *tex = svga_texture(texture); in svga_texture_transfer_map_direct() local
[all …]
Dsvga_surface.c108 struct svga_texture *tex, in svga_texture_view_surface() argument
132 key->size.width = u_minify(tex->b.b.width0, start_mip); in svga_texture_view_surface()
133 key->size.height = u_minify(tex->b.b.height0, start_mip); in svga_texture_view_surface()
134 key->size.depth = zslice_pick < 0 ? u_minify(tex->b.b.depth0, start_mip) : 1; in svga_texture_view_surface()
140 key->sampleCount = tex->b.b.nr_samples > 1 ? tex->b.b.nr_samples : 0; in svga_texture_view_surface()
146 if (tex->b.b.target == PIPE_TEXTURE_CUBE && layer_pick < 0) { in svga_texture_view_surface()
149 } else if (tex->b.b.target == PIPE_TEXTURE_1D_ARRAY || in svga_texture_view_surface()
150 tex->b.b.target == PIPE_TEXTURE_2D_ARRAY) { in svga_texture_view_surface()
177 if (svga_is_texture_level_defined(tex, j + layer_pick, i + start_mip)) { in svga_texture_view_surface()
179 u_minify(tex->b.b.depth0, i + start_mip) : in svga_texture_view_surface()
[all …]
Dsvga_sampler_view.c63 struct svga_texture *tex = svga_texture(pt); in svga_get_tex_sampler_view() local
95 if (tex->cached_view && in svga_get_tex_sampler_view()
96 tex->cached_view->min_lod == min_lod && in svga_get_tex_sampler_view()
97 tex->cached_view->max_lod == max_lod) { in svga_get_tex_sampler_view()
98 svga_sampler_view_reference(&sv, tex->cached_view); in svga_get_tex_sampler_view()
133 sv->handle = tex->handle; in svga_get_tex_sampler_view()
148 sv->age = tex->age; in svga_get_tex_sampler_view()
149 sv->handle = svga_texture_view_surface(svga, tex, in svga_get_tex_sampler_view()
159 sv->handle = tex->handle; in svga_get_tex_sampler_view()
167 svga_sampler_view_reference(&tex->cached_view, sv); in svga_get_tex_sampler_view()
[all …]
/external/libunwind/doc/
DMakefile.am28 libunwind.tex libunwind-dynamic.tex libunwind-ia64.tex \
29 libunwind-ptrace.tex libunwind-setjmp.tex \
30 unw_backtrace.tex \
31 unw_flush_cache.tex \
32 unw_get_accessors.tex \
33 unw_get_proc_info.tex \
34 unw_get_proc_info_by_ip.tex \
35 unw_get_proc_name.tex \
36 unw_get_fpreg.tex \
37 unw_get_reg.tex \
[all …]
/external/mesa3d/src/gallium/drivers/ilo/
Dilo_resource.c252 tex_free_slices(struct ilo_texture *tex) in tex_free_slices() argument
254 FREE(tex->slices[0]); in tex_free_slices()
258 tex_alloc_slices(struct ilo_texture *tex) in tex_alloc_slices() argument
260 const struct pipe_resource *templ = &tex->base; in tex_alloc_slices()
278 tex->slices[0] = slices; in tex_alloc_slices()
282 tex->slices[lv] = tex->slices[lv - 1] + in tex_alloc_slices()
290 tex_create_bo(struct ilo_texture *tex) in tex_create_bo() argument
292 struct ilo_screen *is = ilo_screen(tex->base.screen); in tex_create_bo()
293 const char *name = resource_get_bo_name(&tex->base); in tex_create_bo()
294 const bool cpu_init = resource_get_cpu_init(&tex->base); in tex_create_bo()
[all …]
Dilo_transfer.c92 struct ilo_texture *tex = ilo_texture(res); in resource_get_transfer_method() local
96 if (tex->image.tiling == GEN8_TILING_W || tex->separate_s8) { in resource_get_transfer_method()
99 ilo_image_can_enable_aux(&tex->image, transfer->level)) { in resource_get_transfer_method()
103 } else if (tex->image_format != tex->base.format) { in resource_get_transfer_method()
116 tiled = (tex->image.tiling != GEN6_TILING_NONE); in resource_get_transfer_method()
345 tex_get_box_origin(const struct ilo_texture *tex, in tex_get_box_origin() argument
352 ilo_image_get_slice_pos(&tex->image, level, box->z + slice, &x, &y); in tex_get_box_origin()
356 ilo_image_pos_to_mem(&tex->image, x, y, mem_x, mem_y); in tex_get_box_origin()
360 tex_get_box_offset(const struct ilo_texture *tex, unsigned level, in tex_get_box_offset() argument
365 tex_get_box_origin(tex, level, 0, box, &mem_x, &mem_y); in tex_get_box_offset()
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_nir_lower_input_attachments.c69 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 2 + multisampled); in try_lower_input_load() local
71 tex->op = nir_texop_txf; in try_lower_input_load()
75 tex->dest_type = nir_type_float; in try_lower_input_load()
78 tex->dest_type = nir_type_int; in try_lower_input_load()
81 tex->dest_type = nir_type_uint; in try_lower_input_load()
86 tex->is_array = true; in try_lower_input_load()
87 tex->is_shadow = false; in try_lower_input_load()
89 tex->texture = nir_deref_var_clone(load->variables[0], tex); in try_lower_input_load()
90 tex->sampler = NULL; in try_lower_input_load()
91 tex->texture_index = 0; in try_lower_input_load()
[all …]
Danv_nir_apply_pipeline_layout.c91 nir_tex_instr *tex = nir_instr_as_tex(instr); in get_used_bindings_block() local
92 assert(tex->texture); in get_used_bindings_block()
93 add_var_binding(state, tex->texture->var); in get_used_bindings_block()
94 if (tex->sampler) in get_used_bindings_block()
95 add_var_binding(state, tex->sampler->var); in get_used_bindings_block()
132 lower_tex_deref(nir_tex_instr *tex, nir_deref_var *deref, in lower_tex_deref() argument
151 nir_tex_src *new_srcs = rzalloc_array(tex, nir_tex_src, in lower_tex_deref()
152 tex->num_srcs + 1); in lower_tex_deref()
154 for (unsigned i = 0; i < tex->num_srcs; i++) { in lower_tex_deref()
155 new_srcs[i].src_type = tex->src[i].src_type; in lower_tex_deref()
[all …]
/external/mesa3d/src/mesa/main/
Dtexcompress_s3tc.c366 GLubyte tex[4]; in fetch_rgb_dxt1() local
367 fetch_ext_rgb_dxt1(rowStride, map, i, j, tex); in fetch_rgb_dxt1()
368 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgb_dxt1()
369 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgb_dxt1()
370 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]); in fetch_rgb_dxt1()
371 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]); in fetch_rgb_dxt1()
383 GLubyte tex[4]; in fetch_rgba_dxt1() local
384 fetch_ext_rgba_dxt1(rowStride, map, i, j, tex); in fetch_rgba_dxt1()
385 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]); in fetch_rgba_dxt1()
386 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]); in fetch_rgba_dxt1()
[all …]
/external/skqp/tests/
DVkWrapTests.cpp41 sk_sp<GrTexture> tex = gpu->wrapBackendTexture(origBackendTex, kBorrow_GrWrapOwnership); in wrap_tex_test() local
42 REPORTER_ASSERT(reporter, tex); in wrap_tex_test()
49 tex = gpu->wrapBackendTexture(backendTex, kBorrow_GrWrapOwnership); in wrap_tex_test()
50 REPORTER_ASSERT(reporter, !tex); in wrap_tex_test()
51 tex = gpu->wrapBackendTexture(backendTex, kAdopt_GrWrapOwnership); in wrap_tex_test()
52 REPORTER_ASSERT(reporter, !tex); in wrap_tex_test()
60 tex = gpu->wrapBackendTexture(backendTex, kBorrow_GrWrapOwnership); in wrap_tex_test()
61 REPORTER_ASSERT(reporter, !tex); in wrap_tex_test()
62 tex = gpu->wrapBackendTexture(backendTex, kAdopt_GrWrapOwnership); in wrap_tex_test()
63 REPORTER_ASSERT(reporter, !tex); in wrap_tex_test()
[all …]
DVkClearTests.cpp62 GrTexture* tex = gpu->createTexture(surfDesc, SkBudgeted::kNo); in basic_clear_test()
63 SkASSERT(tex); in basic_clear_test()
64 SkASSERT(tex->asRenderTarget()); in basic_clear_test()
67 gpu->clear(rect, GrColor_TRANSPARENT_BLACK, tex->asRenderTarget()); in basic_clear_test()
69 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0); in basic_clear_test()
77 gpu->clear(rect, GrColor_WHITE, tex->asRenderTarget()); in basic_clear_test()
79 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0); in basic_clear_test()
89 gpu->clear(rect, myColor, tex->asRenderTarget()); in basic_clear_test()
91 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0); in basic_clear_test()
118 GrTexture* tex = gpu->createTexture(surfDesc, SkBudgeted::kNo); in sub_clear_test()
[all …]
/external/skia/tests/
DVkWrapTests.cpp41 sk_sp<GrTexture> tex = gpu->wrapBackendTexture(origBackendTex, kBorrow_GrWrapOwnership); in wrap_tex_test() local
42 REPORTER_ASSERT(reporter, tex); in wrap_tex_test()
49 tex = gpu->wrapBackendTexture(backendTex, kBorrow_GrWrapOwnership); in wrap_tex_test()
50 REPORTER_ASSERT(reporter, !tex); in wrap_tex_test()
51 tex = gpu->wrapBackendTexture(backendTex, kAdopt_GrWrapOwnership); in wrap_tex_test()
52 REPORTER_ASSERT(reporter, !tex); in wrap_tex_test()
60 tex = gpu->wrapBackendTexture(backendTex, kBorrow_GrWrapOwnership); in wrap_tex_test()
61 REPORTER_ASSERT(reporter, !tex); in wrap_tex_test()
62 tex = gpu->wrapBackendTexture(backendTex, kAdopt_GrWrapOwnership); in wrap_tex_test()
63 REPORTER_ASSERT(reporter, !tex); in wrap_tex_test()
[all …]
DVkClearTests.cpp62 GrTexture* tex = gpu->createTexture(surfDesc, SkBudgeted::kNo); in basic_clear_test()
63 SkASSERT(tex); in basic_clear_test()
64 SkASSERT(tex->asRenderTarget()); in basic_clear_test()
67 gpu->clear(rect, GrColor_TRANSPARENT_BLACK, tex->asRenderTarget()); in basic_clear_test()
69 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0); in basic_clear_test()
77 gpu->clear(rect, GrColor_WHITE, tex->asRenderTarget()); in basic_clear_test()
79 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0); in basic_clear_test()
89 gpu->clear(rect, myColor, tex->asRenderTarget()); in basic_clear_test()
91 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0); in basic_clear_test()
118 GrTexture* tex = gpu->createTexture(surfDesc, SkBudgeted::kNo); in sub_clear_test()
[all …]
/external/mesa3d/src/gallium/winsys/sw/wrapper/
Dwrapper_sw_winsys.c61 struct pipe_resource *tex; member
104 struct pipe_resource *tex = wdt->tex; in wsw_dt_get_stride() local
108 map = pipe_transfer_map(pipe, tex, 0, 0, in wsw_dt_get_stride()
110 0, 0, wdt->tex->width0, wdt->tex->height0, &tr); in wsw_dt_get_stride()
124 struct pipe_resource *tex, unsigned *stride) in wsw_dt_wrap_texture() argument
130 wdt->tex = tex; in wsw_dt_wrap_texture()
141 pipe_resource_reference(&tex, NULL); in wsw_dt_wrap_texture()
156 struct pipe_resource *tex; in wsw_dt_create() local
172 tex = wsw->screen->resource_create(wsw->screen, &templ); in wsw_dt_create()
173 if (!tex) in wsw_dt_create()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_texture.c52 static void bind_sampler_states(struct fd_texture_stateobj *tex, in bind_sampler_states() argument
59 tex->samplers[p] = hwcso[i]; in bind_sampler_states()
60 if (tex->samplers[p]) in bind_sampler_states()
61 tex->valid_samplers |= (1 << p); in bind_sampler_states()
63 tex->valid_samplers &= ~(1 << p); in bind_sampler_states()
66 tex->num_samplers = util_last_bit(tex->valid_samplers); in bind_sampler_states()
69 static void set_sampler_views(struct fd_texture_stateobj *tex, in set_sampler_views() argument
77 pipe_sampler_view_reference(&tex->textures[p], view); in set_sampler_views()
78 if (tex->textures[p]) in set_sampler_views()
79 tex->valid_textures |= (1 << p); in set_sampler_views()
[all …]
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_surface.c40 static int amdgpu_surface_sanity(const struct pipe_resource *tex) in amdgpu_surface_sanity() argument
43 if (!tex->width0 || !tex->height0 || !tex->depth0 || in amdgpu_surface_sanity()
44 !tex->array_size) in amdgpu_surface_sanity()
47 switch (tex->nr_samples) { in amdgpu_surface_sanity()
58 switch (tex->target) { in amdgpu_surface_sanity()
60 if (tex->height0 > 1) in amdgpu_surface_sanity()
65 if (tex->depth0 > 1 || tex->array_size > 1) in amdgpu_surface_sanity()
69 if (tex->array_size > 1) in amdgpu_surface_sanity()
73 if (tex->height0 > 1) in amdgpu_surface_sanity()
79 if (tex->depth0 > 1) in amdgpu_surface_sanity()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_blit.c131 surf_tmpl.u.tex.level = level; in si_blit_dbcb_copy()
137 surf_tmpl.u.tex.first_layer = layer; in si_blit_dbcb_copy()
138 surf_tmpl.u.tex.last_layer = layer; in si_blit_dbcb_copy()
224 surf_tmpl.u.tex.level = level; in si_blit_decompress_zs_planes_in_place()
232 surf_tmpl.u.tex.first_layer = layer; in si_blit_decompress_zs_planes_in_place()
233 surf_tmpl.u.tex.last_layer = layer; in si_blit_decompress_zs_planes_in_place()
302 struct r600_texture *tex, in si_flush_depth_texture() argument
314 levels_z = level_mask & tex->dirty_level_mask; in si_flush_depth_texture()
317 if (r600_can_sample_zs(tex, false)) in si_flush_depth_texture()
324 levels_s = level_mask & tex->stencil_dirty_level_mask; in si_flush_depth_texture()
[all …]

12345678910>>...25