Giter Site home page Giter Site logo

Comments (7)

krOoze avatar krOoze commented on August 25, 2024 1

@mark-lunarg Probably fixed by 3a548ef

BTW might make sense to close issues in the original repo...

from vulkan-validationlayers.

karl-lunarg avatar karl-lunarg commented on August 25, 2024

Comment by chrisforbes (MIGRATED)
Tuesday Mar 21, 2017 at 22:53 GMT


Difficult to do a good job here -- render area isn't included in VkCommandBufferInheritanceInfo, so we're never going to know it in a secondary command buffer at recording time.

Have to defer either to CmdExecuteCommands, or QueueSubmit, like some other recently adjusted checks.

from vulkan-validationlayers.

karl-lunarg avatar karl-lunarg commented on August 25, 2024

Comment by karl-lunarg (MIGRATED)
Wednesday Mar 22, 2017 at 18:00 GMT


There's a similar issue in LunarG's LunarXchange (654). Probably exactly the same.

from vulkan-validationlayers.

karl-lunarg avatar karl-lunarg commented on August 25, 2024

Comment by phaulos (MIGRATED)
Wednesday Mar 22, 2017 at 18:01 GMT


If possible it would be best to do the check in vkCmdExecuteCommands(). At
that point the primary command buffer has seen vkCmdBeginRenderPass() and
knows the render area. That is also off the critical path, unlike
vkQueueSubmit().

On Wed, Mar 22, 2017 at 10:54 AM Karl Schultz [email protected]
wrote:

There is an issue like this logged in LunarG's LunarXchange (#654).

I got "Vulkan internal report (code 1115): vkCmdClearAttachments(): The
area defined by pRects[0] is not contained in the area of the current
render pass instance."

but I'm only recording secondary command buffer, primary command buffer
didn't yet got vkCmdBeginRenderPass! Like in this case:
vkBeginCommandBuffer( vkSecondaryCmdBuffer, &vkCmdBufferBeginInfo);

VkClearAttachment vkClear; vkClear.colorAttachment = 0; vkClear.aspectMask
= VK_IMAGE_ASPECT_COLOR_BIT; vkClear.clearValue.color.float32[0] = 0.0;
vkClear.clearValue.color.float32[1] = 0.0;
vkClear.clearValue.color.float32[2] = 0.0;
vkClear.clearValue.color.float32[3] = 0.0; const VkClearRect vkRect = { { {
0,0 },{ 128,128 }, }, 0,1 }; pvkCmdClearAttachments( vkCmdBuffer, 1,
&vkClear, 1, &vkRect);

And right here VL reports! It's true that at that time primary command
buffer didn't record begin render pass yet, but I think this report should
be moved to execution of secondary command buffer.

It is a new-ish issue and has not been resolved yet.

But in the validation layer code, in PreCallValidateCmdClearAttachments(),
there is:

// TODO: This check should be moved to CmdExecuteCommands or
QueueSubmit to cover secondary CB cases

Chris, do you think that this can/should be resolved by moving the check?

On Tue, Mar 21, 2017 at 4:53 PM, Chris Forbes [email protected]
wrote:

Difficult to do a good job here -- render area isn't included in
VkCommandBufferInheritanceInfo, so we're never going to know it in a
secondary command buffer.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<
KhronosGroup/Vulkan-LoaderAndValidationLayers#1601 (comment)
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/APq0i0o_6ZVK6BMrakh0pfsJW2rPU59uks5roFUEgaJpZM4Misus

.

--
Karl Schultz
LunarG
[email protected]


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
KhronosGroup/Vulkan-LoaderAndValidationLayers#1601 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AASCSA_Xo6SjshhnPVWU2ffcVVpgyl6pks5roWBsgaJpZM4Misus
.

from vulkan-validationlayers.

jzulauf-lunarg avatar jzulauf-lunarg commented on August 25, 2024

Triage notes: see discussion above. First step would be to verify the bug still exists vs. the CTS test case.

from vulkan-validationlayers.

locke-lunarg avatar locke-lunarg commented on August 25, 2024

The error doesn't happen in dEQP-VK.api.command_buffers.render_pass_continue of CTS any longer with Vulkan SDK 1.1.101.0, and VkPositiveLayerTest.ConfirmNoVLErrorWhenVkCmdClearAttachmentsCalledInSecondaryCB passes. So should we close the issue?

from vulkan-validationlayers.

jzulauf-lunarg avatar jzulauf-lunarg commented on August 25, 2024

@phaulos -- this appears to be resolved, ok to close?

from vulkan-validationlayers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.