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

12

/external/chromium_org/third_party/mesa/src/src/gallium/tests/unit/
H A Du_format_test.c56 print_packed(const struct util_format_description *format_desc, argument
65 for (i = 0; i < format_desc->block.bits/8; ++i) {
75 print_unpacked_rgba_doubl(const struct util_format_description *format_desc, argument
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, argument
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, argument
128 for (i = 0; i < format_desc
140 print_unpacked_z_float(const struct util_format_description *format_desc, const char *prefix, float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) argument
162 print_unpacked_z_32unorm(const struct util_format_description *format_desc, const char *prefix, uint32_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) argument
183 print_unpacked_s_8uint(const struct util_format_description *format_desc, const char *prefix, uint8_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) argument
204 test_format_fetch_rgba_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
233 test_format_unpack_rgba_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
265 test_format_pack_rgba_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
339 test_format_unpack_rgba_8unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
378 test_format_pack_rgba_8unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
435 test_format_unpack_z_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
465 test_format_pack_z_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
502 test_format_unpack_z_32unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
539 test_format_pack_z_32unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
577 test_format_unpack_s_8uint(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
614 test_format_pack_s_8uint(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
657 test_one_func(const struct util_format_description *format_desc, test_func_t func, const char *suffix) argument
689 const struct util_format_description *format_desc; local
[all...]
/external/mesa3d/src/gallium/tests/unit/
H A Du_format_test.c56 print_packed(const struct util_format_description *format_desc, argument
65 for (i = 0; i < format_desc->block.bits/8; ++i) {
75 print_unpacked_rgba_doubl(const struct util_format_description *format_desc, argument
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, argument
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, argument
128 for (i = 0; i < format_desc
140 print_unpacked_z_float(const struct util_format_description *format_desc, const char *prefix, float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) argument
162 print_unpacked_z_32unorm(const struct util_format_description *format_desc, const char *prefix, uint32_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) argument
183 print_unpacked_s_8uint(const struct util_format_description *format_desc, const char *prefix, uint8_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) argument
204 test_format_fetch_rgba_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
233 test_format_unpack_rgba_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
265 test_format_pack_rgba_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
339 test_format_unpack_rgba_8unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
378 test_format_pack_rgba_8unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
435 test_format_unpack_z_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
465 test_format_pack_z_float(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
502 test_format_unpack_z_32unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
539 test_format_pack_z_32unorm(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
577 test_format_unpack_s_8uint(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
614 test_format_pack_s_8uint(const struct util_format_description *format_desc, const struct util_format_test_case *test) argument
657 test_one_func(const struct util_format_description *format_desc, test_func_t func, const char *suffix) argument
689 const struct util_format_description *format_desc; local
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
H A Dlp_bld_format_soa.c45 lp_build_format_swizzle_soa(const struct util_format_description *format_desc, argument
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
100 lp_build_unpack_rgba_soa(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type type, LLVMValueRef packed, LLVMValueRef rgba_out[4]) argument
309 lp_build_fetch_rgba_soa(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type type, LLVMValueRef base_ptr, LLVMValueRef offset, LLVMValueRef i, LLVMValueRef j, LLVMValueRef rgba_out[4]) argument
[all...]
H A Dlp_bld_format_aos_array.c43 * \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);
49 lp_build_fetch_rgba_aos_array(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type dst_type, LLVMValueRef base_ptr, LLVMValueRef offset) argument
H A 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,
H A Dlp_bld_format_aos.c364 * \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
371 lp_build_fetch_rgba_aos(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type type, LLVMValueRef base_ptr, LLVMValueRef offset, LLVMValueRef i, LLVMValueRef j) argument
[all...]
H A Dlp_bld_format_yuv.c446 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) {
445 lp_build_fetch_subsampled_rgba_aos(struct gallivm_state *gallivm, const struct util_format_description *format_desc, unsigned n, LLVMValueRef base_ptr, LLVMValueRef offset, LLVMValueRef i, LLVMValueRef j) argument
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_format_soa.c45 lp_build_format_swizzle_soa(const struct util_format_description *format_desc, argument
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
100 lp_build_unpack_rgba_soa(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type type, LLVMValueRef packed, LLVMValueRef rgba_out[4]) argument
309 lp_build_fetch_rgba_soa(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type type, LLVMValueRef base_ptr, LLVMValueRef offset, LLVMValueRef i, LLVMValueRef j, LLVMValueRef rgba_out[4]) argument
[all...]
H A Dlp_bld_format_aos_array.c43 * \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);
49 lp_build_fetch_rgba_aos_array(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type dst_type, LLVMValueRef base_ptr, LLVMValueRef offset) argument
H A 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,
H A Dlp_bld_format_aos.c364 * \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
371 lp_build_fetch_rgba_aos(struct gallivm_state *gallivm, const struct util_format_description *format_desc, struct lp_type type, LLVMValueRef base_ptr, LLVMValueRef offset, LLVMValueRef i, LLVMValueRef j) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
H A 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,
H A Dlp_screen.c290 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
[all...]
H A Dlp_bld_depth.c305 lp_depth_type(const struct util_format_description *format_desc, argument
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
355 get_z_shift_and_mask(const struct util_format_description *format_desc, unsigned *shift, unsigned *width, unsigned *mask) argument
402 get_s_shift_and_mask(const struct util_format_description *format_desc, unsigned *shift, unsigned *mask) argument
535 lp_build_depth_stencil_test(struct gallivm_state *gallivm, const struct pipe_depth_state *depth, const struct pipe_stencil_state stencil[2], struct lp_type z_src_type, const struct util_format_description *format_desc, struct lp_build_mask_context *mask, LLVMValueRef stencil_refs[2], LLVMValueRef z_src, LLVMValueRef zs_dst_ptr, LLVMValueRef face, LLVMValueRef *zs_value, boolean do_branch) argument
853 lp_build_depth_write(LLVMBuilderRef builder, const struct util_format_description *format_desc, LLVMValueRef zs_dst_ptr, LLVMValueRef zs_value) argument
866 lp_build_deferred_depth_write(struct gallivm_state *gallivm, struct lp_type z_src_type, const struct util_format_description *format_desc, struct lp_build_mask_context *mask, LLVMValueRef zs_dst_ptr, LLVMValueRef zs_value) argument
[all...]
H A Dlp_test_format.c302 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)) {
301 test_one(unsigned verbose, FILE *fp, const struct util_format_description *format_desc) argument
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A 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,
H A Dlp_screen.c290 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
[all...]
H A Dlp_bld_depth.c305 lp_depth_type(const struct util_format_description *format_desc, argument
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
355 get_z_shift_and_mask(const struct util_format_description *format_desc, unsigned *shift, unsigned *width, unsigned *mask) argument
402 get_s_shift_and_mask(const struct util_format_description *format_desc, unsigned *shift, unsigned *mask) argument
535 lp_build_depth_stencil_test(struct gallivm_state *gallivm, const struct pipe_depth_state *depth, const struct pipe_stencil_state stencil[2], struct lp_type z_src_type, const struct util_format_description *format_desc, struct lp_build_mask_context *mask, LLVMValueRef stencil_refs[2], LLVMValueRef z_src, LLVMValueRef zs_dst_ptr, LLVMValueRef face, LLVMValueRef *zs_value, boolean do_branch) argument
853 lp_build_depth_write(LLVMBuilderRef builder, const struct util_format_description *format_desc, LLVMValueRef zs_dst_ptr, LLVMValueRef zs_value) argument
866 lp_build_deferred_depth_write(struct gallivm_state *gallivm, struct lp_type z_src_type, const struct util_format_description *format_desc, struct lp_build_mask_context *mask, LLVMValueRef zs_dst_ptr, LLVMValueRef zs_value) argument
[all...]
H A Dlp_test_format.c302 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)) {
301 test_one(unsigned verbose, FILE *fp, const struct util_format_description *format_desc) argument
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_draw.c61 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;
H A Du_format.c255 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
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
463 util_format_fits_8unorm(const struct util_format_description *format_desc) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_draw.c61 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;
H A Du_format.c255 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
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
463 util_format_fits_8unorm(const struct util_format_description *format_desc) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/
H A Dsp_screen.c271 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/
H A Dsp_screen.c271 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) {

Completed in 681 milliseconds

12