Home
last modified time | relevance | path

Searched refs:bindless (Results 1 – 25 of 122) sorted by relevance

12345

/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_lower_images.c90 bool bindless = var->data.mode != nir_var_uniform || var->data.bindless; in lower_impl() local
91 if (bindless_only && !bindless) in lower_impl()
97 if (bindless) { in lower_impl()
104 nir_rewrite_image_intrinsic(intrinsic, src, bindless); in lower_impl()
Dlink_uniform_initializers.cpp149 if (var->data.bindless) { in set_opaque_binding()
168 if (var->data.bindless) { in set_opaque_binding()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir.h35 int type_size_vec4(const struct glsl_type *type, bool bindless);
36 int type_size_dvec4(const struct glsl_type *type, bool bindless);
39 type_size_scalar_bytes(const struct glsl_type *type, bool bindless) in type_size_scalar_bytes() argument
41 return glsl_count_dword_slots(type, bindless) * 4; in type_size_scalar_bytes()
45 type_size_vec4_bytes(const struct glsl_type *type, bool bindless) in type_size_vec4_bytes() argument
47 return type_size_vec4(type, bindless) * 16; in type_size_vec4_bytes()
Dbrw_vec4_visitor.cpp566 type_size_xvec4(const struct glsl_type *type, bool as_vec4, bool bindless) in type_size_xvec4() argument
599 return type_size_xvec4(type->fields.array, as_vec4, bindless) * in type_size_xvec4()
606 bindless); in type_size_xvec4()
616 return bindless ? 1 : 0; in type_size_xvec4()
620 return bindless ? 1 : DIV_ROUND_UP(BRW_IMAGE_PARAM_SIZE, 4); in type_size_xvec4()
641 type_size_vec4(const struct glsl_type *type, bool bindless) in type_size_vec4() argument
643 return type_size_xvec4(type, true, bindless); in type_size_vec4()
666 type_size_dvec4(const struct glsl_type *type, bool bindless) in type_size_dvec4() argument
668 return type_size_xvec4(type, false, bindless); in type_size_dvec4()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_compiler.c1078 nir_variable **bindless = data; in lower_bindless_instr() local
1086 nir_variable *var = tex->sampler_dim == GLSL_SAMPLER_DIM_BUF ? bindless[1] : bindless[0]; in lower_bindless_instr()
1152 nir_variable *var = dim == GLSL_SAMPLER_DIM_BUF ? bindless[3] : bindless[2]; in lower_bindless_instr()
1165 lower_bindless(nir_shader *shader, nir_variable **bindless) in lower_bindless() argument
1167 … if (!nir_shader_instructions_pass(shader, lower_bindless_instr, nir_metadata_dominance, bindless)) in lower_bindless()
1188 if (var->data.bindless) in lower_bindless_io_instr()
1196 var->data.bindless = 1; in lower_bindless_io_instr()
1250 …less_var(nir_shader *nir, nir_variable *var, const struct glsl_type *type, nir_variable **bindless) in handle_bindless_var() argument
1254 handle_bindless_var(nir, var, glsl_get_struct_field(type, i), bindless); in handle_bindless_var()
1280 if (!bindless[binding]) { in handle_bindless_var()
[all …]
Dzink_context.c124 util_idalloc_fini(&ctx->di.bindless[i].tex_slots); in zink_context_destroy()
125 util_idalloc_fini(&ctx->di.bindless[i].img_slots); in zink_context_destroy()
126 free(ctx->di.bindless[i].buffer_infos); in zink_context_destroy()
127 free(ctx->di.bindless[i].img_infos); in zink_context_destroy()
128 util_dynarray_fini(&ctx->di.bindless[i].updates); in zink_context_destroy()
129 util_dynarray_fini(&ctx->di.bindless[i].resident); in zink_context_destroy()
1556 uint64_t handle = util_idalloc_alloc(&ctx->di.bindless[bd->ds.is_buffer].tex_slots); in zink_create_texture_handle()
1560 …_mesa_hash_table_insert(&ctx->di.bindless[bd->ds.is_buffer].tex_handles, (void*)(uintptr_t)handle,… in zink_create_texture_handle()
1569 …struct hash_entry *he = _mesa_hash_table_search(&ctx->di.bindless[is_buffer].tex_handles, (void*)(… in zink_delete_texture_handle()
1573 _mesa_hash_table_remove(&ctx->di.bindless[is_buffer].tex_handles, he); in zink_delete_texture_handle()
[all …]
Dzink_compiler.h87 bool bindless; member
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_shader.c274 nir_ssa_def *bindless = in lower_ssbo_ubo_intrinsic() local
276 nir_instr_rewrite_src_ssa(&intrin->instr, &intrin->src[buffer_src], bindless); in lower_ssbo_ubo_intrinsic()
285 nir_ssa_def *bindless = in lower_ssbo_ubo_intrinsic() local
295 copy->src[src] = nir_src_for_ssa(bindless); in lower_ssbo_ubo_intrinsic()
396 nir_ssa_def *bindless = build_bindless(b, deref, false, shader, layout); in lower_image_deref() local
397 nir_rewrite_image_intrinsic(instr, bindless, true); in lower_image_deref()
530 nir_ssa_def *bindless = build_bindless(b, deref, true, shader, layout); in lower_tex() local
532 nir_src_for_ssa(bindless)); in lower_tex()
539 nir_ssa_def *bindless = build_bindless(b, deref, false, shader, layout); in lower_tex() local
541 nir_src_for_ssa(bindless)); in lower_tex()
[all …]
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_tex_prefetch.c118 nir_intrinsic_instr *bindless = ir3_bindless_resource(tex->src[idx].src); in ok_bindless_src() local
123 return nir_src_is_const(bindless->src[0]) && in ok_bindless_src()
124 (nir_src_as_uint(bindless->src[0]) < (1 << 16)); in ok_bindless_src()
/third_party/mesa3d/src/asahi/compiler/
Dcmdline.c36 st_packed_uniforms_type_size(const struct glsl_type *type, bool bindless) in st_packed_uniforms_type_size() argument
38 return glsl_count_dword_slots(type, bindless); in st_packed_uniforms_type_size()
42 glsl_type_size(const struct glsl_type *type, bool bindless) in glsl_type_size() argument
/third_party/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_lowering_nvc0.cpp1000 if (!i->tex.bindless) { in handleTEX()
1819 NVC0LoweringPass::loadSuInfo32(Value *ptr, int slot, uint32_t off, bool bindless) in loadSuInfo32() argument
1824 assert(!bindless || targ->getChipset() < NVISA_GM107_CHIPSET); in loadSuInfo32()
1828 if (bindless) in loadSuInfo32()
1837 return loadResInfo32(ptr, off, bindless ? prog->driver->io.bindlessBase : in loadSuInfo32()
1842 …loadMsAdjInfo32(TexInstruction::Target target, uint32_t index, int slot, Value *ind, bool bindless) in loadMsAdjInfo32() argument
1844 if (!bindless || targ->getChipset() < NVISA_GM107_CHIPSET) in loadMsAdjInfo32()
1845 return loadSuInfo32(ind, slot, NVC0_SU_INFO_MS(index), bindless); in loadMsAdjInfo32()
1847 assert(bindless); in loadMsAdjInfo32()
1923 bld.mkMov(suq->getDef(d++), loadSuInfo32(ind, slot, offset, suq->tex.bindless)); in handleSUQ()
[all …]
Dnv50_ir_lowering_nvc0.h155 …*loadMsAdjInfo32(TexInstruction::Target targ, uint32_t index, int slot, Value *ind, bool bindless);
168 Value *loadSuInfo32(Value *ptr, int slot, uint32_t off, bool bindless);
Dnv50_ir_lowering_gm107.cpp291 if (suq->tex.bindless) in handleSUQ()
341 loadMsAdjInfo32(suq->tex.target, 0, slot, ind, suq->tex.bindless)); in handleSUQ()
345 loadMsAdjInfo32(suq->tex.target, 1, slot, ind, suq->tex.bindless)); in handleSUQ()
/third_party/openGLES/extensions/IMG/
DIMG_bindless_texture.txt126 qualifier (see the Language specification, section 4.4.5bindless).
159 object by handle, as defined in Section 8.2bindless (Bindless Textures).
212 Insert a new section 8.2bindless, Bindless Textures, after Section 8.2,
257 as other bindless textures, even if the buffer is bound to a texture while
319 values referencing either a texture image unit number or a bindless
334 Insert a new section 4.4.5bindless, "Bindless Sampler Layout Qualifiers",
338 whether the uniform may be used with a bindless handle:
460 …- Z64 GetTextureHandleIMG n/a texture handle 8.2bindless -
463 …- Z+ - n/a texture object used 8.2bindless -
464 …- Z+ - n/a sampler object used 8.2bindless -
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/IMG/
DIMG_bindless_texture.txt126 qualifier (see the Language specification, section 4.4.5bindless).
159 object by handle, as defined in Section 8.2bindless (Bindless Textures).
212 Insert a new section 8.2bindless, Bindless Textures, after Section 8.2,
257 as other bindless textures, even if the buffer is bound to a texture while
319 values referencing either a texture image unit number or a bindless
334 Insert a new section 4.4.5bindless, "Bindless Sampler Layout Qualifiers",
338 whether the uniform may be used with a bindless handle:
460 …- Z64 GetTextureHandleIMG n/a texture handle 8.2bindless -
463 …- Z+ - n/a texture object used 8.2bindless -
464 …- Z+ - n/a sampler object used 8.2bindless -
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_llvm_resources.c181 bool uses_store, bool bindless) in si_load_image_desc() argument
193 if (bindless) in si_load_image_desc()
248 bool write, bool bindless) in si_nir_load_sampler_desc() argument
257 if (bindless) { in si_nir_load_sampler_desc()
/third_party/mesa3d/src/panfrost/bifrost/
Dcmdline.c68 st_packed_uniforms_type_size(const struct glsl_type *type, bool bindless) in st_packed_uniforms_type_size() argument
70 return glsl_count_dword_slots(type, bindless); in st_packed_uniforms_type_size()
74 glsl_type_size(const struct glsl_type *type, bool bindless) in glsl_type_size() argument
/third_party/mesa3d/src/gallium/drivers/lima/standalone/
Dglsl.h31 int st_glsl_type_size(const struct glsl_type *type, bool bindless);
Dglsl.cpp38 st_glsl_type_size(const glsl_type *type, bool bindless) in st_glsl_type_size() argument
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_stateobj_tex.h23 uint32_t bindless; member
/third_party/mesa3d/docs/nir/
Dtex.rst29 bindless handle. When using an index or a bindless handle, the texture type
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_tex.c92 view->bindless = 0; in gm107_create_texture_view()
305 view->bindless = 0; in gf100_create_texture_view()
833 p_atomic_inc(&tic->bindless); in nve4_create_texture_handle()
865 assert(entry->bindless); in nve4_delete_texture_handle()
866 p_atomic_dec(&entry->bindless); in nve4_delete_texture_handle()
885 assert(tic->bindless); in nve4_make_texture_handle_resident()
1436 tic->bindless = 1; in gm107_create_image_handle()
1471 assert(entry->bindless == 1); in gm107_delete_image_handle()
1473 entry->bindless = 0; in gm107_delete_image_handle()
1489 assert(tic->bindless); in gm107_make_image_handle_resident()
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/
DEXT_texture_sRGB_decode.txt230 bindless sampler, and whether the texture is statically accessed
239 non-bindless sampler, n/a yes
243 non-bindless sampler, no undefined
247 bindless sampler undefined yes
252 bindless samplers.
654 different columns depending on whether bindless samplers are used
661 With bindless samplers, texture handles are *always* statically
663 at any time), so applying the same rules as for non-bindless
671 0.91 11/08/17 nhaehnle Add interaction with bindless textures
/third_party/openGLES/extensions/EXT/
DEXT_texture_sRGB_decode.txt230 bindless sampler, and whether the texture is statically accessed
239 non-bindless sampler, n/a yes
243 non-bindless sampler, no undefined
247 bindless sampler undefined yes
252 bindless samplers.
654 different columns depending on whether bindless samplers are used
661 With bindless samplers, texture handles are *always* statically
663 at any time), so applying the same rules as for non-bindless
671 0.91 11/08/17 nhaehnle Add interaction with bindless textures
/third_party/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_nir.cpp211 if (!uniform->data.bindless && (type->is_sampler() || type->is_image())) { in st_nir_assign_uniform_locations()
996 st_packed_uniforms_type_size(const struct glsl_type *type, bool bindless) in st_packed_uniforms_type_size() argument
998 return glsl_count_dword_slots(type, bindless); in st_packed_uniforms_type_size()
1002 st_unpacked_uniforms_type_size(const struct glsl_type *type, bool bindless) in st_unpacked_uniforms_type_size() argument
1004 return glsl_count_vec4_slots(type, false, bindless); in st_unpacked_uniforms_type_size()

12345