Lines Matching refs:format_desc

364  * \param format_desc  describes format of the image we're fetching from
372 const struct util_format_description *format_desc,
395 if (format_matches_type(format_desc, type) &&
396 format_desc->block.bits <= type.width * 4 &&
397 util_is_power_of_two(format_desc->block.bits)) {
406 format_desc->block.bits, type.width*4,
409 assert(format_desc->block.bits <= type.width * type.length);
414 return lp_build_format_swizzle_aos(format_desc, &bld, packed);
421 if (format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN &&
422 (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB ||
423 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) &&
424 format_desc->block.width == 1 &&
425 format_desc->block.height == 1 &&
426 util_is_power_of_two(format_desc->block.bits) &&
427 format_desc->block.bits <= 32 &&
428 format_desc->is_bitmask &&
429 !format_desc->is_mixed &&
430 (format_desc->channel[0].type == UTIL_FORMAT_TYPE_UNSIGNED ||
431 format_desc->channel[1].type == UTIL_FORMAT_TYPE_UNSIGNED)) {
445 format_desc->block.bits, 32,
449 format_desc,
462 __FUNCTION__, format_desc->short_name);
470 return lp_build_format_swizzle_aos(format_desc, &bld, res);
474 if (util_format_is_array(format_desc)) {
475 return lp_build_fetch_rgba_aos_array(gallivm, format_desc, type, base_ptr, offset);
482 if (format_desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED) {
492 format_desc,
509 if (format_desc->fetch_rgba_8unorm &&
531 __FUNCTION__, format_desc->short_name);
535 * Declare and bind format_desc->fetch_rgba_8unorm().
557 func_to_pointer((func_pointer) format_desc->fetch_rgba_8unorm));
570 * Invoke format_desc->fetch_rgba_8unorm() for each pixel and insert the result
613 if (format_desc->fetch_rgba_float) {
636 __FUNCTION__, format_desc->short_name);
640 * Declare and bind format_desc->fetch_rgba_float().
658 func_to_pointer((func_pointer) format_desc->fetch_rgba_float),
661 format_desc->short_name);
667 * Invoke format_desc->fetch_rgba_float() for each pixel and insert the result