Searched refs:tex (Results 1 - 25 of 528) sorted by relevance

1234567891011>>

/external/mesa3d/src/gallium/drivers/r300/
H A Dr300_texture_desc.c83 static boolean r300_texture_macro_switch(struct r300_resource *tex, argument
90 if (tex->b.b.nr_samples > 1) {
94 tile = r300_get_pixel_alignment(tex->b.b.format, tex->b.b.nr_samples,
95 tex->tex.microtile, RADEON_LAYOUT_TILED, dim, 0);
97 texdim = u_minify(tex->tex.width0, level);
99 texdim = u_minify(tex->tex
114 r300_texture_get_stride(struct r300_screen *screen, struct r300_resource *tex, unsigned level) argument
151 r300_texture_get_nblocksy(struct r300_resource *tex, unsigned level, boolean *out_aligned_for_cbzb) argument
212 r300_setup_miptree(struct r300_screen *screen, struct r300_resource *tex, boolean align_for_cbzb) argument
270 r300_setup_flags(struct r300_resource *tex) argument
284 r300_setup_cbzb_flags(struct r300_screen *rscreen, struct r300_resource *tex) argument
314 r300_setup_hyperz_properties(struct r300_screen *screen, struct r300_resource *tex) argument
414 r300_setup_cmask_properties(struct r300_screen *screen, struct r300_resource *tex) argument
467 r300_setup_tiling(struct r300_screen *screen, struct r300_resource *tex) argument
524 r300_tex_print_info(struct r300_resource *tex, const char *func) argument
540 r300_texture_desc_init(struct r300_screen *rscreen, struct r300_resource *tex, const struct pipe_resource *base) argument
633 r300_texture_get_offset(struct r300_resource *tex, unsigned level, unsigned layer) argument
[all...]
H A Dr300_texture.c909 struct r300_resource *tex,
916 struct pipe_resource *pt = &tex->b.b;
917 struct r300_texture_desc *desc = &tex->tex;
995 struct r300_resource *tex = r300_resource(surf->base.texture); local
996 unsigned level = surf->base.u.tex.level;
998 r300_stride_to_width(surf->base.format, tex->tex.stride_in_bytes[level]);
1004 R300_DEPTHMACROTILE(tex->tex
908 r300_texture_setup_format_state(struct r300_screen *screen, struct r300_resource *tex, enum pipe_format format, unsigned level, unsigned width0_override, unsigned height0_override, struct r300_texture_format_state *out) argument
1030 struct r300_resource* tex = (struct r300_resource*)texture; local
1050 struct r300_resource* tex = (struct r300_resource*)texture; local
1079 struct r300_resource *tex = NULL; local
1223 struct r300_resource* tex = r300_resource(texture); local
[all...]
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_resource_texture.h150 struct svga_texture *tex = (struct svga_texture *)resource; local
151 assert(tex == NULL || tex->b.vtbl == &svga_texture_vtbl);
152 return tex;
170 svga_age_texture_view(struct svga_texture *tex, unsigned level) argument
172 assert(level < ARRAY_SIZE(tex->view_age));
173 tex->view_age[level] = ++(tex->age);
179 check_face_level(const struct svga_texture *tex, argument
182 if (tex
200 svga_define_texture_level(struct svga_texture *tex, unsigned face,unsigned level) argument
210 svga_is_texture_level_defined(const struct svga_texture *tex, unsigned face, unsigned level) argument
219 svga_set_texture_rendered_to(struct svga_texture *tex, unsigned face, unsigned level) argument
229 svga_clear_texture_rendered_to(struct svga_texture *tex, unsigned face, unsigned level) argument
238 svga_was_texture_rendered_to(const struct svga_texture *tex, unsigned face, unsigned level) argument
246 svga_set_texture_dirty(struct svga_texture *tex, unsigned face, unsigned level) argument
254 svga_clear_texture_dirty(struct svga_texture *tex) argument
263 svga_is_texture_dirty(const struct svga_texture *tex, unsigned face, unsigned level) argument
[all...]
H A Dsvga_surface.c108 struct svga_texture *tex,
132 key->size.width = u_minify(tex->b.b.width0, start_mip);
133 key->size.height = u_minify(tex->b.b.height0, start_mip);
134 key->size.depth = zslice_pick < 0 ? u_minify(tex->b.b.depth0, start_mip) : 1;
140 key->sampleCount = tex->b.b.nr_samples > 1 ? tex->b.b.nr_samples : 0;
146 if (tex->b.b.target == PIPE_TEXTURE_CUBE && layer_pick < 0) {
149 } else if (tex->b.b.target == PIPE_TEXTURE_1D_ARRAY ||
150 tex->b.b.target == PIPE_TEXTURE_2D_ARRAY) {
177 if (svga_is_texture_level_defined(tex,
107 svga_texture_view_surface(struct svga_context *svga, struct svga_texture *tex, unsigned bind_flags, SVGA3dSurfaceFlags flags, SVGA3dSurfaceFormat format, unsigned start_mip, unsigned num_mip, int layer_pick, unsigned num_layers, int zslice_pick, struct svga_host_surface_cache_key *key) argument
211 struct svga_texture *tex = svga_texture(pt); local
381 struct svga_texture *tex = svga_texture(s->base.texture); local
565 struct svga_texture *tex = svga_texture(surf->texture); local
609 struct svga_texture *tex = svga_texture(surf->texture); local
694 struct svga_texture *tex = svga_texture(surf->texture); local
[all...]
/external/blktrace/doc/
H A DMakefile5 blktrace.tex:
6 @touch blktrace.tex
8 blktrace.pdf: blktrace.tex
9 @latex blktrace.tex
10 @latex blktrace.tex
/external/blktrace/btreplay/doc/
H A DMakefile5 btreplay.tex:
6 @touch btreplay.tex
8 btreplay.dvi: btreplay.tex abstract.tex
9 @latex btreplay.tex
10 @latex btreplay.tex
/external/blktrace/btt/doc/
H A DMakefile1 DOCTMP = btt.log btt.aux btt.dvi btt.toc btt.tex.bak
5 btt.tex: activity.eps qhist.eps dhist.eps seek.eps
6 @touch btt.tex
8 btt.pdf: btt.tex
9 @latex btt.tex
10 @latex btt.tex
/external/mesa3d/src/compiler/nir/
H A Dnir_lower_tex.c42 project_src(nir_builder *b, nir_tex_instr *tex) argument
45 int proj_index = nir_tex_instr_src_index(tex, nir_tex_src_projector);
49 b->cursor = nir_before_instr(&tex->instr);
52 nir_frcp(b, nir_ssa_for_src(b, tex->src[proj_index].src, 1));
55 for (unsigned i = 0; i < tex->num_srcs; i++) {
56 switch (tex->src[i].src_type) {
64 nir_ssa_for_src(b, tex->src[i].src, nir_tex_instr_src_size(tex, i));
70 if (tex->is_array && tex
105 lower_offset(nir_builder *b, nir_tex_instr *tex) argument
153 get_texture_size(nir_builder *b, nir_tex_instr *tex) argument
182 lower_rect(nir_builder *b, nir_tex_instr *tex) argument
203 sample_plane(nir_builder *b, nir_tex_instr *tex, int plane) argument
234 convert_yuv_to_rgb(nir_builder *b, nir_tex_instr *tex, nir_ssa_def *y, nir_ssa_def *u, nir_ssa_def *v) argument
261 lower_y_uv_external(nir_builder *b, nir_tex_instr *tex) argument
275 lower_y_u_v_external(nir_builder *b, nir_tex_instr *tex) argument
290 lower_yx_xuxv_external(nir_builder *b, nir_tex_instr *tex) argument
308 replace_gradient_with_lod(nir_builder *b, nir_ssa_def *lod, nir_tex_instr *tex) argument
356 lower_gradient_cube_map(nir_builder *b, nir_tex_instr *tex) argument
504 lower_gradient_shadow(nir_builder *b, nir_tex_instr *tex) argument
557 saturate_src(nir_builder *b, nir_tex_instr *tex, unsigned sat_mask) argument
627 swizzle_result(nir_builder *b, nir_tex_instr *tex, const uint8_t swizzle[4]) argument
667 linearize_srgb_result(nir_builder *b, nir_tex_instr *tex) argument
715 nir_tex_instr *tex = nir_instr_as_tex(instr); local
[all...]
H A Dnir_lower_bitmap.c85 nir_tex_instr *tex; local
91 tex = nir_tex_instr_create(shader, 1);
92 tex->op = nir_texop_tex;
93 tex->sampler_dim = GLSL_SAMPLER_DIM_2D;
94 tex->coord_components = 2;
95 tex->sampler_index = options->sampler;
96 tex->texture_index = options->sampler;
97 tex->dest_type = nir_type_float;
98 tex->src[0].src_type = nir_tex_src_coord;
99 tex
[all...]
H A Dnir_lower_drawpixels.c118 nir_tex_instr *tex; local
130 tex = nir_tex_instr_create(state->shader, 1);
131 tex->op = nir_texop_tex;
132 tex->sampler_dim = GLSL_SAMPLER_DIM_2D;
133 tex->coord_components = 2;
134 tex->sampler_index = state->options->drawpix_sampler;
135 tex->texture_index = state->options->drawpix_sampler;
136 tex->dest_type = nir_type_float;
137 tex->src[0].src_type = nir_tex_src_coord;
138 tex
[all...]
H A Dnir_normalize_cubemap_coords.c45 nir_tex_instr *tex = nir_instr_as_tex(instr); local
46 if (tex->sampler_dim != GLSL_SAMPLER_DIM_CUBE)
49 b->cursor = nir_before_instr(&tex->instr);
51 for (unsigned i = 0; i < tex->num_srcs; i++) {
52 if (tex->src[i].src_type != nir_tex_src_coord)
56 nir_ssa_for_src(b, tex->src[i].src, nir_tex_instr_src_size(tex, i));
69 if (tex->coord_components == 4) {
77 nir_instr_rewrite_src(&tex->instr,
78 &tex
[all...]
/external/mesa3d/src/gallium/drivers/i915/
H A Di915_resource_texture.c133 i915_texture_set_level_info(struct i915_texture *tex, argument
136 assert(level < ARRAY_SIZE(tex->nr_images));
138 assert(!tex->image_offset[level]);
140 tex->nr_images[level] = nr_images;
141 tex->image_offset[level] = MALLOC(nr_images * sizeof(struct offset_pair));
142 tex->image_offset[level][0].nblocksx = 0;
143 tex->image_offset[level][0].nblocksy = 0;
146 unsigned i915_texture_offset(const struct i915_texture *tex, argument
150 x = tex->image_offset[level][layer].nblocksx
151 * util_format_get_blocksize(tex
158 i915_texture_set_image_offset(struct i915_texture *tex, unsigned level, unsigned img, unsigned nblocksx, unsigned nblocksy) argument
176 i915_texture_tiling(struct i915_screen *is, struct i915_texture *tex) argument
203 i9x5_scanout_layout(struct i915_texture *tex) argument
238 i9x5_display_target_layout(struct i915_texture *tex) argument
269 i9x5_special_layout(struct i915_texture *tex) argument
295 i9x5_texture_layout_cube(struct i915_texture *tex) argument
333 i915_texture_layout_2d(struct i915_texture *tex) argument
361 i915_texture_layout_3d(struct i915_texture *tex) argument
406 i915_texture_layout(struct i915_texture * tex) argument
436 i945_texture_layout_2d(struct i915_texture *tex) argument
499 i945_texture_layout_3d(struct i915_texture *tex) argument
554 i945_texture_layout_cube(struct i915_texture *tex) argument
650 i945_texture_layout(struct i915_texture * tex) argument
690 struct i915_texture *tex = i915_texture(texture); local
701 struct i915_texture *tex = i915_texture(pt); local
723 struct i915_texture *tex = i915_texture(resource); local
796 struct i915_texture *tex = i915_texture(itransfer->b.resource); local
926 struct i915_texture *tex = CALLOC_STRUCT(i915_texture); local
983 struct i915_texture *tex; local
[all...]
H A Di915_resource.h89 unsigned i915_texture_offset(const struct i915_texture *tex,
99 struct i915_texture *tex = (struct i915_texture *)resource; local
100 assert(tex->b.vtbl == &i915_texture_vtbl);
101 return tex;
106 struct i915_buffer *tex = (struct i915_buffer *)resource; local
107 assert(tex->b.vtbl == &i915_buffer_vtbl);
108 return tex;
/external/mesa3d/src/gallium/drivers/ilo/
H A Dilo_resource.c50 [PIPE_TEXTURE_1D] = "tex-1d",
51 [PIPE_TEXTURE_2D] = "tex-2d",
52 [PIPE_TEXTURE_3D] = "tex-3d",
53 [PIPE_TEXTURE_CUBE] = "tex-cube",
54 [PIPE_TEXTURE_RECT] = "tex-rect",
55 [PIPE_TEXTURE_1D_ARRAY] = "tex-1d-array",
56 [PIPE_TEXTURE_2D_ARRAY] = "tex-2d-array",
57 [PIPE_TEXTURE_CUBE_ARRAY] = "tex-cube-array",
252 tex_free_slices(struct ilo_texture *tex) argument
254 FREE(tex
258 tex_alloc_slices(struct ilo_texture *tex) argument
290 tex_create_bo(struct ilo_texture *tex) argument
321 tex_create_separate_stencil(struct ilo_texture *tex) argument
348 tex_create_hiz(struct ilo_texture *tex) argument
381 tex_create_mcs(struct ilo_texture *tex) argument
400 tex_destroy(struct ilo_texture *tex) argument
413 tex_alloc_bos(struct ilo_texture *tex) argument
435 tex_import_handle(struct ilo_texture *tex, const struct winsys_handle *handle, struct ilo_image_info *info) argument
469 tex_init_image(struct ilo_texture *tex, const struct winsys_handle *handle, bool *separate_stencil) argument
550 struct ilo_texture *tex; local
576 tex_get_handle(struct ilo_texture *tex, struct winsys_handle *handle) argument
769 struct ilo_texture *tex = ilo_texture(res); local
[all...]
H A Dilo_resource.h145 ilo_texture_get_slice(const struct ilo_texture *tex, argument
148 assert(level <= tex->base.last_level);
149 assert(slice < ((tex->base.target == PIPE_TEXTURE_3D) ?
150 u_minify(tex->base.depth0, level) : tex->base.array_size));
152 return &tex->slices[level][slice];
156 ilo_texture_set_slice_flags(struct ilo_texture *tex, unsigned level, argument
161 ilo_texture_get_slice(tex, level, first_slice + num_slices - 1);
163 ilo_texture_get_slice(tex, level, first_slice);
172 ilo_texture_set_slice_clear_value(struct ilo_texture *tex, unsigne argument
[all...]
/external/mesa3d/src/intel/vulkan/
H A Danv_nir_lower_input_attachments.c69 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 2 + multisampled); local
71 tex->op = nir_texop_txf;
75 tex->dest_type = nir_type_float;
78 tex->dest_type = nir_type_int;
81 tex->dest_type = nir_type_uint;
86 tex->is_array = true;
87 tex->is_shadow = false;
89 tex->texture = nir_deref_var_clone(load->variables[0], tex);
90 tex
[all...]
/external/vulkan-validation-layers/demos/
H A Dcube.frag24 layout (binding = 1) uniform sampler2D tex;
29 uFragColor = texture(tex, texcoord.xy);
/external/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_surface.c41 // struct fd_resource* tex = fd_resource(ptex);
48 debug_assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer);
51 unsigned level = surf_tmpl->u.tex.level;
60 psurf->u.tex.level = level;
61 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer;
62 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer;
H A Dfreedreno_texture.c52 static void bind_sampler_states(struct fd_texture_stateobj *tex, argument
59 tex->samplers[p] = hwcso[i];
60 if (tex->samplers[p])
61 tex->valid_samplers |= (1 << p);
63 tex->valid_samplers &= ~(1 << p);
66 tex->num_samplers = util_last_bit(tex->valid_samplers);
69 static void set_sampler_views(struct fd_texture_stateobj *tex, argument
77 pipe_sampler_view_reference(&tex->textures[p], view);
78 if (tex
144 fd_setup_border_colors(struct fd_texture_stateobj *tex, void *ptr, unsigned offset) argument
[all...]
/external/skia/tests/
H A DVkClearTests.cpp62 GrTexture* tex = gpu->createTexture(surfDesc, SkBudgeted::kNo);
63 SkASSERT(tex);
64 SkASSERT(tex->asRenderTarget());
67 gpu->clear(rect, GrColor_TRANSPARENT_BLACK, tex->asRenderTarget());
69 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0);
77 gpu->clear(rect, GrColor_WHITE, tex->asRenderTarget());
79 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0);
89 gpu->clear(rect, myColor, tex->asRenderTarget());
91 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0);
118 GrTexture* tex
[all...]
/external/skqp/tests/
H A DVkClearTests.cpp62 GrTexture* tex = gpu->createTexture(surfDesc, SkBudgeted::kNo);
63 SkASSERT(tex);
64 SkASSERT(tex->asRenderTarget());
67 gpu->clear(rect, GrColor_TRANSPARENT_BLACK, tex->asRenderTarget());
69 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0);
77 gpu->clear(rect, GrColor_WHITE, tex->asRenderTarget());
79 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0);
89 gpu->clear(rect, myColor, tex->asRenderTarget());
91 gpu->readPixels(tex, 0, 0, 5, 5, config, (void*)buffer.get(), 0);
118 GrTexture* tex
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_nir_lower_tex_src_plane.c70 nir_tex_instr *tex = nir_instr_as_tex(instr); local
71 int plane_index = nir_tex_instr_src_index(tex, nir_tex_src_plane);
76 nir_const_value *plane = nir_src_as_const_value(tex->src[plane_index].src);
80 unsigned y_samp = tex->texture_index;
82 assume(tex->texture_index == tex->sampler_index);
86 tex->texture_index = tex->sampler_index =
90 nir_tex_instr_remove_src(tex, plane_index);
/external/mesa3d/src/gallium/winsys/sw/wrapper/
H A Dwrapper_sw_winsys.c61 struct pipe_resource *tex; member in struct:wrapper_sw_displaytarget
104 struct pipe_resource *tex = wdt->tex; local
108 map = pipe_transfer_map(pipe, tex, 0, 0,
110 0, 0, wdt->tex->width0, wdt->tex->height0, &tr);
124 struct pipe_resource *tex, unsigned *stride)
130 wdt->tex = tex;
141 pipe_resource_reference(&tex, NUL
123 wsw_dt_wrap_texture(struct wrapper_sw_winsys *wsw, struct pipe_resource *tex, unsigned *stride) argument
156 struct pipe_resource *tex; local
186 struct pipe_resource *tex; local
203 struct pipe_resource *tex = wdt->tex; local
216 struct pipe_resource *tex = wdt->tex; local
[all...]
/external/mesa3d/src/mesa/main/
H A Dtexcompress_s3tc.c366 GLubyte tex[4]; local
367 fetch_ext_rgb_dxt1(rowStride, map, i, j, tex);
368 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]);
369 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOMP]);
370 texel[BCOMP] = UBYTE_TO_FLOAT(tex[BCOMP]);
371 texel[ACOMP] = UBYTE_TO_FLOAT(tex[ACOMP]);
383 GLubyte tex[4]; local
384 fetch_ext_rgba_dxt1(rowStride, map, i, j, tex);
385 texel[RCOMP] = UBYTE_TO_FLOAT(tex[RCOMP]);
386 texel[GCOMP] = UBYTE_TO_FLOAT(tex[GCOM
400 GLubyte tex[4]; local
417 GLubyte tex[4]; local
435 GLubyte tex[4]; local
452 GLubyte tex[4]; local
469 GLubyte tex[4]; local
486 GLubyte tex[4]; local
[all...]
/external/mesa3d/src/gallium/auxiliary/hud/
H A Dhud_context.h43 hud_draw(struct hud_context *hud, struct pipe_resource *tex);

Completed in 541 milliseconds

1234567891011>>