Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect VertexData updates #82

Closed
2 tasks
dati91 opened this issue Feb 27, 2018 · 0 comments
Closed
2 tasks

Incorrect VertexData updates #82

dati91 opened this issue Feb 27, 2018 · 0 comments
Assignees
Labels

Comments

@dati91
Copy link
Member

dati91 commented Feb 27, 2018

### update_resource_cache before ###
### update_buffer_and_submit_upload before barrier ###
### update_buffer_and_submit_upload after barrier, before copy ###
ERROR:<unknown>: [IMAGE] vkCmdCopyBufferToImage(): pRegion[0] exceeds image bounds. The spec valid usage text states 'The image region specified by each element of pRegions must be a region that is contained within dstImage' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-vkCmdCopyBufferToImage-pRegions-00172).
### update_buffer_and_submit_upload after copy ###
### update_resource_cache after ###
### update_resource_cache before ###
### update_buffer_and_submit_upload before barrier ###
ERROR:<unknown>: [DS] vkCmdPipelineBarrier(): pImageMemBarriers[0].srcAccessMask (0x20) is not supported by srcStageMask (0x1). The spec valid usage text states 'Each element of pMemoryBarriers, pBufferMemoryBarriers and pImageMemoryBarriers must not have any access flag included in its srcAccessMask member if that bit is not supported by any of the pipeline stages in srcStageMask, as specified in the table of supported access types.' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-vkCmdPipelineBarrier-pMemoryBarriers-01184)
### update_buffer_and_submit_upload after barrier, before copy ###
ERROR:<unknown>: [IMAGE] vkCmdCopyBufferToImage(): pRegion[0] exceeds image bounds. The spec valid usage text states 'The image region specified by each element of pRegions must be a region that is contained within dstImage' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-vkCmdCopyBufferToImage-pRegions-00172).
### update_buffer_and_submit_upload after copy ###
### update_resource_cache after ###
### update_node_data before ###
### update_buffer_and_submit_upload before barrier ###
ERROR:<unknown>: [DS] vkCmdPipelineBarrier(): pImageMemBarriers[0].srcAccessMask (0x20) is not supported by srcStageMask (0x1). The spec valid usage text states 'Each element of pMemoryBarriers, pBufferMemoryBarriers and pImageMemoryBarriers must not have any access flag included in its srcAccessMask member if that bit is not supported by any of the pipeline stages in srcStageMask, as specified in the table of supported access types.' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-vkCmdPipelineBarrier-pMemoryBarriers-01184)
### update_buffer_and_submit_upload after barrier, before copy ###
### update_buffer_and_submit_upload after copy ###
### update_node_data after ###
### update_local_rects before ###
### update_buffer_and_submit_upload before barrier ###
ERROR:<unknown>: [DS] vkCmdPipelineBarrier(): pImageMemBarriers[0].srcAccessMask (0x20) is not supported by srcStageMask (0x1). The spec valid usage text states 'Each element of pMemoryBarriers, pBufferMemoryBarriers and pImageMemoryBarriers must not have any access flag included in its srcAccessMask member if that bit is not supported by any of the pipeline stages in srcStageMask, as specified in the table of supported access types.' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-vkCmdPipelineBarrier-pMemoryBarriers-01184)
### update_buffer_and_submit_upload after barrier, before copy ###
### update_buffer_and_submit_upload after copy ###
### update_local_rects after ###
### update_render_tasks before ###
### update_buffer_and_submit_upload before barrier ###
ERROR:<unknown>: [DS] vkCmdPipelineBarrier(): pImageMemBarriers[0].srcAccessMask (0x20) is not supported by srcStageMask (0x1). The spec valid usage text states 'Each element of pMemoryBarriers, pBufferMemoryBarriers and pImageMemoryBarriers must not have any access flag included in its srcAccessMask member if that bit is not supported by any of the pipeline stages in srcStageMask, as specified in the table of supported access types.' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-vkCmdPipelineBarrier-pMemoryBarriers-01184)
### update_buffer_and_submit_upload after barrier, before copy ###
### update_buffer_and_submit_upload after copy ###
### update_render_tasks after ###
  • Stage mask: VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT (0x1)

  • Access mask: VK_ACCESS_SHADER_READ_BIT (0x20)

    • These should be with one these stages:
      • VK_PIPELINE_STAGE_VERTEX_SHADER_BIT
      • VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT
      • VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT
      • VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT
      • VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT
      • VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT
  • Error 1) vkCmdCopyBufferToImage(): pRegion[0] exceeds image bounds

    • Fix the bounds of the resource cache update
  • Error 2) vkCmdPipelineBarrier(): pImageMemBarriers[0].srcAccessMask (0x20) is not supported by srcStageMask (0x1)

    • The first time we use the copy barrier it seems ok, but for the second time we get an error. After we copy, we transit to a SHADER_READ (0x20) access / TRANSFER .. VERTEX_SHADER stage.
    • My first guess that it is not the correct way, because the SHADER_READ access only used here and it is in the error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants