Home
last modified time | relevance | path

Searched refs:format_desc (Results 1 – 25 of 44) sorted by relevance

12

/external/chromium_org/third_party/mesa/src/src/gallium/tests/unit/
Du_format_test.c56 print_packed(const struct util_format_description *format_desc, in print_packed() argument
65 for (i = 0; i < format_desc->block.bits/8; ++i) { in print_packed()
75 print_unpacked_rgba_doubl(const struct util_format_description *format_desc, in print_unpacked_rgba_doubl() argument
84 for (i = 0; i < format_desc->block.height; ++i) { in print_unpacked_rgba_doubl()
85 for (j = 0; j < format_desc->block.width; ++j) { in print_unpacked_rgba_doubl()
97 print_unpacked_rgba_float(const struct util_format_description *format_desc, in print_unpacked_rgba_float() argument
106 for (i = 0; i < format_desc->block.height; ++i) { in print_unpacked_rgba_float()
107 for (j = 0; j < format_desc->block.width; ++j) { in print_unpacked_rgba_float()
119 print_unpacked_rgba_8unorm(const struct util_format_description *format_desc, in print_unpacked_rgba_8unorm() argument
128 for (i = 0; i < format_desc->block.height; ++i) { in print_unpacked_rgba_8unorm()
[all …]
/external/mesa3d/src/gallium/tests/unit/
Du_format_test.c56 print_packed(const struct util_format_description *format_desc, in print_packed() argument
65 for (i = 0; i < format_desc->block.bits/8; ++i) { in print_packed()
75 print_unpacked_rgba_doubl(const struct util_format_description *format_desc, in print_unpacked_rgba_doubl() argument
84 for (i = 0; i < format_desc->block.height; ++i) { in print_unpacked_rgba_doubl()
85 for (j = 0; j < format_desc->block.width; ++j) { in print_unpacked_rgba_doubl()
97 print_unpacked_rgba_float(const struct util_format_description *format_desc, in print_unpacked_rgba_float() argument
106 for (i = 0; i < format_desc->block.height; ++i) { in print_unpacked_rgba_float()
107 for (j = 0; j < format_desc->block.width; ++j) { in print_unpacked_rgba_float()
119 print_unpacked_rgba_8unorm(const struct util_format_description *format_desc, in print_unpacked_rgba_8unorm() argument
128 for (i = 0; i < format_desc->block.height; ++i) { in print_unpacked_rgba_8unorm()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
Dlp_bld_format_soa.c45 lp_build_format_swizzle_soa(const struct util_format_description *format_desc, in lp_build_format_swizzle_soa() argument
53 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { in lp_build_format_swizzle_soa()
61 enum util_format_swizzle swizzle = format_desc->swizzle[0]; in lp_build_format_swizzle_soa()
69 enum util_format_swizzle swizzle = format_desc->swizzle[chan]; in lp_build_format_swizzle_soa()
101 const struct util_format_description *format_desc, in lp_build_unpack_rgba_soa() argument
112 assert(format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN); in lp_build_unpack_rgba_soa()
113 assert(format_desc->block.width == 1); in lp_build_unpack_rgba_soa()
114 assert(format_desc->block.height == 1); in lp_build_unpack_rgba_soa()
115 assert(format_desc->block.bits <= type.width); in lp_build_unpack_rgba_soa()
124 for (chan = 0; chan < format_desc->nr_channels; ++chan) { in lp_build_unpack_rgba_soa()
[all …]
Dlp_bld_format_aos.c372 const struct util_format_description *format_desc, in lp_build_fetch_rgba_aos() argument
395 if (format_matches_type(format_desc, type) && in lp_build_fetch_rgba_aos()
396 format_desc->block.bits <= type.width * 4 && in lp_build_fetch_rgba_aos()
397 util_is_power_of_two(format_desc->block.bits)) { in lp_build_fetch_rgba_aos()
406 format_desc->block.bits, type.width*4, in lp_build_fetch_rgba_aos()
409 assert(format_desc->block.bits <= type.width * type.length); in lp_build_fetch_rgba_aos()
414 return lp_build_format_swizzle_aos(format_desc, &bld, packed); in lp_build_fetch_rgba_aos()
421 if (format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN && in lp_build_fetch_rgba_aos()
422 (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in lp_build_fetch_rgba_aos()
423 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) && in lp_build_fetch_rgba_aos()
[all …]
Dlp_bld_format_aos_array.c50 const struct util_format_description *format_desc, in lp_build_fetch_rgba_aos_array() argument
62 src_type.floating = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FLOAT; in lp_build_fetch_rgba_aos_array()
63 src_type.fixed = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FIXED; in lp_build_fetch_rgba_aos_array()
64 src_type.sign = format_desc->channel[0].type != UTIL_FORMAT_TYPE_UNSIGNED; in lp_build_fetch_rgba_aos_array()
65 src_type.norm = format_desc->channel[0].normalized; in lp_build_fetch_rgba_aos_array()
66 src_type.width = format_desc->channel[0].size; in lp_build_fetch_rgba_aos_array()
67 src_type.length = format_desc->nr_channels; in lp_build_fetch_rgba_aos_array()
100 return lp_build_format_swizzle_aos(format_desc, &bld, res); in lp_build_fetch_rgba_aos_array()
Dlp_bld_format.h63 const struct util_format_description *format_desc,
72 const struct util_format_description *format_desc,
83 lp_build_format_swizzle_soa(const struct util_format_description *format_desc,
90 const struct util_format_description *format_desc,
103 const struct util_format_description *format_desc,
118 const struct util_format_description *format_desc,
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_soa.c45 lp_build_format_swizzle_soa(const struct util_format_description *format_desc, in lp_build_format_swizzle_soa() argument
53 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { in lp_build_format_swizzle_soa()
61 enum util_format_swizzle swizzle = format_desc->swizzle[0]; in lp_build_format_swizzle_soa()
69 enum util_format_swizzle swizzle = format_desc->swizzle[chan]; in lp_build_format_swizzle_soa()
101 const struct util_format_description *format_desc, in lp_build_unpack_rgba_soa() argument
112 assert(format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN); in lp_build_unpack_rgba_soa()
113 assert(format_desc->block.width == 1); in lp_build_unpack_rgba_soa()
114 assert(format_desc->block.height == 1); in lp_build_unpack_rgba_soa()
115 assert(format_desc->block.bits <= type.width); in lp_build_unpack_rgba_soa()
124 for (chan = 0; chan < format_desc->nr_channels; ++chan) { in lp_build_unpack_rgba_soa()
[all …]
Dlp_bld_format_aos.c372 const struct util_format_description *format_desc, in lp_build_fetch_rgba_aos() argument
395 if (format_matches_type(format_desc, type) && in lp_build_fetch_rgba_aos()
396 format_desc->block.bits <= type.width * 4 && in lp_build_fetch_rgba_aos()
397 util_is_power_of_two(format_desc->block.bits)) { in lp_build_fetch_rgba_aos()
406 format_desc->block.bits, type.width*4, in lp_build_fetch_rgba_aos()
409 assert(format_desc->block.bits <= type.width * type.length); in lp_build_fetch_rgba_aos()
414 return lp_build_format_swizzle_aos(format_desc, &bld, packed); in lp_build_fetch_rgba_aos()
421 if (format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN && in lp_build_fetch_rgba_aos()
422 (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB || in lp_build_fetch_rgba_aos()
423 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) && in lp_build_fetch_rgba_aos()
[all …]
Dlp_bld_format_aos_array.c50 const struct util_format_description *format_desc, in lp_build_fetch_rgba_aos_array() argument
62 src_type.floating = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FLOAT; in lp_build_fetch_rgba_aos_array()
63 src_type.fixed = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FIXED; in lp_build_fetch_rgba_aos_array()
64 src_type.sign = format_desc->channel[0].type != UTIL_FORMAT_TYPE_UNSIGNED; in lp_build_fetch_rgba_aos_array()
65 src_type.norm = format_desc->channel[0].normalized; in lp_build_fetch_rgba_aos_array()
66 src_type.width = format_desc->channel[0].size; in lp_build_fetch_rgba_aos_array()
67 src_type.length = format_desc->nr_channels; in lp_build_fetch_rgba_aos_array()
100 return lp_build_format_swizzle_aos(format_desc, &bld, res); in lp_build_fetch_rgba_aos_array()
Dlp_bld_format.h63 const struct util_format_description *format_desc,
72 const struct util_format_description *format_desc,
83 lp_build_format_swizzle_soa(const struct util_format_description *format_desc,
90 const struct util_format_description *format_desc,
103 const struct util_format_description *format_desc,
118 const struct util_format_description *format_desc,
Dlp_bld_sample_aos.c479 if (util_format_is_rgba8_variant(bld->format_desc)) { in lp_build_sample_fetch_image_nearest()
486 bld->format_desc->block.bits, in lp_build_sample_fetch_image_nearest()
494 bld->format_desc, in lp_build_sample_fetch_image_nearest()
589 bld->format_desc->block.bits/8); in lp_build_sample_image_nearest()
593 bld->format_desc->block.width, in lp_build_sample_image_nearest()
603 bld->format_desc->block.height, in lp_build_sample_image_nearest()
708 bld->format_desc, in lp_build_sample_image_nearest_afloat()
843 if (util_format_is_rgba8_variant(bld->format_desc)) { in lp_build_sample_fetch_image_linear()
850 bld->format_desc->block.bits, in lp_build_sample_fetch_image_linear()
858 bld->format_desc, in lp_build_sample_fetch_image_linear()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
Du_format.c255 const struct util_format_description *format_desc; in util_format_read_4f() local
259 format_desc = util_format_description(format); in util_format_read_4f()
261 assert(x % format_desc->block.width == 0); in util_format_read_4f()
262 assert(y % format_desc->block.height == 0); in util_format_read_4f()
264 src_row = (const uint8_t *)src + y*src_stride + x*(format_desc->block.bits/8); in util_format_read_4f()
267 format_desc->unpack_rgba_float(dst_row, dst_stride, src_row, src_stride, w, h); in util_format_read_4f()
277 const struct util_format_description *format_desc; in util_format_write_4f() local
281 format_desc = util_format_description(format); in util_format_write_4f()
283 assert(x % format_desc->block.width == 0); in util_format_write_4f()
284 assert(y % format_desc->block.height == 0); in util_format_write_4f()
[all …]
Du_draw.c61 const struct util_format_description *format_desc; in util_draw_max_index() local
72 format_desc = util_format_description(element->src_format); in util_draw_max_index()
73 assert(format_desc->block.width == 1); in util_draw_max_index()
74 assert(format_desc->block.height == 1); in util_draw_max_index()
75 assert(format_desc->block.bits % 8 == 0); in util_draw_max_index()
76 format_size = format_desc->block.bits/8; in util_draw_max_index()
/external/mesa3d/src/gallium/auxiliary/util/
Du_format.c255 const struct util_format_description *format_desc; in util_format_read_4f() local
259 format_desc = util_format_description(format); in util_format_read_4f()
261 assert(x % format_desc->block.width == 0); in util_format_read_4f()
262 assert(y % format_desc->block.height == 0); in util_format_read_4f()
264 src_row = (const uint8_t *)src + y*src_stride + x*(format_desc->block.bits/8); in util_format_read_4f()
267 format_desc->unpack_rgba_float(dst_row, dst_stride, src_row, src_stride, w, h); in util_format_read_4f()
277 const struct util_format_description *format_desc; in util_format_write_4f() local
281 format_desc = util_format_description(format); in util_format_write_4f()
283 assert(x % format_desc->block.width == 0); in util_format_write_4f()
284 assert(y % format_desc->block.height == 0); in util_format_write_4f()
[all …]
Du_draw.c61 const struct util_format_description *format_desc; in util_draw_max_index() local
72 format_desc = util_format_description(element->src_format); in util_draw_max_index()
73 assert(format_desc->block.width == 1); in util_draw_max_index()
74 assert(format_desc->block.height == 1); in util_draw_max_index()
75 assert(format_desc->block.bits % 8 == 0); in util_draw_max_index()
76 format_size = format_desc->block.bits/8; in util_draw_max_index()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
Dlp_bld_depth.c305 lp_depth_type(const struct util_format_description *format_desc, in lp_depth_type() argument
311 assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS); in lp_depth_type()
312 assert(format_desc->block.width == 1); in lp_depth_type()
313 assert(format_desc->block.height == 1); in lp_depth_type()
315 swizzle = format_desc->swizzle[0]; in lp_depth_type()
319 type.width = format_desc->block.bits; in lp_depth_type()
321 if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_FLOAT) { in lp_depth_type()
324 assert(format_desc->channel[swizzle].size == format_desc->block.bits); in lp_depth_type()
326 else if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_UNSIGNED) { in lp_depth_type()
327 assert(format_desc->block.bits <= 32); in lp_depth_type()
[all …]
Dlp_screen.c290 const struct util_format_description *format_desc; in llvmpipe_is_format_supported() local
292 format_desc = util_format_description(format); in llvmpipe_is_format_supported()
293 if (!format_desc) in llvmpipe_is_format_supported()
306 if (format_desc->format == PIPE_FORMAT_R11G11B10_FLOAT || in llvmpipe_is_format_supported()
307 format_desc->format == PIPE_FORMAT_R9G9B9E5_FLOAT) in llvmpipe_is_format_supported()
311 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS || in llvmpipe_is_format_supported()
312 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) in llvmpipe_is_format_supported()
315 if (format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) in llvmpipe_is_format_supported()
318 if (format_desc->block.width != 1 || in llvmpipe_is_format_supported()
319 format_desc->block.height != 1) in llvmpipe_is_format_supported()
[all …]
Dlp_bld_depth.h53 lp_depth_type(const struct util_format_description *format_desc,
62 const struct util_format_description *format_desc,
73 const struct util_format_description *format_desc,
80 const struct util_format_description *format_desc,
Dlp_test_format.c302 const struct util_format_description *format_desc) in test_one() argument
306 if (!test_format_float(verbose, fp, format_desc)) { in test_one()
310 if (!test_format_unorm8(verbose, fp, format_desc)) { in test_one()
327 const struct util_format_description *format_desc; in test_all() local
329 format_desc = util_format_description(format); in test_all()
330 if (!format_desc) { in test_all()
339 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { in test_all()
346 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC && in test_all()
351 if (!test_one(verbose, fp, format_desc)) { in test_all()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_bld_depth.c305 lp_depth_type(const struct util_format_description *format_desc, in lp_depth_type() argument
311 assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS); in lp_depth_type()
312 assert(format_desc->block.width == 1); in lp_depth_type()
313 assert(format_desc->block.height == 1); in lp_depth_type()
315 swizzle = format_desc->swizzle[0]; in lp_depth_type()
319 type.width = format_desc->block.bits; in lp_depth_type()
321 if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_FLOAT) { in lp_depth_type()
324 assert(format_desc->channel[swizzle].size == format_desc->block.bits); in lp_depth_type()
326 else if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_UNSIGNED) { in lp_depth_type()
327 assert(format_desc->block.bits <= 32); in lp_depth_type()
[all …]
Dlp_screen.c290 const struct util_format_description *format_desc; in llvmpipe_is_format_supported() local
292 format_desc = util_format_description(format); in llvmpipe_is_format_supported()
293 if (!format_desc) in llvmpipe_is_format_supported()
306 if (format_desc->format == PIPE_FORMAT_R11G11B10_FLOAT || in llvmpipe_is_format_supported()
307 format_desc->format == PIPE_FORMAT_R9G9B9E5_FLOAT) in llvmpipe_is_format_supported()
311 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS || in llvmpipe_is_format_supported()
312 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) in llvmpipe_is_format_supported()
315 if (format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) in llvmpipe_is_format_supported()
318 if (format_desc->block.width != 1 || in llvmpipe_is_format_supported()
319 format_desc->block.height != 1) in llvmpipe_is_format_supported()
[all …]
Dlp_bld_depth.h53 lp_depth_type(const struct util_format_description *format_desc,
62 const struct util_format_description *format_desc,
73 const struct util_format_description *format_desc,
80 const struct util_format_description *format_desc,
Dlp_test_format.c302 const struct util_format_description *format_desc) in test_one() argument
306 if (!test_format_float(verbose, fp, format_desc)) { in test_one()
310 if (!test_format_unorm8(verbose, fp, format_desc)) { in test_one()
327 const struct util_format_description *format_desc; in test_all() local
329 format_desc = util_format_description(format); in test_all()
330 if (!format_desc) { in test_all()
339 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { in test_all()
346 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC && in test_all()
351 if (!test_one(verbose, fp, format_desc)) { in test_all()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/
Dsp_screen.c271 const struct util_format_description *format_desc; in softpipe_is_format_supported() local
282 format_desc = util_format_description(format); in softpipe_is_format_supported()
283 if (!format_desc) in softpipe_is_format_supported()
297 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) in softpipe_is_format_supported()
305 if (format_desc->block.width != 1 || in softpipe_is_format_supported()
306 format_desc->block.height != 1) in softpipe_is_format_supported()
311 if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS) in softpipe_is_format_supported()
319 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC) { in softpipe_is_format_supported()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_screen.c271 const struct util_format_description *format_desc; in softpipe_is_format_supported() local
282 format_desc = util_format_description(format); in softpipe_is_format_supported()
283 if (!format_desc) in softpipe_is_format_supported()
297 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) in softpipe_is_format_supported()
305 if (format_desc->block.width != 1 || in softpipe_is_format_supported()
306 format_desc->block.height != 1) in softpipe_is_format_supported()
311 if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS) in softpipe_is_format_supported()
319 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC) { in softpipe_is_format_supported()

12