Home
last modified time | relevance | path

Searched refs:fbfetch (Results 1 - 9 of 9) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/zink/
H A Dzink_render_pass.h40 bool fbfetch; member
74 uint32_t fbfetch:1; member
H A Dzink_compiler.h107 nir_variable *fbfetch; //for fs output member
H A Dzink_render_pass.c50 return rt->fbfetch ? VK_IMAGE_LAYOUT_GENERAL : VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in get_color_rt_layout()
78 pstate->fbfetch = 0; in create_render_pass2()
103 if (rt->fbfetch) { in create_render_pass2()
107 pstate->fbfetch = 1; in create_render_pass2()
369 rt->fbfetch = (ctx->fbfetch_outputs & BITFIELD_BIT(i)) > 0; in zink_init_color_attachment()
634 /* this can be set if fbfetch is activated */ in begin_render_pass()
H A Dzink_compiler.c617 /* - copy the lowered fbfetch variable
635 nir_variable *fbfetch = nir_variable_clone(var, b->shader); in lower_fbfetch_instr() local
639 fbfetch->data.image.format = 0; in lower_fbfetch_instr()
640 fbfetch->data.index = 0; /* fix this if more than 1 fbfetch target is supported */ in lower_fbfetch_instr()
641 fbfetch->data.mode = nir_var_uniform; in lower_fbfetch_instr()
642 fbfetch->data.binding = ZINK_FBFETCH_BINDING; in lower_fbfetch_instr()
643 fbfetch->data.binding = ZINK_FBFETCH_BINDING; in lower_fbfetch_instr()
644 fbfetch->data.sample = ms; in lower_fbfetch_instr()
646 fbfetch in lower_fbfetch_instr()
656 lower_fbfetch(nir_shader *shader, nir_variable **fbfetch, bool ms) lower_fbfetch() argument
2141 nir_variable *fbfetch = NULL; zink_shader_compile() local
[all...]
H A Dzink_descriptors.c536 create_gfx_layout(struct zink_context *ctx, struct zink_descriptor_layout_key **layout_key, bool fbfetch) in create_gfx_layout() argument
544 if (fbfetch) { in create_gfx_layout()
551 return create_layout(ctx, dsl_type, bindings, fbfetch ? ARRAY_SIZE(bindings) : ARRAY_SIZE(bindings) - 1, layout_key); in create_gfx_layout()
1285 bool fbfetch = false; in update_push_ubo_descriptors() local
1332 wds[ZINK_SHADER_COUNT].pImageInfo = &ctx->di.fbfetch; in update_push_ubo_descriptors()
1333 fbfetch = true; in update_push_ubo_descriptors()
1337 VKSCR(UpdateDescriptorSets)(screen->dev, num_stages + !!fbfetch, wds, 0, NULL); in update_push_ubo_descriptors()
1501 if (pg->dd->fbfetch) { in zink_descriptors_update()
1502 /* fbfetch is not cacheable: grab a lazy set because it's faster */ in zink_descriptors_update()
H A Dzink_descriptors.h161 bool fbfetch; member
H A Dzink_context.h360 VkDescriptorImageInfo fbfetch; member
H A Dzink_descriptors_lazy.c41 VkDescriptorUpdateTemplateEntry push_entries[PIPE_SHADER_TYPES]; //gfx+fbfetch
188 pg->dd->fbfetch = true; in zink_descriptor_program_init_lazy()
552 /* only called by cached manager for fbfetch handling */
769 VkDescriptorUpdateTemplateEntry *entry = &dd_lazy(ctx)->push_entries[ZINK_SHADER_COUNT]; //fbfetch in zink_descriptors_init_lazy()
773 entry->offset = offsetof(struct zink_context, di.fbfetch); in zink_descriptors_init_lazy()
H A Dzink_context.c2133 const bool had_fbfetch = ctx->di.fbfetch.imageLayout == VK_IMAGE_LAYOUT_GENERAL; in zink_update_fbfetch()
2140 ctx->di.fbfetch.imageLayout = VK_IMAGE_LAYOUT_UNDEFINED; in zink_update_fbfetch()
2141 ctx->di.fbfetch.imageView = zink_screen(ctx->base.screen)->info.rb2_feats.nullDescriptor ? in zink_update_fbfetch()
2150 VkImageView fbfetch = zink_csurface(ctx->fb_state.cbufs[0])->image_view; in zink_update_fbfetch() local
2151 if (!fbfetch) in zink_update_fbfetch()
2154 changed |= fbfetch != ctx->di.fbfetch.imageView; in zink_update_fbfetch()
2155 ctx->di.fbfetch.imageView = zink_csurface(ctx->fb_state.cbufs[0])->image_view; in zink_update_fbfetch()
2161 ctx->di.fbfetch.imageLayout = VK_IMAGE_LAYOUT_GENERAL; in zink_update_fbfetch()
2382 /* use renderpass for multisample-to-singlesample or fbfetch in zink_batch_rp()
[all...]

Completed in 17 milliseconds