Searched refs:tex (Results 51 - 75 of 528) sorted by relevance

1234567891011>>

/external/replicaisland/src/com/replica/replicaisland/
H A DHudSystem.java283 Texture tex = mFuelDrawable.getTexture();
284 mFuelDrawable.resize(tex.width, tex.height);
323 Texture tex = bitmap.getTexture();
324 bitmap.resize(tex.width, tex.height);
341 Texture tex = bitmap.getTexture();
342 bitmap.resize(tex.width, tex.height);
343 bitmap.setWidth((int)(tex
[all...]
/external/mesa3d/src/gallium/drivers/radeon/
H A Dr600_test_dma.c60 static void alloc_cpu_texture(struct cpu_texture *tex, argument
63 tex->stride = align(templ->width0 * bpp, RAND_NUM_SIZE);
64 tex->layer_stride = (uint64_t)tex->stride * templ->height0;
65 tex->size = tex->layer_stride * templ->array_size;
66 tex->ptr = malloc(tex->size);
67 assert(tex->ptr);
71 struct pipe_resource *tex,
70 set_random_pixels(struct pipe_context *ctx, struct pipe_resource *tex, struct cpu_texture *cpu) argument
102 compare_textures(struct pipe_context *ctx, struct pipe_resource *tex, struct cpu_texture *cpu, int bpp) argument
[all...]
H A Dr600_texture.c1742 struct pipe_resource *tex,
1746 struct r600_texture *rtex = (struct r600_texture *)tex;
1750 !vi_dcc_formats_compatible(tex->format, view_format))
1751 if (!r600_texture_disable_dcc(rctx, (struct r600_texture*)tex))
1766 assert(templ->u.tex.first_layer <= util_max_layer(texture, templ->u.tex.level));
1767 assert(templ->u.tex.last_layer <= util_max_layer(texture, templ->u.tex.level));
1779 templ->u.tex.level,
1786 struct pipe_resource *tex,
1741 vi_dcc_disable_if_incompatible_format(struct r600_common_context *rctx, struct pipe_resource *tex, unsigned level, enum pipe_format view_format) argument
1785 r600_create_surface(struct pipe_context *pipe, struct pipe_resource *tex, const struct pipe_surface *templ) argument
1826 r600_clear_texture(struct pipe_context *pipe, struct pipe_resource *tex, unsigned level, const struct pipe_box *box, const void *data) argument
1975 vi_get_context_dcc_stats_index(struct r600_common_context *rctx, struct r600_texture *tex) argument
2033 vi_separate_dcc_start_query(struct pipe_context *ctx, struct r600_texture *tex) argument
2052 vi_separate_dcc_stop_query(struct pipe_context *ctx, struct r600_texture *tex) argument
2066 vi_should_enable_separate_dcc(struct r600_texture *tex) argument
2074 vi_separate_dcc_try_enable(struct r600_common_context *rctx, struct r600_texture *tex) argument
2132 vi_separate_dcc_process_and_reset_stats(struct pipe_context *ctx, struct r600_texture *tex) argument
2425 struct r600_texture *tex; local
[all...]
/external/skqp/src/gpu/mock/
H A DGrMockGpu.cpp102 bool GrMockGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const {
103 SkASSERT(kMock_GrBackend == tex.backend());
105 const GrMockTextureInfo* info = tex.getMockTextureInfo();
113 void GrMockGpu::deleteTestingOnlyBackendTexture(GrBackendTexture* tex, bool abandonTexture) { argument
114 SkASSERT(kMock_GrBackend == tex->backend());
116 const GrMockTextureInfo* info = tex->getMockTextureInfo();
/external/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_blit.c131 surf_tmpl.u.tex.level = level;
137 surf_tmpl.u.tex.first_layer = layer;
138 surf_tmpl.u.tex.last_layer = layer;
224 surf_tmpl.u.tex.level = level;
232 surf_tmpl.u.tex.first_layer = layer;
233 surf_tmpl.u.tex.last_layer = layer;
302 struct r600_texture *tex,
314 levels_z = level_mask & tex->dirty_level_mask;
317 if (r600_can_sample_zs(tex, false))
324 levels_s = level_mask & tex
301 si_flush_depth_texture(struct si_context *sctx, struct r600_texture *tex, unsigned required_planes, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned last_layer) argument
389 struct r600_texture *tex; local
481 struct r600_texture *tex; local
509 struct r600_texture *tex; local
534 struct r600_texture *tex; local
575 struct r600_texture *tex; local
688 struct r600_texture *tex; local
802 si_decompress_subresource(struct pipe_context *ctx, struct pipe_resource *tex, unsigned planes, unsigned level, unsigned first_layer, unsigned last_layer) argument
1160 si_generate_mipmap(struct pipe_context *ctx, struct pipe_resource *tex, enum pipe_format format, unsigned base_level, unsigned last_level, unsigned first_layer, unsigned last_layer) argument
[all...]
/external/mesa3d/src/gallium/state_trackers/nine/
H A Dbasetexture9.c217 struct NineTexture9 *tex = NineTexture9(This); local
227 NineSurface9_SetResource(tex->surfaces[l], res, l - This->managed.lod);
230 struct NineCubeTexture9 *tex = NineCubeTexture9(This); local
235 NineSurface9_SetResource(tex->surfaces[l * 6 + z],
240 struct NineVolumeTexture9 *tex = NineVolumeTexture9(This); local
243 NineVolume9_SetResource(tex->volumes[l], res, l - This->managed.lod);
256 struct NineTexture9 *tex = NineTexture9(This); local
262 tex->dirty_rect.x, tex->dirty_rect.y,
263 tex
278 struct NineCubeTexture9 *tex = NineCubeTexture9(This); local
300 struct NineVolumeTexture9 *tex = NineVolumeTexture9(This); local
323 struct NineTexture9 *tex = NineTexture9(This); local
335 struct NineCubeTexture9 *tex = NineCubeTexture9(This); local
349 struct NineVolumeTexture9 *tex = NineVolumeTexture9(This); local
[all...]
/external/skqp/src/gpu/
H A DGrProxyProvider.cpp109 sk_sp<GrTextureProxy> GrProxyProvider::createWrapped(sk_sp<GrTexture> tex, GrSurfaceOrigin origin) { argument
111 if (tex->getUniqueKey().isValid()) {
112 SkASSERT(!this->findProxyByUniqueKey(tex->getUniqueKey(), origin));
116 if (tex->asRenderTarget()) {
117 return sk_sp<GrTextureProxy>(new GrTextureRenderTargetProxy(std::move(tex), origin));
119 return sk_sp<GrTextureProxy>(new GrTextureProxy(std::move(tex), origin));
159 sk_sp<GrTexture> tex; local
162 tex = fResourceProvider->createApproxTexture(desc, flags);
164 tex = fResourceProvider->createTexture(desc, budgeted, flags);
166 if (!tex) {
185 sk_sp<GrTexture> tex = fResourceProvider->createTexture(desc, budgeted, mipLevel); local
354 sk_sp<GrTexture> tex; local
437 createWrappedTextureProxy(const GrBackendTexture& tex, GrSurfaceOrigin origin, int sampleCnt) argument
470 createWrappedRenderTargetProxy(const GrBackendTexture& tex, GrSurfaceOrigin origin, int sampleCnt) argument
[all...]
H A DGrResourceProvider.cpp90 sk_sp<GrTexture> tex(fGpu->createTexture(desc, budgeted, texels, mipLevelCount));
91 if (tex) {
92 tex->texturePriv().setMipColorMode(mipColorMode);
95 return tex;
100 sk_sp<GrTexture> tex(this->refScratchTexture(desc, flags));
101 if (tex && SkBudgeted::kNo == budgeted) {
102 tex->resourcePriv().makeUnbudgeted();
105 return tex;
171 sk_sp<GrTexture> tex = this->getExactScratch(desc, budgeted, flags); local
172 if (tex) {
246 wrapBackendTexture(const GrBackendTexture& tex, GrWrapOwnership ownership) argument
255 wrapRenderableBackendTexture(const GrBackendTexture& tex, int sampleCnt, GrWrapOwnership ownership) argument
468 wrapBackendTextureAsRenderTarget( const GrBackendTexture& tex, int sampleCnt) argument
[all...]
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
H A Dfd2_texture.h64 struct fd_texture_stateobj *tex, unsigned samp_id);
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
H A Dfd3_texture.h65 struct fd_texture_stateobj *tex, unsigned samp_id);
/external/skqp/tests/
H A DProxyTest.cpp86 GrTexture* tex = texProxy->priv().peekTexture(); local
91 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() == tex->uniqueID().asUInt());
94 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() != tex->uniqueID().asUInt());
98 REPORTER_ASSERT(reporter, tex->width() == texProxy->width());
99 REPORTER_ASSERT(reporter, tex->height() == texProxy->height());
101 REPORTER_ASSERT(reporter, tex->width() >= texProxy->width());
102 REPORTER_ASSERT(reporter, tex->height() >= texProxy->height());
104 REPORTER_ASSERT(reporter, tex->config() == texProxy->config());
131 sk_sp<GrTexture> tex; local
133 tex
163 sk_sp<GrTexture> tex; local
[all...]
/external/mesa3d/src/gallium/drivers/virgl/
H A Dvirgl_texture.c314 struct virgl_texture *tex; local
317 tex = CALLOC_STRUCT(virgl_texture);
318 tex->base.u.b = *template;
319 tex->base.u.b.screen = &vs->base;
320 pipe_reference_init(&tex->base.u.b.reference, 1);
321 tex->base.u.vtbl = &virgl_texture_vtbl;
322 vrend_resource_layout(tex, &size);
324 tex->base.hw_res = vs->vws->resource_create_from_handle(vs->vws, whandle);
325 return &tex->base.u.b;
331 struct virgl_texture *tex; local
[all...]
/external/skia/src/gpu/
H A DGrResourceProvider.cpp80 sk_sp<GrTexture> tex(fGpu->createTexture(desc, budgeted, texels, mipLevelCount));
81 if (tex) {
82 tex->texturePriv().setMipColorMode(mipColorMode);
85 return tex;
90 sk_sp<GrTexture> tex(this->refScratchTexture(desc, flags));
91 if (tex && SkBudgeted::kNo == budgeted) {
92 tex->resourcePriv().makeUnbudgeted();
95 return tex;
163 sk_sp<GrTexture> tex = this->getExactScratch(desc, budgeted, flags); local
164 if (tex) {
238 wrapBackendTexture(const GrBackendTexture& tex, GrWrapOwnership ownership) argument
247 wrapRenderableBackendTexture(const GrBackendTexture& tex, int sampleCnt, GrWrapOwnership ownership) argument
460 wrapBackendTextureAsRenderTarget( const GrBackendTexture& tex, int sampleCnt) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_dirty_surfaces.h80 if(ds->base.u.tex.level >= first && ds->base.u.tex.level <= last)
89 util_dirty_surfaces_use_levels_for_sampling(pipe, dss, (unsigned)pss->min_lod + psv->u.tex.first_level,
90 MIN2((unsigned)ceilf(pss->max_lod) + psv->u.tex.first_level, psv->u.tex.last_level), flush);
H A Du_pstipple.c63 struct pipe_resource *tex,
72 data = pipe_transfer_map(pipe, tex, 0, 0,
107 struct pipe_resource templat, *tex; local
119 tex = screen->resource_create(screen, &templat);
121 if (tex && pattern)
122 util_pstipple_update_stipple_texture(pipe, tex, pattern);
124 return tex;
133 struct pipe_resource *tex)
137 u_sampler_view_default_template(&templat, tex, tex
62 util_pstipple_update_stipple_texture(struct pipe_context *pipe, struct pipe_resource *tex, const uint32_t pattern[32]) argument
132 util_pstipple_create_sampler_view(struct pipe_context *pipe, struct pipe_resource *tex) argument
[all...]
/external/mesa3d/src/gallium/drivers/nouveau/codegen/
H A Dnv50_ir_lowering_nvc0.cpp121 if (i->tex.levelZero)
128 int arg = i->tex.target.getArgCount();
133 i->tex.rIndirectSrc >= 0)
137 !i->tex.target.isArray() &&
138 i->tex.rIndirectSrc >= 0)
146 i->tex.levelZero = true;
213 // Uses before the tex have to all be included. Just because an earlier
215 // way to get from the tex to the later instruction. For example you could
216 // have nested loops, with the tex in the inner loop, and uses before it in
221 // tex instructio
341 Instruction *tex = reinterpret_cast<Instruction *>(insns.get(i)); local
954 Instruction *tex; local
1650 adjustCoordinatesMS(TexInstruction *tex) argument
[all...]
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_surface.c151 assert(surf_tmpl->u.tex.level <= pt->last_level);
152 assert(surf_tmpl->u.tex.first_layer <= surf_tmpl->u.tex.last_layer);
153 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level);
154 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level);
155 ps->u.tex.level = surf_tmpl->u.tex.level;
156 ps->u.tex.first_layer = surf_tmpl->u.tex.first_layer;
157 ps->u.tex
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_blit.c201 blit.dst.level = dstSurf->u.tex.level;
202 blit.dst.box.z = dstSurf->u.tex.first_layer;
248 blit.dst.level = dstSurf->u.tex.level;
249 blit.dst.box.z = dstSurf->u.tex.first_layer;
253 blit.src.level = srcSurf->u.tex.level;
254 blit.src.box.z = srcSurf->u.tex.first_layer;
292 blit.dst.level = dstDepthSurf->u.tex.level;
293 blit.dst.box.z = dstDepthSurf->u.tex.first_layer;
297 blit.src.level = srcDepthRb->surface->u.tex.level;
298 blit.src.box.z = srcDepthRb->surface->u.tex
[all...]
H A Dst_atom_image.c100 img->u.tex.level = u->Level + stObj->base.MinLevel;
103 img->u.tex.first_layer = 0;
104 img->u.tex.last_layer = u_minify(stObj->pt->depth0, img->u.tex.level) - 1;
106 img->u.tex.first_layer = u->_Layer;
107 img->u.tex.last_layer = u->_Layer;
110 img->u.tex.first_layer = u->_Layer + stObj->base.MinLayer;
111 img->u.tex.last_layer = u->_Layer + stObj->base.MinLayer;
114 img->u.tex.last_layer += stObj->base.NumLayers - 1;
116 img->u.tex
[all...]
/external/mesa3d/src/gallium/drivers/i915/
H A Di915_state_sampler.c63 const struct i915_texture *tex,
85 const struct i915_texture *tex,
88 const struct pipe_resource *pt = &tex->b.b;
300 const struct i915_texture *tex,
305 const struct pipe_resource *pt = &tex->b.b;
307 int first_level = view->u.tex.first_level;
323 assert(tex);
329 pitch = tex->stride;
339 | ms3_tiling_bits(tex->tiling));
358 state[2] = i915_texture_offset(tex, first_leve
82 update_sampler(struct i915_context *i915, uint unit, const struct i915_sampler_state *sampler, const struct i915_texture *tex, unsigned state[3]) argument
298 update_map(struct i915_context *i915, uint unit, const struct i915_texture *tex, const struct i915_sampler_state *sampler, const struct pipe_sampler_view* view, uint state[3]) argument
[all...]
/external/skia/src/gpu/mtl/
H A DGrMtlGpu.mm123 sk_sp<GrMtlTexture> tex;
127 tex = GrMtlTextureRenderTarget::CreateNewTextureRenderTarget(this, budgeted,
131 tex = GrMtlTexture::CreateNewTexture(this, budgeted, desc, mipLevels);
134 if (!tex) {
145 return tex;
/external/skqp/src/gpu/mtl/
H A DGrMtlGpu.mm123 sk_sp<GrMtlTexture> tex;
127 tex = GrMtlTextureRenderTarget::CreateNewTextureRenderTarget(this, budgeted,
131 tex = GrMtlTexture::CreateNewTexture(this, budgeted, desc, mipLevels);
134 if (!tex) {
145 return tex;
/external/mesa3d/src/amd/vulkan/
H A Dradv_meta_bufimage.c84 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 2); local
85 tex->sampler_dim = GLSL_SAMPLER_DIM_2D;
86 tex->op = nir_texop_txf;
87 tex->src[0].src_type = nir_tex_src_coord;
88 tex->src[0].src = nir_src_for_ssa(img_coord);
89 tex->src[1].src_type = nir_tex_src_lod;
90 tex->src[1].src = nir_src_for_ssa(nir_imm_int(&b, 0));
91 tex->dest_type = nir_type_float;
92 tex->is_array = false;
93 tex
287 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 2); local
476 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 2); local
[all...]
/external/mesa3d/src/gallium/state_trackers/xa/
H A Dxa_context.c116 map = pipe_transfer_map(pipe, srf->tex, 0, 0,
123 util_copy_rect(map, srf->tex->format, transfer->stride,
126 util_copy_rect(data, srf->tex->format, pitch,
165 map = pipe_transfer_map(pipe, srf->tex, 0, 0,
167 srf->tex->width0, srf->tex->height0,
197 if (ctx->srf->texture == dst->tex)
203 if (!screen->is_format_supported(screen, dst->tex->format,
208 u_surface_default_template(&srf_templ, dst->tex);
209 ctx->srf = ctx->pipe->create_surface(ctx->pipe, dst->tex,
[all...]
/external/mesa3d/src/mesa/drivers/common/
H A Dmeta.c100 static void cleanup_temp_texture(struct temp_texture *tex);
339 offsetof(struct vertex, tex), false);
358 offsetof(struct vertex, tex), false);
1220 * Choose tex target, compute max tex size, etc.
1223 init_temp_texture(struct gl_context *ctx, struct temp_texture *tex) argument
1227 tex->Target = GL_TEXTURE_RECTANGLE;
1228 tex->MaxSize = ctx->Const.MaxTextureRectSize;
1229 tex->NPOT = GL_TRUE;
1233 tex
1244 cleanup_temp_texture(struct temp_texture *tex) argument
1260 struct temp_texture *tex = &ctx->Meta->TempTex; local
1278 struct temp_texture *tex = &ctx->Meta->Bitmap.Tex; local
1294 struct temp_texture *tex = &ctx->Meta->Blit.depthTex; local
1313 _mesa_meta_alloc_texture(struct temp_texture *tex, GLsizei width, GLsizei height, GLenum intFormat) argument
1366 _mesa_meta_setup_copypix_texture(struct gl_context *ctx, struct temp_texture *tex, GLint srcX, GLint srcY, GLsizei width, GLsizei height, GLenum intFormat, GLenum filter) argument
1412 _mesa_meta_setup_drawpix_texture(struct gl_context *ctx, struct temp_texture *tex, GLboolean newTex, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) argument
1848 struct temp_texture *tex = _mesa_meta_get_temp_texture(ctx); local
2029 struct temp_texture *tex = _mesa_meta_get_temp_texture(ctx); local
2063 struct temp_texture *tex = _mesa_meta_get_temp_texture(ctx); local
2095 struct temp_texture *tex = _mesa_meta_get_temp_texture(ctx); local
2349 struct temp_texture *tex = get_bitmap_temp_texture(ctx); local
[all...]

Completed in 3003 milliseconds

1234567891011>>