/third_party/mesa3d/src/intel/vulkan/ |
D | anv_nir_lower_multiview.c | 43 uint32_t view_mask; member 65 nir_imm_int(b, util_bitcount(state->view_mask))); in build_instance_id() 79 assert(state->view_mask != 0); in build_view_index() 80 if (util_bitcount(state->view_mask) == 1) { in build_view_index() 82 state->view_index = nir_imm_int(b, ffs(state->view_mask) - 1); in build_view_index() 85 assert((state->view_mask & 0xffff0000) == 0); in build_view_index() 93 nir_imm_int(b, util_bitcount(state->view_mask))); in build_view_index() 95 if (util_is_power_of_two_or_zero(state->view_mask + 1)) { in build_view_index() 105 u_foreach_bit(bit, state->view_mask) { in build_view_index() 173 uint32_t view_mask = pipeline->view_mask; in anv_nir_lower_multiview() local [all …]
|
D | genX_query.c | 1271 if (cmd_buffer->state.gfx.view_mask) { in genX() 1273 util_bitcount(cmd_buffer->state.gfx.view_mask); in genX() 1325 if (cmd_buffer->state.gfx.view_mask) { in genX() 1327 util_bitcount(cmd_buffer->state.gfx.view_mask); in genX()
|
D | genX_cmd_buffer.c | 1715 gfx->view_mask = inheritance_info->viewMask; in genX() 6313 if (gfx->view_mask) { in cmd_buffer_emit_depth_stencil() 6315 isl_view.array_len >= util_last_bit(gfx->view_mask)); in cmd_buffer_emit_depth_stencil() 6316 isl_view.array_len = util_last_bit(gfx->view_mask); in cmd_buffer_emit_depth_stencil() 6477 gfx->view_mask = pRenderingInfo->viewMask; in genX() 6481 const bool is_multiview = gfx->view_mask != 0; in genX() 6484 is_multiview ? util_last_bit(gfx->view_mask) : gfx->layer_count; in genX() 6540 (!is_multiview || (gfx->view_mask & 1)) && in genX() 6550 u_foreach_bit(view, gfx->view_mask) { in genX() 6782 u_foreach_bit(view, gfx->view_mask) { in genX() [all …]
|
D | anv_pipeline.c | 556 _mesa_sha1_update(&ctx, &pipeline->view_mask, in anv_pipeline_hash_graphics() 557 sizeof(pipeline->view_mask)); in anv_pipeline_hash_graphics() 815 MAX2(1, util_bitcount(pipeline->view_mask)) : 1; in anv_pipeline_compile_vs() 1593 pipeline->view_mask != 0) { in anv_graphics_pipeline_compile() 2083 pipeline->view_mask = state->rp->view_mask; in anv_graphics_pipeline_init() 2114 if (pipeline->view_mask && !pipeline->use_primitive_replication) in anv_graphics_pipeline_init() 2115 pipeline->instance_multiplier = util_bitcount(pipeline->view_mask); in anv_graphics_pipeline_init()
|
D | anv_blorp.c | 1214 if (gfx->view_mask) { in clear_color_attachment() 1215 u_foreach_bit(view_idx, gfx->view_mask) { in clear_color_attachment() 1281 if (gfx->view_mask) { in clear_depth_stencil_attachment() 1282 u_foreach_bit(view_idx, gfx->view_mask) { in clear_depth_stencil_attachment()
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_pass.c | 116 subpass->view_mask = multiview_info->pViewMasks[i]; in panvk_CreateRenderPass2() 129 .view_mask |= subpass->view_mask; in panvk_CreateRenderPass2() 146 pass->attachments[idx].view_mask |= subpass->view_mask; in panvk_CreateRenderPass2() 173 pass->attachments[idx].view_mask |= subpass->view_mask; in panvk_CreateRenderPass2() 183 pass->attachments[idx].view_mask |= subpass->view_mask; in panvk_CreateRenderPass2()
|
D | panvk_private.h | 1031 uint32_t view_mask; member 1044 unsigned view_mask; member
|
/third_party/mesa3d/src/vulkan/runtime/ |
D | vk_render_pass.c | 337 .view_mask = 0, in vk_render_pass_attachment_init() 495 subpass->view_mask = desc->viewMask ? desc->viewMask : 1; in vk_common_CreateRenderPass2() 496 pass->view_mask |= subpass->view_mask; in vk_common_CreateRenderPass2() 764 att->last_subpass = subpass->view_mask & ~pass_att->view_mask; in vk_common_CreateRenderPass2() 780 pass_att->view_mask |= subpass->view_mask; in vk_common_CreateRenderPass2() 934 .viewMask = pass->is_multiview ? subpass->view_mask : 0, in vk_get_command_buffer_inheritance_as_rendering_resume() 1286 uint32_t view_mask, in can_use_attachment_initial_layout() argument 1316 if (!util_is_power_of_two_or_zero(view_mask + 1) || in can_use_attachment_initial_layout() 1317 util_last_bit(view_mask) != image_view->layer_count) in can_use_attachment_initial_layout() 1331 view_mask = 1; in can_use_attachment_initial_layout() [all …]
|
D | vk_render_pass.h | 165 uint32_t view_mask; member 220 uint32_t view_mask; member 293 uint32_t view_mask; member
|
D | vk_graphics_state.h | 485 uint32_t view_mask; member 750 uint32_t view_mask; member
|
D | vk_graphics_state.c | 907 rp->view_mask = sp_info->view_mask; in vk_render_pass_state_init() 917 rp->view_mask = r_info->viewMask; in vk_render_pass_state_init()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_meta_clear.c | 313 const VkClearRect *clear_rect, uint32_t view_mask) in emit_color_clear() argument 380 if (view_mask) { in emit_color_clear() 381 u_foreach_bit(i, view_mask) radv_CmdDraw(cmd_buffer_h, 3, 1, 0, i); in emit_color_clear() 586 uint32_t view_mask, bool ds_resolve_clear) in emit_depthstencil_clear() argument 662 if (view_mask) { in emit_depthstencil_clear() 663 u_foreach_bit(i, view_mask) radv_CmdDraw(cmd_buffer_h, 3, 1, 0, i); in emit_depthstencil_clear() 814 const VkClearDepthStencilValue clear_value, uint32_t view_mask) in radv_can_fast_clear_depth() argument 830 if (view_mask && (iview->image->info.array_size >= 32 || in radv_can_fast_clear_depth() 831 (1u << iview->image->info.array_size) - 1u != view_mask)) in radv_can_fast_clear_depth() 833 if (!view_mask && clear_rect->baseArrayLayer != 0) in radv_can_fast_clear_depth() [all …]
|
D | radv_meta_resolve_cs.c | 779 if (subpass->view_mask) in radv_cmd_buffer_resolve_subpass_cs() 780 layer_count = util_last_bit(subpass->view_mask); in radv_cmd_buffer_resolve_subpass_cs() 841 if (subpass->view_mask) in radv_depth_stencil_resolve_subpass_cs() 842 layer_count = util_last_bit(subpass->view_mask); in radv_depth_stencil_resolve_subpass_cs()
|
D | radv_cmd_buffer.c | 4616 if (cmd_buffer->state.subpass->view_mask) { in radv_handle_subpass_image_transition() 4624 range.layerCount = util_last_bit(cmd_buffer->state.subpass->view_mask); in radv_handle_subpass_image_transition() 7014 if (!state->subpass->view_mask) { in radv_emit_draw_packets_indexed() 7017 u_foreach_bit(view, state->subpass->view_mask) { in radv_emit_draw_packets_indexed() 7043 if (!state->subpass->view_mask) { in radv_emit_draw_packets_indexed() 7046 u_foreach_bit(view, state->subpass->view_mask) { in radv_emit_draw_packets_indexed() 7082 if (!state->subpass->view_mask) { in radv_emit_draw_packets_indexed() 7085 u_foreach_bit(view, state->subpass->view_mask) { in radv_emit_draw_packets_indexed() 7107 if (!state->subpass->view_mask) { in radv_emit_draw_packets_indexed() 7110 u_foreach_bit(view, state->subpass->view_mask) { in radv_emit_draw_packets_indexed() [all …]
|
D | radv_meta_resolve.c | 772 if (subpass->view_mask) in radv_decompress_resolve_subpass_src() 773 layer_count = util_last_bit(subpass->view_mask); in radv_decompress_resolve_subpass_src()
|
D | radv_query.c | 2004 if (cmd_buffer->state.subpass && cmd_buffer->state.subpass->view_mask) { in radv_CmdEndQueryIndexedEXT() 2005 for (unsigned i = 1; i < util_bitcount(cmd_buffer->state.subpass->view_mask); i++) { in radv_CmdEndQueryIndexedEXT() 2036 if (cmd_buffer->state.subpass && cmd_buffer->state.subpass->view_mask) in radv_CmdWriteTimestamp2() 2037 num_queries = util_bitcount(cmd_buffer->state.subpass->view_mask); in radv_CmdWriteTimestamp2()
|
D | radv_pass.c | 398 subpass->view_mask = desc->viewMask; in radv_CreateRenderPass2()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_multiview.c | 228 nir_lower_multiview(nir_shader *shader, uint32_t view_mask) in nir_lower_multiview() argument 231 int view_count = util_bitcount(view_mask); in nir_lower_multiview() 271 uint32_t view_mask_temp = view_mask; in nir_lower_multiview()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_pass.c | 74 uint32_t view_mask = subpass->view_mask; in pass_find_subpass_range_for_attachments() local 75 while (view_mask) { in pass_find_subpass_range_for_attachments() 76 uint32_t view_index = u_bit_scan(&view_mask); in pass_find_subpass_range_for_attachments() 193 subpass->view_mask = desc->viewMask; in v3dv_CreateRenderPass2()
|
D | v3dv_cmd_buffer.c | 332 if (subpass->view_mask != prev_subpass->view_mask) in cmd_buffer_can_merge_subpass() 1452 if (subpass->view_mask != 0) { in cmd_buffer_subpass_create_job() 1454 layers = util_last_bit(subpass->view_mask); in cmd_buffer_subpass_create_job() 2646 uint32_t view_mask = pass->subpasses[cmd_buffer->state.subpass_idx].view_mask; in cmd_buffer_draw() local 2647 while (view_mask) { in cmd_buffer_draw() 2648 cmd_buffer_set_view_index(cmd_buffer, u_bit_scan(&view_mask)); in cmd_buffer_draw() 2696 uint32_t view_mask = pass->subpasses[cmd_buffer->state.subpass_idx].view_mask; in v3dv_CmdDrawIndexed() local 2697 while (view_mask) { in v3dv_CmdDrawIndexed() 2698 cmd_buffer_set_view_index(cmd_buffer, u_bit_scan(&view_mask)); in v3dv_CmdDrawIndexed() 2728 uint32_t view_mask = pass->subpasses[cmd_buffer->state.subpass_idx].view_mask; in v3dv_CmdDrawIndirect() local [all …]
|
D | v3dv_uniforms.c | 605 const uint32_t view_mask = in v3dv_write_uniforms_wg_offsets() local 606 state->pass->subpasses[state->subpass_idx].view_mask; in v3dv_write_uniforms_wg_offsets() 609 if (view_mask != 0) { in v3dv_write_uniforms_wg_offsets() 610 num_layers = util_last_bit(view_mask); in v3dv_write_uniforms_wg_offsets()
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pt.c | 610 if (use_info->view_mask) { in draw_vbo() 611 u_foreach_bit(i, use_info->view_mask) { in draw_vbo()
|
/third_party/mesa3d/src/mesa/main/ |
D | draw.c | 1317 info.view_mask = 0; in _mesa_draw_arrays() 1645 info.view_mask = 0; in _mesa_MultiDrawArrays() 1768 info.view_mask = 0; in _mesa_validated_drawrangeelements() 2162 info.view_mask = 0; in _mesa_validated_multidrawelements() 2562 info.view_mask = 0; in _mesa_MultiDrawArraysIndirect() 2654 info.view_mask = 0; in _mesa_MultiDrawElementsIndirect()
|
/third_party/mesa3d/src/gallium/include/pipe/ |
D | p_state.h | 848 uint8_t view_mask; /**< mask of multiviews for this draw */ member
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_draw_feedback.c | 128 info.view_mask = 0; in st_feedback_draw_vbo()
|