Lines Matching refs:info

67                    struct pvr_texture_state_info *info,
75 if (info->is_cube && info->tex_state_type == PVR_TEXTURE_STATE_SAMPLE) {
77 } else if (info->mem_layout == PVR_MEMLAYOUT_TWIDDLED ||
78 info->mem_layout == PVR_MEMLAYOUT_3DTWIDDLED) {
79 if (info->type == VK_IMAGE_VIEW_TYPE_3D) {
81 } else if (info->type == VK_IMAGE_VIEW_TYPE_1D ||
82 info->type == VK_IMAGE_VIEW_TYPE_1D_ARRAY) {
84 } else if (info->type == VK_IMAGE_VIEW_TYPE_2D ||
85 info->type == VK_IMAGE_VIEW_TYPE_2D_ARRAY) {
90 } else if (info->mem_layout == PVR_MEMLAYOUT_LINEAR) {
96 word0.texformat = pvr_get_tex_format(info->format);
97 word0.smpcnt = util_logbase2(info->sample_count);
99 pvr_get_hw_swizzle(VK_COMPONENT_SWIZZLE_R, info->swizzle[0]);
101 pvr_get_hw_swizzle(VK_COMPONENT_SWIZZLE_G, info->swizzle[1]);
103 pvr_get_hw_swizzle(VK_COMPONENT_SWIZZLE_B, info->swizzle[2]);
105 pvr_get_hw_swizzle(VK_COMPONENT_SWIZZLE_A, info->swizzle[3]);
108 if (vk_format_is_srgb(info->format)) {
110 if (vk_format_get_nr_components(info->format) == 2) {
114 if (vk_format_has_alpha(info->format)) {
130 word0.width = info->extent.width - 1;
131 if (info->type != VK_IMAGE_VIEW_TYPE_1D &&
132 info->type != VK_IMAGE_VIEW_TYPE_1D_ARRAY)
133 word0.height = info->extent.height - 1;
139 assert(info->stride > 0U);
140 word1.stride = info->stride - 1U;
141 word1.num_mip_levels = info->mip_levels;
142 word1.mipmaps_present = info->mipmaps_present;
144 word1.texaddr = PVR_DEV_ADDR_OFFSET(info->addr, info->offset);
146 if (vk_format_is_alpha_on_msb(info->format))
151 if (info->flags & PVR_TEXFLAGS_INDEX_LOOKUP ||
152 info->flags & PVR_TEXFLAGS_BUFFER)
156 if (info->flags & PVR_TEXFLAGS_BUFFER)
160 vk_format_is_compressed(info->format))
166 word1.num_mip_levels = info->mip_levels;
167 word1.mipmaps_present = info->mipmaps_present;
168 word1.baselevel = info->base_level;
170 if (info->extent.depth > 0) {
171 word1.depth = info->extent.depth - 1;
173 uint32_t array_layers = info->array_size;
175 if (info->type == VK_IMAGE_VIEW_TYPE_CUBE_ARRAY &&
176 info->tex_state_type == PVR_TEXTURE_STATE_SAMPLE)
182 word1.texaddr = PVR_DEV_ADDR_OFFSET(info->addr, info->offset);
186 if (info->flags & PVR_TEXFLAGS_INDEX_LOOKUP ||
187 info->flags & PVR_TEXFLAGS_BUFFER)
191 if (info->flags & PVR_TEXFLAGS_BUFFER)
194 if (info->flags & PVR_TEXFLAGS_BORDER)
197 if (vk_format_is_alpha_on_msb(info->format))
201 vk_format_is_compressed(info->format))