Lines Matching refs:format_desc

305 lp_depth_type(const struct util_format_description *format_desc,
311 assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS);
312 assert(format_desc->block.width == 1);
313 assert(format_desc->block.height == 1);
315 swizzle = format_desc->swizzle[0];
319 type.width = format_desc->block.bits;
321 if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_FLOAT) {
324 assert(format_desc->channel[swizzle].size == format_desc->block.bits);
326 else if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_UNSIGNED) {
327 assert(format_desc->block.bits <= 32);
328 assert(format_desc->channel[swizzle].normalized);
329 if (format_desc->channel[swizzle].size < format_desc->block.bits) {
355 get_z_shift_and_mask(const struct util_format_description *format_desc,
358 const unsigned total_bits = format_desc->block.bits;
363 assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS);
364 assert(format_desc->block.width == 1);
365 assert(format_desc->block.height == 1);
367 z_swizzle = format_desc->swizzle[0];
372 *width = format_desc->channel[z_swizzle].size;
376 padding_right += format_desc->channel[chan].size;
402 get_s_shift_and_mask(const struct util_format_description *format_desc,
408 s_swizzle = format_desc->swizzle[1];
415 *shift += format_desc->channel[chan].size;
417 sz = format_desc->channel[s_swizzle].size;
527 * \param format_desc description of the depth/stencil surface
539 const struct util_format_description *format_desc,
577 z_type = lp_depth_type(format_desc, z_src_type.width*z_src_type.length);
591 const unsigned z_swizzle = format_desc->swizzle[0];
592 const unsigned s_swizzle = format_desc->swizzle[1];
599 assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS);
600 assert(format_desc->block.width == 1);
601 assert(format_desc->block.height == 1);
604 assert(format_desc->format == PIPE_FORMAT_Z24_UNORM_S8_UINT ||
605 format_desc->format == PIPE_FORMAT_S8_UINT_Z24_UNORM);
609 assert(format_desc->block.bits == z_type.width);
612 assert(format_desc->channel[z_swizzle].type ==
614 assert(format_desc->channel[z_swizzle].size ==
615 format_desc->block.bits);
618 assert(format_desc->channel[z_swizzle].type ==
620 assert(format_desc->channel[z_swizzle].normalized);
647 if (get_z_shift_and_mask(format_desc, &z_shift, &z_width, &z_mask)) {
668 if (get_s_shift_and_mask(format_desc, &s_shift, &s_mask)) {
854 const struct util_format_description *format_desc,
868 const struct util_format_description *format_desc,
880 z_type = lp_depth_type(format_desc, z_src_type.width*z_src_type.length);