Lines Matching refs:desc
50 lima_texture_desc_set_va(lima_tex_desc *desc, in lima_texture_desc_set_va() argument
60 desc->va[va_idx] |= va << va_bit_idx; in lima_texture_desc_set_va()
63 desc->va[va_idx + 1] |= va >> (32 - va_bit_idx); in lima_texture_desc_set_va()
71 lima_texture_desc_set_res(struct lima_context *ctx, lima_tex_desc *desc, in lima_texture_desc_set_res() argument
85 desc->format = lima_format_get_texel(prsc->format); in lima_texture_desc_set_res()
86 desc->swap_r_b = lima_format_get_texel_swap_rb(prsc->format); in lima_texture_desc_set_res()
87 desc->width = width; in lima_texture_desc_set_res()
88 desc->height = height; in lima_texture_desc_set_res()
89 desc->unknown_3_1 = 1; in lima_texture_desc_set_res()
96 desc->stride = lima_res->levels[first_level].stride; in lima_texture_desc_set_res()
97 desc->has_stride = 1; in lima_texture_desc_set_res()
106 desc->va_s.va_0 = first_va >> 6; in lima_texture_desc_set_res()
107 desc->va_s.layout = layout; in lima_texture_desc_set_res()
114 lima_texture_desc_set_va(desc, i, address); in lima_texture_desc_set_res()
125 lima_tex_desc *desc = pdesc; in lima_update_tex_desc() local
131 memset(desc, 0, desc_size); in lima_update_tex_desc()
136 desc->texture_type = LIMA_TEXTURE_TYPE_2D; in lima_update_tex_desc()
139 desc->texture_type = LIMA_TEXTURE_TYPE_CUBE; in lima_update_tex_desc()
146 desc->unnorm_coords = 1; in lima_update_tex_desc()
154 desc->min_lod = lima_float_to_fixed8(sampler->base.min_lod); in lima_update_tex_desc()
157 desc->max_lod = lima_float_to_fixed8(max_lod); in lima_update_tex_desc()
158 desc->lod_bias = lima_float_to_fixed8(sampler->base.lod_bias); in lima_update_tex_desc()
162 desc->min_mipfilter_2 = 3; in lima_update_tex_desc()
165 desc->min_mipfilter_2 = 0; in lima_update_tex_desc()
168 desc->max_lod = desc->min_lod; in lima_update_tex_desc()
176 desc->mag_img_filter_nearest = 0; in lima_update_tex_desc()
180 desc->mag_img_filter_nearest = 1; in lima_update_tex_desc()
187 desc->min_img_filter_nearest = 0; in lima_update_tex_desc()
192 desc->min_img_filter_nearest = 1; in lima_update_tex_desc()
199 desc->wrap_s_clamp = 1; in lima_update_tex_desc()
203 desc->wrap_s_clamp_to_edge = 1; in lima_update_tex_desc()
206 desc->wrap_s_mirror_repeat = 1; in lima_update_tex_desc()
216 desc->wrap_t_clamp = 1; in lima_update_tex_desc()
220 desc->wrap_t_clamp_to_edge = 1; in lima_update_tex_desc()
223 desc->wrap_t_mirror_repeat = 1; in lima_update_tex_desc()
230 if (desc->min_img_filter_nearest && desc->mag_img_filter_nearest && in lima_update_tex_desc()
231 desc->min_mipfilter_2 == 0 && in lima_update_tex_desc()
232 (desc->min_lod != desc->max_lod)) in lima_update_tex_desc()
235 desc->lod_bias += lod_bias_delta; in lima_update_tex_desc()
237 lima_texture_desc_set_res(ctx, desc, texture->base.texture, in lima_update_tex_desc()