/external/chromium_org/third_party/mesa/src/src/gallium/tests/unit/ |
u_format_test.c | 56 print_packed(const struct util_format_description *format_desc, 65 for (i = 0; i < format_desc->block.bits/8; ++i) { 75 print_unpacked_rgba_doubl(const struct util_format_description *format_desc, 84 for (i = 0; i < format_desc->block.height; ++i) { 85 for (j = 0; j < format_desc->block.width; ++j) { 97 print_unpacked_rgba_float(const struct util_format_description *format_desc, 106 for (i = 0; i < format_desc->block.height; ++i) { 107 for (j = 0; j < format_desc->block.width; ++j) { 119 print_unpacked_rgba_8unorm(const struct util_format_description *format_desc, 128 for (i = 0; i < format_desc->block.height; ++i) 689 const struct util_format_description *format_desc; local [all...] |
/external/mesa3d/src/gallium/tests/unit/ |
u_format_test.c | 56 print_packed(const struct util_format_description *format_desc, 65 for (i = 0; i < format_desc->block.bits/8; ++i) { 75 print_unpacked_rgba_doubl(const struct util_format_description *format_desc, 84 for (i = 0; i < format_desc->block.height; ++i) { 85 for (j = 0; j < format_desc->block.width; ++j) { 97 print_unpacked_rgba_float(const struct util_format_description *format_desc, 106 for (i = 0; i < format_desc->block.height; ++i) { 107 for (j = 0; j < format_desc->block.width; ++j) { 119 print_unpacked_rgba_8unorm(const struct util_format_description *format_desc, 128 for (i = 0; i < format_desc->block.height; ++i) 689 const struct util_format_description *format_desc; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/ |
lp_bld_format_soa.c | 45 lp_build_format_swizzle_soa(const struct util_format_description *format_desc, 53 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { 61 enum util_format_swizzle swizzle = format_desc->swizzle[0]; 69 enum util_format_swizzle swizzle = format_desc->swizzle[chan]; 94 * \param format_desc the format of the 'packed' incoming pixel vector 101 const struct util_format_description *format_desc, 112 assert(format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN); 113 assert(format_desc->block.width == 1); 114 assert(format_desc->block.height == 1); 115 assert(format_desc->block.bits <= type.width) [all...] |
lp_bld_format_aos_array.c | 43 * \param format_desc describes format of the image we're fetching from 50 const struct util_format_description *format_desc, 62 src_type.floating = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FLOAT; 63 src_type.fixed = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FIXED; 64 src_type.sign = format_desc->channel[0].type != UTIL_FORMAT_TYPE_UNSIGNED; 65 src_type.norm = format_desc->channel[0].normalized; 66 src_type.width = format_desc->channel[0].size; 67 src_type.length = format_desc->nr_channels; 100 return lp_build_format_swizzle_aos(format_desc, &bld, res);
|
lp_bld_format.h | 63 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,
|
lp_bld_format_aos.c | 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 | [all...] |
lp_bld_format_yuv.c | 446 const struct util_format_description *format_desc, 456 assert(format_desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED); 457 assert(format_desc->block.bits == 32); 458 assert(format_desc->block.width == 2); 459 assert(format_desc->block.height == 1); 465 switch (format_desc->format) {
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
lp_bld_format_soa.c | 45 lp_build_format_swizzle_soa(const struct util_format_description *format_desc, 53 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { 61 enum util_format_swizzle swizzle = format_desc->swizzle[0]; 69 enum util_format_swizzle swizzle = format_desc->swizzle[chan]; 94 * \param format_desc the format of the 'packed' incoming pixel vector 101 const struct util_format_description *format_desc, 112 assert(format_desc->layout == UTIL_FORMAT_LAYOUT_PLAIN); 113 assert(format_desc->block.width == 1); 114 assert(format_desc->block.height == 1); 115 assert(format_desc->block.bits <= type.width) [all...] |
lp_bld_format_aos_array.c | 43 * \param format_desc describes format of the image we're fetching from 50 const struct util_format_description *format_desc, 62 src_type.floating = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FLOAT; 63 src_type.fixed = format_desc->channel[0].type == UTIL_FORMAT_TYPE_FIXED; 64 src_type.sign = format_desc->channel[0].type != UTIL_FORMAT_TYPE_UNSIGNED; 65 src_type.norm = format_desc->channel[0].normalized; 66 src_type.width = format_desc->channel[0].size; 67 src_type.length = format_desc->nr_channels; 100 return lp_build_format_swizzle_aos(format_desc, &bld, res);
|
lp_bld_format.h | 63 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,
|
lp_bld_format_aos.c | 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 | [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
lp_bld_depth.h | 53 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,
|
lp_screen.c | 290 const struct util_format_description *format_desc; local 292 format_desc = util_format_description(format); 293 if (!format_desc) 306 if (format_desc->format == PIPE_FORMAT_R11G11B10_FLOAT || 307 format_desc->format == PIPE_FORMAT_R9G9B9E5_FLOAT) 311 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS || 312 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) 315 if (format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) 318 if (format_desc->block.width != 1 || 319 format_desc->block.height != 1 [all...] |
lp_bld_depth.c | 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) [all...] |
lp_test_format.c | 302 const struct util_format_description *format_desc) 306 if (!test_format_float(verbose, fp, format_desc)) { 310 if (!test_format_unorm8(verbose, fp, format_desc)) { 327 const struct util_format_description *format_desc; local 329 format_desc = util_format_description(format); 330 if (!format_desc) { 339 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { 346 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC && 351 if (!test_one(verbose, fp, format_desc)) {
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_bld_depth.h | 53 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,
|
lp_screen.c | 290 const struct util_format_description *format_desc; local 292 format_desc = util_format_description(format); 293 if (!format_desc) 306 if (format_desc->format == PIPE_FORMAT_R11G11B10_FLOAT || 307 format_desc->format == PIPE_FORMAT_R9G9B9E5_FLOAT) 311 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS || 312 format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) 315 if (format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) 318 if (format_desc->block.width != 1 || 319 format_desc->block.height != 1 [all...] |
lp_bld_depth.c | 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) [all...] |
lp_test_format.c | 302 const struct util_format_description *format_desc) 306 if (!test_format_float(verbose, fp, format_desc)) { 310 if (!test_format_unorm8(verbose, fp, format_desc)) { 327 const struct util_format_description *format_desc; local 329 format_desc = util_format_description(format); 330 if (!format_desc) { 339 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) { 346 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC && 351 if (!test_one(verbose, fp, format_desc)) {
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
u_draw.c | 61 const struct util_format_description *format_desc; local 72 format_desc = util_format_description(element->src_format); 73 assert(format_desc->block.width == 1); 74 assert(format_desc->block.height == 1); 75 assert(format_desc->block.bits % 8 == 0); 76 format_size = format_desc->block.bits/8;
|
u_format.c | 255 const struct util_format_description *format_desc; local 259 format_desc = util_format_description(format); 261 assert(x % format_desc->block.width == 0); 262 assert(y % format_desc->block.height == 0); 264 src_row = (const uint8_t *)src + y*src_stride + x*(format_desc->block.bits/8); 267 format_desc->unpack_rgba_float(dst_row, dst_stride, src_row, src_stride, w, h); 277 const struct util_format_description *format_desc; local 281 format_desc = util_format_description(format); 283 assert(x % format_desc->block.width == 0); 284 assert(y % format_desc->block.height == 0) 296 const struct util_format_description *format_desc; local 315 const struct util_format_description *format_desc; local 336 const struct util_format_description *format_desc; local 357 const struct util_format_description *format_desc; local 378 const struct util_format_description *format_desc; local 399 const struct util_format_description *format_desc; local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_draw.c | 61 const struct util_format_description *format_desc; local 72 format_desc = util_format_description(element->src_format); 73 assert(format_desc->block.width == 1); 74 assert(format_desc->block.height == 1); 75 assert(format_desc->block.bits % 8 == 0); 76 format_size = format_desc->block.bits/8;
|
u_format.c | 255 const struct util_format_description *format_desc; local 259 format_desc = util_format_description(format); 261 assert(x % format_desc->block.width == 0); 262 assert(y % format_desc->block.height == 0); 264 src_row = (const uint8_t *)src + y*src_stride + x*(format_desc->block.bits/8); 267 format_desc->unpack_rgba_float(dst_row, dst_stride, src_row, src_stride, w, h); 277 const struct util_format_description *format_desc; local 281 format_desc = util_format_description(format); 283 assert(x % format_desc->block.width == 0); 284 assert(y % format_desc->block.height == 0) 296 const struct util_format_description *format_desc; local 315 const struct util_format_description *format_desc; local 336 const struct util_format_description *format_desc; local 357 const struct util_format_description *format_desc; local 378 const struct util_format_description *format_desc; local 399 const struct util_format_description *format_desc; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/ |
sp_screen.c | 271 const struct util_format_description *format_desc; local 282 format_desc = util_format_description(format); 283 if (!format_desc) 297 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) 305 if (format_desc->block.width != 1 || 306 format_desc->block.height != 1) 311 if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS) 319 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC) {
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_screen.c | 271 const struct util_format_description *format_desc; local 282 format_desc = util_format_description(format); 283 if (!format_desc) 297 if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) 305 if (format_desc->block.width != 1 || 306 format_desc->block.height != 1) 311 if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS) 319 if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC) {
|