Lines Matching refs:tex

48    v3dvx_pack(image_view->texture_shader_state[index], TEXTURE_SHADER_STATE, tex) {
50 tex.level_0_is_strictly_uif =
54 tex.level_0_xor_enable = (image->slices[0].tiling == V3D_TILING_UIF_XOR);
56 if (tex.level_0_is_strictly_uif)
57 tex.level_0_ub_pad = image->slices[0].ub_pad;
62 tex.uif_xor_disable = false;
63 if (tex.uif_xor_disable ||
64 tex.level_0_is_strictly_uif) {
65 tex.extended = true;
68 tex.base_level = image_view->vk.base_mip_level;
69 tex.max_level = image_view->vk.base_mip_level +
72 tex.swizzle_r = v3d_translate_pipe_swizzle(image_view->swizzle[0]);
73 tex.swizzle_g = v3d_translate_pipe_swizzle(image_view->swizzle[1]);
74 tex.swizzle_b = v3d_translate_pipe_swizzle(image_view->swizzle[2]);
75 tex.swizzle_a = v3d_translate_pipe_swizzle(image_view->swizzle[3]);
77 tex.reverse_standard_border_color = image_view->channel_reverse;
79 tex.texture_type = image_view->format->tex_type;
82 tex.image_depth = image->vk.extent.depth;
84 tex.image_depth = image_view->vk.layer_count;
93 assert(tex.image_depth % 6 == 0);
94 tex.image_depth /= 6;
97 tex.image_height = image->vk.extent.height * msaa_scale;
98 tex.image_width = image->vk.extent.width * msaa_scale;
104 tex.image_height = tex.image_width >> 14;
106 tex.image_width &= (1 << 14) - 1;
107 tex.image_height &= (1 << 14) - 1;
109 tex.array_stride_64_byte_aligned = image->cube_map_stride / 64;
111 tex.srgb = vk_format_is_srgb(image_view->vk.view_format);
121 tex.texture_base_pointer = v3dv_cl_address(NULL, base_offset);
141 v3dvx_pack(buffer_view->texture_shader_state, TEXTURE_SHADER_STATE, tex) {
142 tex.swizzle_r = v3d_translate_pipe_swizzle(PIPE_SWIZZLE_X);
143 tex.swizzle_g = v3d_translate_pipe_swizzle(PIPE_SWIZZLE_Y);
144 tex.swizzle_b = v3d_translate_pipe_swizzle(PIPE_SWIZZLE_Z);
145 tex.swizzle_a = v3d_translate_pipe_swizzle(PIPE_SWIZZLE_W);
147 tex.image_depth = 1;
154 tex.image_width = buffer_view->num_elements;
155 tex.image_height = tex.image_width >> 14;
156 tex.image_width &= (1 << 14) - 1;
157 tex.image_height &= (1 << 14) - 1;
159 tex.texture_type = buffer_view->format->tex_type;
160 tex.srgb = vk_format_is_srgb(buffer_view->vk_format);
172 tex.texture_base_pointer = v3dv_cl_address(NULL, base_offset);