Home
last modified time | relevance | path

Searched refs:attachments (Results 1 – 25 of 617) sorted by relevance

12345678910>>...25

/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_render_pass.c37 VkAttachmentDescription attachments[PIPE_MAX_COLOR_BUFS + 1]; in create_render_pass() local
45 attachments[i].flags = 0; in create_render_pass()
46 pstate->attachments[i].format = attachments[i].format = rt->format; in create_render_pass()
47 pstate->attachments[i].samples = attachments[i].samples = rt->samples; in create_render_pass()
48 attachments[i].loadOp = rt->clear_color ? VK_ATTACHMENT_LOAD_OP_CLEAR : in create_render_pass()
52 attachments[i].storeOp = VK_ATTACHMENT_STORE_OP_STORE; in create_render_pass()
53 attachments[i].stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; in create_render_pass()
54 attachments[i].stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; in create_render_pass()
57 attachments[i].initialLayout = layout; in create_render_pass()
58 attachments[i].finalLayout = layout; in create_render_pass()
[all …]
Dzink_framebuffer.c84 VkFramebufferAttachmentsCreateInfo attachments; in zink_init_framebuffer_imageless() local
85 attachments.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFO; in zink_init_framebuffer_imageless()
86 attachments.pNext = NULL; in zink_init_framebuffer_imageless()
87 attachments.attachmentImageInfoCount = fb->state.num_attachments; in zink_init_framebuffer_imageless()
88 attachments.pAttachmentImageInfos = fb->infos; in zink_init_framebuffer_imageless()
89 fci.pNext = &attachments; in zink_init_framebuffer_imageless()
225 fci.pAttachments = fb->state.attachments; in zink_init_framebuffer()
251 struct pipe_surface **attachments) in create_framebuffer() argument
261 if (state->attachments[i]) { in create_framebuffer()
262 surf = zink_csurface(attachments[i]); in create_framebuffer()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkFramebuffer.cpp27 : attachments(reinterpret_cast<ImageView **>(mem)) in Framebuffer()
57 attachments[i] = nullptr;
65 attachments[i] = vk::Cast(pCreateInfo->pAttachments[i]);
72 vk::freeHostMemory(attachments, pAllocator); in destroy()
127 attachments[i]->clearWithLayerMask(pClearValues[i], clearMask, renderArea, in executeLoadOp()
132 attachments[i]->clear(pClearValues[i], clearMask, renderArea); in executeLoadOp()
149 ImageView *imageView = attachments[attachmentIndex]; in clearAttachment()
169 ImageView *imageView = attachments[attachmentIndex]; in clearAttachment()
189 ASSERT(attachments[index] == nullptr); in setAttachment()
190 attachments[index] = imageView; in setAttachment()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassLoadStoreOpNoneTests.cpp103 std::vector<AttachmentParams> attachments; member
208 for (size_t i = 0; i < testParams.attachments.size(); i++) in createRenderPass()
212 VkFormat format = getFormat(testParams.attachments[i].usage, testParams.depthStencilFormat); in createRenderPass()
219 firstUsage = testParams.attachments[i].usage; in createRenderPass()
234 if (testParams.attachments[i].verifyInner || testParams.attachments[i].verifyOuter) in createRenderPass()
239 …const VkSampleCountFlagBits sampleCount = testParams.attachments[i].usage & ATTACHMENT_USAGE_MULT… in createRenderPass()
247 testParams.attachments[i].loadOp, // VkAttachmentLoadOp loadOp in createRenderPass()
248 testParams.attachments[i].storeOp, // VkAttachmentStoreOp storeOp in createRenderPass()
249 testParams.attachments[i].loadOp, // VkAttachmentLoadOp stencilLoadOp in createRenderPass()
250 testParams.attachments[i].storeOp, // VkAttachmentStoreOp stencilStoreOp in createRenderPass()
[all …]
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_pass.c50 size += pCreateInfo->attachmentCount * sizeof(pass->attachments[0]); in panvk_CreateRenderPass2()
59 pass->attachments = (void *) pass + attachments_offset; in panvk_CreateRenderPass2()
72 struct panvk_render_pass_attachment *att = &pass->attachments[i]; in panvk_CreateRenderPass2()
128 pass->attachments[desc->pInputAttachments[j].attachment] in panvk_CreateRenderPass2()
146 pass->attachments[idx].view_mask |= subpass->view_mask; in panvk_CreateRenderPass2()
147 if (pass->attachments[idx].first_used_in_subpass == ~0) { in panvk_CreateRenderPass2()
148 pass->attachments[idx].first_used_in_subpass = i; in panvk_CreateRenderPass2()
149 if (pass->attachments[idx].load_op == VK_ATTACHMENT_LOAD_OP_CLEAR) in panvk_CreateRenderPass2()
151 else if (pass->attachments[idx].load_op == VK_ATTACHMENT_LOAD_OP_LOAD) in panvk_CreateRenderPass2()
173 pass->attachments[idx].view_mask |= subpass->view_mask; in panvk_CreateRenderPass2()
[all …]
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_pass.c48 pass->attachments[i].first_subpass = pass->subpass_count - 1; in pass_find_subpass_range_for_attachments()
49 pass->attachments[i].last_subpass = 0; in pass_find_subpass_range_for_attachments()
52 pass->attachments[i].views[j].first_subpass = pass->subpass_count - 1; in pass_find_subpass_range_for_attachments()
53 pass->attachments[i].views[j].last_subpass = 0; in pass_find_subpass_range_for_attachments()
67 &pass->attachments[attachment_idx]; in pass_find_subpass_range_for_attachments()
91 if (i < pass->attachments[ds_attachment_idx].first_subpass) in pass_find_subpass_range_for_attachments()
92 pass->attachments[ds_attachment_idx].first_subpass = i; in pass_find_subpass_range_for_attachments()
93 if (i > pass->attachments[ds_attachment_idx].last_subpass) in pass_find_subpass_range_for_attachments()
94 pass->attachments[ds_attachment_idx].last_subpass = i; in pass_find_subpass_range_for_attachments()
101 if (i < pass->attachments[input_attachment_idx].first_subpass) in pass_find_subpass_range_for_attachments()
[all …]
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/
DDrawTester.cpp111 std::vector<vk::AttachmentDescription> attachments(multisample ? 2 : 1); in createRenderPass() local
116 attachments[0].format = colorFormat; in createRenderPass()
117 attachments[0].samples = vk::SampleCountFlagBits::e4; in createRenderPass()
118 attachments[0].loadOp = vk::AttachmentLoadOp::eClear; in createRenderPass()
119 attachments[0].storeOp = vk::AttachmentStoreOp::eStore; in createRenderPass()
120 attachments[0].stencilLoadOp = vk::AttachmentLoadOp::eDontCare; in createRenderPass()
121 attachments[0].stencilStoreOp = vk::AttachmentStoreOp::eDontCare; in createRenderPass()
122 attachments[0].initialLayout = vk::ImageLayout::eUndefined; in createRenderPass()
123 attachments[0].finalLayout = vk::ImageLayout::eColorAttachmentOptimal; in createRenderPass()
126 attachments[1].format = colorFormat; in createRenderPass()
[all …]
DFramebuffer.cpp20 std::vector<vk::ImageView> attachments(multisample ? 2 : 1); in Framebuffer() local
27 attachments[0] = multisampleImage->getImageView(); in Framebuffer()
28 attachments[1] = attachment; // Resolve attachment in Framebuffer()
32 attachments[0] = attachment; in Framebuffer()
38 framebufferCreateInfo.attachmentCount = static_cast<uint32_t>(attachments.size()); in Framebuffer()
39 framebufferCreateInfo.pAttachments = attachments.data(); in Framebuffer()
/third_party/skia/third_party/externals/swiftshader/src/Device/
DContext.cpp627 bool GraphicsState::depthWriteActive(const Attachments &attachments) const in depthWriteActive()
630 return depthTestActive(attachments) && depthWriteEnable; in depthWriteActive()
633 bool GraphicsState::depthTestActive(const Attachments &attachments) const in depthTestActive()
635 return attachments.depthBuffer && depthTestEnable; in depthTestActive()
638 bool GraphicsState::stencilActive(const Attachments &attachments) const in stencilActive()
640 return attachments.stencilBuffer && stencilEnable; in stencilActive()
643 bool GraphicsState::depthBoundsTestActive(const Attachments &attachments) const in depthBoundsTestActive()
645 return attachments.depthBuffer && depthBoundsTestEnable; in depthBoundsTestActive()
702 BlendState GraphicsState::getBlendState(int index, const Attachments &attachments, bool fragmentCon… in getBlendState() argument
707 activeBlendState.alphaBlendEnable = alphaBlendActive(index, attachments, fragmentContainsKill); in getBlendState()
[all …]
DPixelProcessor.cpp74 …entShader, const sw::SpirvShader *vertexShader, const vk::Attachments &attachments, bool occlusion… in update() argument
93 state.depthWriteEnable = pipelineState.depthWriteActive(attachments); in update()
95 if(pipelineState.stencilActive(attachments)) in update()
102 state.depthFormat = attachments.depthFormat(); in update()
103 state.depthBoundsTestActive = pipelineState.depthBoundsTestActive(attachments); in update()
107 if(pipelineState.depthTestActive(attachments)) in update()
137 state.colorWriteMask |= pipelineState.colorWriteActive(i, attachments) << (4 * i); in update()
138 state.colorFormat[i] = attachments.colorFormat(i); in update()
139 state.blendState[i] = pipelineState.getBlendState(i, attachments, fragmentContainsKill); in update()
DContext.hpp186 …BlendState getBlendState(int index, const Attachments &attachments, bool fragmentContainsKill) con…
188 int colorWriteActive(int index, const Attachments &attachments) const;
189 bool depthWriteActive(const Attachments &attachments) const;
190 bool depthTestActive(const Attachments &attachments) const;
191 bool stencilActive(const Attachments &attachments) const;
192 bool depthBoundsTestActive(const Attachments &attachments) const;
199 VkBlendOp blendOperation(int index, const Attachments &attachments) const;
203 VkBlendOp blendOperationAlpha(int index, const Attachments &attachments) const;
205 bool alphaBlendActive(int index, const Attachments &attachments, bool fragmentContainsKill) const;
206 bool colorWriteActive(const Attachments &attachments) const;
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiGranularityTests.cpp84 const std::vector<AttachmentInfo>& attachments,
109 const std::vector<AttachmentInfo>& attachments, in GranularityInstance() argument
112 , m_attachments (attachments) in GranularityInstance()
360 const std::vector<AttachmentInfo>& attachments,
373 const std::vector<AttachmentInfo>& attachments, in GranularityCase() argument
376 , m_attachments (attachments) in GranularityCase()
465 std::vector<AttachmentInfo> attachments; in createGranularityQueryTests() local
468 attachments.push_back(AttachmentInfo(format, i0, i1, 1)); in createGranularityQueryTests()
469 single->addChild(new GranularityCase(testCtx, name.c_str(), description, attachments)); in createGranularityQueryTests()
473 std::vector<AttachmentInfo> attachments; in createGranularityQueryTests() local
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/
Dgstglframebuffer.c133 fb->attachments = in gst_gl_framebuffer_init()
135 g_array_set_clear_func (fb->attachments, in gst_gl_framebuffer_init()
163 if (fb->attachments) in gst_gl_framebuffer_finalize()
164 g_array_free (fb->attachments, TRUE); in gst_gl_framebuffer_finalize()
165 fb->attachments = NULL; in gst_gl_framebuffer_finalize()
369 for (i = 0; i < fb->attachments->len; i++) { in _update_effective_dimensions()
373 attach = &g_array_index (fb->attachments, struct fbo_attachment, i); in _update_effective_dimensions()
435 fb->attachments = g_array_append_val (fb->attachments, attach); in _attach_gl_memory()
452 fb->attachments = g_array_append_val (fb->attachments, attach); in _attach_renderbuffer()
479 for (i = 0; i < fb->attachments->len; i++) { in gst_gl_framebuffer_attach()
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_common_context.c364 unsigned int attachments[__DRI_BUFFER_COUNT]; in radeon_update_renderbuffers() local
397 attachments[i++] = __DRI_BUFFER_FRONT_LEFT; in radeon_update_renderbuffers()
398 attachments[i++] = radeon_bits_per_pixel(draw->color_rb[0]); in radeon_update_renderbuffers()
403 attachments[i++] = __DRI_BUFFER_BACK_LEFT; in radeon_update_renderbuffers()
404 attachments[i++] = radeon_bits_per_pixel(draw->color_rb[1]); in radeon_update_renderbuffers()
411 attachments[i++] = __DRI_BUFFER_DEPTH_STENCIL; in radeon_update_renderbuffers()
412 attachments[i++] = radeon_bits_per_pixel(depth_rb); in radeon_update_renderbuffers()
414 attachments[i++] = __DRI_BUFFER_DEPTH; in radeon_update_renderbuffers()
415 attachments[i++] = radeon_bits_per_pixel(depth_rb); in radeon_update_renderbuffers()
417 attachments[i++] = __DRI_BUFFER_STENCIL; in radeon_update_renderbuffers()
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_common_context.c364 unsigned int attachments[__DRI_BUFFER_COUNT]; in radeon_update_renderbuffers() local
397 attachments[i++] = __DRI_BUFFER_FRONT_LEFT; in radeon_update_renderbuffers()
398 attachments[i++] = radeon_bits_per_pixel(draw->color_rb[0]); in radeon_update_renderbuffers()
403 attachments[i++] = __DRI_BUFFER_BACK_LEFT; in radeon_update_renderbuffers()
404 attachments[i++] = radeon_bits_per_pixel(draw->color_rb[1]); in radeon_update_renderbuffers()
411 attachments[i++] = __DRI_BUFFER_DEPTH_STENCIL; in radeon_update_renderbuffers()
412 attachments[i++] = radeon_bits_per_pixel(depth_rb); in radeon_update_renderbuffers()
414 attachments[i++] = __DRI_BUFFER_DEPTH; in radeon_update_renderbuffers()
415 attachments[i++] = radeon_bits_per_pixel(depth_rb); in radeon_update_renderbuffers()
417 attachments[i++] = __DRI_BUFFER_STENCIL; in radeon_update_renderbuffers()
[all …]
/third_party/vk-gl-cts/doc/testspecs/GLES3/
Dfunctional.fbo.completeness.txt31 + Single attachments with all standard (and many extension) formats
32 + All combinations of color, depth and stencil attachments
34 + Differently sized attachments
35 + Multilayer attachments
36 + Compatibility of multisample attachments
54 images and attachments, the set of expected status values and the actual
72 * If there are no attachments, GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
80 Note that GLES3 requires the depth and stencil attachments to be the same
83 attachments.
94 attachments with different sizes. The glCheckFramebufferStatus call is
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fFboInvalidateTests.cpp56 vector<deUint32> attachments; in getDefaultFBDiscardAttachments() local
59 attachments.push_back(GL_COLOR); in getDefaultFBDiscardAttachments()
62 attachments.push_back(GL_DEPTH); in getDefaultFBDiscardAttachments()
65 attachments.push_back(GL_STENCIL); in getDefaultFBDiscardAttachments()
67 return attachments; in getDefaultFBDiscardAttachments()
72 vector<deUint32> attachments; in getFBODiscardAttachments() local
75 attachments.push_back(GL_COLOR_ATTACHMENT0); in getFBODiscardAttachments()
79 attachments.push_back(GL_DEPTH_STENCIL_ATTACHMENT); in getFBODiscardAttachments()
81 attachments.push_back(GL_DEPTH_ATTACHMENT); in getFBODiscardAttachments()
83 attachments.push_back(GL_STENCIL_ATTACHMENT); in getFBODiscardAttachments()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DFramebuffer11.cpp116 const GLenum *attachments) in invalidate() argument
118 return invalidateBase(context, count, attachments, false); in invalidate()
123 const GLenum *attachments) in discard() argument
125 return invalidateBase(context, count, attachments, true); in discard()
130 const GLenum *attachments, in invalidateBase() argument
146 switch (attachments[i]) in invalidateBase()
164 ASSERT((attachments[i] >= GL_COLOR_ATTACHMENT0 && in invalidateBase()
165 attachments[i] <= GL_COLOR_ATTACHMENT15) || in invalidateBase()
166 (attachments[i] == GL_COLOR)); in invalidateBase()
169 (attachments[i] == GL_COLOR ? 0u : (attachments[i] - GL_COLOR_ATTACHMENT0)); in invalidateBase()
[all …]
/third_party/flutter/skia/src/gpu/vk/
DGrVkFramebuffer.cpp23 VkImageView attachments[3]; in Create() local
24 attachments[0] = colorAttachment->imageView(); in Create()
27 attachments[numAttachments++] = stencilAttachment->imageView(); in Create()
37 createInfo.pAttachments = attachments; in Create()
/third_party/mesa3d/src/amd/vulkan/
Dradv_meta_resolve.c55 VkAttachmentDescription2 attachments[2]; in create_pass() local
59 attachments[i].sType = VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2; in create_pass()
60 attachments[i].pNext = NULL; in create_pass()
61 attachments[i].format = vk_format; in create_pass()
62 attachments[i].samples = 1; in create_pass()
63 attachments[i].loadOp = VK_ATTACHMENT_LOAD_OP_LOAD; in create_pass()
64 attachments[i].storeOp = VK_ATTACHMENT_STORE_OP_STORE; in create_pass()
66 attachments[0].initialLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in create_pass()
67 attachments[0].finalLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in create_pass()
68 attachments[1].initialLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in create_pass()
[all …]
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_pass.c36 &subpass->attachments[j]; in lvp_render_pass_compile()
41 &pass->attachments[subpass_att->attachment]; in lvp_render_pass_compile()
66 &subpass->attachments[j]; in lvp_render_pass_compile()
71 &pass->attachments[subpass_att->attachment]; in lvp_render_pass_compile()
88 &pass->attachments[subpass_att->attachment]; in lvp_render_pass_compile()
97 &pass->attachments[a]; in lvp_render_pass_compile()
165 size += pCreateInfo->attachmentCount * sizeof(pass->attachments[0]); in lvp_CreateRenderPass2()
181 pass->attachments = (struct lvp_render_pass_attachment *)((char *)pass + attachments_offset); in lvp_CreateRenderPass2()
184 struct lvp_render_pass_attachment *att = &pass->attachments[i]; in lvp_CreateRenderPass2()
222 subpass->attachments = p; in lvp_CreateRenderPass2()
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/
DEXT_discard_framebuffer.txt73 RESOLVED: We'll use a sized list of framebuffer attachments. This
78 attachments, but those are backed by the same packed_depth_stencil buffer?
91 c) The contents of the specified attachments become undefined
93 RESOLVED: (c), with appropriate wording to map FBO attachments to
112 const enum *attachments);
116 Accepted in the <attachments> parameter of DiscardFramebufferEXT when the
136 const enum *attachments);
140 attachments are supplied in the <attachments> list. If an attachment is
144 If a framebuffer object is bound to <target>, then <attachments> may
160 STENCIL_ATTACHMENT in its <attachments> list when a framebuffer object is
[all …]
/third_party/openGLES/extensions/EXT/
DEXT_discard_framebuffer.txt73 RESOLVED: We'll use a sized list of framebuffer attachments. This
78 attachments, but those are backed by the same packed_depth_stencil buffer?
91 c) The contents of the specified attachments become undefined
93 RESOLVED: (c), with appropriate wording to map FBO attachments to
112 const enum *attachments);
116 Accepted in the <attachments> parameter of DiscardFramebufferEXT when the
136 const enum *attachments);
140 attachments are supplied in the <attachments> list. If an attachment is
144 If a framebuffer object is bound to <target>, then <attachments> may
160 STENCIL_ATTACHMENT in its <attachments> list when a framebuffer object is
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DFramebuffer11.cpp117 const GLenum *attachments) in invalidate() argument
119 return invalidateBase(context, count, attachments, false); in invalidate()
124 const GLenum *attachments) in discard() argument
126 return invalidateBase(context, count, attachments, true); in discard()
131 const GLenum *attachments, in invalidateBase() argument
147 switch (attachments[i]) in invalidateBase()
165 ASSERT((attachments[i] >= GL_COLOR_ATTACHMENT0 && in invalidateBase()
166 attachments[i] <= GL_COLOR_ATTACHMENT15) || in invalidateBase()
167 (attachments[i] == GL_COLOR)); in invalidateBase()
170 (attachments[i] == GL_COLOR ? 0u : (attachments[i] - GL_COLOR_ATTACHMENT0)); in invalidateBase()
[all …]
/third_party/openGLES/extensions/ARB/
DARB_framebuffer_no_attachments.txt62 attachments that can be written to by the GL. The size of the framebuffer
63 (width, height, layer count, sample count) is derived from the attachments
65 into a framebuffer object that has no attachments. Such a framebuffer
76 However, a framebuffer with no attachments will be considered incomplete
85 framebuffer with no attachments. Applications can specify default width,
87 When a framebuffer with no attachments is bound, it will be considered
92 attachments are not affected by these default parameters; the size of the
93 framebuffer will still be derived from the sizes of the attachments in
160 if there are no attachments, rendering will be limited to a rectangle
168 attachment. If there are no attachments, the number of layers will be
[all …]

12345678910>>...25