/external/skia/src/gpu/mock/ |
H A D | GrMockGpu.cpp | 104 bool GrMockGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const { 105 SkASSERT(kMock_GrBackend == tex.backend()); 107 const GrMockTextureInfo* info = tex.getMockTextureInfo(); 115 void GrMockGpu::deleteTestingOnlyBackendTexture(GrBackendTexture* tex, bool abandonTexture) { argument 116 SkASSERT(kMock_GrBackend == tex->backend()); 118 const GrMockTextureInfo* info = tex->getMockTextureInfo();
|
/external/mesa3d/src/amd/vulkan/ |
H A D | radv_meta_blit.c | 95 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 1); local 96 tex->sampler_dim = tex_dim; 97 tex->op = nir_texop_tex; 98 tex->src[0].src_type = nir_tex_src_coord; 99 tex->src[0].src = nir_src_for_ssa(tex_pos); 100 tex->dest_type = nir_type_float; /* TODO */ 101 tex->is_array = glsl_sampler_type_is_array(sampler_type); 102 tex->coord_components = tex_pos->num_components; 103 tex->texture = nir_deref_var_create(tex, sample 149 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 1); local 203 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 1); local [all...] |
H A D | radv_meta_resolve_cs.c | 89 nir_tex_instr *tex = nir_tex_instr_create(b.shader, 2); local 90 tex->sampler_dim = GLSL_SAMPLER_DIM_MS; 91 tex->op = nir_texop_txf_ms; 92 tex->src[0].src_type = nir_tex_src_coord; 93 tex->src[0].src = nir_src_for_ssa(img_coord); 94 tex->src[1].src_type = nir_tex_src_ms_index; 95 tex->src[1].src = nir_src_for_ssa(nir_imm_int(&b, 0)); 96 tex->dest_type = nir_type_float; 97 tex->is_array = false; 98 tex [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_debug_describe.c | 72 util_sprintf(buf, "pipe_surface<%s,%u,%u,%u>", res, ptr->u.tex.level, ptr->u.tex.first_layer, ptr->u.tex.last_layer);
|
H A D | u_inlines.h | 134 pipe_resource_reference(struct pipe_resource **ptr, struct pipe_resource *tex) argument 138 if (pipe_reference_described(&(*ptr)->reference, &tex->reference, 143 *ptr = tex; 198 ps->u.tex.level = level; 199 ps->u.tex.first_layer = ps->u.tex.last_layer = layer; 222 (s1->u.tex.level == s2->u.tex.level && 223 s1->u.tex.first_layer == s2->u.tex 638 util_texrange_covers_whole_level(const struct pipe_resource *tex, unsigned level, unsigned x, unsigned y, unsigned z, unsigned width, unsigned height, unsigned depth) argument [all...] |
H A D | u_tests.c | 67 struct pipe_resource *tex) 72 templ.format = tex->format; 73 surf = ctx->create_surface(ctx, tex, &templ); 75 fb.width = tex->width0; 76 fb.height = tex->height0; 114 util_set_max_viewport(struct cso_context *cso, struct pipe_resource *tex) argument 118 viewport.scale[0] = 0.5f * tex->width0; 119 viewport.scale[1] = 0.5f * tex->height0; 121 viewport.translate[0] = 0.5f * tex->width0; 122 viewport.translate[1] = 0.5f * tex 66 util_set_framebuffer_cb0(struct cso_context *cso, struct pipe_context *ctx, struct pipe_resource *tex) argument 199 util_probe_rect_rgba_multi(struct pipe_context *ctx, struct pipe_resource *tex, unsigned offx, unsigned offy, unsigned w, unsigned h, const float *expected, unsigned num_expected_colors) argument 249 util_probe_rect_rgba(struct pipe_context *ctx, struct pipe_resource *tex, unsigned offx, unsigned offy, unsigned w, unsigned h, const float *expected) argument [all...] |
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
H A D | fd4_texture.h | 67 struct fd_texture_stateobj *tex, unsigned samp_id);
|
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
H A D | fd5_texture.h | 66 struct fd_texture_stateobj *tex, unsigned samp_id);
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_scene.c | 169 cbuf->u.tex.level); 171 cbuf->u.tex.level); 174 cbuf->u.tex.level, 175 cbuf->u.tex.first_layer, 192 scene->zsbuf.stride = llvmpipe_resource_stride(zsbuf->texture, zsbuf->u.tex.level); 193 scene->zsbuf.layer_stride = llvmpipe_layer_stride(zsbuf->texture, zsbuf->u.tex.level); 196 zsbuf->u.tex.level, 197 zsbuf->u.tex.first_layer, 220 cbuf->u.tex.level, 221 cbuf->u.tex [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_sampler_view.c | 430 templ.u.tex.first_level = stObj->base.MinLevel + stObj->base.BaseLevel; 431 templ.u.tex.last_level = last_level(stObj); 432 assert(templ.u.tex.first_level <= templ.u.tex.last_level); 434 templ.u.tex.first_layer = templ.u.tex.last_layer = stObj->layer_override; 436 templ.u.tex.first_layer = stObj->base.MinLayer; 437 templ.u.tex.last_layer = last_layer(stObj); 439 assert(templ.u.tex.first_layer <= templ.u.tex [all...] |
/external/skia/tests/ |
H A D | ProxyTest.cpp | 80 GrTexture* tex = texProxy->priv().peekTexture(); local 84 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() != tex->uniqueID().asUInt()); 87 REPORTER_ASSERT(reporter, tex->width() == texProxy->width()); 88 REPORTER_ASSERT(reporter, tex->height() == texProxy->height()); 90 REPORTER_ASSERT(reporter, tex->width() >= texProxy->width()); 91 REPORTER_ASSERT(reporter, tex->height() >= texProxy->height()); 93 REPORTER_ASSERT(reporter, tex->config() == texProxy->config()); 120 sk_sp<GrTexture> tex; local 122 tex = resourceProvider->createApproxTexture(desc, 0); 124 tex 153 sk_sp<GrTexture> tex; local [all...] |
/external/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_blit.c | 166 surf_tmpl.u.tex.level = level; 167 surf_tmpl.u.tex.first_layer = layer; 168 surf_tmpl.u.tex.last_layer = layer; 226 surf_tmpl.u.tex.level = level; 234 surf_tmpl.u.tex.first_layer = layer; 235 surf_tmpl.u.tex.last_layer = layer; 269 struct r600_texture *tex; local 277 tex = (struct r600_texture *)view->texture; 278 assert(tex->db_compatible); 280 if (r600_can_sample_zs(tex, rvie 347 struct r600_texture *tex; local 367 r600_decompress_subresource(struct pipe_context *ctx, struct pipe_resource *tex, unsigned level, unsigned first_layer, unsigned last_layer) argument 420 struct r600_texture *tex; local [all...] |
/external/mesa3d/src/gallium/tests/graw/ |
H A D | graw_util.h | 92 surface_temp.u.tex.level = 0; 93 surface_temp.u.tex.first_layer = 0; 94 surface_temp.u.tex.last_layer = 0; 122 surface_temp.u.tex.level = 0; 123 surface_temp.u.tex.first_layer = 0; 124 surface_temp.u.tex.last_layer = 0; 225 struct pipe_resource temp, *tex; local 239 tex = info->screen->resource_create(info->screen, &temp); 240 if (!tex) { 248 tex, [all...] |
H A D | shader-leak.c | 32 static struct pipe_resource *tex = NULL; variable in typeref:struct:pipe_resource 159 screen->flush_frontbuffer(screen, tex, 0, 0, window, NULL); 206 tex = screen->resource_create(screen, &templat); 207 if (tex == NULL) { 213 surf_tmpl.u.tex.level = 0; 214 surf_tmpl.u.tex.first_layer = 0; 215 surf_tmpl.u.tex.last_layer = 0; 216 surf = ctx->create_surface(ctx, tex, &surf_tmpl); 218 fprintf(stderr, "Unable to create tex surface!\n");
|
H A D | tri-gs.c | 28 static struct pipe_resource *tex = NULL; variable in typeref:struct:pipe_resource 169 screen->flush_frontbuffer(screen, tex, 0, 0, window, NULL); 214 tex = screen->resource_create(screen, 216 if (tex == NULL) 220 surf_tmpl.u.tex.level = 0; 221 surf_tmpl.u.tex.first_layer = 0; 222 surf_tmpl.u.tex.last_layer = 0; 223 surf = ctx->create_surface(ctx, tex, &surf_tmpl);
|
H A D | tri-instanced.c | 31 static struct pipe_resource *tex = NULL; variable in typeref:struct:pipe_resource 220 screen->flush_frontbuffer(screen, tex, 0, 0, window, NULL); 265 tex = screen->resource_create(screen, 267 if (tex == NULL) 271 surf_tmpl.u.tex.level = 0; 272 surf_tmpl.u.tex.first_layer = 0; 273 surf_tmpl.u.tex.last_layer = 0; 274 surf = ctx->create_surface(ctx, tex, &surf_tmpl);
|
/external/mesa3d/src/gallium/drivers/ilo/ |
H A D | ilo_blit.c | 160 struct ilo_texture *tex = ilo_texture(res); local 170 assert(tex->base.target != PIPE_BUFFER && 171 ilo_image_can_enable_aux(&tex->image, level)); 195 const uint32_t first_clear_value = ilo_texture_get_slice(tex, 201 ilo_texture_get_slice(tex, level, first_slice + i); 216 ilo_texture_set_slice_clear_value(tex, level, 231 ilo_texture_get_slice(tex, level, first_slice + i); 235 &tex->base, level, first_slice + i);
|
/external/skia/src/gpu/ |
H A D | GrBackendTextureImageGenerator.cpp | 148 sk_sp<GrTexture> tex; 154 tex = sk_ref_sp(refHelper->fBorrowedTexture); 155 SkASSERT(tex); 163 tex = resourceProvider->wrapBackendTexture(backendTexture, 165 if (!tex) { 168 refHelper->fBorrowedTexture = tex.get(); 170 tex->setRelease(releaseProcHelper); 173 return tex;
|
/external/skqp/src/gpu/ |
H A D | GrBackendTextureImageGenerator.cpp | 148 sk_sp<GrTexture> tex; 154 tex = sk_ref_sp(refHelper->fBorrowedTexture); 155 SkASSERT(tex); 163 tex = resourceProvider->wrapBackendTexture(backendTexture, 165 if (!tex) { 168 refHelper->fBorrowedTexture = tex.get(); 170 tex->setRelease(releaseProcHelper); 173 return tex;
|
/external/skqp/src/gpu/ddl/ |
H A D | GrDDLGpu.cpp | 66 bool GrDDLGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const { 71 void GrDDLGpu::deleteTestingOnlyBackendTexture(GrBackendTexture* tex, bool abandonTexture) { argument
|
/external/mesa3d/src/mesa/main/ |
H A D | texobj.h | 94 struct gl_texture_object *tex); 98 struct gl_texture_object *tex) 100 if (*ptr != tex) 101 _mesa_reference_texobj_(ptr, tex); 165 _mesa_get_fallback_texture(struct gl_context *ctx, gl_texture_index tex); 97 _mesa_reference_texobj(struct gl_texture_object **ptr, struct gl_texture_object *tex) argument
|
/external/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_state_sampler.c | 166 viewDesc.tex.mostDetailedMip = sv->base.u.tex.first_level; 167 viewDesc.tex.firstArraySlice = sv->base.u.tex.first_layer; 168 viewDesc.tex.mipLevels = (sv->base.u.tex.last_level - 169 sv->base.u.tex.first_level + 1); 178 viewDesc.tex.arraySize = 181 (sv->base.u.tex.last_layer - sv->base.u.tex [all...] |
/external/mesa3d/src/gallium/tests/trivial/ |
H A D | quad-tex.c | 85 struct pipe_resource *tex; member in struct:program 172 p->tex = p->screen->resource_create(p->screen, &t_tmplt); 178 ptr = p->pipe->transfer_map(p->pipe, p->tex, 0, PIPE_TRANSFER_WRITE, &box, &t); 185 u_sampler_view_default_template(&v_tmplt, p->tex, p->tex->format); 187 p->view = p->pipe->create_sampler_view(p->pipe, p->tex, &v_tmplt); 215 surf_tmpl.u.tex.level = 0; 216 surf_tmpl.u.tex.first_layer = 0; 217 surf_tmpl.u.tex.last_layer = 0; 289 pipe_resource_reference(&p->tex, NUL [all...] |
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
H A D | ir-a2xx.c | 325 instr_fetch_tex_t *tex = &fetch->tex; local 329 tex->src_reg = src_reg->num; 330 tex->src_swiz = reg_fetch_src_swiz(src_reg, 3); 331 tex->dst_reg = dst_reg->num; 332 tex->dst_swiz = reg_fetch_dst_swiz(dst_reg); 333 tex->const_idx = instr->fetch.const_idx; 334 tex->mag_filter = TEX_FILTER_USE_FETCH_CONST; 335 tex->min_filter = TEX_FILTER_USE_FETCH_CONST; 336 tex [all...] |
/external/swiftshader/tests/unittests/ |
H A D | unittests.cpp | 257 GLint location = glGetUniformLocation(program, "tex"); 338 GLuint tex = 1; local 339 glBindTexture(GL_TEXTURE_RECTANGLE_ARB, tex); 377 GLuint tex = 1; local 378 glBindTexture(GL_TEXTURE_2D, tex); 385 GLuint tex = 2; local 386 glBindTexture(GL_TEXTURE_RECTANGLE_ARB, tex); 401 GLuint tex = 1; local 402 glBindTexture(GL_TEXTURE_RECTANGLE_ARB, tex); 409 GLuint tex local 422 GLuint tex = 3; local 431 GLuint tex = 4; local 440 GLuint tex = 5; local 453 GLuint tex = 1; local 501 GLuint tex = 1; local 526 GLuint tex = 1; local 577 GLuint tex = 1; local 631 GLuint tex = 1; local 657 GLuint tex = 1; local 680 GLuint tex = 1; local 712 GLuint tex = 1; local [all...] |