Lines Matching defs:desc
60 pan_unpacked_type_for_format(const struct util_format_description *desc)
62 int c = util_format_get_first_non_void_channel(desc->format);
67 bool large = (desc->channel[c].size > 16);
68 bool large_norm = (desc->channel[c].size > 8);
69 bool bit8 = (desc->channel[c].size == 8);
70 assert(desc->channel[c].size <= 32);
72 if (desc->channel[c].normalized)
75 switch (desc->channel[c].type) {
90 pan_is_format_native(const struct util_format_description *desc, bool broken_ld_special, bool is_store)
95 if (util_format_is_pure_integer(desc->format) || util_format_is_float(desc->format))
99 if (desc->format == PIPE_FORMAT_R11G11B10_FLOAT)
161 const struct util_format_description *desc,
167 if (desc->swizzle[i] <= PIPE_SWIZZLE_W)
168 swizzle[i] = desc->swizzle[i];
176 const struct util_format_description *desc,
182 if (desc->swizzle[i] <= PIPE_SWIZZLE_W)
183 swizzle[desc->swizzle[i]] = i;
378 const struct util_format_description *desc,
381 if (desc->is_array) {
382 int c = util_format_get_first_non_void_channel(desc->format);
384 struct util_format_channel_description d = desc->channel[c];
390 return d.size == 32 ? pan_unpack_pure_32(b, packed, desc->nr_channels) :
391 pan_unpack_pure_16(b, packed, desc->nr_channels);
394 return pan_unpack_pure_8(b, packed, desc->nr_channels);
400 switch (desc->format) {
413 fprintf(stderr, "%s\n", desc->name);
419 const struct util_format_description *desc,
422 if (desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB)
425 if (util_format_is_unorm8(desc))
428 if (util_format_is_snorm8(desc->format))
431 if (desc->is_array) {
432 int c = util_format_get_first_non_void_channel(desc->format);
434 struct util_format_channel_description d = desc->channel[c];
441 pan_replicate(b, unpacked, desc->nr_channels) :
442 pan_pack_pure_16(b, unpacked, desc->nr_channels);
445 return pan_pack_pure_8(b, unpacked, desc->nr_channels);
451 switch (desc->format) {
480 fprintf(stderr, "%s\n", desc->name);
488 const struct util_format_description *desc,
498 unpacked = pan_pack_reorder(b, desc, unpacked);
500 nir_ssa_def *packed = pan_pack(b, desc, unpacked);
515 const struct util_format_description *desc,
524 nir_ssa_def *unpacked = pan_unpack(b, desc, packed);
541 pan_unpacked_type_for_format(desc));
548 unpacked = pan_unpack_reorder(b, desc, unpacked);
590 const struct util_format_description *desc =
594 if (pan_is_format_native(desc, broken_ld_special, is_store))
609 pan_lower_fb_store(shader, &b, intr, desc, reorder_comps);
612 pan_lower_fb_load(shader, &b, intr, desc, reorder_comps, base, sample);