Home
last modified time | relevance | path

Searched refs:num_attachments (Results 1 – 11 of 11) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_render_pass.c42 pstate->num_attachments = state->num_cbufs; in create_render_pass()
69 int num_attachments = state->num_cbufs; in create_render_pass() local
74 attachments[num_attachments].flags = 0; in create_render_pass()
75 … pstate->attachments[num_attachments].format = attachments[num_attachments].format = rt->format; in create_render_pass()
76 … pstate->attachments[num_attachments].samples = attachments[num_attachments].samples = rt->samples; in create_render_pass()
77 …attachments[num_attachments].loadOp = rt->clear_color ? VK_ATTACHMENT_LOAD_OP_CLEAR : VK_ATTACHMEN… in create_render_pass()
78 attachments[num_attachments].storeOp = VK_ATTACHMENT_STORE_OP_STORE; in create_render_pass()
79 …attachments[num_attachments].stencilLoadOp = rt->clear_stencil ? VK_ATTACHMENT_LOAD_OP_CLEAR : VK_… in create_render_pass()
80 attachments[num_attachments].stencilStoreOp = VK_ATTACHMENT_STORE_OP_STORE; in create_render_pass()
82 attachments[num_attachments].initialLayout = layout; in create_render_pass()
[all …]
Dzink_framebuffer.c72 …tate.have_zsbuf + rp->state.num_cresolves + rp->state.num_zsresolves == fb->state.num_attachments); in zink_init_framebuffer_imageless()
78 fci.attachmentCount = fb->state.num_attachments; in zink_init_framebuffer_imageless()
87 attachments.attachmentImageInfoCount = fb->state.num_attachments; in zink_init_framebuffer_imageless()
131 for (int i = 0; i < state->num_attachments; i++) in create_framebuffer_imageless()
163 state.num_attachments = ctx->fb_state.nr_cbufs; in zink_get_framebuffer_imageless()
170 memcpy(&state.infos[state.num_attachments], &transient->info, sizeof(transient->info)); in zink_get_framebuffer_imageless()
174 memcpy(&state.infos[state.num_attachments], &surface->info, sizeof(surface->info)); in zink_get_framebuffer_imageless()
176 state.num_attachments++; in zink_get_framebuffer_imageless()
180 assert(state.num_attachments + num_resolves < 16); in zink_get_framebuffer_imageless()
181 state.num_attachments += num_resolves; in zink_get_framebuffer_imageless()
[all …]
Dzink_clear.c74 int num_attachments = 0; in clear_in_rp() local
87 attachments[num_attachments].aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; in clear_in_rp()
88 attachments[num_attachments].colorAttachment = i; in clear_in_rp()
89 attachments[num_attachments].clearValue.color = color; in clear_in_rp()
90 ++num_attachments; in clear_in_rp()
101 attachments[num_attachments].aspectMask = aspect; in clear_in_rp()
102 attachments[num_attachments].clearValue.depthStencil.depth = depth; in clear_in_rp()
103 attachments[num_attachments].clearValue.depthStencil.stencil = stencil; in clear_in_rp()
104 ++num_attachments; in clear_in_rp()
121 VKCTX(CmdClearAttachments)(batch->state->cmdbuf, num_attachments, attachments, 1, &cr); in clear_in_rp()
Dzink_pipeline.c98 unsigned num_attachments = state->render_pass->state.num_rts; in zink_create_gfx_pipeline() local
100 num_attachments--; in zink_create_gfx_pipeline()
102 for (unsigned i = 0; i < num_attachments; i++) { in zink_create_gfx_pipeline()
113 blend_state.attachmentCount = num_attachments; in zink_create_gfx_pipeline()
Dzink_render_pass.h68 uint32_t num_attachments:26; member
Dzink_framebuffer.h42 uint32_t num_attachments:4; member
Dzink_surface.c263 for (unsigned i = 0; i < fb->state.num_attachments; i++) { in surface_clear_fb_refs()
Dzink_context.c1869 sizeof(pstate->attachments[0]) * pstate->num_attachments; in rp_state_size()
2000 …ta(key, offsetof(struct zink_framebuffer_state, infos) + sizeof(s->infos[0]) * s->num_attachments); in hash_framebuffer_imageless()
2007 …b, offsetof(struct zink_framebuffer_state, infos) + sizeof(s->infos[0]) * s->num_attachments) == 0; in equals_framebuffer_imageless()
2115 if (ctx->framebuffer && !ctx->framebuffer->state.num_attachments) { in update_framebuffer_state()
2197 infos.attachmentCount = ctx->framebuffer->state.num_attachments; in begin_render_pass()
3222 if (!ctx->framebuffer || !ctx->framebuffer->state.num_attachments) in zink_texture_barrier()
Dzink_screen.c120 …etof(struct zink_framebuffer_state, attachments) + sizeof(s->attachments[0]) * s->num_attachments); in hash_framebuffer_state()
127 …struct zink_framebuffer_state, attachments) + sizeof(s->attachments[0]) * s->num_attachments) == 0; in equals_framebuffer_state()
/third_party/mesa3d/src/amd/compiler/tests/
Dhelpers.cpp645 unsigned num_attachments = num_color_attachments; in create_graphics_pipeline() local
648 VkAttachmentDescription *desc = &attachment_descs[num_attachments]; in create_graphics_pipeline()
662 num_attachments++; in create_graphics_pipeline()
793 renderpass_info.attachmentCount = num_attachments; in create_graphics_pipeline()
/third_party/mesa3d/src/gallium/frontends/dri/
Ddri2.c111 unsigned num_attachments, i; in dri2_drawable_get_buffers() local
117 num_attachments = 0; in dri2_drawable_get_buffers()
121 attachments[num_attachments++] = __DRI_BUFFER_FRONT_LEFT; in dri2_drawable_get_buffers()
185 attachments[num_attachments++] = att; in dri2_drawable_get_buffers()
187 attachments[num_attachments++] = depth; in dri2_drawable_get_buffers()
192 num_attachments /= 2; in dri2_drawable_get_buffers()
195 attachments, num_attachments, in dri2_drawable_get_buffers()
201 attachments, num_attachments, in dri2_drawable_get_buffers()