Searched refs:_mesa_bitcount (Results 1 – 19 of 19) sorted by relevance
60 nir_imm_int(b, _mesa_bitcount(state->view_mask))); in build_instance_id()75 if (0 && _mesa_bitcount(state->view_mask) == 1) { in build_view_index()87 nir_imm_int(b, _mesa_bitcount(state->view_mask))); in build_view_index()
73 uint64s_per_slot += 2 * _mesa_bitcount(pipeline_statistics); in genX()269 assert(idx == _mesa_bitcount(pool->pipeline_statistics)); in genX()286 _mesa_bitcount(pool->pipeline_statistics) : 1; in genX()486 _mesa_bitcount(cmd_buffer->state.subpass->view_mask); in genX()543 _mesa_bitcount(cmd_buffer->state.subpass->view_mask); in genX()780 assert(idx == _mesa_bitcount(pool->pipeline_statistics)); in genX()797 _mesa_bitcount(pool->pipeline_statistics) : 1; in genX()
757 assert(_mesa_bitcount(aspect) == 1 && (aspect & image->aspects)); in anv_layout_to_aux_usage()1062 if (_mesa_bitcount(view_aspects) == 1) in remap_aspect_flags()1066 for (uint32_t i = 0; i < _mesa_bitcount(view_aspects); i++) in remap_aspect_flags()
2297 if (_mesa_bitcount(image_aspects) > 1) in anv_plane_to_aspect()2639 _mesa_bitcount(aspects1) == _mesa_bitcount(aspects2)) in anv_image_aspects_compatible()2824 return MAX2(1, _mesa_bitcount(subpass->view_mask)); in anv_subpass_view_count()
273 if (_mesa_bitcount(src_mask) > 1) { in anv_CmdCopyImage()
1476 _mesa_bitcount(stages & VK_SHADER_STAGE_ALL_GRAPHICS); in cmd_buffer_alloc_push_constants()
466 GLint rBits = _mesa_bitcount(rmask); in setup_truecolor()467 GLint gBits = _mesa_bitcount(gmask); in setup_truecolor()468 GLint bBits = _mesa_bitcount(bmask); in setup_truecolor()831 red_bits = _mesa_bitcount(GET_REDMASK(v)); in XMesaCreateVisual()832 green_bits = _mesa_bitcount(GET_GREENMASK(v)); in XMesaCreateVisual()833 blue_bits = _mesa_bitcount(GET_BLUEMASK(v)); in XMesaCreateVisual()1097 else if ( _mesa_bitcount(width) == 1 in XMesaCreatePixmapTextureBuffer()1098 && _mesa_bitcount(height) == 1) { in XMesaCreatePixmapTextureBuffer()
513 if (_mesa_bitcount((GLuint) vis->red_mask ) <= 8 && in get_visual()514 _mesa_bitcount((GLuint) vis->green_mask) <= 8 && in get_visual()515 _mesa_bitcount((GLuint) vis->blue_mask ) <= 8) { in get_visual()
322 #define _mesa_bitcount(i) __builtin_popcount(i) macro325 _mesa_bitcount(unsigned int n);
470 if (_mesa_bitcount(destMask[output]) > 1) { in draw_buffers()719 if (n > 0 && _mesa_bitcount(destMask[0]) > 1) { in _mesa_drawbuffers()738 assert(_mesa_bitcount(destMask[buf]) == 1); in _mesa_drawbuffers()
227 _mesa_bitcount(unsigned int n) in _mesa_bitcount() function
824 red_bits = _mesa_bitcount(GET_REDMASK(v)); in XMesaCreateVisual()825 green_bits = _mesa_bitcount(GET_GREENMASK(v)); in XMesaCreateVisual()826 blue_bits = _mesa_bitcount(GET_BLUEMASK(v)); in XMesaCreateVisual()1178 else if ( _mesa_bitcount(b->width) == 1 in XMesaCreatePixmapTextureBuffer()1179 && _mesa_bitcount(b->height) == 1) { in XMesaCreatePixmapTextureBuffer()
420 if (_mesa_bitcount((GLuint) vis->red_mask ) <= 8 && in get_visual()421 _mesa_bitcount((GLuint) vis->green_mask) <= 8 && in get_visual()422 _mesa_bitcount((GLuint) vis->blue_mask ) <= 8) { in get_visual()
89 GLuint nr_planes = 6 + _mesa_bitcount(ctx->Transform.ClipPlanesEnabled); in calculate_curbe_offsets()
2965 _mesa_bitcount(used_locations & SAFE_MASK_FROM_INDEX(max_index)) + in assign_attribute_or_color_locations()2966 _mesa_bitcount(double_storage_locations); in assign_attribute_or_color_locations()3029 _mesa_bitcount(used_locations & SAFE_MASK_FROM_INDEX(max_index)) + in assign_attribute_or_color_locations()3030 _mesa_bitcount(double_storage_locations); in assign_attribute_or_color_locations()
1000 data.i[c] = _mesa_bitcount(op[0]->value.u[c]);1003 data.i[c] = _mesa_bitcount(op[0]->value.i[c]);
607 return _mesa_bitcount(value & ~(value + 1)); in count_trailing_one_bits()659 assert(stack_depth == _mesa_bitcount(i)); /* Loop invariant */ in blorp_nir_manual_blend_average()
1609 assert(_mesa_bitcount(bits) <= MAX_DRAW_BUFFERS); in _mesa_meta_drawbuffers_from_bitfield()1661 assert(_mesa_bitcount(mask) <= MAX_DRAW_BUFFERS); in _mesa_meta_drawbuffers_and_colormask()
719 assert(_mesa_bitcount(instr->dest.write_mask) == 1); in nir_emit_alu()